20 votes

Automatically enable USB tethering when device is plugged into a PC

Having tried multiple answers to this question and never getting it to work, I noticed on my Xiami phone running MUI 11 (Android 9) that turning on "Developer Options" now has an option for the ...
Dan's user avatar
  • 201
14 votes

USB internet option for tethering greyed out. How to fix it?

I wrestled with greyed-out USB tethering for 3 days. I factory reset, changed VPN settings (when for an unknown reason I lost data capacity), read all the forums, etc. It's embarrassing. Despite ...
Colin McMahon's user avatar
11 votes

Automatically enable USB tethering when device is plugged into a PC

Developer options settings has a setting to set default USB configuration. Its name could vary depending upon your ROM, so try looking for any setting having the name "USB configuration" ...
Firelord's user avatar
  • 25.1k
11 votes

How to set up reverse tethering over USB?

I know this is an even later answer, but it is worth mentioning it. No rooting needed! No app installation needed!* Which is not even possible if you do not have some other internet connection. ...
ffonz's user avatar
  • 241
9 votes

How to use Windows' internet on Android phone through USB cable

There is a solution for unrooted devices I know this is a late answer, but as all existing answers suggest that USB reverse tethering is only possible if either your device is rooted or has system ...
FD_'s user avatar
  • 271
8 votes
Accepted

Activate USB tethering from the command line

If your Android version has svc inbuilt utility, run this command: adb shell svc usb setFunctions rndis This would enable USB tethering. To see what other USB functions are available, run: adb shell ...
Firelord's user avatar
  • 25.1k
8 votes
Accepted

How to change the default hotspot DHCP IP address range on Android?

NOTE: Root is required. Default DHCP IP address range is hard-coded (1), you can't change it without rebuilding ROM with modified source code. Or use a little hack. When you switch on tethering, ...
Irfan Latif's user avatar
  • 20.4k
8 votes

USB Tethering option (to share internet connection with PC) is greyed out

Most probably these question+answer will be deleted as duplicates, so please do not vote here. But if the answer is useful - add your upvote here: https://android.stackexchange.com/a/252613/251126 in ...
maxkoryukov's user avatar
6 votes

Automatically enable USB tethering when device is plugged into a PC

You can do this using the Interact block in Automate. Then it does not require root. Here is a flow to do just that. I first got the idea from a post by llamalab on androidforums. Here are two ...
rudolfbyker's user avatar
5 votes

USB internet option for tethering greyed out. How to fix it?

When "Data saver" is turned on, USB Tethering is not allowed. Turn it off and you may be able to USB Tether (Android AOSP 7.1): Settings Data usage Tap "Data saver" Tap "Off&...
Kevin Driedger's user avatar
5 votes

Port forwarding to USB Tether

That should be possible and requires a reverse port forward, which can be setup with adb: Run this command on your Raspberry Pi: adb reverse tcp:<remote> tcp:<local> where <remote> ...
Eugen's user avatar
  • 254
4 votes

Activate USB tethering from the command line

this is device independent (toggles USB tethering) adb shell am start -n com.android.settings/.TetherSettings && adb shell input keyevent 20 && adb shell input keyevent 20 && ...
Zibri's user avatar
  • 173
3 votes

reverse usb tethering works, but no internet

You just need to configure the dhcp. Open Terminal emulator and type in: su . The $ will change to #. Type the following command in Terminal Emulator: netcfg rndis0 dhcp The name for usb ...
xavier_fakerat's user avatar
3 votes

USB internet option for tethering greyed out. How to fix it?

Unplug the USB. From Settings > Developer options, enable it by switching the "on" option at the top. Connect the device with USB. When asked, choose "MTP". The USB tethering ...
Ali Ghanavatian's user avatar
3 votes

How can I enable USB tethering through ADB?

adb shell am start -n com.android.settings/.TetherSettings && adb shell input keyevent 20 && adb shell input keyevent 20 && adb shell input keyevent KEYCODE_ENTER && ...
Zibri's user avatar
  • 173
3 votes

Port forwarding during USB tethering

There are 2 adb commands: adb forward adb reverse As you mentioned in the comment, you are probably looking for adb reverse which works like this: adb reverse tcp:<remote> tcp:<local> ...
Eugen's user avatar
  • 254
3 votes

How to set up reverse tethering over USB?

For unrooted devices I know this is a late answer, but as all existing answers suggest that USB reverse tethering is only possible if either your device is rooted or has system support for reverse ...
FD_'s user avatar
  • 271
3 votes

Activate USB tethering from the command line

Modified to use windows timeout command instead of sleep, wake screen first, and only press down once. Twice down enabled wifi tethering on my phone. adb shell input keyevent KEYCODE_WAKEUP &&...
idkaaa's user avatar
  • 31
3 votes
Accepted

How to run a script in background from adb shell?

Processes receive signals from other processes or kernel as a warning or as a request to make some change in state. Receiving processes can block, ignore or catch signals, except SIGKILL which does ...
Irfan Latif's user avatar
  • 20.4k
2 votes

Activate USB tethering from the command line

The service method did not work for me on my Samsung device. I figured out how to do it by configuring the network interface directly, though. Here is a script that sets up a Linux machine and a USB-...
Vladimir Panteleev's user avatar
2 votes
Accepted

How to USB tether on a Samsung Galaxy Tab A?

You can enable usb tethering through adb shell. Root is needed in order to execute these commands: After adb setup on your machine (if you haven't already setup adb, please see detailed instructions ...
xavier_fakerat's user avatar
1 vote

Data Drops when tethering

It could be that your ISP has different APN configs for normal data usage, and the other specifically for tethering plan. As such I'd recommend fistly to check the APNs and see if there have the DHCP ...
xavier_fakerat's user avatar
1 vote
Accepted

Enable “USB Internet” for Android 6.0

Not using Reverse Tethering NoRoot, there are two ways to make reverse tethering. Method 1: It requires Android 5.0+, a 20KB .apk to install, and a command-line PC program (1MB). You can use Gnirehtet ...
Zackary's user avatar
  • 413
1 vote

Mobile phone internet USB tethering very slow

Mobile network carrier often have transparent gateways installed all mobile network traffic have to pass. Such gateways are able to "detect" (smart guessing) if traffic comes from the Smartphone or a ...
Robert's user avatar
  • 20.1k
1 vote
Accepted

Possible to share Tmobile Internet using my Android (Moto Z2 Play NO ROOT) via a USBC > Ethernet > Laptop?

I use an app called pdanet+ to share hotspot through WiFi, or usbc cable. All you have to do, is download the app onto your phone, and also download it onto your laptop from here. You will then be ...
aBochur's user avatar
  • 2,539
1 vote

How can I enable USB tethering through ADB?

Root is needed in order to execute these commands: The following commands call ConnectivityManager.setUsbTethering(boolean enable) in Android 4.3: adb shell su -c service call connectivity ...
xavier_fakerat's user avatar
1 vote
Accepted

Tethered VPN Connection

You can try changing the DNS servers of the wifi connection. To change the DNS settings: Open the Settings on the device. Select “Wi-Fi”. Long press your current network, then select “Modify network”...
xavier_fakerat's user avatar
1 vote

Android as WiFi adapter?

Yes, this is possible. Plug your phone into your laptop On your phone, go to settings In the wireless & networks area, more -> Tethering & portable hotspot Enable USB tethering
Joe's user avatar
  • 338
1 vote
Accepted

How to setup a reverse USB tethering connection (multiplatform)?

For documentation purposes here is an expanded version of the comments. Option 1: SimpleRT does work and the device gets an IP on the local network which is a plus. On the downside, it supports a ...
George Profenza's user avatar
1 vote

What's the reason Android Reverse Tethering require root?

ReverseTethering does not require root. If your device runs ICS or newer. A few months ago, I was wondering the very same thing and started to investigate. Eventually, I started to develop my own ...
FD_'s user avatar
  • 271

Only top scored, non community-wiki answers of a minimum length are eligible