diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts new file mode 100644 index 0000000..97c60a2 --- /dev/null +++ b/sepolicy/vendor/genfs_contexts @@ -0,0 +1,2 @@ +# Battery +genfscon sysfs /class/qcom-battery u:object_r:vendor_sysfs_battery_supply:s0 diff --git a/sepolicy/vendor/hal_lineage_powershare_default.te b/sepolicy/vendor/hal_lineage_powershare_default.te new file mode 100644 index 0000000..e591663 --- /dev/null +++ b/sepolicy/vendor/hal_lineage_powershare_default.te @@ -0,0 +1,2 @@ +allow hal_lineage_powershare_default vendor_sysfs_battery_supply:dir search; +allow hal_lineage_powershare_default vendor_sysfs_battery_supply:file rw_file_perms;