I'd like to access(read) my .so file built in NDK at runtime in order to check up on its hash value.
To do that, I used AAssetManager_open() function but always failed.
const char* filename = "/data/data/com.mycompany.app/lib/libmyndk.so"; // failed with this.
const char* filename = "assets/libmyndk.so"; // Also failed with this.
AAsset* asset = AAssetManager_open(mgr, (const char*) filename, AASSET_MODE_UNKNOWN);
Please let me know why it persist to fail.