sepolicy: qti: Let hal_oplus_charger_aidl rw /dev/oplus_chg

Change-Id: I222aed7542f5750a3fe2f062998237bc00d22a3a
This commit is contained in:
pjgowtham
2025-08-20 22:41:37 +05:30
committed by LuK1337
parent af977627d4
commit 17d525da8f
3 changed files with 6 additions and 0 deletions

View File

@@ -4,6 +4,9 @@ type oplus_awsmartpa_device, dev_type;
# Camera
type vendor_camera_turbo_device, dev_type;
# Charging
type oplus_charger_device, dev_type;
# Fingerprint
type fingerprint_device, dev_type;

View File

@@ -15,6 +15,7 @@
/vendor/lib64/libipebpsstriping(170)?\.so u:object_r:same_process_hal_file:s0
# Charging
/dev/oplus_chg u:object_r:oplus_charger_device:s0
/(odm|vendor/odm)/bin/hw/vendor\.oplus\.hardware\.charger-V[0-9]+-service u:object_r:hal_oplus_charger_aidl_exec:s0
/vendor/bin/hw/vendor\.lineage\.powershare-service\.oplus u:object_r:hal_lineage_powershare_default_exec:s0

View File

@@ -12,6 +12,8 @@ hal_attribute_service(vendor_hal_oplus_charger, hal_oplus_charger_aidl_service)
allow hal_oplus_charger_aidl self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
allow hal_oplus_charger_aidl oplus_charger_device:chr_file rw_file_perms;
allow hal_oplus_charger_aidl block_device:dir search;
allow hal_oplus_charger_aidl vendor_reserve_partition:blk_file rw_file_perms;