diff options
author | sbrissen <sbrissen@hotmail.com> | 2015-11-03 09:32:45 -0500 |
---|---|---|
committer | sbrissen <sbrissen@hotmail.com> | 2015-11-03 09:32:45 -0500 |
commit | eafa2fffb590db48803364ad68b645d985ea6ce5 (patch) | |
tree | 88e7d9429f3c3609c094f6332d91c214194dbf00 /rootdir | |
parent | 1b729b23e629491d25dd8e987ad9343f3098eaa2 (diff) | |
download | device_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-x | rootdir/init.smdk4x12.usb.rc | 8 |
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} |