Badhri Jagan Sridharan | 7bee33e | 2018-01-08 09:29:40 -0800 | [diff] [blame] | 1 | # HwBinder IPC from client to server, and callbacks |
| 2 | binder_call(hal_usb_gadget_client, hal_usb_gadget_server) |
| 3 | binder_call(hal_usb_gadget_server, hal_usb_gadget_client) |
| 4 | |
Ricky Niu | fc1463c | 2022-09-28 17:53:48 +0800 | [diff] [blame] | 5 | hal_attribute_service(hal_usb_gadget, hal_usb_gadget_service) |
| 6 | binder_call(hal_usb_gadget_server, servicemanager) |
| 7 | |
Steven Moreland | 9234e00 | 2018-06-06 09:30:18 -0700 | [diff] [blame] | 8 | hal_attribute_hwservice(hal_usb_gadget, hal_usb_gadget_hwservice) |
Badhri Jagan Sridharan | 7bee33e | 2018-01-08 09:29:40 -0800 | [diff] [blame] | 9 | |
| 10 | # Configuring usb gadget functions |
| 11 | allow hal_usb_gadget_server configfs:lnk_file { read create unlink}; |
| 12 | allow hal_usb_gadget_server configfs:dir rw_dir_perms; |
Badhri Jagan Sridharan | 76ced5d | 2018-01-24 15:43:56 -0800 | [diff] [blame] | 13 | allow hal_usb_gadget_server configfs:file create_file_perms; |
Badhri Jagan Sridharan | 7bee33e | 2018-01-08 09:29:40 -0800 | [diff] [blame] | 14 | allow hal_usb_gadget_server functionfs:dir { read search }; |
| 15 | allow hal_usb_gadget_server functionfs:file read; |
Ricky Niu | fc1463c | 2022-09-28 17:53:48 +0800 | [diff] [blame] | 16 | allow hal_usb_gadget_server proc_interrupts:file r_file_perms; |
Avichal Rakesh | a12d310 | 2023-01-23 23:46:42 -0800 | [diff] [blame] | 17 | |
| 18 | # Read access to ro.usb.uvc.enabled |
| 19 | get_prop(hal_usb_gadget_server, usb_uvc_enabled_prop) |