

device ( "emulator-5554" ) List all devices ( adb devices ) and install/uninstall an APK on all devices from ppadb.client import Client as AdbClient apk_path = "example.apk" # Default is "127.0.0.1" and 5037 client = AdbClient ( host = "127.0.0.1", port = 5037 ) devices = client. version ()) > 39 Connect to a device from ppadb.client import Client as AdbClient # Default is "127.0.0.1" and 5037 client = AdbClient ( host = "127.0.0.1", port = 5037 ) device = client. Python 3.6+ Installation $pip install -U pure-python-adb Examples Connect to adb server and get the version from ppadb.client import Client as AdbClient # Default is "127.0.0.1" and 5037 client = AdbClient ( host = "127.0.0.1", port = 5037 ) print ( client. This package supports most of the adb command line tool’s functionality.

Now you can use pure-python-adb to connect to adb server as adb command line You can use it to communicate with adb server (not the adb daemon on the device/emulator).

This is pure-python implementation of the ADB client. The package name has been renamed from ‘adb’ to ‘ppadb’įrom version v0.2.1-dev, the package name has been renamed from ‘adb’ to ‘ppadb’ to avoid conflit with Google google/python-adb Introduction
