I have cross-compiled a binary on Linux using the arm toochain. I uploaded the binary to a non-rooted andnroid phone.
What do I need to do in order to run this binary on the non-rooted phone ?
EDIT: I tried to run via terminal emulator, but I get the following error.
$ pwd
/mnt/sdcard/external_sd
$ ls -l hello
-rwxrwxr-x system sdcard_rw 8420 2013-12-31 22:12 hello
$ ./hello
./hello: permission denied
$
./binary
to invoke it. Making sure permissions are properly set, of course.ls -l [file]
? You won't be able to move anything to/data/
because it's owned byroot
.chmod
anything on it. I would try to find a "rw" partition usingmount
(e.g./cache
) and trying to execute from there.