summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorsbrissen <sbrissen@hotmail.com>2015-11-03 09:32:45 -0500
committersbrissen <sbrissen@hotmail.com>2015-11-03 09:32:45 -0500
commiteafa2fffb590db48803364ad68b645d985ea6ce5 (patch)
tree88e7d9429f3c3609c094f6332d91c214194dbf00 /rootdir
parent1b729b23e629491d25dd8e987ad9343f3098eaa2 (diff)
downloaddevice_samsung_smdk4412-common-eafa2fffb590db48803364ad68b645d985ea6ce5.zip
device_samsung_smdk4412-common-eafa2fffb590db48803364ad68b645d985ea6ce5.tar.gz
device_samsung_smdk4412-common-eafa2fffb590db48803364ad68b645d985ea6ce5.tar.bz2
smdk4x12: add usb charging mode
Change-Id: I54ca8177792dcb01dda14b2482776292b1a82485
Diffstat (limited to 'rootdir')
-rwxr-xr-xrootdir/init.smdk4x12.usb.rc8
1 files changed, 8 insertions, 0 deletions
diff --git a/rootdir/init.smdk4x12.usb.rc b/rootdir/init.smdk4x12.usb.rc
index 72de75e..d704ddf 100755
--- a/rootdir/init.smdk4x12.usb.rc
+++ b/rootdir/init.smdk4x12.usb.rc
@@ -95,3 +95,11 @@ on property:sys.usb.config=mass_storage,adb
write /sys/class/android_usb/android0/enable 1
start adbd
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 685B
+ 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}