From 936079ad1cd7a9baaac7aa0e51af214b313e11cb Mon Sep 17 00:00:00 2001 From: jintinglin Date: Wed, 22 Sep 2021 12:51:52 +0800 Subject: [PATCH] Allow modem app to read the battery info Test: flash the forrest build, MDS can read the info file Bug: 203478533 Change-Id: I9985dd2731a43445dd653e226fd2939ca355cda4 --- whitechapel/vendor/google/modem_diagnostics.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/whitechapel/vendor/google/modem_diagnostics.te b/whitechapel/vendor/google/modem_diagnostics.te index 7908be1b..9fa772b4 100644 --- a/whitechapel/vendor/google/modem_diagnostics.te +++ b/whitechapel/vendor/google/modem_diagnostics.te @@ -29,4 +29,7 @@ userdebug_or_eng(` allow modem_diagnostic_app modem_img_file:lnk_file r_file_perms; allow modem_diagnostic_app hal_vendor_oem_hwservice:hwservice_manager find; + + allow modem_diagnostic_app sysfs_batteryinfo:file r_file_perms; + allow modem_diagnostic_app sysfs_batteryinfo:dir search; ')