blob: c0df9a9bd7343cf5f59aa7fc27e6cfb9c46cce67 [file] [log] [blame]
Badhri Jagan Sridharan7bee33e2018-01-08 09:29:40 -08001# HwBinder IPC from client to server, and callbacks
2binder_call(hal_usb_gadget_client, hal_usb_gadget_server)
3binder_call(hal_usb_gadget_server, hal_usb_gadget_client)
4
Ricky Niufc1463c2022-09-28 17:53:48 +08005hal_attribute_service(hal_usb_gadget, hal_usb_gadget_service)
6binder_call(hal_usb_gadget_server, servicemanager)
7
Steven Moreland9234e002018-06-06 09:30:18 -07008hal_attribute_hwservice(hal_usb_gadget, hal_usb_gadget_hwservice)
Badhri Jagan Sridharan7bee33e2018-01-08 09:29:40 -08009
10# Configuring usb gadget functions
11allow hal_usb_gadget_server configfs:lnk_file { read create unlink};
12allow hal_usb_gadget_server configfs:dir rw_dir_perms;
Badhri Jagan Sridharan76ced5d2018-01-24 15:43:56 -080013allow hal_usb_gadget_server configfs:file create_file_perms;
Badhri Jagan Sridharan7bee33e2018-01-08 09:29:40 -080014allow hal_usb_gadget_server functionfs:dir { read search };
15allow hal_usb_gadget_server functionfs:file read;
Ricky Niufc1463c2022-09-28 17:53:48 +080016allow hal_usb_gadget_server proc_interrupts:file r_file_perms;
Avichal Rakesha12d3102023-01-23 23:46:42 -080017
18# Read access to ro.usb.uvc.enabled
19get_prop(hal_usb_gadget_server, usb_uvc_enabled_prop)