Issue
Is there a way to run a binary executable file (compile with NDK), on Android?
/* #includes #defines ... */
int main(){
// Do something when this is executed
return 0;
}
I want it to run independant from the VM. As in not inside an activity, just a binary that runs directly on the proc
Solution
adb push exename /data/bin/exename
#next line might be needed if you are developing on Windows
adb shell chmod 777 /data/bin/exename
adb shell /data/bin/exename
But your device has to be rooted. (It also works on emulator.)
Answered By - Andrey Kamaev
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.