Skip to content

Commit

Permalink
update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Dec 22, 2023
1 parent a28b068 commit fa720b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,14 @@ d.get_devpath() # same as adb get-devpath
d.get_state() # same as adb get-state
```

Take screenshot

```bash
# adb exec-out screencap -p p.png
png_data = d.shell("screencap -p", encoding=None)
pathlib.Path("p.png").write_bytes(png_data)
```

## Transfer files
```python
d.sync.push(b"Hello Android", "/data/local/tmp/hi.txt") # 推送二进制文本
Expand Down

0 comments on commit fa720b0

Please sign in to comment.