init.qcom.usb.rc: Don't apply persist.vendor.usb.config
* Otherwise adb turns on after reboot every time.
Change-Id: I66631f1f38a3e3a16e6d3dad87c83d0a98e6f851
diff --git a/etc/init.qcom.usb.rc b/etc/init.qcom.usb.rc
index be0a70f..f9338dc 100644
--- a/etc/init.qcom.usb.rc
+++ b/etc/init.qcom.usb.rc
@@ -128,9 +128,6 @@
mkdir /dev/usb-ffs/ptp 0770 mtp mtp
mount functionfs ptp /dev/usb-ffs/ptp rmode=0770,fmode=0660,uid=1024,gid=1024,no_disconnect=1
-on boot
- setprop sys.usb.config ${persist.vendor.usb.config}
-
on boot && property:vendor.usb.use_gadget_hal=1
setprop sys.usb.configfs 2
@@ -144,9 +141,6 @@
setprop sys.usb.controller ${vendor.usb.controller}
setprop sys.usb.configfs 1
-on property:persist.vendor.usb.config=* && property:vendor.usb.use_gadget_hal=0
- setprop persist.sys.usb.config ${persist.vendor.usb.config}
-
on boot && property:ro.boot.usbconfigfs=true
setprop sys.usb.configfs 1