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>
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 @@
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. -->