Skip to content
Snippets Groups Projects
Commit f0507d99 authored by Yifan Hong's avatar Yifan Hong Committed by android-build-merger
Browse files

hal_health_default: permissions for default impl

am: 87ef6049

Change-Id: If08e1dcdd5841657b8629ab5ee1e85b033bb4cd9
parents c5f66b3d 87ef6049
No related branches found
No related tags found
No related merge requests found
...@@ -9,3 +9,19 @@ allow hal_health_client hal_health_hwservice:hwservice_manager find; ...@@ -9,3 +9,19 @@ allow hal_health_client hal_health_hwservice:hwservice_manager find;
# /{system,vendor,odm}/lib[64]/hw/ in order # /{system,vendor,odm}/lib[64]/hw/ in order
# to be able to open the hal implementation .so files # to be able to open the hal implementation .so files
r_dir_file(hal_health, system_file) r_dir_file(hal_health, system_file)
# Common rules for a health service.
# Allow to listen to uevents for updates
allow hal_health_server self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;
# Allow to read /sys/class/power_supply directory
allow hal_health_server sysfs:dir r_dir_perms;
# Allow to read files under /sys/class/power_supply. Implementations typically have symlinks
# to vendor specific files. Vendors should mark sysfs_batteryinfo on all files read by health
# HAL service.
r_dir_file(hal_health_server, sysfs_batteryinfo)
# Allow to wake up to send periodic events
wakelock_use(hal_health_server)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment