sepolicy: Allow apps to read battery status

* Various apps do this to monitor the battery. No harm there.

Change-Id: Id1b843ca509747ed963b89d025a39b5b1fcc7ddb
This commit is contained in:
Steve Kondik
2014-12-29 21:15:12 -08:00
parent 233406f509
commit 77bb91189b

View File

@@ -10,6 +10,10 @@ allow untrusted_app sysfs_thermal:file r_file_perms;
allow untrusted_app sysfs_thermal:lnk_file r_file_perms;
allow untrusted_app sysfs_thermal:dir r_dir_perms;
# allow apps to read battery status
allow untrusted_app sysfs_battery_supply:dir r_dir_perms;
allow untrusted_app sysfs_battery_supply:file r_file_perms;
# test apps needs to communicate with imscm
# using binder call
userdebug_or_eng(`