2024-03-19 22:26:56 +01:00
|
|
|
type batterysecret, domain;
|
|
|
|
type batterysecret_exec, exec_type, vendor_file_type, file_type;
|
|
|
|
|
|
|
|
hwbinder_use(batterysecret)
|
|
|
|
init_daemon_domain(batterysecret)
|
|
|
|
|
|
|
|
binder_call(batterysecret, system_suspend_server)
|
|
|
|
|
2023-03-06 17:19:06 +01:00
|
|
|
allow batterysecret rootfs:dir write;
|
|
|
|
allow batterysecret self:capability sys_tty_config;
|
|
|
|
allow batterysecret self:capability sys_boot;
|
|
|
|
allow batterysecret self:capability { chown fsetid };
|
|
|
|
allow batterysecret self:netlink_kobject_uevent_socket { bind create read setopt };
|
|
|
|
allow batterysecret self:capability2 block_suspend;
|
|
|
|
allow batterysecret self:cap2_userns block_suspend;
|
|
|
|
allow batterysecret sysfs_wake_lock:file rw_file_perms;
|
|
|
|
allow batterysecret vendor_sysfs_battery_supply:file rw_file_perms;
|
|
|
|
allow batterysecret vendor_sysfs_battery_supply:dir r_dir_perms;
|
|
|
|
allow batterysecret vendor_sysfs_qcom_battery:file rw_file_perms;
|
|
|
|
allow batterysecret vendor_sysfs_qcom_battery:file write;
|
|
|
|
allow batterysecret vendor_sysfs_qcom_battery:file { open read write };
|
|
|
|
allow batterysecret vendor_sysfs_qcom_battery:dir r_dir_perms;
|
|
|
|
allow batterysecret system_suspend_hwservice:hwservice_manager find;
|
|
|
|
allow batterysecret hidl_manager_hwservice:hwservice_manager find;
|
|
|
|
allow batterysecret sysfs:file write;
|
|
|
|
allow batterysecret sysfs_usb:file w_file_perms;
|
|
|
|
allow batterysecret vendor_sysfs_usb_supply:file write;
|
|
|
|
allow batterysecret sysfs_batteryinfo:file r_file_perms;
|
|
|
|
allow batterysecret kmsg_device:chr_file rw_file_perms;
|
|
|
|
allow batterysecret mnt_vendor_file:dir rw_dir_perms;
|
2024-03-19 22:26:56 +01:00
|
|
|
|
2023-03-06 17:19:06 +01:00
|
|
|
r_dir_file(batterysecret, sysfs_type)
|
|
|
|
r_dir_file(batterysecret, rootfs)
|
|
|
|
r_dir_file(batterysecret, cgroup)
|
|
|
|
r_dir_file(batterysecret, vendor_sysfs_usb_supply)
|
2024-03-19 22:26:56 +01:00
|
|
|
|
2023-03-06 17:19:06 +01:00
|
|
|
get_prop(batterysecret, hwservicemanager_prop)
|
|
|
|
get_prop(batterysecret, vendor_default_prop)
|
|
|
|
set_prop(batterysecret, vendor_system_prop)
|
2024-03-19 22:26:56 +01:00
|
|
|
|