Add all I2c number to change the permission Bug: 297109635 Test: limit 1.3A work Change-Id: I5ca8301da72ea848154f5382265ea06fa432fea2
18 lines
894 B
Text
18 lines
894 B
Text
service vendor.usb-gadget-hal /vendor/bin/hw/android.hardware.usb.gadget-service
|
|
class hal
|
|
user system
|
|
group system shell mtp
|
|
|
|
on post-fs
|
|
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/devices/platform/11210000.usb/dwc3_exynos_otg_b_sess
|
|
chown root system /sys/devices/platform/11210000.usb/dwc3_exynos_otg_id
|
|
chown root system /sys/devices/platform/11210000.usb/usb_data_enabled
|
|
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/devices/platform/11210000.usb/dwc3_exynos_otg_b_sess
|
|
chmod 664 /sys/devices/platform/11210000.usb/dwc3_exynos_otg_id
|
|
chmod 664 /sys/devices/platform/11210000.usb/usb_data_enabled
|