Skip to content

Instantly share code, notes, and snippets.

@tw-Frey
Last active September 5, 2019 12:04
Show Gist options
  • Select an option

  • Save tw-Frey/7daaa51aeb7d6dc9c3ec68cc2a002d7d to your computer and use it in GitHub Desktop.

Select an option

Save tw-Frey/7daaa51aeb7d6dc9c3ec68cc2a002d7d to your computer and use it in GitHub Desktop.
adb screencap used by exec-out
**民國版**
adb.exe exec-out screencap -p > screenshot-%date:~0,3%%date:~4,2%%date:~7,2%-%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2%.png
PS:
%date% = 108/09/05
%time% = 17:09:15.21
ref:
https://stackoverflow.com/questions/13578416/read-binary-stdout-data-from-adb-shell/31401447#31401447
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment