summaryrefslogtreecommitdiffstats
path: root/fb2png/run.sh
diff options
context:
space:
mode:
authorTalustus <talustus@dream-irc.de>2013-04-06 11:50:07 +0200
committerDees_Troy <dees_troy@teamw.in>2013-07-01 22:22:17 +0200
commit3019a9172b36b9e2033d92dccdb8ff8e2282da7c (patch)
tree3938a34520ea3b6c3519efb93cbeadce64018e84 /fb2png/run.sh
parentFix some issues with wipe partition list (diff)
downloadandroid_bootable_recovery-3019a9172b36b9e2033d92dccdb8ff8e2282da7c.tar
android_bootable_recovery-3019a9172b36b9e2033d92dccdb8ff8e2282da7c.tar.gz
android_bootable_recovery-3019a9172b36b9e2033d92dccdb8ff8e2282da7c.tar.bz2
android_bootable_recovery-3019a9172b36b9e2033d92dccdb8ff8e2282da7c.tar.lz
android_bootable_recovery-3019a9172b36b9e2033d92dccdb8ff8e2282da7c.tar.xz
android_bootable_recovery-3019a9172b36b9e2033d92dccdb8ff8e2282da7c.tar.zst
android_bootable_recovery-3019a9172b36b9e2033d92dccdb8ff8e2282da7c.zip
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