dre: Update init scripts from OOS 11.0.6.0.DE17AA

Change-Id: I110d64343f2aa3e44e95238e28e42db48382a1c7
This commit is contained in:
Albert Tang 2022-05-23 16:26:45 -05:00
commit 4844942afc
23 changed files with 652 additions and 699 deletions

View file

@ -225,21 +225,14 @@ 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_rf" | "ftm_wlan" | "ftm_mos")
setprop sys.usb.config diag,adb
"ftm_rf" | "ftm_wlan" | "ftm_at")
setprop persist.vendor.usb.config diag,adb
setprop persist.sys.usb.config diag,adb
echo "peripheral" > /sys/devices/platform/soc/a600000.ssusb/mode
setprop sys.usb.config diag,adb
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
esac
#endif