diff options
author | 2013-05-31 21:28:37 -0400 | |
---|---|---|
committer | 2013-05-31 21:30:21 -0400 | |
commit | 03da93e798950fa10d5ab8ecf6e18fb3b02b1d9b (patch) | |
tree | 816518d430ca0afd6f76845274707c5bc543e1b8 /standalone/android/runshell | |
parent | 2b990dc0149e20a3a0949f898f5950670da57c64 (diff) |
Android: Work around Android devices where the `am` command doesn't work.
Diffstat (limited to 'standalone/android/runshell')
-rwxr-xr-x | standalone/android/runshell | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/standalone/android/runshell b/standalone/android/runshell index 5e461f062..ef6744494 100755 --- a/standalone/android/runshell +++ b/standalone/android/runshell @@ -116,12 +116,17 @@ run () { fi } -if ! prep; then - $cmd echo "prep failed. Please report a bug." - read line -fi -if ! install; then - $cmd echo "install failed. Please report a bug." - read line +if $cmd test -n "$MKFIFO"; then + # because java is insane + $cmd mkfifo "$MKFIFO" +else + if ! prep; then + $cmd echo "prep failed. Please report a bug." + read line + fi + if ! install; then + $cmd echo "install failed. Please report a bug." + read line + fi + run fi -run |