diff options
author | Joey Hess <joey@kitenet.net> | 2013-03-01 00:06:32 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-03-01 00:06:32 -0400 |
commit | dd9cca4acc6c2686ab2d73a856393af018d32ea2 (patch) | |
tree | fb44868b099121173f0536ee22c4b529da2664fb /standalone | |
parent | 8bdf97a4fc06410510e1cc689cd6701d6cb64ed7 (diff) |
fall back to hardcoded app location
Diffstat (limited to 'standalone')
-rw-r--r-- | standalone/android/start.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/standalone/android/start.c b/standalone/android/start.c index 95822f107..fe8a2e1af 100644 --- a/standalone/android/start.c +++ b/standalone/android/start.c @@ -38,6 +38,14 @@ main () { exit(1); } + if (stat("lib/lib.busybox.so", &st_buf) != 0) { + fprintf(stderr, "Falling back to hardcoded app location; cannot find expected files in %s\n", buf); + if (chdir("/data/data/ga.androidterm") != 0) { + perror("chdir"); + exit(1); + } + } + /* If this is the first run, set up busybox link. */ if (stat("busybox", &st_buf) != 0) { if (link("lib/lib.busybox.so", "busybox") != 0) { |