Skip to main content

Autodroid

pip install autodroid

Usage

device = ur serial number (the device u wanna control)

swipe()

swipe(x1, y1, x2, y2, duration, device=xxxxxxxxxxxxxxx) x1, y1, x2, y2 = position, from - to (must be integer) duration = amount of time swiped (in milliseconds not seconds)

Example:

swipe(520, 1730, 520, 400, 1000)

tap()

tap(x, y, device=xxxxxxxxxxxx) x, y = position (must be integer)

Example:

tap(173, 200)

screenshot()

screenshot(device=xxxxxxxx) saves to /sdcard/autodroid/screencap

holdtap()

holdtap(x, y, duration, device=xxxxx) x, y = position (must be integer) duration = amount of time held (in milliseconds)

Example:

holdtap(167, 853, 4000, device=ABCD123)

type()

type(text, device=xxxxxxxxxxxxxxxx) text = the text you want to type (must be string)

Example:

type("hello world", device="abcd1234")

get_connected_devices()

get_connected_devices() prints the connected device S/N

scrcpy()

scrcpy(device=xxxxx) starts a session of scrcpy

key()

key(device=xxxxx) executes a key event

Key Name Alternate Names Key Code
Home – 3
Back – 4
Recent Apps recent, recents 187
Power pwr 26
Volume Up v_up, vol_up 24
Volume Down v_down, vol_down 25
Mute – 164
Media Play mplay, play 85
Wake wakeup 224

Example:

key("pwr", device=xxxxxxxxx)

ADDED MULTI-DEVICE SUPPORT

Metadata

Release files for autodroid 3

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

Source distribution (sdist)

Source distribution for autodroid 3
File Size Uploaded Provenance
autodroid-3.tar.gz 1.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 3.7 kB

Release files / autodroid-3.tar.gz

Download URL autodroid-3.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
bd1919c70a56353d49262222f9fca76f1d2db5cd005d3023ae8e5af4de4d8e03
BLAKE2b-256 checksum
How to use checksums
aa27bd873afc73577620098cd66e79d177719ba301813e485b795926150bc397
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Release files / autodroid-3-py3-none-any.whl

Download URL autodroid-3-py3-none-any.whl
Size 1.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43d4d62fd2b4c66655dbd283be51cc4b6241905a397a593791174a1dcf778f73
BLAKE2b-256 checksum
How to use checksums
b36f82f3d11e3db52c08bdb9b23a3a9afb7d834d24302b2cf123adce2bfedf81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Security for autodroid 3

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