mirror of
https://github.com/Evolution-X-Devices/device_google_redfin
synced 2026-02-01 11:26:33 +00:00
android.hardware.usb.IUsb is migrated to AIDL and runs in its own process. android.hardware.usb.gadget.IUsbGadget is now published in its own exclusive process (android.hardware.usb.gadget-service). Creating file_context and moving the selinux linux rules for IUsbGadget implementation. Bug: 200993386 Change-Id: I2e359e29716af5515c60ea57b554103579ca5570
15 lines
595 B
Plaintext
15 lines
595 B
Plaintext
type hal_usb_gadget_impl, domain;
|
|
hal_server_domain(hal_usb_gadget_impl, hal_usb)
|
|
hal_server_domain(hal_usb_gadget_impl, hal_usb_gadget)
|
|
|
|
type hal_usb_gadget_impl_exec, vendor_file_type, exec_type, file_type;
|
|
init_daemon_domain(hal_usb_gadget_impl)
|
|
|
|
allow hal_usb_gadget_impl configfs:dir { create rmdir };
|
|
allow hal_usb_gadget_impl functionfs:dir { watch watch_reads };
|
|
set_prop(hal_usb_gadget_impl, vendor_usb_prop)
|
|
|
|
allow hal_usb_gadget_impl sysfs_batteryinfo:dir r_dir_perms;
|
|
allow hal_usb_gadget_impl sysfs_batteryinfo:file rw_file_perms;
|
|
allow hal_usb_gadget_impl sysfs_extcon:dir search;
|