Skip to content

A Python library to communicate with devices using adb over a pseudoterminal

License

Notifications You must be signed in to change notification settings

ymarcov/adb_pty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A simple Python 2.7 library to run commands on a remote Android device using ADB. The library opens a pseudoterminal in order to circumvent input redirection issues. Also, it uses su to open a root shell, instead of relying on a particular implementation of su which takes a certain set of parameters to run a command. As long as the simple command su gives you a root shell after you connect with adb shell, issuing root commands using this library should work.

Usage:

import adb_pty

status, output = adb_pty.cmd('ls -l /')
status, output = adb_pty.root_cmd('mount -o remount,rw /')

About

A Python library to communicate with devices using adb over a pseudoterminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages