remember to install library with pip:
pip install -U pure-python-adb
more information you can find here:
# sample for playing with android debugging stuff | |
from ppadb.client import Client as AdbClient | |
#client = AdbClient(host="127.0.0.1", port=5037) | |
client = AdbClient() # default is thesame as above | |
devList = client.devices() | |
#print(dev[0].__dict__) # see what we got here | |
print("\n### CONNECTED DEVICES LIST ###") | |
for i in range( len( devList ) ): | |
print(f'\n devList[ {i} ] ') | |
print("serial identifier: ", devList[ i ].serial) # | |
print(f'result of ls in "{devList[ i ].shell("pwd")}":') | |
print(devList[ i ].shell("ls -al")) |
remember to install library with pip:
pip install -U pure-python-adb
more information you can find here: