1type init-firstboot, domain;
2type init-firstboot_exec, exec_type, vendor_file_type, file_type;
3
4init_daemon_domain(init-firstboot)
5
6allow init-firstboot vendor_shell_exec:file rx_file_perms;
7allow init-firstboot vendor_toolbox_exec:file rx_file_perms;
8
9# Read USB connection state
10allow init-firstboot sysfs_msm_subsys:dir search;
11r_dir_file(init-firstboot, sysfs_batteryinfo)
12
13# Set property to trigger a shutdown
14set_prop(init-firstboot, powerctl_prop)
15
16