summaryrefslogtreecommitdiffstats
path: root/fb2png/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fb2png/run.sh')
-rw-r--r--fb2png/run.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/fb2png/run.sh b/fb2png/run.sh
new file mode 100644
index 000000000..e7e035443
--- /dev/null
+++ b/fb2png/run.sh
@@ -0,0 +1,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