sm8350-common: Update init scripts from OOS 11.2.5.5
Change-Id: Ia4e798ae3c5cbdb7246669b833c75e7058efa523
This commit is contained in:
parent
7c98da93ba
commit
b2e66f9cc7
27 changed files with 2040 additions and 665 deletions
|
|
@ -51,10 +51,7 @@ if [ "$(getprop persist.vendor.usb.config)" == "" -a "$(getprop ro.build.type)"
|
|||
"$(getprop init.svc.vendor.usb-gadget-hal-1-0)" != "running" ]; then
|
||||
if [ "$esoc_name" != "" ]; then
|
||||
setprop persist.vendor.usb.config diag,diag_mdm,qdss,qdss_mdm,serial_cdev,dpl,rmnet,adb
|
||||
#BSP add for 5G diag port config
|
||||
setprop persist.vendor.sdx50m.online 1
|
||||
else
|
||||
setprop persist.vendor.sdx50m.online 0
|
||||
case "$(getprop ro.baseband)" in
|
||||
"apq")
|
||||
setprop persist.vendor.usb.config diag,adb
|
||||
|
|
@ -104,7 +101,7 @@ if [ "$(getprop persist.vendor.usb.config)" == "" -a "$(getprop ro.build.type)"
|
|||
"sdm845" | "sdm710")
|
||||
setprop persist.vendor.usb.config diag,serial_cdev,rmnet,dpl,adb
|
||||
;;
|
||||
"msmnile" | "sm6150" | "trinket" | "lito" | "atoll" | "bengal" | "lahaina")
|
||||
"msmnile" | "sm6150" | "trinket" | "lito" | "atoll" | "bengal" | "lahaina" | "holi")
|
||||
setprop persist.vendor.usb.config diag,serial_cdev,rmnet,dpl,qdss,adb
|
||||
;;
|
||||
*)
|
||||
|
|
@ -146,17 +143,7 @@ if [ -d /config/usb_gadget ]; then
|
|||
msm_serial=`cat /sys/devices/soc0/serial_number`;
|
||||
msm_serial_hex=`printf %08X $msm_serial`
|
||||
machine_type=`cat /sys/devices/soc0/machine`
|
||||
#ifdef VENDOR_EDIT
|
||||
#Fix product name for Android Auto/Ubuntu
|
||||
product_string=`getprop ro.product.model`
|
||||
if [ "$product_string" == "" ]; then
|
||||
product_string="OnePlus"
|
||||
fi
|
||||
#else
|
||||
#product_string="$machine_type-$soc_hwplatform _SN:$msm_serial_hex"
|
||||
#endif
|
||||
echo "$product_string" > /config/usb_gadget/g1/strings/0x409/product
|
||||
setprop vendor.usb.product_string "$product_string"
|
||||
setprop vendor.usb.product_string "$machine_type-$soc_hwplatform _SN:$msm_serial_hex"
|
||||
|
||||
# ADB requires valid iSerialNumber; if ro.serialno is missing, use dummy
|
||||
serialnumber=`cat /config/usb_gadget/g1/strings/0x409/serialnumber 2> /dev/null`
|
||||
|
|
@ -238,13 +225,19 @@ if [ -d /config/usb_gadget/g1/functions/uvc.0 ]; then
|
|||
ln -s streaming/header/h streaming/class/hs/
|
||||
ln -s streaming/header/h streaming/class/ss/
|
||||
fi
|
||||
|
||||
#ifdef VENDOR_EDIT
|
||||
#Enable diag and adb for FTM
|
||||
boot_mode=`getprop ro.boot.ftm_mode`
|
||||
echo "boot_mode: $boot_mode" > /dev/kmsg
|
||||
case "$boot_mode" in
|
||||
"ftm_at" | "ftm_rf" | "ftm_wlan" | "ftm_mos")
|
||||
"ftm_rf" | "ftm_wlan" | "ftm_mos")
|
||||
setprop sys.usb.config diag,adb
|
||||
setprop persist.sys.usb.config diag,adb
|
||||
echo "peripheral" > /sys/devices/platform/soc/a600000.ssusb/mode
|
||||
echo "AFTER boot_mode: diag,adb" > /dev/kmsg
|
||||
esac
|
||||
case "$boot_mode" in
|
||||
"ftm_at")
|
||||
setprop sys.usb.config diag,adb
|
||||
setprop persist.sys.usb.config diag,adb
|
||||
echo "AFTER boot_mode: diag,adb" > /dev/kmsg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue