Merge pull request #130 from Oizaro/patch-1

Remove missing library reference
This commit is contained in:
KevinX8 2021-05-02 18:50:42 +01:00 committed by GitHub
commit 70c5e044db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,7 @@ public class ProviderInstallerImpl {
// TODO: Move manual loading into helper function (as it is also used in both maps implementations)
String primaryCpuAbi = (String) ApplicationInfo.class.getField("primaryCpuAbi").get(otherAppInfo);
if (primaryCpuAbi != null) {
String path = "lib/" + primaryCpuAbi + "/libconscrypt_gmscore_jni.so";
String path = "lib/" + primaryCpuAbi;
File cacheFile = new File(context.createPackageContext(packageName, 0).getCacheDir().getAbsolutePath() + "/.gmscore/" + path);
cacheFile.getParentFile().mkdirs();
File apkFile = new File(context.getPackageCodePath());
@ -217,4 +217,4 @@ public class ProviderInstallerImpl {
in.close();
out.close();
}
}
}