mirror of
https://github.com/oplus-giulia-dev/android_hardware_oplus
synced 2025-11-04 05:45:34 +08:00
sepolicy: qti: Let hal_oplus_charger_aidl rw /dev/oplus_chg
Change-Id: I222aed7542f5750a3fe2f062998237bc00d22a3a
This commit is contained in:
3
sepolicy/qti/vendor/device.te
vendored
3
sepolicy/qti/vendor/device.te
vendored
@@ -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;
|
||||
|
||||
|
||||
1
sepolicy/qti/vendor/file_contexts
vendored
1
sepolicy/qti/vendor/file_contexts
vendored
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user