From dd9cca4acc6c2686ab2d73a856393af018d32ea2 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 1 Mar 2013 00:06:32 -0400 Subject: fall back to hardcoded app location --- standalone/android/start.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'standalone/android/start.c') 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) { -- cgit v1.2.3