Hello friends this is my problem I am compiling a mini application in c with ndk estes is the code
en source .c
Android.mk
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
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);
}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
Aucun commentaire:
Enregistrer un commentaire