Here is the basic C source code :
#include <stdio.h> int main(void) { puts("hello world!"); return 0; } I am able to compile for Android with NDK toolchain with :
aarch64-linux-android21-clang test.c It generates an a.out file that I transfer to the Android device with :
adb push a.out /data/local/tmp adb shell chmod 777 /data/local/tmp/a.out When I try to run it with:
adb shell /data/local/tmp/a.out I have the message : "/system/bin/sh: /data/local/tmp/a.out: No such file or directory"
What am I doing wrong?
adb rootbefore push and shell?