summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2014-12-29 21:15:12 -0800
committerSteve Kondik <steve@cyngn.com>2014-12-31 16:59:58 -0800
commit77bb91189b6200c7743acad40b8cc1fb6fe32bc0 (patch)
tree57f040350599e7a2a0fad9cf54d29d65dd9719ea
parent233406f509e344c11d9a39a647cd6381afa42304 (diff)
downloadandroid_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.te4
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(`