Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Andrid端末のスクリーンキャプチャスクリプト
#!/bin/bash
ADB=/c/Users/YourName/AppData/Local/Android/sdk/platform-tools/adb.exe
FILENAME=$(date +'%Y%m%d_%I%M%S').png
CAP_FILE=mnt/sdcard/$FILENAME
# キャプチャ
${ADB} shell screencap -p $CAP_FILE
cd ~/Desktop
# 取得
${ADB} pull $CAP_FILE
# 削除
${ADB} shell rm $CAP_FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.