How to enable/disable ADB via WiFi on Android without root? And with root?
DB is a common term among Android users who are into advanced topics like customization, flashing, root and more.
Basically, ADB is a bridge between your computer and your Android device. ADB allows you to modify the software on your Android device via the command line of your PC. The ADB usually comes with the Google Android SDK and even allows you to run Shell commands on your device through the command line.
Although the ADB comes with the Android SDK, you do not need to have the full SDK to use the ADB. You can download a small, portable version that only includes the ADB and Fastboot (required for flashing through fastboot mode) from here: Portable ADB & Fastboot.
Conventionally, ADB is used by connecting your Android with USB debugging enabled via a USB cable to your PC, then opening the system prompt (cmd) and entering the folder containing the ADB files.
The use is very simple once executed “cmd” we write in the terminal cd + the path of the folder. And we are already inside the folder that contains the ADB files.
But we all know that using a USB cable is thorough and we like to go wireless, and this is possible even with ADB when enabling ADB via Wifi on your Android. Both the PC and Android need to be connected to the same Wi-Fi network for this to work.
Note: You must take into account that when using ADB over Wi-Fi, your device is exposed to threats from other people who know the IP address of your device and are connected to the same Wi-Fi network. They can execute ADB commands on your device without your knowledge.
ADB through WiFi can be enabled on Android both in rooted and unbroken devices.
Enabling ADB over Wifi on Android no root
Step 1: Enable USB debugging (Android Settings> Developer options> Check Enable USB debugging).
Step 2: Connect your device to the PC via USB.
Step 3: Open the command prompt> navigate to the folder that contains ADB and type:
adb tcpip 5555
This will give you a result:
restarting in TCP mode port: 5555
Quick tip: in Windows 7, 8, 8.1 and 10 to open a command prompt (cmd) in a folder, hold the Shift key> right click anywhere> “Open the command window here” or “Open the Powershell window here.” Then you do not have to use the ‘cd’ command to navigate to the folder.
Step 4: Now find the IP address of your Android in Settings> Wifi> Advanced. Write down your IP address. In some versions of Android, it is included in Wi-Fi Preferences.
Step 5: At the command prompt, type:
adb connect <IP address>
Replace <IP Address> with the one you pointed to previously.
This would give you a result:
connected to <IP address>
Step 6: Now, to verify if you are connected to ADB via WiFi, disconnect your USB device and write:
This should give you a result:
You have successfully enabled the connection to ADB through the WiFi network of your Android.
Disable ADB over WiFi in Android not rooted
Step 1: Open the command prompt in the ADB folder.
Step 2: On the console (cmd), type:
You have successfully disabled ADB through Wifi on your Android.
Enabling ADB over Wifi on an Android device with root
Step 1: Visit Play Store and find the ADB Wifi application and install it.
Step 2: Open it and accept root permissions.
Step 3. Click on the red icon to enable ADB via WiFi.
Step 4: Open the command prompt inside the ADB folder and enter the following command:
adb connect <IP address>
Replace <IP Address> with the one that shows the application.
Disable ADB over Wi-Fi on broken Android devices
Step 1: Open the application again and click on the green button to disable ADB via WiFi.
With all this, he has learned how to enable and disable ADB over Wi-Fi on rooted and unrooted Android devices.