Commit Graph

451 Commits

Author SHA1 Message Date
LuK1337
644861bd21 sepolicy: qti: Label vendor.oplus.hardware.osense.client-service
Change-Id: Ibe0dec470db96a80643bc69506febd6f119e3696
2024-08-26 18:02:30 +02:00
LuK1337
276b1e0c0b Introduce vendor.oplus.hardware.osense.client-service
Change-Id: I5b9e1324a70966e1505e45fca54273ea22028be5
2024-08-26 18:02:29 +02:00
LuK1337
5c748014ea interfaces: Add vendor.oplus.hardware.osense.client V1
Change-Id: I3154373ac92ec59a439a688c695e6b545a4feba5
2024-08-26 17:55:20 +02:00
pppig236
75834e249b sepolicy: qti: Label ro.hardware.chipname and ro.oppo.market.
These props are read by camera.qcom.so.

Change-Id: Id24b01c87dcc5164e8259b0830eb49b0b3cfd17a
Signed-off-by: pppig236 <priv@pppig236.com>
2024-08-26 16:29:32 +02:00
pppig236
32aeac67fd sepolicy: qti: Label ro.build.oplus_nv_id
Change-Id: I2a785ff096d530917ea329f2bba4dc68ac4b698d
Signed-off-by: pppig236 <priv@pppig236.com>
2024-08-26 16:24:53 +02:00
pjgowtham
68eed0c84c sepolicy: qti: Address oplus_scheduler denials
On SM8450, audio depends on oplus performance HAL, which wants access to
oplus_scheduler nodes and might cause issues like stutters or lags
during normal usage, if denied.

Change-Id: Ic1edc5207ee673f61f0b425059a0593012640f82
2024-08-26 14:43:26 +02:00
pppig236
7a7b5dd127 sepolicy: qti: Label SM8450 wakeup nodes
Change-Id: I0847a5f86ef4f76038294441878f5304fc2425c5
Signed-off-by: pppig236 <priv@pppig236.com>
2024-08-25 19:33:54 +02:00
pppig236
53a94f17a2 sepolicy: qti: Label persist.sys.bt.a2dp.pendingtime
Change-Id: I0d34d2aea4fbaa64d9a9350a00a16e0edfecf51d
Signed-off-by: pppig236 <priv@pppig236.com>
2024-08-25 18:31:34 +02:00
Vivekachooz
5311368aaa sepolicy: qti: Label more SM6375 wakeup nodes
Change-Id: I44bfab90735decb6aa396666c798b3e9e491c332
2024-08-13 20:18:43 +02:00
pjgowtham
bde7b91781 sepolicy: qti: Label silead_fp and some of its properties
Change-Id: Ief5f22f970daa1733700ce7ee424de2709ca4f4a
2024-08-13 20:17:26 +02:00
LuK1337
1aab772a6d sepolicy: qti: Sort labels for wakeup nodes
diff -Naur \
    <(grep wakeup vendor/genfs_contexts) \
    <(LC_ALL=C grep wakeup vendor/genfs_contexts | sort)

Change-Id: I6204ef3a0bdda8e8133b9ae8a1818a6a8809fea9
2024-08-13 20:13:33 +02:00
Albert Tang
b4760c9290 sepolicy: qti: Add Nord N20 wakeup nodes
Change-Id: Ie4fd70b9acf6a72111ef90f0486e6f0486ae62ee
2024-08-13 20:12:10 +02:00
pjgowtham
7b43966077 sepolicy: qti: Label jiiov_fp and add rules for fp calibration data
W qseecomd: type=1400 audit(0.0:270): avc: denied { search } for
name="fingerprint" dev="sda2" ino=27 scontext=u:r:tee:s0
tcontext=u:object_r:vendor_persist_fingerprint_file:s0 tclass=dir
permissive=0

W qseecomd: type=1400 audit(0.0:272): avc: denied { read } for
name="fingerprint" dev="sda2" ino=27 scontext=u:r:tee:s0
tcontext=u:object_r:vendor_persist_fingerprint_file:s0 tclass=dir
permissive=0

W qseecomd: type=1400 audit(0.0:884): avc: denied { write } for
name="debase_context" dev="sda2" ino=407 scontext=u:r:tee:s0
tcontext=u:object_r:vendor_persist_fingerprint_file:s0 tclass=file
permissive=0

Change-Id: I92085d90108bcd86fbd6e362acfcb3cc40b68ddd
2024-08-13 20:09:18 +02:00
LuK1337
748968698b sensors: Implement sensors.ssc wrapper that strips custom flag support
This is required for devices that have "set custom flag to sensor" in
stock android.hardware.sensors@2.0-service.multihal strings.

Change-Id: I11b2c044be6baddf3772cfea5a2343494a21c6da
2024-08-13 10:55:30 +02:00
LuK1337
7518440c29 wvmkiller: Add SPDX license header to Android.bp
Change-Id: I3dd76ff6b8fd458d69333b54ca7958e6a183856d
2024-08-11 22:21:32 +02:00
LuK1337
eebc5711ac sepolicy: qti: Get rid of system/vendor support
Not a single device using hardware/oplus should depend on that.

Change-Id: Ic3988b76c2dfc46a7ed9867927e7abbc85f6407f
2024-08-11 18:18:24 +02:00
LuK1337
ba58be7f23 sepolicy: qti: Fix alignment in file_contexts
Change-Id: I83741fa0e7b30855c271f351516fa0407f533ccf
2024-08-11 18:09:04 +02:00
LuK1337
4c37ab7678 Introduce wvmkiller
This lets us disable WVM L1 on boot up for devices where it's not
provisioned properly.

Change-Id: I6074a9fad4235ac7896851f3cd4e9ea8bf288994
2024-08-09 23:54:56 +02:00
LuK1337
b460039fa2 sepolicy: qti: Sort partition labels
Change-Id: I4aea4070a66c4b1f1c6ee01c440e30fa5c62a1bd
2024-08-02 09:01:37 +02:00
Albert Tang
34023e22d4 sepolicy: qti: Label SM6375 partitions
Change-Id: Ifa0304c1d2446f322af131a95fafd413e56018f1
2024-08-02 09:36:20 +05:30
Vivekachooz
41f1641730 sepolicy: qti: Allow graphics composer hal to access vendor_proc_display
Change-Id: Ifa11a78de1712ac49b97ca7e923e4c1076fccf1d
2024-07-18 21:45:10 +05:30
Alexander Winkowski
8826da8100 sepolicy: qti: Move SM6375 wakeup nodes to qcom sepolicy
Change-Id: I33eca1b0ce933bdce7055fabddcebe05cb072b3a
2024-07-15 19:39:07 +00:00
Michael Bestas
983e17327a sepolicy: qti: Move some wakeup genfscon to qcom sepolicy
Change-Id: I58cafbf95f2aca120bf5456013b23e9d9575cc34
2024-07-15 19:39:07 +00:00
LuK1337
7df6ab20dc hidl: fingerprint: Add dummy keylayout for goodix FP
This prevents userspace from processing its events.

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/7397
Change-Id: I474cbab8c8fbf14b2defe76d8eb5c69a739a1697
2024-07-11 16:37:53 +02:00
LuK1337
733fbeccbe Remove libqti-perfd-client
Accidentally left in HEAD~.

Change-Id: I419662af0a6eeb8978270b750406bf9f5e99727a
2024-05-18 20:59:48 +02:00
Michael Bestas
77fcc092b5 Move to common power-libperfmgr
Change-Id: Icaa3b265fbc0fb71ae57a5cbde1654f62d07aef8
2024-05-18 12:44:36 +02:00
LineageOS Infra
1e8889a26b Automatic translation import
Change-Id: Id3e4f6639374151aeabcda0f41810195e0b4aa8f
2024-05-15 15:50:24 +00:00
inferno0230
67fda57ebc sepolicy: qti: Initial oplus touch/daemon rules
Change-Id: Ic98e14cd7d6b33085ff3dc85331b78c905853069
2024-05-09 13:11:11 +02:00
Venkat Yadlapati
7d98a588a4 sepolicy: qti: Label more SM7550 wakeup nodes
Change-Id: Iab5d5bdb3339a6e06dfc368c21d902065a8acd85
2024-05-08 13:10:46 +02:00
inferno0230
5a7aae0265 sepolicy: qti: Label SM7550 wakeup nodes
Change-Id: Ic0ff77c875a6e4eaf898473d085b839061d8380b
2024-05-06 15:15:20 +02:00
inferno0230
38a55278cd sepolicy: qti: Label additional SM8550 wakeup nodes
Change-Id: I4a892bf559fc9e8e0202782f3019484221cecd57
2024-05-06 15:15:19 +02:00
inferno0230
6a5a1daec3 sepolicy: qti: Label oplus_mms node
Change-Id: If11603521c53c1a3810d6e3cb8762c1b61944eec
2024-05-06 18:28:36 +05:30
Vishalcj17
4b9621b59b sepolicy: qti: Address Osense HAL denials.
Change-Id: I8ac69b04b8ad1386d4dc1337bfee898d019ba9b1
2024-04-28 08:31:41 +05:30
Vivekachooz
8a0982517d sepolicy: qti: Label goodix fingerprint props
Change-Id: If5a4d2ab9574a6f61d5f34e8dff96c4d35301752
2024-04-28 08:31:23 +05:30
Vivekachooz
1b98f7e767 sepolicy: qti: Label SM6375 wakeup nodes
Change-Id: I9ad137eeb3a77a5e9ed3fc23aeb4266de7f01748
2024-04-28 08:29:03 +05:30
Vivekachooz
823c1d9795 sepolicy: qti: Label SM6375 vibrator node
Change-Id: Ib042d619b99187ad9cbb387a9e0396e02994144a
2024-04-28 08:26:49 +05:30
Vivekachooz
54aa0fdd5e sepolicy: qti: Label SM6375 charging sysfs path
Change-Id: I9bf5450e1af5deb012512a5f08a436bd49bc002a
2024-04-28 08:19:59 +05:30
LuK1337
884a7584ca doze: Fix build on QPR2
Change-Id: I7b1486116c89f7df89753ba1ac2493c7bbb9cf95
2024-03-20 10:49:27 +00:00
Chaohui Wang
61e39d5c48 doze: Migrate to CompoundButton.OnCheckedChangeListener
Switch and SwitchCompat are both CompoundButton.

Using CompoundButton in Java will helps migration in the future.

Bug: 306658427 | AOSP | AOSP
Test: manual - check Settings pages
Test: m RunSettingsLibRoboTests
Change-Id: I85a70d4c504d8584030ea4a058f30d74206ab835
2024-03-20 10:49:11 +00:00
Peter Kalauskas
6526bfaa6a oplus: Enable use_resource_processor for all sysui deps
This will make the build faster

Test: m checkbuild
Bug: 295208392
Change-Id: I0c1bd901429bbe3bf81c1530e156735f8637a96e
2024-03-20 09:56:06 +00:00
ShevT
7f419ebc43 sepolicy: qti: Label vendor.powerhal.* props
Change-Id: I485a47700c61fc402707295b8236e365dd26c159
2024-03-05 23:18:03 +01:00
LuK1337
3703c07074 sepolicy: qti: Align properties properly
Change-Id: I427eb7022ba0cfe7d7856a14948c12ad3484be38
2024-03-05 22:59:16 +01:00
Georg Veichtlbauer
3da9c6ac61 sepolicy: qti: Allow sensor HAL to read ALS calibration files
Change-Id: I486b1b9cf745c5c0dc9892f45d33fe403148a2b6
2024-02-28 17:17:27 +01:00
LuK1337
8282ba016e sepolicy: qti: Allow libperfmgr to read and write to sde-crtc-*
Change-Id: I5abde96b2a6bdde7f7b5cd577f878ce93b8dc8b3
2024-02-20 13:25:38 +01:00
Georg Veichtlbauer
ab43521017 sepolicy: qti: Allow vendor_init to write to sched_energy_aware
Change-Id: Ie625c6cf1c0875a4a9cf020c0aeeedb2dd98c89d
2024-02-16 11:37:57 +01:00
Georg Veichtlbauer
be209131b8 sepolicy: qti: Changes for libperfmgr
Change-Id: I6497e775ec8c32b3d7a3913e6e1ca79853be70a8
2024-02-16 11:37:57 +01:00
LuK1337
339fc1ff09 Add inherit makefiles for libqti-perfd-client/power-libperfmgr
Also, hide libqti-perfd-client behind a soong namespace to avoid warning
on devices that don't use it.

Change-Id: I9d37e9d19b1a6f951a11a9a22eca8c0cf4423dce
2024-02-16 11:37:57 +01:00
LuK1337
33fce0e6d5 libqti-perfd-client: Clean up
* Add and run clang-format
* Add newlines between functions
* Use elvis operator `?:` for return value

Change-Id: I920044df12c99d32ddd2ef3fb5edf24bcd0c7360
2024-02-16 11:37:57 +01:00
Georg Veichtlbauer
d6673be2f1 Import dummy perfd-client lib
From xiaomi/sdm660 @ 43ad8dd

Change-Id: Iaf55cbb122bb038e87e9e6e3e662dd24017818d3
2024-02-16 11:37:57 +01:00
Georg Veichtlbauer
5b137d3802 Import Google Pixel power-libperfmgr
From hw/pixel @ 9a19470

Change-Id: Ia946accc63762af44db71180d293e05a28ec26e5
2024-02-16 11:37:57 +01:00