A Python implementation of ADB with shell and FileSync functionality.
Project description
Documentation for this package can be found at https://aio-adb-shell.readthedocs.io/.
This Python package implements ADB shell and FileSync functionality. It originated from python-adb.
Installation
pip install aio-adb-shell
Example Usage
(Based on androidtv/adb_manager.py)
from aio_adb_shell.adb_device import AdbDeviceTcp
from aio_adb_shell.auth.sign_pythonrsa import PythonRSASigner
# Connect (no authentication necessary)
device1 = AdbDeviceTcp('192.168.0.111', 5555, default_timeout_s=9.)
await device1.connect(auth_timeout_s=0.1)
# Connect (authentication required)
with open('path/to/adbkey') as f:
priv = f.read()
signer = PythonRSASigner('', priv)
device2 = AdbDeviceTcp('192.168.0.222', 5555, default_timeout_s=9.)
await device2.connect(rsa_keys=[signer], auth_timeout_s=0.1)
# Send a shell command
response1 = await device1.shell('echo TEST1')
response2 = await device2.shell('echo TEST2')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aio_adb_shell-0.0.1.tar.gz
(22.5 kB
view details)
Built Distribution
File details
Details for the file aio_adb_shell-0.0.1.tar.gz
.
File metadata
- Download URL: aio_adb_shell-0.0.1.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80d66c67fdabe082a9bafd6932b464b505e97e800dbb8934165c4ff0d4a49472 |
|
MD5 | 65881620b18c8f5fe17d1e9da0ff412a |
|
BLAKE2b-256 | 7ec6a9f813db083427d8946965b7acd9a3e8a31fb48382e805adba0801c92d47 |
File details
Details for the file aio_adb_shell-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: aio_adb_shell-0.0.1-py3-none-any.whl
- Upload date:
- Size: 30.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4d5eef31ca70b268d8ebc2fb3c3eb618141422e9698455223f018b014eb12da |
|
MD5 | 98ebc7a6ae5da5a349652863b20d5b70 |
|
BLAKE2b-256 | a02ff13080110ff522fabdffda645194ab7376df3efc31de99a8b0b210cb6b15 |