Optimized Android Usb Tethering Driver

The Google USB Driver is required for Windows if you want to performadb debugging with Google devices. Windows drivers forall other devices are provided by the respective hardware manufacturer, as listed in theOEM USB Drivers document.

Note:If you're developing on Mac OS X or Linux, then you do not need to install a USBdriver.

Instead seeUsing Hardware Devices. You can download the Google USB Driver for Windows in one of two ways:.

Which Type of Tethering Is Best For You?

In Android Studio, click Tools > SDK Manager. Click the SDK Tools tab.

Select Google USB Driver and click OK. The SDK Manager with the Google USB Driver selected. Proceed to install the package. When done, the driver files are downloaded into the android_sdk\extras\google\usb_driver\ directory. For installation information, readInstall a USB Driver.

Before downloading, you must agree to the following terms and conditions. This is the Android Software Development Kit License Agreement. Terms and ConditionsThis is the Android Software Development Kit License Agreement1. Introduction1.1 The Android Software Development Kit (referred to in the License Agreement as the "SDK" and specifically including the Android system files, packaged APIs, and Google APIs add-ons) is licensed to you subject to the terms of the License Agreement.

Introduction

USB tethering is used to connect your OpenWrt Router to the Internet by using the your smartphone.It's more convenient and has better performance (lower latency) than turning your smartphone into an access point and using that.It also is less of a CPU load on your phone, charges your phone, and allows you the flexibility of doing things with your OpenWrt router that you cannot do with your phone like connecting multiple devices with ease, both wireless and wired, to each other and to the internet.In order to maximize performance, you should turn your tethered phone Wi-Fi and Bluetooth off.

  1. USB tethering is known to be problematic on iOS 14 devices.
  2. works without patch on latest trunk 01/2022, 21.02.1 needs patch.
  3. Connecting your whole network to the Internet using the Smartphone might consume your monthly traffic quota very fast.
  4. Follow USB reverse tethering to share the internet from router to the smartphone over USB. For the easiest installation, have a wired upstream internet connection to boot-strap this process.You will need: the router, your tethering phone, necessary cables, a laptop and an upstream internet connection via Ethernet for initial setup.Instead of a wired upstream connection to plug into the router WAN port, is also possible to download necessary packages below, through your laptop while tethered to your phone, the same way you can get the OpenWrt distribution for your router.
  5. Provide USB tethering support for Android 8/10 with RNDIS:. Extra steps depending on USB type and drivers for your router:.
  6. Additional steps for iOS devices:. If you need to manually download the packages on another device for bootstrapping, see get_additional_software_packages.
  7. The Kernel modules will be in the URL of form downloads.openwrt.org/releases/[your release]/targets/[your target]/generic/packages/ and other packages (iOS stuff in this case) in downloads.openwrt.org/releases/[release]/packages/[instruction set]/packages/.
  8. Connect the smartphone to the USB port of the router with the USB cable, and then enable USB Tethering from the Android settings.Turn on the phone's Developer Options[Find the Build information in the About Phone menu, and tap rapidly 7 x].There is a Default USB Configuration: USB Tethering option.The phone will now immediately turn on USB Tethering mode when plugged into a configured router [or laptop], without further commands.However, it is necessary to remove the screen lock on the phone.A locked phone will not start USB Tethering by itself.

Slow USB Tethering Internet Speed?

For IPhones, you may have to disable and re-enable the Personal Hotspot/Allow Others to Join setting on the IPhone to force the OpenWrt DHCP client to get an IP address from the eth1 IPhone interface.Disabling and re-enabling the Personal Hotspot/Allow Others to Join setting on the IPhone is also required if you disconnect the IPhone from the OpenWrt USB port and re-coonect it later, unless you cache Trust records (see watchdog section and/or LeJeko github link below).

  1. iPhones starting from iOS 11 will terminate the USB data connections after one hour by default to improve security.
  2. Access search, as follows:

    Touch screen: On your computer, swipe in from the right edge of the screen and tap Search.

    Using a mouse: Point to the lower-right corner of the screen, move the mouse pointer up, and then click Search.

  3. This can easily be changed via:. Settings > Touch ID/Face ID & Passcode > USB Accessories > ON (macworld).
  4. On the router, enter:. For IPhones, replace the interface name usb* with eth* depending on router.
  5. It should be all working at this point.To activate wireless connections to the router, go to Network, Wireless and set then enable the interfaces.

Ways to tether on Android

Go to Network, Interfaces.You can either assign the existing WAN to usb0 like 3.a above, or create a whole new interface if you want to swap between the WAN Ethernet port and your tethering device (such as in a dual-wan fail-over situation).

  1. To make changes in the web interface equivalent to the above command line instructions: simply edit the existing default WAN interface, and change the physical device to usb0, then Save & Apply.
  2. Instead, to create a whole new interface, make a new one called TetheringWAN, and bind to it the new *usb0* network device (restart if you do not see it yet.
  3. And, for some cases, the new interface may be called '*eth1*: check what the log is showing in your case).
  4. Set the protocol to DHCP client mode or DHCPv6 client mode if the ISP assigns IPv6, and under the Firewall Settings tab, place it into the WAN zone.Save changes.
  5. See the following screenshots.First page of the Create Interface wizard.Firewall tab of the Create Interface Wizard.Very important to set it as WAN.And the end result in the Interfaces page.
  6. After committing the changes the new TetheringWAN should be activated.Otherwise, restart it with the buttons you find in the Interface page of LuCI web interface.
  7. If all went well, you should be able to see something like the following in the kernel log. click on Status and then on Kernel Log to see this log from the LuCi web interface.
  8. Note how the last line tells us that this new “RNDIS device” was bound to interface usb0.

The above messages will not be shown with IPhone tethering. Tethering instructions (abbreviated) used to correct this guide (2020/06/10): https://android.stackexchange.com/a/26650.

  1. The original forum thread: https://forum.openwrt.org/viewtopic.php?pid=173399#p173399.
  2. The old wiki archived page https://oldwiki.archive.openwrt.org/doc/howto/usb.tethering.
  3. A script that might enhance the experience (especially for iPhone users) https://github.com/LeJeko/OpenWRT-USB-Tethering.
  4. If your tethering connection fails every so often, and:.
  5. You see in your client devices that there is no internet connectivity, and. Your phone is still showing a good 4G/tower connection, and tethering enabled, and.
  6. Simply unplugging your tethering phone and plugging it back into the router fixes the problem.
  7. Then it might be fixed with the following solution:. Every 1 minute, the script will be run, ping WAN gateway, and if there are 5 consecutive failures, it will stop the network, power off the USB hub (which will terminate tethering on the phone), power it back on, then restart the network.This solution is much faster than restarting the whole router.
  8. Once you set up iPhone tethering as per above, you'll notice several issues:. usbmuxd needs to be started manually after every reboot. On iPhone, you need to set up trust again after every router reboot.
  9. If your cellular signal is weak, tethering will disconnect every now and then and you'll need to unplug and reconnect USB cable.

How to Increase USB Tethering Internet Speed?

OEMDriver URL
Acer https://www.acer.com/worldwide/support/
Alcatel Mobile https://www.alcatelmobile.com/support/
Asus https://www.asus.com/support/Download-Center/
Blackberry https://swdownloads.blackberry.com/Downloads/entry.do?code=4EE0932F46276313B51570F46266A608
Dell https://support.dell.com/support/downloads/index.aspx?c=us&cs=19&l=en&s=dhs&~ck=anavml
Fujitsu http://www.fmworld.net/product/phone/sp/android/develop/
HTC https://www.htc.com/support
Huawei https://consumer.huawei.com/en/support/index.htm
Intel https://www.intel.com/software/android
Kyocera https://kyoceramobile.com/support/drivers/
Lenovo https://support.lenovo.com/us/en/GlobalProductSelector
LGE https://www.lg.com/us/support/software-firmware
Motorola https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481/
MTK http://online.mediatek.com/Public%20Documents/MTK_Android_USB_Driver.zip (ZIP download)
Samsung https://developer.samsung.com/galaxy/others/android-usb-driver-for-windows
Sharp http://k-tai.sharp.co.jp/support/
Sony Mobile Communications https://developer.sonymobile.com/downloads/drivers/
Toshiba https://support.toshiba.com/sscontent?docId=4001814
Xiaomi https://web.vip.miui.com/page/info/mio/mio/detail?postId=18464849&app_version=dev.20051
ZTE http://support.zte.com.cn/support/news/NewsDetail.aspx?newsId=1000442

Save following script to some location that survives reboot, e.g. /etc/lockdown, and execute it after every reboot.It should keep tethering up and running as long as iPhone is connected.

Comments are closed.