Skip to main content

easy-adb

Introduction

easy-adb is a tool written in Python that simplifies the use of Android Debug Bridge (ADB) commands.

With this tool, you can easily perform tasks such as starting an ADB server, connecting to an Android device, and executing ADB commands using Python code.

Important : This project does not contain any content from the Android SDK Platform-Tools. Necessary libraries must be downloaded separately by the download_adb_binary command.

Installation

If Python >= 3.9 is installed, you can install easy-adb with the following command:

pip install easy-adb

Usage

easy-adb can be used through a command-line interface (CLI).

Here is the basic way to use easy-adb:

python -m easy_adb.cli --ip [device IP] --port [port number] --adb-command [ADB command to execute]

replace [device IP], [port number], and [ADB command to execute] with the actual values.

or you can use easy-adb in Python code:

from easy_adb import run_adb_server, set_signer, connect_device, send_command, download_adb_binary

# equivalent to: easy-adb --ip 192.168.0.1 --port=5555 --adb-command="getprop ro.product.model"

# download_adb_binary()  # optional
run_adb_server()
test_device = connect_device(set_signer(), "192.168.0.1", 5555)
result = send_command(test_device, "getprop ro.product.model")

Features

easy-adb provides the following features:

  • ADB Server Management: Start the ADB server from Python code.
  • Device Connection Management: Connect to Android devices using WI-FI IP address and port number.
  • ADB Command Execution: Execute ADB command and retrieve output.

License

This project is distributed under the LGPLv3 license. See the LICENSE file for details.

Disclaimer

Please note that the easy-adb library does not take any responsibility for the download and use of the Android SDK Platform-Tools.

Users are responsible for ensuring that they download and use these tools in a manner that is in compliance with the terms and conditions set forth by the original provider.

Contact

For bug reports about this project, please submit them through the GitHub issue tracker.

Metadata

Release files for easy-adb 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for easy-adb 0.1.1
File Size Uploaded
easy-adb-0.1.1.tar.gz 14.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for easy-adb 0.1.1
File Interpreter ABI Platform
easy_adb-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 28.8 kB

Release files / easy-adb-0.1.1.tar.gz

Download URL easy-adb-0.1.1.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d1f07962364ca3075f92d7d0cb59c37c24b0391fcaa46ca737c718c3986b38e1
BLAKE2b-256 checksum
How to use checksums
23f6bd97d556f49e9c62c6856ef7da02b9de77175d8e2c1b2adc44400177c00c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release files / easy_adb-0.1.1-py3-none-any.whl

Download URL easy_adb-0.1.1-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f8a912fd1e86e7bbad0f709956b0ea5b869061c64cb9bcce5df19b99fd6bc17
BLAKE2b-256 checksum
How to use checksums
48d0794f33b05fac200dcd6f1c097373fbeb2c8305a2d49197a5fff562b6683b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page