summaryrefslogtreecommitdiff
path: root/rootdir/etc/init.qcom.usb.rc
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2020-02-02 12:28:00 +0800
committerMichael Bestas <mkbestas@lineageos.org>2020-04-30 00:48:54 +0300
commitc1c7c31fba66a7590eb7eccd79502bbb38f7e248 (patch)
tree73517783fa4f0988fbfe805b17e184c634caab12 /rootdir/etc/init.qcom.usb.rc
parentc827a62c4c82e82d4881f250833de94d25619771 (diff)
sdm660-common: Update rootdir from LA.UM.8.2.r1-05100-sdm660.0
Change-Id: I341776245fac44fd462756104cf4decb8506d38e
Diffstat (limited to 'rootdir/etc/init.qcom.usb.rc')
-rw-r--r--rootdir/etc/init.qcom.usb.rc10
1 files changed, 7 insertions, 3 deletions
diff --git a/rootdir/etc/init.qcom.usb.rc b/rootdir/etc/init.qcom.usb.rc
index cd85142..f2c3b0a 100644
--- a/rootdir/etc/init.qcom.usb.rc
+++ b/rootdir/etc/init.qcom.usb.rc
@@ -1,4 +1,4 @@
-# Copyright (c) 2011-2016, 2018 The Linux Foundation. All rights reserved.
+# Copyright (c) 2011-2016, 2018-2019 The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@@ -30,7 +30,7 @@ on charger
mkdir /dev/usb-ffs/adb 0770 shell shell
mount configfs none /config
mkdir /config/usb_gadget/g1 0770 shell shell
- mkdir /config/usb_gadget/g1/strings/0x409 0770 shell shell
+ mkdir /config/usb_gadget/g1/strings/0x409 0770
write /config/usb_gadget/g1/bcdUSB 0x0200
write /config/usb_gadget/g1/os_desc/use 1
write /config/usb_gadget/g1/strings/0x409/serialnumber ${ro.serialno}
@@ -73,6 +73,7 @@ on boot
mkdir /config/usb_gadget/g1/functions/ffs.adb
mkdir /config/usb_gadget/g1/functions/diag.diag
mkdir /config/usb_gadget/g1/functions/diag.diag_mdm
+ mkdir /config/usb_gadget/g1/functions/diag.diag_mdm2
mkdir /config/usb_gadget/g1/functions/cser.dun.0
mkdir /config/usb_gadget/g1/functions/cser.nmea.1
mkdir /config/usb_gadget/g1/functions/cser.dun.2
@@ -102,7 +103,7 @@ on boot
mkdir /dev/usb-ffs/adb 0770 shell system
mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=1000,rmode=0770,fmode=0660
write /sys/class/android_usb/android0/f_ffs/aliases adb
- setprop sys.usb.mtp.device_type 2
+ setprop sys.mtp.device_type 2
setprop vendor.usb.controller ${sys.usb.controller}
enable vendor.qcom-usb-sh
@@ -118,6 +119,9 @@ on property:persist.vendor.usb.config=*
on boot && property:ro.boot.usbconfigfs=true
setprop sys.usb.configfs 1
+on property:vendor.usb.configfs=1 && property:sys.usb.configfs=0
+ setprop sys.usb.configfs 1
+
# Following are the parameters required for usb functionality. They provide configurable options like
# product_id/vendor id and allows specifying required functions:
#