Commit Graph

592 Commits

Author SHA1 Message Date
Scott Warner f8ef23f8e8 sm8150-common: Update vendor security patch
OxygenOS 10.3.4 updates the patch level

Change-Id: If453e7c776a9da56e9dd003768d2cfaad349c8fb
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-09-08 21:58:59 +05:30
Scott Warner 7d883af2b0 sm8150-common: manifest/sepolicy: Add new camera interface
Interface added in the Oxygen OS 10.3.4.GM21AA blob update

Change-Id: I95202b728c381b0bec4922e2688f1d33a43035dc
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-09-08 21:58:59 +05:30
Matt Evangelisti ac86dc4078 sm8150-common: Add hotdogg to build guards
Change-Id: I1b0c68b33ebfe26937ae5687c1dc583866a468be
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-09-02 16:42:36 +02:00
Michele Bono 2fd9907026
sm8150-common: Update fod behavior
Change-Id: I0fd017683e95a2409c5d72193bfd245970b91560
2020-08-11 21:11:44 +05:30
LuK1337 67889326d6
sm8150-common: Update libfod extension function prototypes
Change-Id: I5c43c71326caf21a85863b74ed0a893057d1cfa8
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-08-11 17:57:41 +05:30
LuK1337 e2eba1324d
sm8150-common: fod: Reset everything when onShowFODView() is called
* Perhaps it'll	fix random bright FOD icon?

Change-Id: I08eaf75bfd8a5a6aea1f89ff6810e9c271e1cbe3
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-08-11 17:52:08 +05:30
Marko Man 440aeb5961
sm8150-common: fod: Set dim mode instead of HBM for fp enrollment
* That way we no longer have to turn HBM for
  the whole enroll process.

Change-Id: Ib0c48b117637381dbd7ab373bedd97dbc70dda28
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-08-11 17:52:03 +05:30
Michele Bono 108f82974a
sm8150-common: Switch to libfod extension
Decompiled stock libsurfaceflinger.so to get Z values from OPFingerprintView
and OPFingerprintVDpressed functions

Change-Id: I23b1af50a37cda342b1b119b792f1216e2ab0a0b
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-08-11 17:51:48 +05:30
LuK1337 9d12db861e sm8150-common: touch: Sync available gestures with kernel
Change-Id: I203b24d67293f5b124978c59ba5561fbf45cb718
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-07-29 02:29:00 +05:30
Anirudh Gupta c7100d886c sm8150-common: touch: Restore proper gesture actions
This was fixed by the kernel commit: c1244fe4ba

This commit includes a revert of commit 756dd639af.

Change-Id: I7dd248c06864eda5b0ac3269e1ebafd1ce4d43fa
2020-07-25 17:19:34 +05:30
Ashwin R C b9cdf7d563 sm8150-common: DeviceSettings: Use VibrationEffect
* Also update haptic feedback logic

Change-Id: I722022d014d9e88ef267a5563b43fee87ef02b6b
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-07-11 04:13:28 +05:30
LuK1337 9b89a79cdf sm8150-common: Include dtbo in recovery image
* This allows us to drop dependency on dtbo partition
  being in sync with recovery.
* Test: fastboot erase dtbo && fastboot boot recovery.img

Change-Id: Id0b36db9634ba7b20143c247c68da5d31891fce1
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-07-11 04:09:16 +05:30
Jesse Chan f7220133ea sm8150-common: Enable unspecialized app process pool
Change-Id: I6dfcb59dace5eaa7551caeae86db3b485c0cfbf1
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-07-08 03:07:46 +05:30
gnumdk 67d0973dcc sm8150-common: Fix adaptive brightness
Do not reset value to zero, just use original reading. Prevents the
famous "unstable adaptive brightness" bug.

Change-Id: Ia82b4f3a6cf3ce0211e3ffa4ef3ff43be52030d2
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-06-24 14:43:54 +05:30
Akhil Narang a2580fd24a sm8150-common: DeviceSettings: Automatic translation import
Change-Id: I8b4df29740fba05a2fd9c07d677923277f9f98ed
2020-06-18 07:54:12 +00:00
LuK1337 2b6deef8ab Revert "sm8150-common: Enable qti-telephony-common aosp_usr_pref_sel"
* Seems like mobile data doesn't get toggled
  properly after doing this...

This reverts commit 278c8ed75214675fc7bf0bf21c30f13329aa3676.

Change-Id: I833a2d79c3d1b1ff2a0cb0b94f44d0eda9efab03
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-06-10 03:59:35 +05:30
Akhil Narang 2b31537f48 sm8150-common: DeviceSettings: Automatic translation import
Change-Id: Ib8d3a4e71d7cefc5bc7912b754a1fee15911d8c5
2020-05-29 12:32:03 +00:00
LuK1337 2bf8423dee sm8150-common: Switch to common usb-in-recovery configuration
Change-Id: I6e281e0a76dbf6f02c9cab9b0dcf2293e0352c0a
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-28 17:50:09 +05:30
LuK1337 a2e7ccbef6 sm8150-common: Enable qti-telephony-common aosp_usr_pref_sel
* That allows us to set calling account to 'Ask every time'
  without it being reset to sub 1 every boot.

Change-Id: Ifb204fd07ec232fe3c55a92b6fc286786782c28b
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-28 17:50:09 +05:30
Michael Bestas 59cdef58b5 sm8150-common: camera_helper: Automatic translation import
Change-Id: Ic682343464cfccaf9b96bcfe76ec33557d04acba
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-28 17:50:09 +05:30
LuK1337 ecf95ef92e sm8150-common: fingerprint: Sync with hardware/interfaces/biometrics
* Also drop silead support and fp variant props as
  none of these are actually used (anymore?).

Change-Id: If9fa58c63c5033e7a89c24580288ec7300500c66
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-28 17:50:09 +05:30
Ashwin R C 627a09129f sm8150-common: Update VENDOR_SECURITY_PATCH
* Now that ASB has been merged we don't have to worry about
  rollback protection.

Change-Id: Ibc81ffe98beb28055868a60aa590cb788958a85b
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-28 17:50:09 +05:30
LuK1337 f9b3072793 sm8150-common: Restore qfp related blobs
* Apparently these make FOD faster for some reason...

This reverts commit 0b8c19a16b.

Change-Id: I495af851d6e6639be1ab393bfa561a6bbe795173
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-28 17:49:43 +05:30
Piyush Balwani 35fea5f872 sm8150-common: Enabling PASR
Enabling PASR for msmnile

Change-Id: Id979e11fd74e32da4acee3d883a3db76fc2d462e
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-28 17:47:51 +05:30
Hikari-no-Tenshi a03d66103d sm8150-common: sepolicy: Allow system_app to interact with pasr hal
Change-Id: I5d521704aa6739ab27b7cad292f05269fd5411d7
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-28 17:47:49 +05:30
Anirudh Gupta 1e19fefd66 sm8150-common: Pin patched ims to remove HD notification
Change-Id: I6b173bf4a0c35f223d61abbf82788e7feb3722d1
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-14 09:01:07 +00:00
Akhil Narang c1d0839750 sm8150-common: Automatic translation import
Change-Id: If2760efcfba6128499e7ae71669d8411728b99aa
2020-05-05 18:58:33 +00:00
Ashwin R C 935a7051b2 sm8150-common: allow hal_audio_default to read audio_device
audio_hw_primary: pcm_open_prepare_helper: cannot open device '/dev/snd/pcmC0D0p': Permission denied
avc: denied { search } for name="snd" dev="tmpfs" ino=14528 scontext=u:r:hal_audio_default:s0 tcontext=u:object_r:unlabeled:s0 tclass=dir permissive=0

Change-Id: I8fb7ec2c269fca6b8bf21aacf521990e9279418d
2020-05-04 16:35:53 +00:00
Anirudh Gupta 8f053ef9c5 sm8150-common: BoardConfig: Use latest clang to compile kernel
Requires: https://review.aosip.dev/c/AOSIP/platform_vendor_aosip/+/12107

Change-Id: I3de8abfd380799b05dd494012a54cf5142d005cf
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:10 +05:30
Christian Oder 773c07e3b2 sm8150-common: Update CAF telephony stack
* From LA.UM.8.1.r1-14500-sm8150.0
* the blob has been modified to not alter
  settings_network_and_internet_v2.

Change-Id: I16fe1e18c1701225774473917d4f041510cdb9a6
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:10 +05:30
Anirudh Gupta eb1d29b2b5 sm8150-common: sensors: Switch log header location
Silences the following warning:

`warning: "Deprecated: don't include cutils/log.h, use either android/log.h or log/log.h" [-W#warnings]`

Change-Id: I17f280010d357a69edb29ade8a3e6612e0839242
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:10 +05:30
Anirudh Gupta 9775bae839 sm8150-common: system.prop: Add OnePlus Camera to privapp list
This prop is set on stock and helps fix crash when launching app:
https://del.dog/urrimeseha.txt

Change-Id: Idcb653e0dc6a7b38579586719d0f265ae84f6a8f
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:10 +05:30
Anirudh Gupta ab07e1271f sm8150-common: overlay: SystemUI: Do not use binned brightness sensor for proximity
Change-Id: I132827f5b81087f05d50bad40c52c26d9f7af88b
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:09 +05:30
Dan Pasanen a77ac25f37 sm8150-common: overlay: SystemUI: enable config_vibrateOnIconAnimation
* need those sexy vibes

Change-Id: If5671135879f6f4069d0ed881b41b0a243890349
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:09 +05:30
Anirudh Gupta f75c42d5c9 sm8150-common: overlay: SystemUI: Enable status bar burn in protection
Also set interval to 40 instead of default 60 since HBM mode is a thing

Change-Id: Idade7f5e786c350e58160e0ed49cd3e7de98951c
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:09 +05:30
Jake Weinstein 53ed4c013a sm8150-common: overlay: Define config_vendorPlatformSignatures
Change-Id: I6b638f9294960b290b4973f79c06d34edd495fb8
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:09 +05:30
Anirudh Gupta a68af7dbf3 sm8150-common: overlay: State devices have no LED
Change-Id: I91ad83c14a78707e5d259d336b64d79476f3ab00
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:09 +05:30
Anirudh Gupta cf0b6756d7 sm8150-common: Use 8GB dalvik heap config
Change-Id: I094b7bb7a55aac9b5382bc7d8495dbda66ac3807
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:09 +05:30
Park Ju Hyung de7d3cbfb5 sm8150-common: Disable Dolby Atmos support
This doesn't work without proprietary patches to stagefright.
Prevents apps like Tidal from crashing since its expecting Dolby atmos to be present but it isn't

Change-Id: I33d46bac7712461e33fb1c38090a1904831b317f
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:09 +05:30
rituj d2fefc481e sm8150-common: Use custom vibration configs
After hours and hours of testing, this configuration seems to be the best.

Change-Id: I83739a77525683e856cebb0e2e72433b4bb39adc
Signed-off-by: rituj <ritujbeniwal@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:09 +05:30
Anirudh Gupta 1db26b8545 sm8150-common: Remove vendor firmware not present in 7T
Change-Id: If25941f80a0bd2c12ae4b488f4d8564935507cc2
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:09 +05:30
Anirudh Gupta c79373d4da sm8150-common: sepolicy: Allow ims to read and write to diag_device
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:09 +05:30
Anirudh Gupta 17d9eab96d sm8150-common: sepolicy: Allow memtrack HAL to search in sysfs_kgsl
Addresses the following denial:
```
avc: denied { search } for name="kgsl" dev="sysfs" ino=57739 scontext=u:r:hal_memtrack_default:s0 tcontext=u:object_r:sysfs_kgsl:s0 tclass=dir permissive=0
```
Signed-off-by: Anirudh Gupta <anirudhgupta109@gmail.com>
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:30:09 +05:30
Anirudh Gupta 502ed6474f sm8150-common: {sepolicy,rootdir}: Address denials in DeviceSettings
Guides that helped fix these:
 - https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/SELinux_Guide/rhlcommon-section-0023.html
 - https://msfjarvis.website/posts/understanding-and-resolving-selinux-denials-on-android
 - https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/SELinux_Guide/selg-part-0057.html

Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:29:50 +05:30
Anirudh Gupta 756dd639af sm8150-common: touch: Switch down arrow gesture node to up arrow
The gesture node seems to be swapped on the OOS 10 source.
Switch to this since up works.

Change-Id: I0b0b994125a90222e9bdebd506e0e3672c13759a
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:28:27 +05:30
Anirudh Gupta 6cc1b95757 sm8150-common: DeviceSettings: Add single tap to touch screen gestures
Change-Id: I853ab1b63d682d01b7bea359111d07cf9e04d8be
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:27:56 +05:30
Akhil Narang 956873f0ec sm8150-common: DeviceSettings: Automatic translation import
Change-Id: Ie84ce5f4c56bb8acd1ce4807c0849188f135814e
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:25:28 +05:30
Anirudh Gupta e3a4d1112a sm8150-common: DeviceSettings: Remove refresh rate conditionally
Some devices don't have a 90Hz display and don't need the preference for this reason

To disable the feature, overlay the config to false in device specific device tree:

  overlay{,-aosip}/device/oneplus/sm8150-common/DeviceSettings/res/values/config.xml:
    <bool name="config_deviceHasHighRefreshRate">false</bool>

Suggestion by Ashwin4RC

Change-Id: I79f46adabf9d7940ca24e7077890447678a8fa8c
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:25:28 +05:30
Anirudh Gupta fe66793ff4 sm8150-common: DeviceSettings: Add left padding to gesture preferences
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
Change-Id: I3c875eba25413a7566ce599aedc726d0d7df944f
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:25:28 +05:30
Anirudh Gupta 9f3ffc06a7 sm8150-common: DeviceSettings: Remove vibrator preference when unsupported
guacamoleb (OnePlus7) doesn't have support for vibration intensity changing
and doesn't have the kernel node for it either, remove the pref for such devices.

Change-Id: I58010f032680c86c27db70e5c91dd99921b1a689
Signed-off-by: Anirudh Gupta <anirudhgupta109@aosip.dev>
2020-05-02 14:25:28 +05:30