common: Add policy for lineage health HAL lineage-19.1
authorTim Zimmermann <tim@linux4.de>
Tue, 13 Jun 2023 15:52:10 +0000 (17:52 +0200)
committerjaimin kalariya <jaimin.kalariya@siliconsignals.io>
Sat, 30 Dec 2023 13:25:19 +0000 (18:55 +0530)
Change-Id: I70a36a48e951bcabe7b36ee72d8481ff1ba563cf

common/vendor/genfs_contexts
common/vendor/hal_lineage_health_default.te [new file with mode: 0644]

index b051a52dece2bcd7ae53e9910001fe3f96d61405..c7d4ae5a9ed2f7c1684f51d2b800af4c2fc2563e 100644 (file)
@@ -24,6 +24,7 @@ genfscon sysfs /class/timed_output/vibrator/multi_freq                    u:obje
 
 genfscon sysfs /devices/platform/argos                                    u:object_r:sysfs_argos:s0
 genfscon sysfs /devices/platform/battery/power_supply                     u:object_r:sysfs_battery:s0
+genfscon sysfs /devices/platform/battery/power_supply/battery/batt_slate_mode u:object_r:sysfs_battery_writable:s0
 genfscon sysfs /devices/platform/battery/power_supply/battery/lcd         u:object_r:sysfs_battery_writable:s0
 genfscon sysfs /devices/platform/panel@0/backlight/panel/brightness       u:object_r:sysfs_backlight_writable:s0
 genfscon sysfs /devices/platform/panel@0/backlight/panel/max_brightness   u:object_r:sysfs_backlight_writable:s0
diff --git a/common/vendor/hal_lineage_health_default.te b/common/vendor/hal_lineage_health_default.te
new file mode 100644 (file)
index 0000000..c26d365
--- /dev/null
@@ -0,0 +1,2 @@
+allow hal_lineage_health_default sysfs_battery:dir r_dir_perms;
+allow hal_lineage_health_default sysfs_battery_writable:file rw_file_perms;