File: screencap.py

package info (click to toggle)
python-pure-python-adb 0.3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,500 kB
  • sloc: python: 2,597; makefile: 8; sh: 1
file content (8 lines) | stat: -rw-r--r-- 191 bytes parent folder | download
1
2
3
4
5
6
7
8
from ppadb.client import Client as AdbClient

client = AdbClient(host="127.0.0.1", port=5037)
device = client.device("emulator-5554")

device.push("./screencap.py", "/sdcard/screencap.py")