Table of Contents

Android native development

prepare dev env

Install NDK

makefile

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

as root

http://stackoverflow.com/questions/2483755/how-to-programmatically-gain-root-privileges

Resources

glibc android