====== Android native development ====== ===== prepare dev env ===== ==== Install NDK ==== ==== makefile ==== {{:programming:android:native_development:test_project.tar|}} ===== include lib... ===== http://jiggawatt.org/badc0de/android/ ===== execute external command ===== ====== from Java ====== As normal user. https://github.com/gimite/android-native-exe-demo/blob/master/src/net/gimite/nativeexe/MainActivity.java As root: http://stackoverflow.com/questions/7729003/running-native-android-executable-as-root ====== from native code ====== as normal user * system: include and use system("command"). * exec: ??? as root http://stackoverflow.com/questions/2483755/how-to-programmatically-gain-root-privileges ====== Resources ====== ===== glibc android ===== * http://forum.xda-developers.com/showthread.php?t=1299962 *