aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Blaesius <skate4life@gmx.de>2017-06-09 14:40:57 +0200
committerAndreas Blaesius <skate4life@gmx.de>2017-06-09 14:40:57 +0200
commitb049474a01025accf177659734482c73588a9a1a (patch)
treead7bd406f6c0e644f659c522eafa12f08e1baf61
parent60f531cf7b68f34e730125bf6fd86ed24b73f370 (diff)
downloaddevice_samsung_espressowifi-b049474a01025accf177659734482c73588a9a1a.zip
device_samsung_espressowifi-b049474a01025accf177659734482c73588a9a1a.tar.gz
device_samsung_espressowifi-b049474a01025accf177659734482c73588a9a1a.tar.bz2
espresso: add USB charging config
Change-Id: Id7f314bd02939fd5db93d87346b20de7a0e07797
-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}