adb

how to take screenshot in coordinates using adb

how to take screenshot in coordinates using adb Question: I am testing android adb to screen capture. Then I can take a full screen shot, now I want to capture the coordinates. I use the following command line: adb shell screencap -p -d 0 /sdcard/test.png With this command line, I captured the full screen. After …

Total answers: 1

How to get both return code and output from subprocess in Python?

How to get both return code and output from subprocess in Python? Question: While developing python wrapper library for Android Debug Bridge (ADB), I’m using subprocess to execute adb commands in shell. Here is the simplified example: import subprocess … def exec_adb_command(adb_command): return = subprocess.call(adb_command) If command executed propery exec_adb_command returns 0 which is OK. …

Total answers: 1