Android使用adb螢幕截圖

adb shell screencap

阿強
1 min readSep 6, 2020

注意操作以下指令前請先確認USB debugging已開啟。

USB debugging Enable
# 擷取當下螢幕的圖並存在/sdcard/1.png
$ adb shell screencap -p /sdcard/1.png
# 將手機上/sdcard/1.png檔案拉到本機
$ adb pull /sdcard/1.png
Device上的 /sdcard/1.png

--

--

阿強
阿強

Written by 阿強

一個喜歡研究新事物的軟體工程師

No responses yet