aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rootdir/init.espresso.usb.rc8
1 files changed, 8 insertions, 0 deletions
diff --git a/rootdir/init.espresso.usb.rc b/rootdir/init.espresso.usb.rc
index e86a7bd..70e690d 100644
--- a/rootdir/init.espresso.usb.rc
+++ b/rootdir/init.espresso.usb.rc
@@ -77,3 +77,11 @@ on property:sys.usb.config=rndis,acm,dm
write /sys/class/android_usb/android0/f_acm/instances 1
write /sys/class/android_usb/android0/enable 1
setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=charging
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6865
+ write /sys/class/android_usb/android0/functions ${sys.usb.config}
+ write /sys/class/android_usb/android0/enable 1
+ setprop sys.usb.state ${sys.usb.config}