This blog entry has a very neat way of grabbing screenshots from Android mobile devices. It boils down to a one liner (reproduced here just in case that blog vanishes for some reason and so it’s easy to find):
adb shell screencap -p | sed 's/\r$//' > screen.png
on Linux and
adb shell screencap -p | perl -pe 's/x0Dx0A/x0A/g' > screen.png
on the Mac.
Works perfectly. Thanks!