Merge "qcom: Cleanup init.qcom.usb.sh"
This commit is contained in:
commit
a82cb62a52
|
@ -88,8 +88,6 @@ echo 1 > /sys/class/android_usb/f_mass_storage/lun/nofua
|
|||
usb_config=`getprop persist.sys.usb.config`
|
||||
case "$usb_config" in
|
||||
"" | "adb") #USB persist config not set, select default configuration
|
||||
case $target in
|
||||
"msm8960" | "msm8974" | "msm8226" | "msm8610" | "apq8084")
|
||||
case "$baseband" in
|
||||
"mdm")
|
||||
setprop persist.sys.usb.config diag,diag_mdm,serial_hsic,serial_tty,rmnet_hsic,mass_storage,adb
|
||||
|
@ -108,24 +106,6 @@ case "$usb_config" in
|
|||
;;
|
||||
esac
|
||||
;;
|
||||
"msm7627a")
|
||||
setprop persist.sys.usb.config diag,serial_smd,serial_tty,rmnet_smd,mass_storage,adb
|
||||
;;
|
||||
* )
|
||||
case "$baseband" in
|
||||
"svlte2a")
|
||||
setprop persist.sys.usb.config diag,diag_mdm,serial_sdio,serial_smd,rmnet_smd_sdio,mass_storage,adb
|
||||
;;
|
||||
"csfb")
|
||||
setprop persist.sys.usb.config diag,diag_mdm,serial_sdio,serial_tty,rmnet_sdio,mass_storage,adb
|
||||
;;
|
||||
*)
|
||||
setprop persist.sys.usb.config diag,serial_tty,serial_tty,rmnet_smd,mass_storage,adb
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
* ) ;; #USB persist config exists, do nothing
|
||||
esac
|
||||
|
||||
|
@ -136,7 +116,7 @@ target=`getprop ro.product.device`
|
|||
cdromname="/system/etc/cdrom_install.iso"
|
||||
cdromenable=`getprop persist.service.cdrom.enable`
|
||||
case "$target" in
|
||||
"msm7627a" | "msm8226" | "msm8610")
|
||||
"msm8226" | "msm8610")
|
||||
case "$cdromenable" in
|
||||
0)
|
||||
echo "" > /sys/class/android_usb/android0/f_mass_storage/lun0/file
|
||||
|
|
Loading…
Reference in New Issue