3
0

Add USB charging config

Change-Id: I76c997990ef2ad6250ab0f0210ac37569898374c
This commit is contained in:
Caio Schnepper 2015-10-06 09:12:25 -03:00
parent 8e74055376
commit 6a549eb6b6

View File

@ -87,3 +87,12 @@ on property:sys.usb.config=mass_storage,adb
write /sys/class/android_usb/android0/enable 1 write /sys/class/android_usb/android0/enable 1
start adbd start adbd
setprop sys.usb.state $sys.usb.config setprop sys.usb.state $sys.usb.config
on property:sys.usb.config=charging
stop adbd
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 04e8
write /sys/class/android_usb/android0/idProduct 6866
write /sys/class/android_usb/android0/functions charging
write /sys/class/android_usb/android0/enable 1
setprop sys.usb.state ${sys.usb.config}