GithubHelp home page GithubHelp logo

minwook-shin / easy-adb Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 37 KB

Easy to use ADB commands in Python 3

Home Page: https://pypi.org/project/easy-adb

License: GNU Lesser General Public License v3.0

Python 100.00%

easy-adb's Introduction

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.

easy-adb's People

Contributors

minwook-shin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.