Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow Soloader to work with system apps
Summary: Fix to allow SoLoader to find .so deps when app is packaged as Prebuilt APK with Android AOSP Source When an apk has .so files as part of the APK, the Android make system will generate the APK so as to allow .so files to be loaded directly. Another option is to include the .so in system libs by updating the Android make file but that means that the files are shared across the OS and can cause conflicts with applications that may want their own version of the .so Possible fix for issue #28 How to use: SoLoader.init(mContext, SOLOADER_DISABLE_BACKUP_SOSOURCE); SoLoader.setSystemLoadLibraryWrapper( new SystemLoadLibraryWrapper() { Override public void loadLibrary(String libName) { System.loadLibrary(libName); } }); Reviewed By: joelmccall Differential Revision: D15082630 fbshipit-source-id: 68db389bc105929c6cba7a92285c5a3df947f51c
- Loading branch information