DaliDemoNativeActivity nativeActivity(state->activity);
int status = 0;
- std::string libpath = "/data/data/com.sec.dalidemo/lib/libdali-demo.so";
+
+ //dali requires Android 8 or higher
+ //Android 6+ support loading library directly from apk,
+ //therefore no need to extract to filesystem first then open by specifying full path
+ //unless there is need to do profiling, or export libraries so that other packages can use
+ std::string libpath = "libdali-demo.so";
+
std::string callParam = nativeActivity.GetIntentStringExtra("start");
if(callParam.empty())
{
if(!callParam.empty())
{
- libpath = "/data/data/com.sec.dalidemo/lib/lib" + callParam + ".so";
+ libpath = "lib" + callParam + ".so";
}
void* handle = dlopen(libpath.c_str(), RTLD_LAZY);