mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_stone
synced 2026-01-27 16:47:35 +00:00
sm6375-common: sepolicy: Allow hal_health_default
Allow to read sysfs_usb, USB & Charger Supply, Battery info
This commit is contained in:
committed by
kamikaonashi
parent
e9fb53daed
commit
9b7d5329de
4
sepolicy/vendor/hal_health_default.te
vendored
4
sepolicy/vendor/hal_health_default.te
vendored
@@ -1,5 +1,9 @@
|
||||
allow hal_health_default sysfs_wakeup:dir r_dir_perms;
|
||||
allow hal_health_default sysfs_wakeup:file r_file_perms;
|
||||
allow hal_health_default sysfs:file { getattr open read };
|
||||
allow hal_health_default sysfs_usb:file { getattr open read };
|
||||
|
||||
r_dir_file(hal_health_default, vendor_sysfs_usb_supply)
|
||||
r_dir_file(hal_health_default, vendor_sysfs_battery_supply)
|
||||
r_dir_file(hal_health_default, vendor_sysfs_charger_supply)
|
||||
r_dir_file(hal_health_default, sysfs_batteryinfo)
|
||||
|
||||
Reference in New Issue
Block a user