When using ADB, you can send and execute commands from your computer to your Android device over a wireless connection. This is a really useful feature, as it makes it easier to manage your devices. However, not many people talk about this feature.
With ADB wireless, you can take screenshots, install apps, remove apps, and more right from your computer wirelessly.
Use ADB Wirelessly For Non-rooted Android Devices
If you haven’t rooted your Android device or you don’t know what it is, then there’s an extra step you need to follow before you’re able to use ADB wirelessly. ..
To connect your Android device to your computer using a USB cable, first make sure that the ADB server is running on your computer. If the ADB server isn’t already running, you can start it by opening a command prompt (on Windows) or terminal (on Mac and Linux) and typing “adb start-server”. ..
Initiating The ADB Setup Over a USB Connection
To install the package:
- Head over to the ADB website and download the package on your computer.
- Launch the Settings app on your Android device, tap on Developer options, and enable the option that says USB debugging. This is the option that lets you connect your computer to your Android over ADB.
- Connect your Android device to your computer using a USB cable.
- Open a command prompt window on your computer and type adb install -r <package_name> . For example, if you downloaded the package named “MyPackage,” you would type adb install -r MyPackage .
- When installation is complete, disconnect your Android device from your computer and reboot it into recovery mode by pressing and holding Volume Down + Power buttons together until you see a message saying “Android has started recovery.” Then release both buttons.
- From recovery mode, select “Wipe data/factory reset” and press OK . Select “Yes — delete all user data” when prompted to confirm that you want to wipe all user data. Press OK again to reboot into normal mode. ..
Plug your Android device into your computer using a USB cable. In the Command Prompt window or Terminal window, type in the following command and hit Enter. adb devices ..
If you have a device that has USB debugging enabled, you can check the box and tap on OK to enable it.
You can use the adb tcpip command to connect your Android device to a remote computer.
You’ve successfully set up the ADB service on port number 5555. ..
Finding Out The IP Address Of The Android Device
To find out the IP address of your device, you’ll need to open a command prompt and type adb shell getprop com.android.provider.adb.IPAddress
Make sure your device is connected to the same wireless network as your computer.
In the About phone section, you’ll find a list of your device’s settings. Scroll down to the bottom and tap on “Security.” You’ll now see a list of security options, including your password and account lock. You can choose to keep these settings private or share them with others.
If you have a 3G or 4G network, you will see a message that says “3G/4G Network Available.” If you don’t have a 3G or 4G network, you will see a message that says “No Service.” To check your network status, tap on the Status option on the following screen. If you have a 3G or 4G network, you will see a message that says “3G/4G Network Available.” If you don’t have a 3G or 4G network, you will see a message that says “No Service.” ..
Scroll down on the following screen and you’ll find an entry saying IP address. This is the address you’ll be using so note it down somewhere. ..
You need to establish a connection between two machines on your network in order to use the device.
Connect Wirelessly To An Android Device Using ADB
To enable USB debugging on your Android device, you’ll need to go to Settings > Developer Options and turn on “USB Debugging.” Once you’ve enabled USB debugging, you’ll be able to send a request from your computer to your device using the ADB command line tool. ..
adb connect IP
If all goes well, the command line will output a message saying you have connected to the specified IP address. ..
You can issue ADB commands to your Android phone by using the ADB command line tool. By using the ADB commands, you can access all of the features of your Android device.
Use ADB Wirelessly For Rooted Android Devices
If you’ve gained root access on your device, then connecting to your device from your computer won’t require the server initialization process. This means you won’t need to first connect the device using a USB cable. ..
You’ll need the IP address of your device to troubleshoot or fix the issue.
If you’re having trouble connecting to your device, check out our troubleshooting guide.
You can now run any of the commands you want on your device. Additionally, because your device is rooted, you can even run commands that require superuser permissions. ..
What ADB Commands To Try Out First
First, you can run the adb shell command to get a shell on your device. This will allow you to run commands that are specific to your device. You can also use this shell to sideload applications and manage settings on your device.
Reboot the device: adb reboot Send a file to the device: adb push source target Get a file from the device: adb pull source target Install an app: adb install app-name.apk Uninstall an app: adb uninstall package-name ..
When you’ve finished, disconnect from your Android device by running the adb disconnect command.