summaryrefslogtreecommitdiffstats
path: root/fb2png/run.sh
blob: e7e0354434f4ce07038a023665d17ec6a93b3dd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#
# helper script for capture picture on device
#
# Kyan He <kyan.ql.he@gmail.com> @ Tue Feb 15 12:42:48 CST 2011
#
#

ADB_OPTIONS=
PNG="/data/local/fbdump.png"

if [ ! "$FB2PNG" = "" ];
then

adb $ADB_OPTIONS push $FB2PNG /data/local
adb $ADB_OPTIONS shell chmod 777 /data/local
adb $ADB_OPTIONS shell /data/local/fb2png

adb $ADB_OPTIONS pull $PNG
adb $ADB_OPTIONS shell rm $PNG
else
    echo "define \$FB2PNG first"
fi