stop/start Android framework
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 14 Aug 2012 10:39:29 +0000 (12:39 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 15 Aug 2012 11:00:15 +0000 (13:00 +0200)
adb-android-start.sh [new file with mode: 0755]
adb-android-stop.sh [new file with mode: 0755]

diff --git a/adb-android-start.sh b/adb-android-start.sh
new file mode 100755 (executable)
index 0000000..4f3723e
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh -x
+
+start() {
+       adb shell setprop ctl.start $1
+}
+
+start zygote
+start media
+start surfaceflinger
+start drm
+
+adb logcat
diff --git a/adb-android-stop.sh b/adb-android-stop.sh
new file mode 100755 (executable)
index 0000000..2e7453e
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh -x
+
+adb shell setprop ctl.stop media
+adb shell setprop ctl.stop zygote
+adb shell setprop ctl.stop surfaceflinger
+adb shell setprop ctl.stop drm
+adb shell