Table of Contents
Android native development
prepare dev env
Install NDK
makefile
include lib...
execute external command
from Java
As normal user.
As root:
http://stackoverflow.com/questions/7729003/running-native-android-executable-as-root
from native code
as normal user
- system: include <stdlib.h> and use system(“command”).
- exec: ???
as root
http://stackoverflow.com/questions/2483755/how-to-programmatically-gain-root-privileges