OSDN Git Service

add debug scripts
authorMichael Chen <omxcodec@gmail.com>
Sat, 20 Oct 2012 13:40:04 +0000 (21:40 +0800)
committerMichael Chen <omxcodec@gmail.com>
Sat, 20 Oct 2012 13:40:04 +0000 (21:40 +0800)
tools/install.sh [new file with mode: 0755]
tools/set-vdec-sw0 [new file with mode: 0755]
tools/set-vdec-sw1 [new file with mode: 0755]

diff --git a/tools/install.sh b/tools/install.sh
new file mode 100755 (executable)
index 0000000..6dbed45
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+adb root
+adb remount
+
+for file in *; do
+        if [ $(basename $file) == "install.sh" ]; then
+            continue
+        fi
+       echo $file
+        adb push $file /system/bin
+done
+
+adb shell sync
+
diff --git a/tools/set-vdec-sw0 b/tools/set-vdec-sw0
new file mode 100755 (executable)
index 0000000..be8318e
--- /dev/null
@@ -0,0 +1,4 @@
+#!/system/bin/sh
+
+setprop sys.media.vdec.sw 0
+
diff --git a/tools/set-vdec-sw1 b/tools/set-vdec-sw1
new file mode 100755 (executable)
index 0000000..38c9f3f
--- /dev/null
@@ -0,0 +1,4 @@
+#!/system/bin/sh
+
+setprop sys.media.vdec.sw 1
+