blob: e7e0354434f4ce07038a023665d17ec6a93b3dd7 [file] [log] [blame]
Talustus3019a912013-04-06 11:50:07 +02001#!/bin/sh
2#
3# helper script for capture picture on device
4#
5# Kyan He <kyan.ql.he@gmail.com> @ Tue Feb 15 12:42:48 CST 2011
6#
7#
8
9ADB_OPTIONS=
10PNG="/data/local/fbdump.png"
11
12if [ ! "$FB2PNG" = "" ];
13then
14
15adb $ADB_OPTIONS push $FB2PNG /data/local
16adb $ADB_OPTIONS shell chmod 777 /data/local
17adb $ADB_OPTIONS shell /data/local/fb2png
18
19adb $ADB_OPTIONS pull $PNG
20adb $ADB_OPTIONS shell rm $PNG
21else
22 echo "define \$FB2PNG first"
23fi