Package com.facebook.soloader
Class NativeDepsUnpacker
java.lang.Object
com.facebook.soloader.NativeDepsUnpacker
Unpacks native deps file from APK to disk. Only needed when native deps are compressed in the
APK. The file is extracted on first start, and replaced if the file is corrupt or the APK
changes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidensureNativeDepsAvailable(android.content.Context context) Makes sure that the native deps file has been extracted from the APK to disk so it can be used to load libraries.static FilegetNativeDepsDir(android.content.Context context) static FilegetNativeDepsFilePath(android.content.Context context)
-
Method Details
-
getNativeDepsFilePath
-
getNativeDepsDir
-
ensureNativeDepsAvailable
Makes sure that the native deps file has been extracted from the APK to disk so it can be used to load libraries. If either the file hasn't been extracted, the extracted file is corrupt, or the APK changed, the file will be extracted from the APK. If the file was already extracted, this is a no-op. If extraction fails, an IOException will be thrown.- Parameters:
context- application context- Throws:
IOException- IOException
-