Skip to content

Latest commit

 

History

History
48 lines (26 loc) · 1.22 KB

README.md

File metadata and controls

48 lines (26 loc) · 1.22 KB

ADBWifiScript

A python script that runs several adb commands to connect the Android device over wifi.

Environment:

Python 2/3, ADB tools.

Phone Setting:

USB debug mode must be turned on in the Developer options from phone setting.

Connect your Android device to your PC via USB cable, and make sure they are in the same Wifi network.

How to use:

If the Environment and Phone Setting is ready, download the file adb_wifi_script.py to your local computer.

Run python adb_wifi_script.py.

The script will obtain the IP address of your phone via adb command, and connect your phone to your PC over Wifi, the wireless debugging will be available.

The adb commands used in this script:

adb version

adb start-server

adb devices

adb shell ip addr show wlan0

adb tcpip {port}

adb connect {ip}:{port}

adb disconnect {ip}:{port}

ADB commands reference:

https://adbshell.com/commands

Screenshots:

connected:

Connected

disconnected:

Disconnected