1type init-qcom-devstart-sh, domain;
2type init-qcom-devstart-sh_exec, exec_type, vendor_file_type, file_type;
3
4init_daemon_domain(init-qcom-devstart-sh)
5
6allow init-qcom-devstart-sh vendor_shell_exec:file rx_file_perms;
7allow init-qcom-devstart-sh vendor_toolbox_exec:file rx_file_perms;
8allow init-qcom-devstart-sh vendor_grep_exec:file rx_file_perms;
9allow init-qcom-devstart-sh init-edge_sense-sh_exec:file rx_file_perms;
10
11domain_auto_trans(init-qcom-devstart-sh, init-edge_sense-sh_exec, init-edge_sense-sh)
12
13# Set the vendor.qcom.devup property
14set_prop(init-qcom-devstart-sh, vendor_device_prop)
15# Set the vendor.sys.adsp.firmware.version property.
16set_prop(init-qcom-devstart-sh, public_vendor_system_prop)
17
18# Set boot_adsp and boot_slpi to 1
19allow init-qcom-devstart-sh sysfs_msm_subsys:file w_file_perms;
20
21# Support for battery defender
22allow init-qcom-devstart-sh sysfs_chargelevel:file rw_file_perms;
23