通過 ADB 捕獲螢幕截圖並直接儲存在你的 PC 中

如果你使用 Linux(或帶有 Cygwin 的 Windows),則可以執行:

adb shell screencap -p | sed 's/\r$//' > screenshot.png