Merge "common: init.qcom.usb: Add DPL USB composition rules" into android-device.lnx.1.0-dev.1.0
This commit is contained in:
commit
42edb0d539
|
@ -1279,6 +1279,31 @@ on property:sys.usb.config=charging
|
|||
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
|
||||
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
|
||||
write /sys/class/android_usb/android0/enable 0
|
||||
write /sys/class/android_usb/android0/idVendor 05C6
|
||||
|
|
Loading…
Reference in New Issue