Commit Graph

105 Commits

Author SHA1 Message Date
LuK1337
74c4300652 sepolicy: qti: Add rules for vendor.oplus.hardware.oplusSensor
Change-Id: I3f51f2586e0af11749bd2cdb5a744b7b2fcb283d
2022-07-11 09:35:09 +02:00
LuK1337
6f35c7a779 sepolicy: qti: Introduce rw_dir_file() macro and use wherever possible
Change-Id: Iec8a7f18c75a994032792421172fea92e9595af6
2022-07-11 09:35:09 +02:00
LuK1337
67c51391b7 sepolicy: qti: Allow fastbootd to write to logo, spunvm, and storsec
Change-Id: Idfaee7740b56de523fbe73606ab09102b7bcd80c
2022-07-11 09:35:09 +02:00
LuK1337
e20099c05f sepolicy: qti: Label SM8250 charging sysfs path
Change-Id: I3662e118e1b401d97c8450ae6b3c95442dfef625
2022-07-11 09:35:09 +02:00
LuK1337
41ac9d7d73 sepolicy: qti: Label SM8250 vibrator sysfs paths
Change-Id: Icb13e32b4b72e734c7252e5b31b856f9ece4dd98
2022-07-11 09:35:09 +02:00
LuK1337
73b6c06adf sepolicy: qti: Allow sensors to access ssc_interactive & soc:sensor_fc
Change-Id: I75b740b8fba66615b08f791a43e476042e19a0f6
2022-07-11 09:35:09 +02:00
LuK1337
7fab01bf61 sepolicy: qti: Allow rild to set vendor.gsm.{phoneserial,serial}
Change-Id: Ic976ca785ca04aa2ed9ca3f5e6b109adcaad4ed0
2022-07-11 09:35:09 +02:00
LuK1337
157325442b sepolicy: qti: Add label and rules for MDM modem
Change-Id: I4035e1a8ca305642bb8f852f4f4af86558530729
2022-07-11 09:35:09 +02:00
LuK1337
17d82b5a99 sepolicy: qti: Label SM8250 wakeup nodes
for i in $(realpath /sys/class/wakeup/*); do if ! echo "$(ls -dZ $i)" | grep -q sysfs_wakeup; then echo genfscon sysfs $(echo $i | sed -e 's|/sys||g' -e 's|wakeup/wakeup.|wakeup|g' -e 's|wakeup[0-9]*|wakeup|g') u:object_r:sysfs_wakeup:s0; fi; done | sort -u

Change-Id: Id70f4e725f8925b31c0007fae5eb98756ddcd410
2022-07-11 09:35:09 +02:00
Alexander Koskovich
c4db837788 sepolicy: qti: Allow vendor_init to update display panel firmware
Change-Id: Iba517b59fe2856ed6f991c07e0362b1be203af45
2022-07-11 09:35:09 +02:00
Alexander Koskovich
df6558746e sepolicy: qti: Label some logging properties
Change-Id: I40531f4fce77290b42068669274ea1c20280d982
2022-07-11 09:35:09 +02:00
Alexander Koskovich
31ddd0f1ea sepolicy: qti: Allow update engine to flash oplusstanvbk
* Needed when payload.bin contains oplusstanvbk.

Change-Id: I5139aff2b0152790e1ebf8c598fc99c0f00fd21d
2022-07-11 09:35:09 +02:00
Alexander Koskovich
eb50d7c01c Add initial QTI SEPolicy for Oplus
Change-Id: Ib06cada5e7031d1f95976bf48a6a8475a835c9a4
2022-07-11 09:35:09 +02:00
Umang Chheda
d3d75f3ddd vibrator: Fix check for no of bytes in Slate SSR monitor thread
No of bytes returned by uevent_kernel_multicast_recv() can be 0 or
equal to 1025 bytes. Add change to remove '=' check in Slate SSR
monitor thread to fix the issue of thread not processing UEVENTs
because of wrong check.

Change-Id: I6d8c35a758371b853b545e3eece2fd7788a1424e
2022-07-06 13:14:42 +02:00
LuK1337
630fd3d763 bootctrl: Add android.hardware.boot@1.1-impl-qti back
This will be used for devices that don't support BSG.

Change-Id: I382a4e1116420442091591d4055840fd71cb891c
2022-06-28 17:27:20 +02:00
Alexander Koskovich
95e08c02aa bootctrl: Update to Boot Control HAL v1.2
Change-Id: I8a63b090bfab2659ce2a00193ff0115b687d9780
2022-06-28 15:54:25 +02:00
LuK1337
9b2d17ea95 Switch to QTI bootctrl HAL
Change-Id: Ie5079fd4c40cb1f7414f2cba9f98d350f03047d8
2022-06-28 15:54:24 +02:00
Siddeswar Aluganti
4a9dff139c gpt-utils: Update PTN_SWAP_LIST and handle multiimg(oem/qti)
* Update PTN_SWAP_LIST to reflect partition entry changes
   to BOOT LUN and handle "multiimgoem", "multiimgqti"
   partitions, similar to other BOOT LUN partitions.

Change-Id: I3fb2934c44f3c2555ef36437ae97c9a47bb874ed
2022-06-28 15:54:24 +02:00
LuK1337
128227ffce gpt-utils: Fix build errors
Change-Id: Ie8245d1637e12b5979a8af1b864cc713135b5c95
2022-06-28 15:54:23 +02:00
LuK1337
0a767f1022 gpt-utils: Drop unnecessary include
* When using generated_kernel_headers including
   stdio.h will cause errors due to redefined macros.

Change-Id: I2f753a64f760b636be1325873e17697466fbf33d
2022-06-28 15:54:23 +02:00
LuK1337
f15ccf5b2d gpt-utils: Drop unnecessary include
* When using generated_kernel_headers including
   asm/byteorder.h will cause a warning due to
   unused static functions.

Change-Id: I2a74ec92487c13c4645048c96da8cb92b3cbd9f0
2022-06-28 15:54:22 +02:00
Tao Bao
48bc51ae3f gpt-utils: Address the warnings
[ 11% 2/18] target  C++: libgptutils <= device/google/crosshatch/gpt-utils/gpt-utils.cpp
In file included from device/google/crosshatch/gpt-utils/gpt-utils.cpp:54:
system/core/libcutils/include_vndk/cutils/log.h:38:2: warning: "Deprecated: don't include cutils/log.h, use either android/log.h or log/log.h" [-W#warnings]
 ^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:750:17: warning: unused variable 'ufs_dir_stat' [-Wunused-variable]
    struct stat ufs_dir_stat;
                ^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:973:13: warning: unused variable 'r' [-Wunused-variable]
        int r, fd;
            ^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:973:16: warning: unused variable 'fd' [-Wunused-variable]
        int r, fd;
               ^
4 warnings generated.

Test: lunch blueline-userdebug && m -j libgptutils
Change-Id: Idd9174276d8a5b7b77c2ec48c745a78184f65fcf
2022-06-28 15:54:22 +02:00
LuK1337
e215489e8d gpt-utils: Use generated_kernel_headers
Change-Id: Id56f1c0603ff13b5d64eb4db33807ac13dcdd619
2022-06-28 15:54:21 +02:00
Alexander Koskovich
10a69ad8f9 Import gpt-utils from LA.UM.9.14.r1-19800.01-LAHAINA.QSSI12.0
Change-Id: I92baccc0524f88dcb439095288ac75fbc1401ae7
2022-06-28 15:54:21 +02:00
LuK1337
fc96053921 FrameworksResCommon: Enable WiFi display
Change-Id: Ibedd77780aa8adebc5ae948ce2ca25956c8692ac
2022-06-24 15:42:46 +02:00
jabashque
dfba74a283 fingerprint: Reset dimlayer HBM + fp press state on error
The way the fingerprint service handles FINGERPRINT_ERROR messages
allows for situations where the user can end up turning off the screen
while notify_fppress is set to 1. This results in situations where the
screen backlight does not turn on at all when turning on the panel,
which is not an ideal user experience.

Fix this by calling `setDimlayerHbm(0)` and `setFpPress(0)` when
handling FINGERPRINT_ERROR messages.

Change-Id: Ic2754249083c30a9b3b150b825357d894814fe84
2022-06-10 20:44:28 +02:00
Alexander Koskovich
2fcee31656 oplus: Import cleaned QSSI RROs from LE2115.11.C.48
* Remove anything that the value is already the default,
   or deprecated.

Change-Id: I597a93b580754a7fde51d051accfffca54c22482
2022-05-16 09:35:04 -07:00
LuK1337
3656dda6cf livedisplay: Fix indentation in vintf manifest
Change-Id: I037758d097b3bac2ab2068eb24c54b98671b7efb
2022-05-04 10:38:28 +02:00
LuK1337
ea3acdaeaa fixup! livedisplay: Implement IAntiFlicker interface fragment
Change-Id: Ic10e593e1628be32221d1b828c6fc33dba774a7c
2022-05-04 10:29:51 +02:00
Cosmin Tanislav
6aada2461e sensors: Add udfps long press sensor
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Change-Id: Ie78d7729201836bacd65a57f76e22adb61159192
2022-04-19 20:53:23 +02:00
Cosmin Tanislav
4c72bdb55c sensors: Fix locking around setOperationMode and activate
Change-Id: I9a09f45f012662c8f92fa40da3a4b9dd691a1b2c
2022-04-19 20:53:23 +02:00
Cosmin Tanislav
c93fa5b39d sensors: Move one shot sensor out of main class
Change-Id: Ib7ac0c55409f2dc7f8fb114167e9f4b2e8859223
2022-04-19 20:53:23 +02:00
Cosmin Tanislav
964d4c125a sensors: Make sensor set mode operation function virtual
Change-Id: I62c94a6ad250417162cfc9eaca8cb490ce650d9c
2022-04-19 20:53:23 +02:00
Cosmin Tanislav
ee078aa175 sensors: Make sensor flush function virtual
Change-Id: I46532fc726d9e0c2073100ff1f6008fcde9e821c
2022-04-19 20:53:23 +02:00
Cosmin Tanislav
df107dcc7c sensors: Make sensor run function virtual
Change-Id: Ie50900903bbf4a302baff084f229c37c5c324742
2022-04-19 20:53:23 +02:00
Cosmin Tanislav
7590ccffb6 sensors: Make sensor batch function virtual
Change-Id: I2de1e919234c4893b0b70390c0189cae38dbbe6c
2022-04-19 20:53:23 +02:00
Cosmin Tanislav
e7aec3724b Add dummy sensors sub HAL
Change-Id: Ie20ed775344990de3e16e2eefba1754d831027fb
2022-04-19 20:53:23 +02:00
LuK1337
538a36188f fingerprint: Add libudfps_extension impl
Change-Id: Ic5752c29816e66c6c585069779c8ac3211a0e277
2022-04-19 20:53:23 +02:00
LuK1337
c9225a7db6 fingerprint: Setup dimming & fp press notifications
Change-Id: I0b1df953f11974daf1adb4b88d9b48efd229bcf1
2022-04-19 20:53:23 +02:00
LuK1337
7f4f347c2c hidl: fingerprint: Initial AOSP -> Oplus wrapper
Change-Id: I8729b3920dd52c18416179d4118a4d012fb5b1d3
2022-04-18 22:56:40 +02:00
LuK1337
b336b8146c interfaces: Add vendor.oplus.hardware.biometrics.fingerprint@2.1
Change-Id: I542c979b72b82dfb517f2c9f7f9cbfe58fab54bf
2022-04-17 21:34:29 +02:00
LuK1337
ce722bdb50 hidl: Setup touchscreen gestures with Lineage touch HIDL HAL
This takes advantage of the touchscreen gesture nodes exposed by Oplus
touchscreen drivers.

Change-Id: I5a43b8f922a8d1c940e367d22d377b7161913d3a
2022-04-17 16:12:09 +02:00
LuK1337
745a264171 livedisplay: Add (and run) clang-format file
Change-Id: Ibb4a56ef02a404717512d7a7f99bc31e2ce442a4
2022-04-17 10:25:28 +02:00
LuK1337
2ee105e951 fixup! livedisplay: Implement IAntiFlicker interface fragment
Change-Id: I8461e18c60d581f87d9fba1fbc0ec85ab14cfdff
2022-04-17 00:18:13 +02:00
Paul Keith
f677f346bc livedisplay: Fix racy init
* It turns out moving this to class main doesn't work as well
  as some had thought it would, so restore the previous logic
  to use class hal, and restart if the backend isn't up yet

Change-Id: Ib8b417d89108dcf80d0d159e8d84e5327944b2a1
2022-04-14 11:03:52 +02:00
Bruno Martins
096e9d9c20 livedisplay: Use pragma once directive everywhere
Change-Id: Ic5ec76210a7d8697945561b2d150f0c1f778dc5c
2022-04-14 11:03:52 +02:00
LuK1337
3334859f4f livedisplay: Implement IAntiFlicker interface fragment
Change-Id: I1dbc6d8989a80fe7b06d4356aeb717417997a793
2022-04-14 11:03:52 +02:00
LuK1337
85fffbdcfa livedisplay: Expose headers and implementations as Soong modules
Change-Id: I335cb98b544fceed1e0d11f0a7dd9cc38860b5aa
2022-04-14 11:03:52 +02:00
LuK1337
9e7b514023 livedisplay: Uprev to 2.1
Change-Id: I98b2ea16ed342339ee652d5cb79dcfd22f8c0a0d
2022-04-14 11:03:52 +02:00
LuK1337
21edb37c1f livedisplay: Implement ISunlightEnhancement interface
Change-Id: I728653099f9a57a85f1ce2ffa93b4e62981208fa
2022-04-14 11:03:52 +02:00