Merge "USB: add charging only mode for usb config"

This commit is contained in:
Linux Build Service Account 2014-03-19 10:40:13 -07:00 committed by Gerrit - the friendly Code Review server
commit 7d92d926e8
1 changed files with 12 additions and 0 deletions

View File

@ -731,3 +731,15 @@ on property:sys.usb.config=ncm,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/functions charging
write /sys/class/android_usb/android0/enable 1
setprop sys.usb.state ${sys.usb.config}
on property:sys.usb.config=charging,adb
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/functions charging
write /sys/class/android_usb/android0/enable 1
setprop sys.usb.state ${sys.usb.config}