Google+ Followers

Wednesday, 19 February 2014

Android : how to capture screen from adb shell and save them on PC MAC Linux

  • Shell script to copy 10 images at interval of 0.1 seconds and save them on device
N=10
for VARIABLE in 1 2 3 4 5 .. N
do
adb shell screencap -p /sdcard/screen$VARIABLE.png
sleep 0.1
done

  • Shell script to pull the images from devices and save them on PC / MAC / Linux

N=10
for VARIABLE in 1 2 3 4 5 .. N
do
adb pull /sdcard/screen$VARIABLE.png
sleep 0.1
done

No comments:

Post a Comment