[FP5-1408][2] Some known issues about mfg_utild
* Comment
There is no "USB Preference" notification after run command "adb shell mfg_util --do_factoryreset"
* Root Cause
Set persist.vendor.usb.config as "mfg" in --do_factoryreset
* Solution
Use persist.sys.usb.config in place of persist.vendor.usb.config and set persist.sys.usb.config as "none".
* Test Steps
1. Set inproduction flag
2. do factory reset in MMITest
3. Run "adb shell mfg_util --do_factoryreset" and "adb shell mfg_util --clear_inproductionflag"
4. DUT reboot
5. The USB Preference notification should be found when the USB cable is plugged in.
* Test Result
Pass
Change-Id: I231e570b4a2b02649df7c70aec5aa0f727bd5282
diff --git a/etc/init.qcom.usb.sh b/etc/init.qcom.usb.sh
index c82c434..f172a25 100644
--- a/etc/init.qcom.usb.sh
+++ b/etc/init.qcom.usb.sh
@@ -45,11 +45,11 @@
#+FP5-283, enable diag for user+root device, liquan.zhou.t2m, 20230215.
if [ "$(getprop ro.boot.oemdebugflag)" == "true" -o "$(getprop ro.boot.inproductionflag)" == "true" ]; then
- if [ "$(getprop persist.vendor.usb.config)" == "" -a "$(getprop ro.build.type)" == "user" ]; then
+ if [ "$(getprop ro.build.type)" == "user" ] ; then
if [ "$(getprop ro.baseband)" = "apq" ]; then
- setprop persist.vendor.usb.config diag,adb
+ setprop persist.sys.usb.config diag,adb
else
- setprop persist.vendor.usb.config diag,serial_cdev,rmnet,adb
+ setprop persist.sys.usb.config diag,serial_cdev,rmnet,adb
fi
fi
fi