in java/com/facebook/soloader/ApplicationSoSource.java [57:74]
public boolean checkAndMaybeUpdate() throws IOException {
File nativeLibDir = soSource.soDirectory;
Context updatedContext = getUpdatedContext();
File updatedNativeLibDir = getNativeLibDirFromContext(updatedContext);
if (!nativeLibDir.equals(updatedNativeLibDir)) {
Log.d(
SoLoader.TAG,
"Native library directory updated from " + nativeLibDir + " to " + updatedNativeLibDir);
// update flags to resolve dependencies since the system does not properly resolve
// dependencies when the location has moved
flags |= DirectorySoSource.RESOLVE_DEPENDENCIES;
soSource = new DirectorySoSource(updatedNativeLibDir, flags);
soSource.prepare(flags);
applicationContext = updatedContext;
return true;
}
return false;
}