Skip to content

Instantly share code, notes, and snippets.

@lincerely
Last active September 13, 2023 01:55
Show Gist options
  • Save lincerely/34f819630ada25c2834d638e0e41c6e6 to your computer and use it in GitHub Desktop.
Save lincerely/34f819630ada25c2834d638e0e41c6e6 to your computer and use it in GitHub Desktop.
Android compile c executable with NDK
$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi21-clang hello.c
adb push a.out /data/local/tmp/hello
adb shell
chmod 755 /data/local/tmp/hello
/data/local/tmp/hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment