summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2023-01-23 22:36:57 +0530
committerAmit Pundir <amit.pundir@linaro.org>2023-01-23 22:36:57 +0530
commit749ea673aff9ce5944f45249a9c1d28962048d3a (patch)
tree3cb0ceb934f4708a10a8078b03537cdacb360a32
parentf26a61b20383b32a1fc8e9cb35a49f4b01b0144b (diff)
Disable rndis USB gadget
RNDIS is disabled in GKI in the favour of NCM, https://android-review.googlesource.com/c/kernel/common/+/2065109, https://lore.kernel.org/lkml/20221123124620.1387499-1-gregkh@linuxfoundation.org/, plus this USB gadget never worked on Dragonboards anyway. Change-Id: Ie9e94f5883266bf8d73d676df4139222b0dee3ee Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r--init.common.usb.rc6
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml8
2 files changed, 0 insertions, 14 deletions
diff --git a/init.common.usb.rc b/init.common.usb.rc
index 79d4d58..f5da420 100644
--- a/init.common.usb.rc
+++ b/init.common.usb.rc
@@ -48,12 +48,6 @@ on property:sys.usb.ffs.ready=1 && property:sys.usb.config=mtp,adb && property:s
write /config/usb_gadget/g1/os_desc/use 1
symlink /config/usb_gadget/g1/functions/ffs.mtp /config/usb_gadget/g1/configs/b.1/f1
-on property:sys.usb.config=rndis && property:sys.usb.configfs=1
- write /config/usb_gadget/g1/idProduct 0x4ee3
-
-on property:sys.usb.ffs.ready=1 && property:sys.usb.config=rndis,adb && property:sys.usb.configfs=1
- write /config/usb_gadget/g1/idProduct 0x4ee4
-
on property:sys.usb.config=ptp && property:sys.usb.configfs=1
write /config/usb_gadget/g1/idProduct 0x4ee5
write /config/usb_gadget/g1/os_desc/use 1
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index f241581..1cbe785 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -63,14 +63,6 @@
<item>"softap.*"</item>
</string-array>
- <!-- List of regexpressions describing the interface (if any) that represent tetherable
- USB interfaces. If the device doesn't want to support tethering over USB this should
- be empty. An example would be "usb.*" -->
- <string-array translatable="false" name="config_tether_usb_regexs">
- <item>"usb\\d"</item>
- <item>"rndis\\d"</item>
- </string-array>
-
<!-- List of regexpressions describing the interface (if any) that represent tetherable
bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this
should be empty. -->