A Python implementation of ADB with shell and FileSync functionality.
Project description
Documentation for this package can be found at https://adb-shell.readthedocs.io/.
This Python package implements ADB shell and FileSync functionality. It originated from python-adb.
Installation
pip install adb-shell
Example Usage
(Based on androidtv/adb_manager.py)
from adb_shell.adb_device import AdbDeviceTcp
from adb_shell.auth.sign_pythonrsa import PythonRSASigner
# Connect (no authentication necessary)
device1 = AdbDeviceTcp('192.168.0.111', 5555, default_timeout_s=9.)
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.)
device2.connect(rsa_keys=[signer], auth_timeout_s=0.1)
# Send a shell command
response1 = device1.shell('echo TEST1')
response2 = 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
adb_shell-0.1.3.tar.gz
(19.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
adb_shell-0.1.3-py3-none-any.whl
(35.6 kB
view details)
File details
Details for the file adb_shell-0.1.3.tar.gz.
File metadata
- Download URL: adb_shell-0.1.3.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1015baddf6d38ea517322569249ca2b39f78fb40b1eb45a52b8640ed88458b9b
|
|
| MD5 |
3d8cc1ca2d2fdd4991ac06545cab4754
|
|
| BLAKE2b-256 |
ac493ecbc0575d64689673ff063bfa090a620e2af5b53e8075120f895ded4406
|
File details
Details for the file adb_shell-0.1.3-py3-none-any.whl.
File metadata
- Download URL: adb_shell-0.1.3-py3-none-any.whl
- Upload date:
- Size: 35.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8a68b10ac3183ea82b0ac588bf8e47391c92c596e7df7f67bfe93d7f0cb27e9
|
|
| MD5 |
f66239376df525f6316d0274f3b3f104
|
|
| BLAKE2b-256 |
745dd881ee7d73f8059b1b9c636e4fd3b01a1dd8d91a1d868c356140829a9660
|