xref: /aosp_15_r20/system/sepolicy/prebuilts/api/31.0/private/usbd.te (revision e4a36f4174b17bbab9dc043f4a65dc8d87377290)
1*e4a36f41SAndroid Build Coastguard Workertypeattribute usbd coredomain;
2*e4a36f41SAndroid Build Coastguard Worker
3*e4a36f41SAndroid Build Coastguard Workerinit_daemon_domain(usbd)
4*e4a36f41SAndroid Build Coastguard Worker
5*e4a36f41SAndroid Build Coastguard Worker# Access usb gadget hal
6*e4a36f41SAndroid Build Coastguard Workerhal_client_domain(usbd, hal_usb_gadget)
7*e4a36f41SAndroid Build Coastguard Worker
8*e4a36f41SAndroid Build Coastguard Worker# Access persist.sys.usb.config
9*e4a36f41SAndroid Build Coastguard Workerget_prop(usbd, system_prop)
10*e4a36f41SAndroid Build Coastguard Worker
11*e4a36f41SAndroid Build Coastguard Worker# start adbd during boot if adb is enabled
12*e4a36f41SAndroid Build Coastguard Workerset_prop(usbd, ctl_default_prop)
13*e4a36f41SAndroid Build Coastguard Worker
14*e4a36f41SAndroid Build Coastguard Worker# Start/stop adbd via ctl.start adbd
15*e4a36f41SAndroid Build Coastguard Workerset_prop(usbd, ctl_adbd_prop)
16