From 6cc028227702232b46ba18d7e66842ab0bd1eec5 Mon Sep 17 00:00:00 2001 From: DarkJoker360 Date: Tue, 23 Jun 2020 14:33:49 +0200 Subject: [PATCH] Address charger denials on Huawei devices Thanks to phh and Hamido for the help --- sepolicy/huawei.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sepolicy/huawei.te b/sepolicy/huawei.te index f28947e..b9e619b 100644 --- a/sepolicy/huawei.te +++ b/sepolicy/huawei.te @@ -9,3 +9,5 @@ allow hal_fingerprint_server sysfs:file rw_file_perms; type oeminfo_nvm, domain; type oeminfo_nvm_device, file_type; allowxperm oeminfo_nvm oeminfo_nvm_device:blk_file ioctl { 0x1260 }; + +allow charger rootfs:file { ioctl read getattr lock map execute entrypoint open };