universal7885: powerhint: Add battery_saver hint

This commit is contained in:
Soo Hwan Na 2024-01-02 15:16:16 +09:00
commit 53c941bb94
5 changed files with 23 additions and 6 deletions

View file

@ -24,3 +24,4 @@ type sysfs_modem, fs_type, sysfs_type, mlstrustedobject;
type sysfs_mmc, sysfs_type, rw_fs_type, fs_type;
type sysfs_ss_writable, sysfs_type, rw_fs_type, fs_type;
type sysfs_gpu_writable, sysfs_type, rw_fs_type, fs_type;
type sysfs_battery_saver, sysfs_type, rw_fs_type, fs_type;

View file

@ -112,3 +112,5 @@ genfscon sysfs /kernel/gpu/gpu_min_clock
genfscon sysfs /devices/platform/11500000.mali/dma_buf_gpu_mem u:object_r:sysfs_gpu:s0
genfscon sysfs /devices/platform/11500000.mali/kprcs u:object_r:sysfs_gpu:s0
genfscon sysfs /devices/platform/11500000.mali/total_gpu_mem u:object_r:sysfs_gpu:s0
genfscon sysfs /module/battery_saver/parameters/enabled u:object_r:sysfs_battery_saver:s0

View file

@ -5,6 +5,7 @@ allow hal_power_default sysfs_touchscreen_writable:dir r_dir_perms;
allow hal_power_default sysfs_sec_touchscreen:dir r_dir_perms;
allow hal_power_default sysfs_sec_touchscreen:file r_file_perms;
allow hal_power_default sysfs_decon:dir search;
w_file_recursive(hal_power_default, sysfs_battery_saver)
set_prop(hal_power_default, vendor_powerhal_prop)