Skip to content

Instantly share code, notes, and snippets.

@Bodix
Last active December 24, 2020 01:52
Show Gist options
  • Save Bodix/a833a8118a859185d83919892bef8813 to your computer and use it in GitHub Desktop.
Save Bodix/a833a8118a859185d83919892bef8813 to your computer and use it in GitHub Desktop.
ADB over Wi-Fi

Usage

  1. Install Terminal Emulator for Android on your phone (requires root-access).
  2. Open terminal emulator on your phone and enter the following commands:
    su
    setprop service.adb.tcp.port 5555
    stop adbd
    start adbd
    
  3. Find the IP address on your phone.

    For example, on Xiaomi Redmi Note 5 IP address is in Settings > About phone > All specs > Status > IP adress.

  4. Run Start ADB server.bat and wait for the request to enter the IP address.
  5. Enter the IP address.
  6. Done.
@echo off
echo "Killing the old ADB server"
adb kill-server
echo "Starting the new ADB server"
adb tcpip 5555
set /P ip="Enter the device IP address: "
echo "Connecting device"
adb connect %ip%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment