[ALPS03893656] factory: add power_supply and switch permission
[Detail] Add power_supply and switch permission to get online and otg status. MTK-Commit-Id: dad1b84ca11f7cb5dfe70f03a05b80d6250bfc7a Change-Id: I349d8313fbf567a3289a8be54b81487cd13fa36f CR-Id: ALPS03893656 Feature: Charger
This commit is contained in:
parent
555f3634fa
commit
1e4d3f3823
@ -365,3 +365,7 @@ allow factory sysfs_dt_firmware_android:file { read open getattr };
|
|||||||
allow factory sysfs_dt_firmware_android:dir { read open search };
|
allow factory sysfs_dt_firmware_android:dir { read open search };
|
||||||
# Purpose : Allow factory to communicate with driver thru socket
|
# Purpose : Allow factory to communicate with driver thru socket
|
||||||
allow factory factory:capability { sys_module net_admin net_raw };
|
allow factory factory:capability { sys_module net_admin net_raw };
|
||||||
|
|
||||||
|
# For power_supply and switch permission
|
||||||
|
r_dir_file(factory, sysfs_batteryinfo)
|
||||||
|
r_dir_file(factory, sysfs_switch)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user