mirror of
https://github.com/LineageOS/android_device_essential_mata.git
synced 2026-04-02 05:49:36 +00:00
Since we're running the HAL as root but are NOT granting the dac_override capability, we need to change the permissions on these nodes so the HAL can properly access them. Change-Id: I5ad86f43f1f32216dfd34c63c519e0c50b756997
15 lines
673 B
Plaintext
15 lines
673 B
Plaintext
service vendor.usb-hal-1-1 /vendor/bin/hw/android.hardware.usb@1.1-service.mata
|
|
class hal
|
|
user root
|
|
group root system shell mtp
|
|
|
|
on boot
|
|
chown root system /sys/class/dual_role_usb/otg_default/power_role
|
|
chown root system /sys/class/dual_role_usb/otg_default/data_role
|
|
chown root system /sys/class/dual_role_usb/otg_default/mode
|
|
chown root system /sys/class/dual_role_usb/otg_default/supported_modes
|
|
chmod 664 /sys/class/dual_role_usb/otg_default/power_role
|
|
chmod 664 /sys/class/dual_role_usb/otg_default/data_role
|
|
chmod 664 /sys/class/dual_role_usb/otg_default/mode
|
|
chmod 664 /sys/class/dual_role_usb/otg_default/supported_modes
|