From b4bf3e8edded2e0fc0a4e33e464e5f388d958f51 Mon Sep 17 00:00:00 2001 From: RomanDesigner Date: Sat, 29 Feb 2020 18:51:49 +0300 Subject: [PATCH] msm8226-common: sepolicy: Add charger policy * This is a copy of sepolicy/common/healthd.te file --- sepolicy/common/charger.te | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 sepolicy/common/charger.te diff --git a/sepolicy/common/charger.te b/sepolicy/common/charger.te new file mode 100644 index 0000000..3b05598 --- /dev/null +++ b/sepolicy/common/charger.te @@ -0,0 +1,7 @@ +allow charger device:dir r_dir_perms; +allow charger rtc_device:chr_file rw_file_perms; +allow charger sysfs:file { getattr open read }; + +userdebug_or_eng(` + permissive charger; +')