Affichage des articles dont le libellé est helpme. Afficher tous les articles
Affichage des articles dont le libellé est helpme. Afficher tous les articles

mardi 11 août 2015

helpme ndk build executable and use not root



Hello friends this is my problem I am compiling a mini application in c with ndk estes is the code

en source .c

Code:


#include <stdio.h>
#include <stdlib.h>
#include <conio.h>

int main()

{
char cadena[100];
FILE *pf;

pf = fopen("texto.txt","w");
for (int a=1;a<=3;a++)
{
printf("Ingrese un texto para guardar en un archivo n");
gets(cadena);

fprintf(pf," %snn",cadena);
}
fclose(pf);

}


Android.mk

Code:


LOCAL_PATH := $(call my-dir)

# second target
include $(CLEAR_VARS)

LOCAL_MODULE := hello
LOCAL_SRC_FILES := test.c

include $(BUILD_EXECUTABLE)    # <-- Use this to build an executable.



but this is not a librery if not an executable the problem is as I use the executable native made in c in the apk without access root thank you for your help since now investigate but I can't find help and I'm new at this thank you for your help.
I need to use the compiled binary, but without being root user