From 76ba65b50998c505fcf8909207ea6194d13a82e1 Mon Sep 17 00:00:00 2001 From: Linux4 Date: Mon, 20 Apr 2020 18:02:08 +0200 Subject: [PATCH] common: add policy for powershare HAL Change-Id: I2e17e677613b4563215db1f40645eb7d84ce98dc --- common/vendor/file_contexts | 1 + common/vendor/hal_lineage_powershare_default.te | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 common/vendor/hal_lineage_powershare_default.te diff --git a/common/vendor/file_contexts b/common/vendor/file_contexts index 4c77ff2..54b7f79 100644 --- a/common/vendor/file_contexts +++ b/common/vendor/file_contexts @@ -116,6 +116,7 @@ /(vendor|system/vendor)/bin/hw/android\.hardware\.power@[0-9].[0-9]-service\.exynos u:object_r:hal_power_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@[0-9].[0-9]-service\.samsung-haptic u:object_r:hal_vibrator_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.lineage\.biometrics\.fingerprint\.inscreen@1.0-service.samsung u:object_r:hal_lineage_fod_default_exec:s0 +/(vendor|system/vendor)/bin/hw/vendor\.lineage\.powershare@[0-9].[0-9]-service\.samsung u:object_r:hal_lineage_powershare_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.samsung_slsi\.hardware\.configstore@[0-9]\.[0-9]-service u:object_r:hal_vendor_configstore_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.samsung_slsi\.hardware\.ExynosHWCServiceTW@[0-9]\.[0-9]-service u:object_r:hal_vendor_hwcservice_default_exec:s0 diff --git a/common/vendor/hal_lineage_powershare_default.te b/common/vendor/hal_lineage_powershare_default.te new file mode 100644 index 0000000..48b9dd8 --- /dev/null +++ b/common/vendor/hal_lineage_powershare_default.te @@ -0,0 +1,5 @@ +# hal_lineage_powershare_default.te + +allow hal_lineage_powershare_default sysfs_battery:dir search; +allow hal_lineage_powershare_default sysfs_battery_writable:dir search; +allow hal_lineage_powershare_default sysfs_battery_writable:file rw_file_perms; -- 2.20.1