How to secure string in Android Application ?
Options:
ProGuard: It does not secure string? Does proguard work to obfuscate static string constants?
Encrypt String: for Encryption I need to store encryption key (string) some where and again it's same issue, how to secure encryption key.
Fetch string from web service: But this solution will not work for me, as app don't have internet requirement/access that's requirement/business decision.
NDK: write c file which contain string and return using JNI but I found Hex-Ray decompile to decompile *.so file https://www.hex-rays.com/index.shtml
================================================
Function in C
jstring Java_com_abc_xyz_getString(JNIEnv* env, jobject javaThis) {
return (*env)->NewStringUTF(env, "Hello String");
}
====================================
Please suggest a best option to secure string in Android SDK/NDK.