All Projects → JeffLIrion → Adb_shell

JeffLIrion / Adb_shell

Licence: apache-2.0
A Python implementation of ADB with shell and FileSync functionality.

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Adb shell

Build fwul
NEW LOCATION *** NEW LOCATION !! https://code.binbash.it:8443/FWUL/build_fwul || . . . . . . . . . . . . FWUL - the most reliable adb/fastboot live system ever - to manage ANY Android without driver hassle
Stars: ✭ 70 (-52.7%)
Mutual labels:  adb
Androidcontrol
超强群控,可以实时查看和控制安卓手机的安卓远程控制软件,致力于完成一个高端的安卓群控软件 可以群控,录制运行脚本等等功能......
Stars: ✭ 1,576 (+964.86%)
Mutual labels:  adb
Rogcat
A `adb logcat` wrapper
Stars: ✭ 137 (-7.43%)
Mutual labels:  adb
Rootless Logcat
Android Logcat app without Root
Stars: ✭ 85 (-42.57%)
Mutual labels:  adb
Millionhero
速度快、准确易用-支持各平台的答题助手-图形界面-多权重答案推荐-自动百度高亮答案
Stars: ✭ 106 (-28.38%)
Mutual labels:  adb
Droidcast
An experimental demo for capturing and displaying screenshot of an Android device without ROOT permission.
Stars: ✭ 116 (-21.62%)
Mutual labels:  adb
Python Androidtv
Communicate with an Android TV or Fire TV device via ADB over a network.
Stars: ✭ 58 (-60.81%)
Mutual labels:  adb
Adblib
Java ADB library
Stars: ✭ 145 (-2.03%)
Mutual labels:  adb
Uber Adb Tools
A tool that enables advanced features through adb installing and uninstalling apps like wildcards and multi device support. Useful if you want to clean your test device from all company apks or install a lot of apks in one go. Written in Java so it should run on your platform.
Stars: ✭ 106 (-28.38%)
Mutual labels:  adb
Apk Utilities
🛠 Tools and scripts to manipulate Android APKs
Stars: ✭ 134 (-9.46%)
Mutual labels:  adb
Logcatch
android adb logcat viewer for Linux/Mac/Windows
Stars: ✭ 95 (-35.81%)
Mutual labels:  adb
Adbserver
Adb Server for Espresso tests
Stars: ✭ 105 (-29.05%)
Mutual labels:  adb
Phonesploit
A tool for remote ADB exploitation in Python3 for all Machines.
Stars: ✭ 122 (-17.57%)
Mutual labels:  adb
Debloat Samsung Android
ADB commands to aggressively de-bloat Samsung Android Phones without root. Make Samsung One UI closer to stock Android.
Stars: ✭ 79 (-46.62%)
Mutual labels:  adb
Python Firetv
Stars: ✭ 142 (-4.05%)
Mutual labels:  adb
Hjmirror
Mirroring you droid device screen to Windows, MacOS and Linux.
Stars: ✭ 67 (-54.73%)
Mutual labels:  adb
Auto add wechat friends py
微信添加好友 批量发送添加请求 脚本 python
Stars: ✭ 112 (-24.32%)
Mutual labels:  adb
Android Otp Extractor
Extracts OTP tokens from rooted Android devices
Stars: ✭ 147 (-0.68%)
Mutual labels:  adb
Wadb
A simple switch for adb (Android Debug Bridge) over network.
Stars: ✭ 143 (-3.38%)
Mutual labels:  adb
Adam
Coroutine-friendly Android Debug Bridge client written in Kotlin
Stars: ✭ 129 (-12.84%)
Mutual labels:  adb

adb_shell

.. image:: https://travis-ci.com/JeffLIrion/adb_shell.svg?branch=master :target: https://travis-ci.com/JeffLIrion/adb_shell

.. image:: https://coveralls.io/repos/github/JeffLIrion/adb_shell/badge.svg?branch=master :target: https://coveralls.io/github/JeffLIrion/adb_shell?branch=master

.. image:: https://pepy.tech/badge/adb-shell :target: https://pepy.tech/project/adb-shell

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 <https://github.com/google/python-adb>_.

Installation

.. code-block::

pip install adb-shell

Async


To utilize the async version of this code, you must install into a Python 3.7+ environment via:

.. code-block::

pip install adb-shell[async]

USB Support (Experimental)


To connect to a device via USB, install this package via:

.. code-block::

pip install adb-shell[usb]

Example Usage

(Based on androidtv/adb_manager.py <https://github.com/JeffLIrion/python-androidtv/blob/133063c8d6793a88259af405d6a69ceb301a0ca0/androidtv/adb_manager.py#L67>_)

.. code-block:: python

from adb_shell.adb_device import AdbDeviceTcp, AdbDeviceUsb from adb_shell.auth.sign_pythonrsa import PythonRSASigner

Load the public and private keys

adbkey = 'path/to/adbkey' with open(adbkey) as f: priv = f.read() with open(adbkey + '.pub') as f: pub = f.read() signer = PythonRSASigner(pub, priv)

Connect

device1 = AdbDeviceTcp('192.168.0.222', 5555, default_transport_timeout_s=9.) device1.connect(rsa_keys=[signer], auth_timeout_s=0.1)

Connect via USB (package must be installed via pip install adb-shell[usb])

device2 = AdbDeviceUsb() device2.connect(rsa_keys=[signer], auth_timeout_s=0.1)

Send a shell command

response1 = device1.shell('echo TEST1') response2 = device2.shell('echo TEST2')

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].