Simple Windows Script to enable USB Tether in your phone through your PC.
This script uses ADB (Android Debug Bridge) to communicate with the phone and execute SVC Shell commands.
To run ADB commands, you'll need the platform tools SDK.
You must either place the script in the same folder as adb.exe
or to put it in the PATH so you can use ADB commands anywhere in your system.
In your phone, unlock the developer options (the method to unlock varies in each Android version) and enable USB Debugging
, then connect your phone to your PC with an USB cable.
Install the requisites and execute the script.
You can also add a shortcut of the script on the startup programs so it opens with Windows.
The script searches for Android devices connected via USB and if it doesn't find any in 5 tries, it closes, but if it does, it enables USB Tethering.
- Programming Language: Batchfile
- Tested OS: Windows 10
- Other: ADB platform Tools SDK
- Recommended IDE: Windows Notepad