diff options
author | Steve Kondik <steve@cyngn.com> | 2014-12-29 21:15:12 -0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2014-12-31 16:59:58 -0800 |
commit | 77bb91189b6200c7743acad40b8cc1fb6fe32bc0 (patch) | |
tree | 57f040350599e7a2a0fad9cf54d29d65dd9719ea | |
parent | 233406f509e344c11d9a39a647cd6381afa42304 (diff) | |
download | android_device_qcom_sepolicy-77bb91189b6200c7743acad40b8cc1fb6fe32bc0.tar.gz android_device_qcom_sepolicy-77bb91189b6200c7743acad40b8cc1fb6fe32bc0.tar.bz2 android_device_qcom_sepolicy-77bb91189b6200c7743acad40b8cc1fb6fe32bc0.zip |
sepolicy: Allow apps to read battery status
* Various apps do this to monitor the battery. No harm there.
Change-Id: Id1b843ca509747ed963b89d025a39b5b1fcc7ddb
-rw-r--r-- | common/untrusted_app.te | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/untrusted_app.te b/common/untrusted_app.te index 8a50a578..4bb8e8ef 100644 --- a/common/untrusted_app.te +++ b/common/untrusted_app.te @@ -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(` |