🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

adb-tool-py

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adb-tool-py

adb-tool-py is a tool for Android Debug Bridge (adb).

0.1.2
PyPI
Maintainers
1

adb-tool-py

adb-tool-py is a library for using Android Debug Bridge (ADB) functionality from Python. It also provides extended functionality.

Features

  • Communication with Android devices
  • Parsing the displayed ViewTree
    • Search/touch strings
    • ID search/touch
    • Search/touch by other criteria

Installation

pip install adb-tool-py

Documentation

For more detailed usage and additional features, please refer to the official documentation.

Usage

import adb_tool_py as adb_tool
import time

adb1 = adb_tool.AdbTool()
adb2 = adb_tool.AdbTool(serial="emulator-5554")

ret1 = adb1.query("shell ls -al")
ret2 = adb2.query("shell ls -al")

print(ret1.returncode)
print(ret1.stdout)
print(ret1.stderr)

ret2 = adb1.logcat()
time.sleep(1)
with ret2.open() as file:
    print(file.read())
ret2.close()

License

This project is licensed under the MIT License.

Contact

If you encounter any issues, please report them through the GitHub issue tracker.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts