1*e4a36f41SAndroid Build Coastguard Worker# HwBinder IPC from client to server, and callbacks 2*e4a36f41SAndroid Build Coastguard Workerbinder_call(hal_usb_gadget_client, hal_usb_gadget_server) 3*e4a36f41SAndroid Build Coastguard Workerbinder_call(hal_usb_gadget_server, hal_usb_gadget_client) 4*e4a36f41SAndroid Build Coastguard Worker 5*e4a36f41SAndroid Build Coastguard Workerhal_attribute_service(hal_usb_gadget, hal_usb_gadget_service) 6*e4a36f41SAndroid Build Coastguard Workerbinder_call(hal_usb_gadget_server, servicemanager) 7*e4a36f41SAndroid Build Coastguard Worker 8*e4a36f41SAndroid Build Coastguard Workerhal_attribute_hwservice(hal_usb_gadget, hal_usb_gadget_hwservice) 9*e4a36f41SAndroid Build Coastguard Worker 10*e4a36f41SAndroid Build Coastguard Worker# Configuring usb gadget functions 11*e4a36f41SAndroid Build Coastguard Workerallow hal_usb_gadget_server configfs:lnk_file { read create unlink}; 12*e4a36f41SAndroid Build Coastguard Workerallow hal_usb_gadget_server configfs:dir rw_dir_perms; 13*e4a36f41SAndroid Build Coastguard Workerallow hal_usb_gadget_server configfs:file create_file_perms; 14*e4a36f41SAndroid Build Coastguard Workerallow hal_usb_gadget_server functionfs:dir { read search }; 15*e4a36f41SAndroid Build Coastguard Workerallow hal_usb_gadget_server functionfs:file read; 16*e4a36f41SAndroid Build Coastguard Workerallow hal_usb_gadget_server proc_interrupts:file r_file_perms; 17*e4a36f41SAndroid Build Coastguard Worker 18*e4a36f41SAndroid Build Coastguard Worker# Read access to ro.usb.uvc.enabled 19*e4a36f41SAndroid Build Coastguard Workerget_prop(hal_usb_gadget_server, usb_uvc_enabled_prop) 20