Skip to content

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

License

Notifications You must be signed in to change notification settings

congshengwu/ADBWifiScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages