GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - luci/python-adb: Python ADB + Fastboot implementation

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

117 Commits
117 Commits

Folders and files

NameName
Last commit message
Last commit date
adb
adb
 
 
.gitignore
.gitignore
 
 
CONTRIBUTORS
CONTRIBUTORS
 
 
LICENSE
LICENSE
 
 
README.rst
README.rst
 
 
WHITESPACE
WHITESPACE
 
 
adb_test.py
adb_test.py
 
 
common_mock.py
common_mock.py
 
 
coverage.sh
coverage.sh
 
 
fastboot_protocol.txt
fastboot_protocol.txt
 
 
fastboot_test.py
fastboot_test.py
 
 
filesync_protocol.txt
filesync_protocol.txt
 
 
high_test.py
high_test.py
 
 
parallel_test.py
parallel_test.py
 
 
set_pythonpath.sh
set_pythonpath.sh
 
 
setup.py
setup.py
 
 
sign_pythonrsa_test.py
sign_pythonrsa_test.py
 
 
smoke_test.py
smoke_test.py
 
 

Repository files navigation

python-adb

This repository contains a pure-python implementation of the ADB and Fastboot protocols, using libusb1 for USB communications.

This is a complete replacement and rearchitecture of the Android project's ADB and fastboot code available at https://github.com/android/platform_system_core/tree/master/adb

This code is mainly targeted to users that need to communicate with Android devices in an automated fashion, such as in automated testing. It does not have a daemon between the client and the device, and therefore does not support multiple simultaneous commands to the same device. It does support any number of devices and never communicates with a device that it wasn't intended to, unlike the Android project's ADB.

Pros:
  • Simpler code due to use of libusb1 and Python.
  • API can be used by other Python code easily.
  • Errors are propagated with tracebacks, helping debug connectivity issues.
Cons:
  • Technically slower due to Python, mitigated by no daemon.
  • Only one command per device at a time.
  • More dependencies than Android's ADB.
Dependencies:
  • libusb1 (1.0.16+)
  • python-gflags (2.0+)
  • python-libusb1 (1.2.0+)
  • python-progressbar (for fastboot_debug, 2.3+)
  • python-m2crypto (0.21.1+)

About

Python ADB + Fastboot implementation

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

3 stars

Watchers

10 watching

Forks

4 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.