pilotdroid (python)
uiautomator2-compatible Python client over the pilotdroid device agent.
Persistent socket, no per-op uiautomator server — ~10x device-op latency vs
stock u2 (see repo spike/e2e/RESULTS-*.md).
Install
pip install ./python # local checkout
pip install msgpack # sole runtime dep (auto-installed by pip)
Deploy agent + connect
./agent/scripts/deploy-agent.sh <serial> # pushes jar, starts app_process agent
adb forward tcp:17932 localabstract:pilotdroid_agent
import pilotdroid
d = pilotdroid.connect(port=17932, serial="ba0d072d")
d(text="OK").click()
d(className="android.widget.TextView", index=1).exists # property, u2-style
d(scrollable=True).scroll.forward()
d.app_start("com.android.settings"); d.app_current()
d.set_text("你好") # ACTION_SET_TEXT — unicode works, no IME needed
d.screenshot("shot.jpg", scale=0.5)
Supported selector keys
text, resourceId, description, className, packageName, scrollable, index
(AND semantics; index = nth match). xpath is not supported
(u2 xpath is an optional plugin, not core).
See compat/u2shim.py docstring for the full covered API surface.
Metadata
Release files for pilotdroid 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pilotdroid-0.6.1.tar.gz | 24.4 kB | Without provenance | Details for pilotdroid-0.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pilotdroid-0.6.1-py3-none-any.whl | Python 3 | none | any | Details for pilotdroid-0.6.1-py3-none-any.whl |
Total release size: 47.8 kB
Release files / pilotdroid-0.6.1.tar.gz
| Download URL | pilotdroid-0.6.1.tar.gz |
|---|---|
| Size | 24.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86112fff75b07a3c0a36be1ab0bcca7a5e8022ad42eeb22afb99748591df5956
|
|
BLAKE2b-256 checksum How to use checksums |
84d33432e6dc7f749790506edb53c9d872e9be8aee89b30eb9f8ae2a88f3f98c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / pilotdroid-0.6.1-py3-none-any.whl
| Download URL | pilotdroid-0.6.1-py3-none-any.whl |
|---|---|
| Size | 23.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e19ffd40410ab871a1302e37c61bd1eafe4b89e15563f8b33ceefbf7a215284c
|
|
BLAKE2b-256 checksum How to use checksums |
dc8ccffbce205cd81822376298ff70615f7d46cf1f0b1c5f7c42bfbd9f21713c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Security for pilotdroid 0.6.1
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.