mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-02-01 11:27:36 +00:00
Revert "usb: modify the permission of USB gadget hal"
This reverts commit bdd4728a17.
Reason for revert: original issue is fixed.
Bug: 206902205
Test: adb work without the error of gadget hal.
Change-Id: I3b7ab36f93e8bb7d6c23d53d4a12ed95d441fede
This commit is contained in:
@@ -71,8 +71,7 @@ on early-boot
|
|||||||
# acm function for uwb
|
# acm function for uwb
|
||||||
mkdir /config/usb_gadget/g1/functions/acm.uwb0
|
mkdir /config/usb_gadget/g1/functions/acm.uwb0
|
||||||
|
|
||||||
# disable permission change. TODO (b/206902205): add back later
|
setprop vendor.usb.functions.ready 1
|
||||||
# setprop vendor.usb.functions.ready 1
|
|
||||||
|
|
||||||
on boot
|
on boot
|
||||||
write /config/usb_gadget/g1/bcdDevice 0x0510
|
write /config/usb_gadget/g1/bcdDevice 0x0510
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
# TODO (b/206902205): remove root permission later
|
|
||||||
service vendor.usb-gadget-hal-1-2 /vendor/bin/hw/android.hardware.usb.gadget-service
|
service vendor.usb-gadget-hal-1-2 /vendor/bin/hw/android.hardware.usb.gadget-service
|
||||||
class hal
|
class hal
|
||||||
user root
|
user system
|
||||||
group root system shell mtp
|
group system shell mtp
|
||||||
|
|
||||||
on post-fs
|
on post-fs
|
||||||
chown root system /sys/class/typec/port0/power_role
|
chown root system /sys/class/typec/port0/power_role
|
||||||
|
|||||||
Reference in New Issue
Block a user