Skip to main content

adbauto

ADB-based automation for Android emulators like LDPlayer

adbauto is a Python library that simplifies automation for Android games and apps running in emulators. It provides tools to connect to an emulator, capture screenshots, match UI elements visually, and simulate input like taps and scrolls.


🚀 Features

  • Connect to LDPlayer or other Android emulators via ADB
  • Capture screenshots directly from the device
  • Locate UI elements via OpenCV template matching
  • Simulate taps and scrolling actions
  • Designed for building automation scripts for games

📦 Installation

pip install adbauto

Note: Make sure ADB is installed and available in your system's PATH.


🧪 Example Usage

from adbauto import adb, screen, input

# Connect to emulator
device_id = adb.get_ldplayer_device()

# Take a screenshot
img = screen.capture_screenshot(device_id)

# Find a button on screen
center = screen.find_template(img, "button_template.png")

# Tap it if found
if center:
    input.tap(device_id, *center)

📂 Project Structure

adbauto/
├── adb.py       # ADB device connection and shell utilities
├── screen.py    # Screenshot capture and template matching (OpenCV)
├── input.py     # Tap and scroll input simulation
└── __init__.py  # Module exports

✅ Requirements

  • Python 3.8+
  • ADB installed and on PATH
  • opencv-python
  • numpy

📃 License

MIT License © Thomas Knoops

Metadata

Release files for adbauto 1.0.9

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

Source distribution (sdist)

Source distribution for adbauto 1.0.9
File Size Uploaded Provenance
adbauto-1.0.9.tar.gz 3.0 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for adbauto 1.0.9
File Interpreter ABI Platform
adbauto-1.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 6.0 MB

Release files / adbauto-1.0.9.tar.gz

Download URL adbauto-1.0.9.tar.gz
Size 3.0 MB
Tags Source
SHA-256 checksum
How to use checksums
7b8952b13f923ebbaf29916a23dcf9668ca17041040b71dda8d77507e46faa55
BLAKE2b-256 checksum
How to use checksums
f3c7860b819095bb61235b52282f0ce71b4633e66bdeb5ff41a6885d8f204a8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Release files / adbauto-1.0.9-py3-none-any.whl

Download URL adbauto-1.0.9-py3-none-any.whl
Size 3.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2940646eaaf837ae17aa3b58ba4c5f3a21b23e65cd5679ca9a11a94cd5a58d9f
BLAKE2b-256 checksum
How to use checksums
70140be59754ba91a91aae9d34fc4451707a5c902df1dd740fd1aecfe6c84d14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.11

Security for adbauto 1.0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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