fix error: insufficient permissions for device
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 25 Sep 2010 11:59:59 +0000 (13:59 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 25 Sep 2010 11:59:59 +0000 (13:59 +0200)
adb-as-root.sh [new file with mode: 0755]

diff --git a/adb-as-root.sh b/adb-as-root.sh
new file mode 100755 (executable)
index 0000000..092da67
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh -x
+
+# restart adb as root to fix
+# error: insufficient permissions for device
+
+adb=`which adb`
+$adb kill-server
+sudo $adb devices