1
2type tcmd, domain, domain_deprecated;
3type tcmd_exec, exec_type, file_type;
4
5init_daemon_domain(tcmd)
6
7# Uses network sockets.
8net_domain(tcmd)
9
10# Allow restart, fastboot, power off
11set_prop(tcmd, powerctl_prop)
12
13# Uses /dev/ttydiag2
14allow tcmd diag_device:chr_file rw_file_perms;
15
16# Uses raw socket
17allow tcmd self:capability net_raw;
18
19# To allow read telephony.db
20allow tcmd radio_data_file:dir r_dir_perms;
21allow tcmd radio_data_file:file r_file_perms;
22
23# To allow read/write /persist
24allow tcmd persist_file:dir search;
25allow tcmd persist_hiddenmenu_file:dir rw_dir_perms;
26allow tcmd persist_hiddenmenu_file:file create_file_perms;
27