diff options
-rw-r--r-- | rootdir/init.smdk4210.usb.rc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rootdir/init.smdk4210.usb.rc b/rootdir/init.smdk4210.usb.rc index 7545695..aee84ed 100644 --- a/rootdir/init.smdk4210.usb.rc +++ b/rootdir/init.smdk4210.usb.rc @@ -87,3 +87,12 @@ 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 + 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} |