summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjintinglin <jintinglin@google.com>2021-11-05 13:16:57 +0800
committerjintinglin <jintinglin@google.com>2021-11-05 13:16:57 +0800
commit6a9827f0a4185e46883db65d55242cd355bcc355 (patch)
treefd1b25affc1cb36ca1bae270a1ce90bd753190cb
parent7dc695097be0e0af6497eae80efa474d21652fc0 (diff)
downloadcrosshatch-sepolicy-6a9827f0a4185e46883db65d55242cd355bcc355.tar.gz
modem_diagnostics: add rules for getting battery info
Bug: 204961005 Change-Id: I529c5dbddfd385decd4d14b5c5ccd35759dc8470
-rw-r--r--vendor/google/modem_diagnostics.te3
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/google/modem_diagnostics.te b/vendor/google/modem_diagnostics.te
index 5161102..97f8586 100644
--- a/vendor/google/modem_diagnostics.te
+++ b/vendor/google/modem_diagnostics.te
@@ -20,4 +20,7 @@ userdebug_or_eng(`
set_prop(modem_diagnostic_app, vendor_modem_diag_prop)
set_prop(modem_diagnostic_app, radio_control_prop)
+
+ allow modem_diagnostic_app sysfs_batteryinfo:file r_file_perms;
+ allow modem_diagnostic_app sysfs_batteryinfo:dir search;
')