86 Commits

Author SHA1 Message Date
7c95b943ef sm8150-common: Initialize for Evolution X 11.x+ 2026-02-06 15:24:24 +09:00
firebird11
0d59b71c45 sm8150-common: Sensor based UDFPS, Double and Single tap (2/5)
* Based on commits from @pwnrzr and @ivecera

Change-Id: I994a9ef28815d11ffb303a56a2f20f2c80d62551
Signed-off-by: firebird11 <hbgassel@gmail.com>
2026-02-02 17:19:38 +01:00
armdebug
e92952bf3d sm8150-common: sepolicy: Address some property denials
Change-Id: I97783d97e9eadfc4d23bd651106d6cc24ec0ce85
2026-02-02 12:11:38 +01:00
Bruno Martins
9cdeab34e6 sm8150-common: sepolicy: Label extcon_usb1 nodes
Change-Id: I92d728a1bc283beedf33b015c3115221140d527d
2026-02-02 12:10:59 +01:00
armdebug
b9c7469d7f sm8150-common: Revert "Build AIDL NXP NFC HAL"
This reverts commit 384d3ddf48.

Change-Id: I343467dd953fe5cfd83c61baef480de0c5dd8b8a
2026-02-02 12:08:01 +01:00
armdebug
a760ec9de3 sm8150-common: sepolicy: Fix parts LED denials
avc: denied { search } for comm="eageos.settings" name="leds"
dev="sysfs" ino=51054 scontext=u:r:devicesettings_app:s0
tcontext=u:object_r:sysfs_leds:s0 tclass=dir permissive=0

Change-Id: I7549118b354cdc357ef2c57db9cc21216b2b173a
2026-02-02 12:06:05 +01:00
Ivan Vecera
b36c0ceabe sm8150-common: Build UDFPS sensors sub-HAL
* Build and ship UDFPS sensor sub-HAL for devices with UDFPS
* Allow sensors HAL access /sys/touchpanel directory

Change-Id: I440350e0d4d4296cbc77e68e8f87cc727b08528b
2026-02-02 12:05:46 +01:00
Flicker372
0e4cc7ef9b sm8150-common: sepolicy: Use the correct node for leds
- Kona platform uses pm8150 power management chip

thyme:/ # ls
/sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-05/
c440000.qcom,spmi:qcom,pm8150l@5:qcom,amoled
c440000.qcom,spmi:qcom,pm8150l@5:qcom,pwms@b100 of_node uevent
c440000.qcom,spmi:qcom,pm8150l@5:qcom,leds@d000
c440000.qcom,spmi:qcom,pm8150l@5:qcom,pwms@bc00 power
c440000.qcom,spmi:qcom,pm8150l@5:qcom,leds@d300 driver subsystem

Change-Id: I0071630584f3e3ec38b45304d33a71e58f353f61
2025-10-30 01:17:16 +01:00
Michael Bestas
cdcf966ed8 sm8150-common: sepolicy: Remove duplicate rules
These already exist in device/qcom/sepolicy_vndr/legacy-um

Change-Id: I517edee45bfa7708b2e24055d9b0f8c0b3dbc5c4
2025-10-30 01:17:15 +01:00
dianlujitao
14303aca76 sm8150-common: Move Soter HAL rule to common
Change-Id: I17db85c9bdd26e8c44eaa5f6e8f4918327afc27c
2025-09-10 15:20:38 +08:00
penglezos
bf89ba1bf1 sm8150-common: Remove duplicate sysfs_wakeup labels
Change-Id: I01441b47f8a7576be254bd207fd64a0530df109d
2025-07-13 17:02:06 +00:00
armdebug
f973d44393 sm8150-common: sepolicy: Remove Xiaomi light HAL label
Change-Id: I52712f203c78f46822dd3caf1d382f6916800c12
2025-06-12 17:24:37 +00:00
Cosmin Tanislav
df0b8e9df4 sm8150-common: sepolicy: Label the missing IMiFxTunnel
E SELinux : avc: denied { find } for
interface=vendor.xiaomi.hardware.fx.tunnel::IMiFxTunnel
sid=u:r:hal_fingerprint_default:s0 pid=1534
scontext=u:r:hal_fingerprint_default:s0
tcontext=u:object_r:default_android_hwservice:s0
tclass=hwservice_manager permissive=1
E SELinux : avc: denied { add } for
interface=vendor.xiaomi.hardware.fx.tunnel::IMiFxTunnel
sid=u:r:hal_fingerprint_default:s0 pid=1534
scontext=u:r:hal_fingerprint_default:s0
tcontext=u:object_r:default_android_hwservice:s0
tclass=hwservice_manager permissive=1

Change-Id: I5bd238bc40dedc942d6b2aa997b88274d645c0d8
2025-06-08 23:01:02 +02:00
Hridaya Prajapati
ae5527e692 sm8150-common: switch to common AIDL IR service
Change-Id: I36c05aaa312969e479896c6e63a26a68cf897afa
2025-06-08 18:43:24 +02:00
LuK1337
384d3ddf48 sm8150-common: Build AIDL NXP NFC HAL
Change-Id: I6ace3ac149c84d2cb9e2773e7ef5ddbf24c35b92
2025-05-21 02:21:34 +02:00
basamaryan
424308c9ba sm8150-common: Move to Xiaomi fingerprint AIDL
Change-Id: I68dba7184034fd37454c7d32a065f041cb611625
2025-05-21 02:21:33 +02:00
Christian Hoffmann
d44b94a032 sm8150-common: Remove duplicate sysfs_wakeup labels
Change-Id: Id8e40a381440c88d4a6de57e5187a00366299f34
2025-05-21 02:21:32 +02:00
Francescodario Cuzzocrea
2952facb36 sm8150-common: sepolicy: label /data/vendor/sensor_log
Change-Id: Ice74413c1764f7bd3a352a375e445d50620c141b
Signed-off-by: Francescodario Cuzzocrea <bosconovic@gmail.com>
2024-12-07 16:01:47 +01:00
Francescodario Cuzzocrea
ee870fd96f sm8150-common: sepolicy: label persist.vendor.EnableP3ColorSpace
Change-Id: I4e8a42bb0829e91c2180cbc6573fcc476d528a5e
Signed-off-by: Francescodario Cuzzocrea <bosconovic@gmail.com>
2024-12-07 16:01:46 +01:00
Nanhumly
d8b7f917fe sm8150-common: sepolicy: Label sysfs nodes for cas
Change-Id: I787af167d2ea45677b4e3566a679d29411c027fd
2024-12-07 16:01:46 +01:00
Francescodario Cuzzocrea
ce5c3da965 sm8150-common: label some pipa power_supply sysfs
Change-Id: If73d28e18c69195e020e6ac1380614bab1368304
Signed-off-by: Francescodario Cuzzocrea <bosconovic@gmail.com>
2024-12-07 16:01:46 +01:00
AdarshGrewal
ba2129c835 sm8150-common: sepolicy: Allow ueventd to read vendor_persist_wcnss_service_file
Change-Id: I13ee1da817b74e7c39af6831cc5628b404ca1c99
2024-12-07 16:01:46 +01:00
Sebastiano Barezzi
c8b63c6750 sm8150-common: Move to Xiaomi IR AIDL
Change-Id: I46094bcbfaba252b5d98ea8211b927fdaa079e2d
2024-08-18 23:59:08 +02:00
Sebastiano Barezzi
8595382312 sm8150-common: sepolicy: camera_persist -> persist_camera
Change-Id: Icda7ffc0f35850f867475cc1885ee8bce4948e78
2024-08-04 13:58:27 +02:00
Sebastiano Barezzi
859f81fd3e sm8150-common: sepolicy: Remove duplicated entries
Change-Id: I335485c4e40118dde8fece418dcf772bde879a19
2024-07-30 02:11:33 +02:00
Daniel Banacki
ef79b56590 sm8150-common: sepolicy: Label sysfs nodes for cmi
While at it reorder health nodes

Change-Id: I9a471872973ae8bf7ce08313656b2e4f85fad4d5
2024-07-12 01:07:26 +02:00
Sebastiano Barezzi
49037086e5 sm8150-common: sepolicy: Let the fingerprint HAL access the RTC device
Change-Id: If3ac147d8e157d11c5e87c9a44f36337d15c349f
2024-06-23 00:04:57 +02:00
Sebastiano Barezzi
f03ba3dd66 sm8150-common: sepolicy: Readd IIO sysfs node label
Needed for devices using MIUS

Change-Id: I834307b2e419cdbb20283d27b2536791e49e5b2d
2024-06-23 00:04:53 +02:00
Sebastiano Barezzi
1103962ab3 sm8150-common: sepolicy: Cleanup and rework
Change-Id: I12c97fe8f543b6c466cd6fc38479582ddca37156
2024-05-30 23:43:28 +02:00
Bruno Martins
2be7c3d03b sm8150-common: Use common libqti-perfd-client and power-libperfmgr
Change-Id: I22d6b35c72629553817005deaefcae60abc72cfd
2024-05-20 01:34:54 +02:00
Sebastiano Barezzi
65cd1c2cdd sm8150-common: sepolicy: Label nabu power supply nodes
Change-Id: I6b292a3a853e284fc1923718c8c5a8f8b210fd37
2024-05-15 22:40:56 +02:00
Charles Chen
7ecb6578b6 sm8150-common: Replace isolated_app with isolated_app_all
Replace certain policies for isolated_app with the newly introduced
isolated_app_all for better scalability.

Bug: 265540209
Test: m
Change-Id: I1b6866d56f15089babe368bb60335c7ed99bdd6b
2024-02-26 01:38:00 +01:00
Sebastiano Barezzi
0b96378e19 sm8150-common: init: Drop debugfs stuff
Missed in I45e6f20c886d467a215c9466f3a09965ff897d7e

Change-Id: I9ec52e8969b20be027e5693637e65eddb99169c9
2024-02-26 01:29:46 +01:00
Sebastiano Barezzi
3a357b9826 sm8150-common: Move to Xiaomi IR HIDL service
Change-Id: I5717475052c89fd696e3fd544e39698450e28fd7
2023-11-18 23:31:10 +01:00
Nolen Johnson
a93e273558 sm8150-common: sepolicy: Drop duplicated wakeup node
Change-Id: I92f04e3d829912b04865d6e3507b6705a1270c75
2023-11-06 15:12:46 +01:00
Michael Bestas
8c5d29f5ac sm8150-common: sepolicy: Remove duplicate wakeup nodes
Needed after I026cd6930459262c31c401e57444cfe2b60357b7

Change-Id: I0522bafab2605b3d0ab5a147154b32fa9ee3ce37
2023-04-11 11:08:30 +02:00
dianlujitao
2730d987eb sm8150-common: sepolicy: Remove duplicate sysfs_wakeup entry
Change-Id: I5de3d21f35d11e640635a1261b2de71bf7a8a070
2023-04-10 00:35:56 +02:00
Erfan Abdi
baac28b0f6 sm8150-common: Drop duplicated wake sepolicy nodes
Change-Id: I4e85e94171629ce6ca9a06684c026e298493a078
2022-10-17 18:33:40 +03:30
althafvly
9aaf0fa255 sm8150-common: sepolicy: Remove debugfs related rules
- Removed from sepolicy_vndr

Change-Id: Ifd65abd0292577ec050904265310f17b86e10899
2022-08-28 11:03:14 +05:30
Sebastiano Barezzi
c65be2acce sm8150-common: Retrofit dynamic partitions for legacy devices
* Merge system, vendor and cust, giving us a whopping 6.4GB of space, pretty nice
* Take for granted that we always have dynamic partitions, remove guards where needed
* Introduce a new variable TARGET_IS_LEGACY to guard legacy vs new stuff, including retrofitting stuff
* Unfortunately we can't use the same fstab for all because of AVB
* Mark standard block devices as super block devices (from https://source.android.com/devices/tech/ota/dynamic_partitions/implement?hl=en#selinux-legacy)

Change-Id: I2553aad99f5c458cf6ac6b4265dc5840127c13e9
2022-06-29 14:25:34 +02:00
Sebastiano Barezzi
601b3d4416 sm8150-common: sepolicy: Remove duplicated rule
* Defined in device/qcom/sepolicy_vndr/generic/vendor/common/system_server.te

Change-Id: I2579ac788438ffcf1dce3afd485b780860fcefc4
2022-06-29 14:25:34 +02:00
Sebastiano Barezzi
7d46c05aee sm8150-common: sepolicy: Drop DFPS props labelling
* Nowhere to be found, maybe was used by displayfeature

Change-Id: Ifba9e7ab43f588967d9a310464b8dd69027ab3f8
2022-06-29 14:25:34 +02:00
Sebastiano Barezzi
76492653bf sm8150-common: sepolicy: Let motor service set motor props instead of init
Change-Id: I683260b879b0783b2505ba681078a86e6dbc5300
2022-06-29 14:25:34 +02:00
Sebastiano Barezzi
104eb7bec4 sm8150-common: sepolicy: Remove org.lineageos.devicesettings app labelling
* No device uses device-specific parts

Change-Id: I90ee94ac42882bf8ec4d4480150f7714946eda51
2022-06-29 14:25:34 +02:00
Sebastiano Barezzi
c8c8652acd sm8150-common: sepolicy: Don't grant system_server access to fingerprint props
Change-Id: I4f391e43a80c25d7fcedde12a70b3215913fcfd2
2022-06-29 14:25:34 +02:00
Chenyang Zhong
7523b1d510 sm8150-common: sepolicy: Add mlstrustedsubject attribute to parts
This ensures that XiaomiParts has the proper permission to access
/data/user/0/org.lineageos.settings/.

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: I5ed0e9677e6271d9fb003cac728d2e3bb10ddf4a
2022-06-29 14:25:34 +02:00
Sebastiano Barezzi
7721835376 sm8150-common: sepolicy: Label fingerprint props as restricted vendor
* System only reads them, but never sets them
* Rename to vendor_fingerprint_prop while at it

Change-Id: Id980731ec53338c5c5a07b81f10a283c428d17aa
2022-06-29 14:25:34 +02:00
Sebastiano Barezzi
7c9b91067b sm8150-common: sepolicy: Move deviceid props to vendor
* System doesn't need them

Change-Id: Iecf315af062a088dd1f1855c8507f73f5a86cd2c
2022-06-29 14:25:34 +02:00
Michael Bestas
379187cd6e sm8150-common: sepolicy: Remove unused hwservice labels
Change-Id: If2cabb1cb547bdcc1ceeb6ce7f25224d41c7b937
2022-06-26 02:34:29 +02:00
Michael Bestas
a7c6bf5046 sm8150-common: sepolicy: Remove non-existent hal_camerapostproc_xiaomi_hwservice
Change-Id: Id5b8601caac65982681335319b34b35ed56b3c86
2022-06-26 02:34:29 +02:00