mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_rosemary
synced 2026-01-27 07:49:58 +00:00
rosemary: rootdir: Set permissions for USB service
Change-Id: I046e5b7f062171862eba1532efd128e057940042 Signed-off-by: bengris32 <bengris32@protonmail.ch>
This commit is contained in:
@@ -157,6 +157,18 @@ on boot
|
||||
# for usb otg sdcard hot plug detection
|
||||
write /sys/module/block/parameters/events_dfl_poll_msecs 1000
|
||||
|
||||
# Set permissions for USB service
|
||||
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
|
||||
chown root system /sys/class/udc/${sys.usb.controller}/device/cmode
|
||||
chown root system /sys/class/udc/${sys.usb.controller}/device/saving
|
||||
chmod 664 /sys/class/typec/port0/power_role
|
||||
chmod 664 /sys/class/typec/port0/data_role
|
||||
chmod 664 /sys/class/typec/port0/port_type
|
||||
chmod 664 /sys/class/udc/${sys.usb.controller}/device/cmode
|
||||
chmod 664 /sys/class/udc/${sys.usb.controller}/device/saving
|
||||
|
||||
on property:dev.bootcomplete=1
|
||||
write /config/usb_gadget/g1/strings/0x409/product ${ro.product.marketname}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user