summaryrefslogtreecommitdiffstats
path: root/run
diff options
context:
space:
mode:
Diffstat (limited to 'run')
-rwxr-xr-xrun5
1 files changed, 5 insertions, 0 deletions
diff --git a/run b/run
new file mode 100755
index 0000000..2e01c69
--- /dev/null
+++ b/run
@@ -0,0 +1,5 @@
+#!/bin/sh
+package=$(xmllint --xpath "string(/manifest/@package)" AndroidManifest.xml)
+adb install -r -t paste.signed.apk || exit
+#todo: use xpath to find the activity
+adb shell am start -n "$package/.MainActivity"