android_device_oneplus_dre/rootdir/etc
Jack Pham 1cdeaf4f5e sm8350-common: init.recovery.qcom.rc: Force USB to peripheral mode
On some newer platforms USB relies on PMIC to notify it of
cable connection status, but the PMIC driver has relocated
to ADSP FW. Since ADSP is not expected to be loaded in
recovery or fastbootd mode, USB may not get notified and
hence won't start up. Force the USB to start in peripheral
mode since the whole purpose of recovery/fastbootd is to
interact with a USB connection anyhow.

Currently the command assumes that there is a sysfs "mode"
param located at /sys/class/udc/${ro.boot.usbcontroller}/device/..
which is true for dwc3-msm based driver on most QC SoCs.

Change-Id: I5f7a01defdf987dbf4bd48f77bc70344c212a623
2021-06-01 23:23:38 +01:00
..
fstab.qcom sm8350-common: Import common fstab from OOS 2021-06-01 11:29:04 +02:00
ftm_power_config.sh sm8350-common: Update init scripts from OOS 11.2.5.5 2021-06-01 21:43:16 +01:00
init.cust.rc sm8350-common: Update init scripts from OOS 11.2.5.5 2021-06-01 21:43:16 +01:00
init.oem.debug.rc sm8350-common: Update init scripts from OOS 11.2.5.5 2021-06-01 21:43:16 +01:00
init.oem.rc sm8350-common: Update init scripts from OOS 11.2.5.5 2021-06-01 21:43:16 +01:00
init.oem_ftm.rc sm8250-common: Import vendor scripts from stock 2021-01-06 11:18:27 +01:00
init.oem_rf.rc sm8350-common: Update init scripts from OOS 11.2.5.5 2021-06-01 21:43:16 +01:00
init.qcom.factory.rc sm8250-common: Import vendor scripts from stock 2021-01-06 11:18:27 +01:00
init.qcom.rc sm8350-common: Update init scripts from OOS 11.2.5.5 2021-06-01 21:43:16 +01:00
init.qcom.usb.rc sm8350-common: Update init scripts from OOS 11.2.5.5 2021-06-01 21:43:16 +01:00
init.qti.kernel.rc sm8350-common: Update init scripts from OOS 11.2.5.5 2021-06-01 21:43:16 +01:00
init.qti.qcv.rc sm8350-common: Update init scripts from OOS 11.2.5.5 2021-06-01 21:43:16 +01:00
init.recovery.qcom.rc sm8350-common: init.recovery.qcom.rc: Force USB to peripheral mode 2021-06-01 23:23:38 +01:00
init.target.rc sm8350-common: Update init scripts from OOS 11.2.5.5 2021-06-01 21:43:16 +01:00
init.uicc.rc sm8350-common: Update init scripts from OOS 11.2.5.5 2021-06-01 21:43:16 +01:00
vendor.oem_ftm.rc sm8250-common: Import vendor scripts from stock 2021-01-06 11:18:27 +01:00
vendor.oem_ftm_svc_disable.rc sm8350-common: Update init scripts from OOS 11.2.5.5 2021-06-01 21:43:16 +01:00