redism/reden

andcapture doesn't work for some devices.

redism opened this issue · 0 comments

The following command does not result in proper png file in my Nexus 5X and Galaxy S8 device.

adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g'

Just using normal adb shell command like the following solves the problem.

adb shell screencap -p /sdcard/screencap.png
adb pull /sdcard/screencap.png ~/Desktop/screen.png