• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# goldfish-system-setup service: runs init.qemu-adb-keys.sh script
2type goldfish_system_setup, domain, coredomain;
3type goldfish_system_setup_exec, system_file_type, exec_type, file_type;
4
5init_daemon_domain(goldfish_system_setup)
6
7allow goldfish_system_setup shell_exec:file { rx_file_perms };
8
9# Allow write to /dev/kmsg
10allow goldfish_system_setup kmsg_device:chr_file rw_file_perms;
11
12# Allow read /data/misc/adb/adb_keys
13allow goldfish_system_setup adb_keys_file:file r_file_perms;
14allow goldfish_system_setup adb_keys_file:dir search;
15
16# Set qemu.adb.copykey
17allow goldfish_system_setup toolbox_exec:file { getattr execute read open execute_no_trans map };
18set_prop(goldfish_system_setup, vendor_qemu_adb_prop);
19