diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts new file mode 100644 index 0000000000000000000000000000000000000000..97c60a2eb5d8a7f9631c88e3662e17847cc9fc60 --- /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 0000000000000000000000000000000000000000..e5916636ba1d38ba06f6cc9e51daff7ee518e2cc --- /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;