• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# qemu-device-state service:  Writes host adb key for adbd on boot.
2type qemu_device_state, domain;
3type qemu_device_state_exec, vendor_file_type, exec_type, file_type;
4
5init_daemon_domain(qemu_device_state)
6
7# Allow qemu_device_state to read /proc/bootconfig
8allow qemu_device_state proc_cmdline:file r_file_perms;
9allow qemu_device_state proc_bootconfig:file r_file_perms;
10
11# Permission to write to /data/vendor/system/devicestate.
12allow qemu_device_state vendor_data_file:dir create_dir_perms;
13allow qemu_device_state vendor_data_file:file create_file_perms;
14
15allow qemu_device_state sysfs_dt_firmware_android:dir search;
16allow qemu_device_state sysfs_dt_firmware_android:file r_file_perms;
17