I've got an application project which includes a jni native code (example.c) with the following makefile:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := example
LOCAL_SRC_FILES := example.c
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
include $(BUILD_EXECUTABLE)
So I'm building it like an executable and everything goes right. Is the executable "packed" with the application? If yes, how do I get its path or its location in memory, so I can run it from the java code?
PS: I'm not building the native code as a shared library because I want to run a main function as root with shell commands, like this:
chmod 777 /path/exe
/path/exe