Patch the patch

This commit is contained in:
ArtDev 2021-07-14 21:20:31 +03:00 committed by GitHub
parent 84546f60cb
commit 2f2f0934d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,11 +90,11 @@ public class MultiRTUtils {
}
// Refresh libraries
copyDummyNativeLib(ctx,"libawt_xawt.so",libFolder);
copyDummyNativeLib(ctx,"libawt_xawt.so",dest,libFolder);
}
private static void copyDummyNativeLib(Context ctx, String name, String libFolder) throws IOException {
private static void copyDummyNativeLib(Context ctx, String name, File dest, String libFolder) throws IOException {
File fileLib = new File(MultiRTUtils.runtimeFolder, "/"+libFolder + "/" + name);
File fileLib = new File(dest, "/"+libFolder + "/" + name);
fileLib.delete();
FileInputStream is = new FileInputStream(new File(ctx.getApplicationInfo().nativeLibraryDir, name));
FileOutputStream os = new FileOutputStream(fileLib);