Merge "common: init.qcom.usb: Add DPL USB composition rules" into android-device.lnx.1.0-dev.1.0

This commit is contained in:
Linux Build Service Account 2015-12-22 05:35:39 -08:00 committed by Gerrit - the friendly Code Review server
commit 42edb0d539
1 changed files with 25 additions and 0 deletions

View File

@ -1279,6 +1279,31 @@ on property:sys.usb.config=charging
write /sys/class/android_usb/android0/enable 1 write /sys/class/android_usb/android0/enable 1
setprop sys.usb.state ${sys.usb.config} setprop sys.usb.state ${sys.usb.config}
on property:sys.usb.config=diag,serial_smd,rmnet_qti_bam,dpl_qti_bam_dmux
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 05C6
write /sys/class/android_usb/android0/idProduct 90B7
write /sys/class/android_usb/android0/f_diag/clients diag
write /sys/class/android_usb/android0/f_serial/transports smd
write /sys/class/android_usb/android0/f_rmnet/transports qti,bam
write /sys/class/android_usb/android0/f_qdss/transports qti,bam_dmux
write /sys/class/android_usb/android0/functions diag,serial,rmnet,qdss
write /sys/class/android_usb/android0/enable 1
setprop sys.usb.state ${sys.usb.config}
on property:sys.usb.config=diag,serial_smd,rmnet_qti_bam,dpl_qti_bam_dmux,adb
write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 05C6
write /sys/class/android_usb/android0/idProduct 90B8
write /sys/class/android_usb/android0/f_diag/clients diag
write /sys/class/android_usb/android0/f_serial/transports smd
write /sys/class/android_usb/android0/f_rmnet/transports qti,bam
write /sys/class/android_usb/android0/f_qdss/transports qti,bam_dmux
write /sys/class/android_usb/android0/functions diag,serial,rmnet,qdss,adb
write /sys/class/android_usb/android0/enable 1
start adbd
setprop sys.usb.state ${sys.usb.config}
on property:sys.usb.config=diag,diag_cnss,serial_smd,serial_tty,rmnet_bam,mass_storage,adb on property:sys.usb.config=diag,diag_cnss,serial_smd,serial_tty,rmnet_bam,mass_storage,adb
write /sys/class/android_usb/android0/enable 0 write /sys/class/android_usb/android0/enable 0
write /sys/class/android_usb/android0/idVendor 05C6 write /sys/class/android_usb/android0/idVendor 05C6