Android 便捷抓屏

用 shell 脚本抓屏

#! /bin/bash

adb root
adb remount

# Capture Screenshot
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > ~/screencap.png

# or
# adb shell screencap -p /sdcard/screencap.png
# sleep 1
# adb pull /sdcard/screencap.png

# View Screenshot
eog ~/screencap.png &

用 Android Studio 也很方便

*** REF***

Start your app as described in Run your App in Debug Mode.
Click Android to open the Android DDMS tool window.
Click Screen Capture on the left side of the Android DDMS tool window.
Optional: To add a device frame around your screenshot, enable the Frame screenshot option.
Click Save.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容