I am using c file to store my string constants and have written methods to access these strings in java code using android ndk. Every thing is working fine. But When I generate the apk and decompile it and open the .so file , the strings are visible and readable.
How to Obfuscating or hiding strings in c file in android apk?
#include <jni.h>
jstring Java_eu_ratikal_helloc_MainActivity_getString( JNIEnv* env, jobject thiz )
{
jstring na = "Hello android from C World";
return (*env)->NewStringUTF(env, na);
}