From b010be5db03bfb192a9e1b5cd973d20fe7cae221 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Thu, 22 Aug 2019 11:36:42 +0200 Subject: [PATCH] Allow treble app to write "battery info" --- sepolicy/treble_app.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sepolicy/treble_app.te b/sepolicy/treble_app.te index ca174b4..e6cdf3c 100644 --- a/sepolicy/treble_app.te +++ b/sepolicy/treble_app.te @@ -3,5 +3,7 @@ allow system_app hidl_base_hwservice:hwservice_manager { add }; allow system_app wifi_data_file:dir create_dir_perms; allow system_app wifi_data_file:file create_file_perms; +allow system_app sysfs_batteryinfo:file rw_file_perms; + type vendor_camera_prop, property_type; set_prop(system_app, vendor_camera_prop);