How to Set Up and Use ADB Wirelessly With Android
ADB is a command line utility that facilitates communication between your Android device and a PC. The tool is often used in rooting Android, and flashing Android ROMs, but has many more use cases (more on this later).
The standard procedure to use ADB involves establishing a USB connection between your Android device and the PC. But here, you will learn how you can use ADB wirelessly.
How to Set Up ADB
If you have already set up ADB on your Android and PC, then you can skip this step. If you haven’t, there is a first time for everything!
To use ADB on your system, you first need to download and unzip the Android SDK Platform Tools from the Android developer website.
Mac users can use Homebrew to install ADB using the command: brew install homebrew/cask/android-platform-tools
On your Android device, you will need to enable USB debugging in the developer settings before you can connect the device over ADB.
Go to Settings > About phone then tap on the Build number several times. Once again, go to Settings > Developer options, then toggle on USB debugging.
Once that’s done, connect the Android device to your PC using a USB cable. Make sure to always allow the USB debugging prompt that will appear on your Android device.
Open the command line or Terminal and navigate to the Platform Tools folder.
If you’re on Windows, you can head to the downloaded Platform Tools folder and open the PowerShell window by pressing Shift and right-clicking anywhere in the folder, and selecting Open PowerShell Window here.
Now type adb devices in the command prompt and press Enter. If everything works the way it should, you will see your device’s serial number under the list of attached devices.
How to Use Android ADB Wirelessly
Now comes the meat of the matter, which is how you can establish a wireless ADB connection with your Android. Once you have set up the ADB and connected the Android device to your PC, follow the steps below to use ADB wirelessly.
Type adb tcpip 5555 in the command line or Terminal and press Enter.
- Find your phone’s IP address in Settings > About Phone > Status > IP Address.
Back in the command line or Terminal, type adb connect [your Android’s IP address].
- Finally, press Enter again.
The Android device should now be connected to ADB over a wireless connection. You can safely remove the USB cable.
Is Android ADB Not Working?
If your Android device won’t connect to Windows over ADB (ie. you are getting errors in the command line), you can try installing Minimal ADB and Fastboot from xda-developers. This package installs the necessary Android drivers and might help you get rid of any command line error.
Alternatively, you can use WebADB, which brings all the ADB functionality over to your web browser. The online tool also allows you to run ADB over Wi-Fi. In other words, you can skip installing the ADB altogether.
What Can You Do With ADB?
A popular misconception is that Android ADB is only useful when rooting Android. However, that is just one of the many applications of the Android Debug Bridge.
You can, for instance, remove pre-installed apps from your non-rooted Android with an ADB command. Some Android smartphones make it impossible to uninstall unwanted apps, ADB can help you there.
The command line utility can also be used to mirror your Android screen to a PC without rooting. You can achieve this with a free tool called Scrcpy. The tool works absolutely amazingly with a wireless ADB connection.
If you own an Android TV, you can sideload apps using ADB. However, connecting your PC to an Android TV is not feasible, that’s where you can set up the wireless ADB. The steps will remain the same as mentioned above.
Is ADB Safe to Use?
If you are someone with knowledge of ADB commands, using the utility won’t be a problem. However, if you are new to this space, there are risks with using ADB. Entering the wrong commands could cause issues on your device, or brick your phone at worst, especially if you are trying to root your device.
Though setting up wireless ADB won’t cause any issues on your Android device, you should always keep your data backed up on the cloud or on external storage as a safety precaution.
via MUO – Feed https://ift.tt/1AUAxdL
July 22, 2021 at 11:38AM