Home - shivamprasad1001/adb-wireless-toolkit GitHub Wiki

Welcome to the adb-wireless-toolkit wiki! You can absolutely use ADB wirelessly over Wi-Fi without a USB cable once you set it up. Here’s how to do it step-by-step:


How to Use ADB Wirelessly Over Wi-Fi (No USB Cable Needed After Setup)


⚠️ Prerequisite: You need to connect with USB once to enable wireless debugging initially.


Step 1: Connect your phone via USB to Linux

Make sure USB debugging is enabled (from Developer Options).


Step 2: Find your phone’s IP address on Wi-Fi

On your phone:

  • Go to Settings > Wi-Fi > [Your Connected Network] > Advanced
  • Note your phone’s IP address (e.g., 192.168.1.15)

Step 3: Enable TCP/IP mode on ADB (using USB connection)

Run this command in your Linux terminal:

adb tcpip 5555

This restarts ADB daemon on your phone to listen for Wi-Fi connections on port 5555.


Step 4: Disconnect USB cable

Unplug your phone from USB.


Step 5: Connect to phone over Wi-Fi

Run:

adb connect <PHONE_IP_ADDRESS>:5555

Example:

adb connect 192.168.1.15:5555

Step 6: Verify connection

Run:

adb devices

You should see your phone’s IP address listed as connected.


Step 7: Use ADB commands wirelessly

Now you can run all ADB commands just like USB, but over Wi-Fi.


Step 8 (Optional): To disconnect Wi-Fi debugging

Run:

adb disconnect <PHONE_IP_ADDRESS>:5555

Or disable Wi-Fi debugging from phone’s Developer Options.


Troubleshooting Tips:

  • Make sure phone and PC are on same Wi-Fi network
  • If connection fails, run adb kill-server then try adb connect again
  • Wireless ADB can be slightly slower and less stable than USB

Here are some example ADB commands you can run wirelessly once your phone is connected over Wi-Fi:


🔥 Wireless ADB Command Examples

Absolutely! Here’s a handy list of useful ADB commands you can use daily to interact with your Android phone from Linux—without installing any extra apps on your phone.


1. Check connected devices

adb devices

Lists devices connected and authorized.


2. Take a screenshot and save to PC

adb exec-out screencap -p > screenshot.png

Saves current phone screen as screenshot.png on your Linux machine.


3. Record screen (stop with Ctrl+C)

adb shell screenrecord /sdcard/screenrecord.mp4

Then pull the file to PC:

adb pull /sdcard/screenrecord.mp4

4. Simulate screen tap at (x, y)

adb shell input tap 500 1000

Tap at pixel coordinates (500, 1000).


5. Simulate swipe (from x1,y1 to x2,y2)

adb shell input swipe 300 1000 300 500

Swipe up gesture.


6. Type text

adb shell input text "HelloWorld"

Types “HelloWorld” wherever the cursor is.


7. Press Enter key

adb shell input keyevent 66

8. Unlock phone (simulate swipe up)

adb shell input swipe 300 1000 300 500

9. Open app (example: Chrome)

adb shell monkey -p com.android.chrome -c android.intent.category.LAUNCHER 1

10. Go to home screen

adb shell input keyevent 3

11. Turn screen off/on

  • Turn off:
adb shell input keyevent 26
  • Turn on (press power button again):
adb shell input keyevent 26

12. Get device info

adb shell getprop ro.product.model
adb shell getprop ro.build.version.release

13. List installed packages

adb shell pm list packages

14. Pull file from phone

adb pull /sdcard/Download/file.txt

15. Push file to phone

adb push myfile.txt /sdcard/Download/

Bonus: Open shell on your phone

adb shell

Then you can run Linux-like commands on the phone.