mirror of
https://github.com/Evolution-X-Devices/device_google_redfin
synced 2026-02-01 11:26:33 +00:00
There is no necessary to get root permission for USB Hal. Therefore, this commit will remove the root permission. Bug: 154895957 Test: build pass and verified USB HAL Change-Id: Ib88e4dc124a8b5b803989b51c2e8c085d9b2e65e
19 lines
566 B
Plaintext
19 lines
566 B
Plaintext
service vendor.usb-hal-1-2 /vendor/bin/hw/android.hardware.usb@1.2-service.redfin
|
|
class hal
|
|
user system
|
|
group system shell mtp
|
|
|
|
service init-gadgethal-sh /vendor/bin/init.gadgethal.sh
|
|
class hal
|
|
user root
|
|
disabled
|
|
oneshot
|
|
|
|
on boot
|
|
chown root system /sys/class/typec/port0/power_role
|
|
chown root system /sys/class/typec/port0/data_role
|
|
chown root system /sys/class/typec/port0/port_type
|
|
chmod 664 /sys/class/typec/port0/power_role
|
|
chmod 664 /sys/class/typec/port0/data_role
|
|
chmod 664 /sys/class/typec/port0/port_type
|