We have our SDK based app inside which we have our NDK based libraries ‘libBase.so’.
Now, we have our schema and other data – which is between 4 to 12 megabytes, and
required to be accessed in read-only mode by the native code(C++).
For this scenario, I can put my schema.db file under the asset folder and directly access using Ndk api's, but I want it to reside at the same place where my ‘libBase.so'
is present. i.e "app/src/main/jniLibs", since for all the other platforms we are keeping this file in the ‘same
location as the executable’.
Also, we may need to open the schema file in write mode also, to support upgrade to the schema without needing to upgrade the app. But I am not sure whether it is allowed
and therefore how to do it.
Any help suggestion would be appreciated.