From 1e4d3f38232396a81ec0a3d6f40fa20fed15b1f6 Mon Sep 17 00:00:00 2001 From: Ivan-YH Chen Date: Sat, 18 Jan 2020 10:02:55 +0800 Subject: [PATCH] [ALPS03893656] factory: add power_supply and switch permission [Detail] Add power_supply and switch permission to get online and otg status. MTK-Commit-Id: dad1b84ca11f7cb5dfe70f03a05b80d6250bfc7a Change-Id: I349d8313fbf567a3289a8be54b81487cd13fa36f CR-Id: ALPS03893656 Feature: Charger --- non_plat/factory.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/non_plat/factory.te b/non_plat/factory.te index 0b4b673..6befd9d 100644 --- a/non_plat/factory.te +++ b/non_plat/factory.te @@ -365,3 +365,7 @@ allow factory sysfs_dt_firmware_android:file { read open getattr }; allow factory sysfs_dt_firmware_android:dir { read open search }; # Purpose : Allow factory to communicate with driver thru socket allow factory factory:capability { sys_module net_admin net_raw }; + +# For power_supply and switch permission +r_dir_file(factory, sysfs_batteryinfo) +r_dir_file(factory, sysfs_switch)