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.
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.
- USB tethering is known to be problematic on iOS 14 devices.
- works without patch on latest trunk 01/2022, 21.02.1 needs patch.
- Connecting your whole network to the Internet using the Smartphone might consume your monthly traffic quota very fast.
- 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.
- Provide USB tethering support for Android 8/10 with RNDIS:. Extra steps depending on USB type and drivers for your router:.
- Additional steps for iOS devices:. If you need to manually download the packages on another device for bootstrapping, see get_additional_software_packages.
- 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/.
- 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).
- iPhones starting from iOS 11 will terminate the USB data connections after one hour by default to improve security.
- 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.
- This can easily be changed via:. Settings > Touch ID/Face ID & Passcode > USB Accessories > ON (macworld).
- On the router, enter:. For IPhones, replace the interface name usb* with eth* depending on router.
- 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).
- 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.
- 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.
- And, for some cases, the new interface may be called '*eth1*: check what the log is showing in your case).
- 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.
- 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.
- 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.
- 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.
- 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.
- The original forum thread: https://forum.openwrt.org/viewtopic.php?pid=173399#p173399.
- The old wiki archived page https://oldwiki.archive.openwrt.org/doc/howto/usb.tethering.
- A script that might enhance the experience (especially for iPhone users) https://github.com/LeJeko/OpenWRT-USB-Tethering.
- If your tethering connection fails every so often, and:.
- 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.
- Simply unplugging your tethering phone and plugging it back into the router fixes the problem.
- 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.
- 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.
- 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?
|MTK||http://online.mediatek.com/Public%20Documents/MTK_Android_USB_Driver.zip (ZIP download)|
|Sony Mobile Communications||https://developer.sonymobile.com/downloads/drivers/|
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.