Commit Graph

135 Commits

Author SHA1 Message Date
Cyber Knight
b0c78fda81 sm6150-common: sepolicy: Allow cameraserver to search directories in sysfs_leds
- This fixes a SEPolicy denial.

Change-Id: Ie2cba0bdc7b7f43e6d958268054aec26cbac1dee
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:48 +00:00
Dhina17
eeaa8481ee sm6150-common: Implement torch light control
[RealJohnGalt:] modify for oneplus usage, add toggle switch
[cyberknight777]: Adapt nodes and SEPolicy for sunny

Change-Id: I8ff5d814-d58d-4ed1-9b42-b025415a5c85
Signed-off-by: Dhina17 <dhinalogu@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:45 +00:00
someone5678
e334593efc sm6150-common: sepolicy: Allow radio get access to vendor_ims_prop
11-14 12:30:02.762  3084  3084 W m.android.phone: type=1400 audit(0.0:26): avc: denied { read } for name="u:object_r:qcom_ims_prop:s0" dev="tmpfs" ino=14068 scontext=u:r:radio:s0 tcontext=u:object_r:qcom_ims_prop:s0 tclass=file permissive=0
11-14 12:30:02.765  3084  3084 E libc    : Access denied finding property "persist.vendor.qti.telephony.vt_cam_interface"

Change-Id: Ic6460f4880506a229772c7f617a7347ce85f769e
Signed-off-by: someone5678 <nemui3353@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Pranav Vashi
4a72844b69 sm6150-common: sepolicy: Label props to address denials
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Pranav Vashi
db40a6c29d sm6150-common: sepolicy: Do not audit surfaceflinger denials
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
chrisl7
deadfd1b61 sm6150-common: sepolicy: Allow vendor_hal_usb_qti to acess vendor_sysfs_usb_controller
Change-Id: Ia6b9546fb951b4f2cbe80c2b67848c932f8f9160
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
Pranav Vashi
5bd4e0c616 sm6150-common: sepolicy: Allow binder call for hal_camera_default
Change-Id: I661e3374947a4a4dff12164cad3a2e05bfce8ab4
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:48:10 +00:00
chrisl7
da6c785129 sm6150-common: sepolicy: Label ro.vendor.ril.oem.wifimac property
[1] - E init    : Unable to set property 'ro.ril.oem.wifimac' from uid:1000 gid:1000 pid:1362: SELinux permission check failed
[2] - W libc    : Unable to set property "ro.ril.oem.wifimac" to "48:87:59:3f:ad:53": error code: 0x18
[3] - W /system/bin/init: type=1107 audit(0.0:61): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc:  denied  { set } for property=ro.ril.oem.wifimac pid=1362 uid=1000 gid=1000 scontext=u:r:vendor_wcnss_service:s0 tcontext=u:object_r:radio_prop:s0 tclass=property_service permissive=0'

Change-Id: I1acac81964074aeb66e2f17970407ebe9744855f
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:00:27 +00:00
Pranav Vashi
84d24851b3 sm6150-common: sepolicy: Label fortsense prop
07-06 17:44:29.521 11518 11518 W android.hardwar: type=1400 audit(0.0:1502): avc:  denied  { read } for  name="u:object_r:system_prop:s0" dev="tmpfs" ino=9574 scontext=u:r:hal_fingerprint_default:s0 tcontext=u:object_r:system_prop:s0 tclass=file permissive=0
07-06 17:44:29.524 11518 11518 W libc    : Access denied finding property "persist.sys.sw.dbg.en"

Change-Id: I07cf8a837b7e617a6727137035e7d8376b685ac5
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:00:27 +00:00
Pulkit077
6cf8efcf5f sm6150-common: sepolicy: Label UFS discard_max_bytes
* Allow init.rc to write to discard_max_bytes

Change-Id: I91e2b6d1471eeaa91e1dd6fe9d26257de224405f
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:00:27 +00:00
Pranav Vashi
bb88e28fc9 sm6150-common: sepolicy: Allow init script access proc
Change-Id: I6a5b0350eb4b7bde5ccb44f8af1fff1dbcf38ecc
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:00:27 +00:00
ShevT
5a47f23074 sm6150-common: sepolicy: Label extcon sysfs
Fix warnings like:
W ExtconUEventObserver: Unable to read /sys/devices/platform/vendor/vendor:extcon_usb1/extcon/extcon3/cable.1/name. This probably means the selinux policies need to be changed.
W ExtconUEventObserver: Unable to read /sys/devices/platform/vendor/vendor:extcon_usb1/extcon/extcon3/cable.0/name. This probably means the selinux policies need to be changed.

Change-Id: I1859028d973246064f18efe47e95a7ff8eec657b
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 13:00:27 +00:00
Pranav Vashi
e575aef583 sm6150-common: sepolicy: Label camera props
Change-Id: Ib4e62c05abb875c8d59a0973b2f702ace3f24f8c
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:59:17 +00:00
Pranav Vashi
716efc3989 sm6150-common: sepolicy: Allow parts to set haptic intensity
Change-Id: I94774ccf021eb7713b41fc9d5ad6bb6979ca5d95
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:57:52 +00:00
Pranav Vashi
29b74efa2c sm6150-common: sepolicy: Allow parts to modify thermal config
Change-Id: I940a6deef33df856f0e093c3d048708271e9ef2f
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:57:52 +00:00
Pranav Vashi
028564770e sm6150-common: sepolicy: Correctly label miui props
Change-Id: I2ddb25206d3452d28004ba1e186ca2285f51f306
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:52:56 +00:00
Adithya R
988be1072d sm6150-common: sepolicy: Allow system_server to read fastcharge node
* required for oem fast charger detection

Change-Id: Ide02d4a2161b4e0d023eba18626aebe8cd3e11f9
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:44:32 +00:00
basamaryan
bc0dc1d83f sm6150-common: rootdir: Remove /data/vendor/dolby on upgrade
This is required after switching to the OnePlus Dolby Atmos stack

Based on:
09e0c6ad23
346519f7f2

Change-Id: I2ac8f83899a0866975aa6cbce26da9670b16843d
Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Co-authored-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:44:29 +00:00
Adithya R
3c1c3192ec sm6150-common: Add sepolicy for Dolby Atmos
Arrange hwservice_contexts while at it

Change-Id: I8c41ff32e579cec9c871d6a0177ca027034281c8
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:44:27 +00:00
vantoman
9d9dfdc7d1 sm6150-common: livedisplay: Rename AntiFlicker node
Change-Id: I563b4de02ae41755d707da84bc1bbf937228b68c
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:43:52 +00:00
basamaryan
7bf15f5b1b Revert "sm6150-common: Import missing qcriNvOpt radio dependency"
This reverts commit 350d3fb4c8df85e57438c764411557d5934a7f72.

Reason for revert: RIL does not work on longcheer devices with libril-qc-hal-qmi.so from sweet_k6a

Change-Id: I07d8fd46ed9262319d0251e9b801a3dbf598163f
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Yumi Yukimura
d4b25497ed sm6150-common: sepolicy: Address/Silence some denials
Change-Id: I528e7e7b1c7483ce1829605ce0ffafdf62228761
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
Bruno Martins
58ff9155a5 sm6150-common: sepolicy: Remove duplicate snxxx AIDL rules
These are now part of qcom/sepolicy_vndr.

Change-Id: I709c29e827d51e22507027862a56cca1efcdc984
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
afba133c6e sm6150-common: sepolicy: Change vendor_fp_prop to vendor_public_prop
Change-Id: I48e0d1a885ac62886b1e622ce68598270044ef84
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
LuK1337
23879717aa sm6150-common: Switch to common lights HAL
Change-Id: If515e7c3f6e5b6895076f1d8381fb2c22bd1b3de
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
eb689dc9f4 sm6150-common: Import missing qcriNvOpt radio dependency
Required after using libril-qc-hal-qmi.so from sweet_k6a

Change-Id: I5e2edbe279177a62bd7db114e2345f8222dd8783
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
danielml
77c3652035 sm6150-common: sepolicy: Label FortsenseFingerprintService
Change-Id: Ic1ee3c61d57bb1aaf0204d20764a595ed3e411a3
Signed-off-by: danielml <daniel@danielml.dev>
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
20d156bcab sm6150-common: Move to Xiaomi fingerprint AIDL
Change-Id: I68dba7184034fd37454c7d32a065f041cb611625
Signed-off-by: therealmharc <therealmharc@gmail.com>
2025-05-09 12:24:43 +00:00
basamaryan
3df5cd506c sm6150-common: Commonize sepolicy
Taken from davinci, courbet, surya, sweet, and sweet2

Change-Id: Ie9bd3354d42a36e88004ee77343e0da5397a0eba
2024-10-15 13:25:09 -04:00
Michael Bestas
15305da793 sm6150-common: sepolicy: Move common wakeup nodes to qcom sepolicy
These are not device specific and don't belong here.

Change-Id: I47de84155fa4bd81fb67b3d6ba5465b0b5db4437
2024-07-16 12:21:02 +05:30
basamaryan
12c3135ffb sm6150-common: sepolicy: Allow fingerprint HAL to use vndbinder
Change-Id: Ic6c70a39392e349e0770411f42af15eebc5dfea4
2024-06-22 17:27:09 +05:30
basamaryan
0c3bad3c75 sm6150-common: sepolicy: Allow fingerprint HAL to interact with uevent socket
Change-Id: I11d2388b6c7894917f488334efd2851d5a938cd3
2024-06-22 17:27:09 +05:30
basamaryan
50193c8135 sm6150-common: sepolicy: Add fortsense and sunwave fingerprint rules
Change-Id: Icea6d25bde0cb54e3926b009a7b76c264e44c77e
2024-06-22 17:27:09 +05:30
Sebastiano Barezzi
176839842d sm6150-common: sepolicy: Label double_tap sysfs node
Change-Id: Idcff758444a5c89ba20f2ae804a407ee78c445cb
2024-06-22 17:27:09 +05:30
Sebastiano Barezzi
ed6986e80f sm6150-common: Move to common Xiaomi light AIDL
Change-Id: I00494cd392d19abd97cd65aeb4ec4bd9c9b11352
2024-06-18 02:05:33 +05:30
Bruno Martins
22ae2ff2f8 sm6150-common: Use common libqti-perfd-client and power-libperfmgr
Change-Id: I22d6b35c72629553817005deaefcae60abc72cfd
2024-05-19 18:07:53 +02:00
danielml
54a261cbd5 sm6150-common: sepolicy: Follow stock label for ro.product.mod_device
* This allows us to dynamically override the property from vendor_init

Change-Id: Id80b60028e78ae1fcc9236f66570a27759ecbdc4
Signed-off-by: danielml <daniel@danielml.dev>
2024-04-10 13:26:48 -04:00
Michael Bestas
f531fce60d sm6150-common: Switch to android.hardware.usb@1.3-service.dual_role_usb
Change-Id: Ibd14f7d31dfaf41e040302eda3bc49f351deb618
2024-04-10 13:26:48 -04:00
basamaryan
828234a087 sm6150-common: sepolicy: Drop duplicated wakeup node
* https://review.lineageos.org/c/LineageOS/android_device_qcom_sepolicy_vndr/+/356003

Change-Id: Id5b60a4d89324cabb224609d35ca583482685447
2023-10-05 11:00:04 -04:00
danielml
cc633a0998 sm6150-common: sepolicy: Label /dev/block/mmcblk0p1 as sdcard block device
* Needed for DSU

Change-Id: I25f7272621451723eb0fc72d9b772795a1f8ed51
Signed-off-by: danielml <daniel@danielml.dev>
2023-08-20 18:47:33 +02:00
Arian
ffd0ded683 sm6150-common: sepolicy: Label cust, system and vendor block devices as system_block_device
Change-Id: Id230ee4893e67689e9162e834e9c7b9c5482c6c8
2023-08-20 18:46:58 +02:00
Arian
19e23767df Revert "sm6150-common: Force restorecon for /mnt/vendor/persist"
This reverts commit a13246a7fc.

This causes dac_override denials, set no_sehash_xattr on persist
in fstab instead to fix the issue.

Change-Id: I75f824d5b2beca5f7c3835045a7f568736e148f0
2023-06-05 11:38:04 +02:00
danielml
84cbd43575 Revert "sm6150-common: parts: Enable doze_status on screen off"
* Manually setting the doze status before entering the low-power mode
  makes the doze mode not to be set correctly on sweet.

* The doze status is automatically set when entering the low-power mode

This reverts commit 10f101e143.

Change-Id: I4dfee2ffb351b9bc426268e437a26f9eaefec319
2023-06-05 11:38:04 +02:00
danielml
f4e2098486 sm6150-common: sepolicy: Rename sys.panel.display to vendor.panel.display
Change-Id: I1765a9f867dad4ec7bdea40c50671e6416f871cb
Signed-off-by: danielml <daniel@danielml.dev>
2023-06-05 11:38:04 +02:00
Sebastiano Barezzi
c87372b3db sm6150-common: sepolicy: Drop camera.sensor* properties
* These were renamed to vendor.camera.* properties whose definition
  already exists in our current policy

Change-Id: I4392a7880d36b6b6d6aff4a6d9b43c1fc2bab950
2023-06-05 11:38:04 +02:00
Sebastiano Barezzi
6d2810da32 sm6150-common: sepolicy: Bringup property_contexts for Android 13
Change-Id: I60070ba7658ce262be66ee3bdd0cb6cdcf9b8c49
2023-06-05 11:38:04 +02:00
danielml
187b64e74f sm6150-common: sepolicy: Remove no longer existing properties
Change-Id: Icf3ef6dbf497671fec757f0de56d58df432d1d87
Signed-off-by: danielml <daniel@danielml.dev>
2023-06-05 11:38:04 +02:00
basamaryan
4fd45a6d3a sm6150-common: sepolicy: Label fpc wakeup node
Change-Id: I6c7b7d5d2777bfae02b3bd8b0d875ccc2564f337
2023-06-05 11:38:04 +02:00
LuK1337
b2babf0134 sm6150-common: Make trust use dwc3 usb_data_enabled
Change-Id: I8fab94faf383c57e872596f8bb3c448afc6d75de
2023-06-03 21:42:43 +02:00
raghavt20
4a67b5eb26 sm6150-common: sepolicy: Label Spi IR node
Change-Id: I550e823b11bbc8e37cffa164a2047d57d8a5499a
Signed-off-by: raghavt20 <raghavt20@aospa.co>
2023-05-18 17:09:45 +05:30