diff --git a/patch/src/main/java/org/lsposed/patch/LSPatch.java b/patch/src/main/java/org/lsposed/patch/LSPatch.java index 6ae0bdc9..4335e444 100644 --- a/patch/src/main/java/org/lsposed/patch/LSPatch.java +++ b/patch/src/main/java/org/lsposed/patch/LSPatch.java @@ -232,18 +232,6 @@ public void patch(File srcApkFile, File outputFile) throws PatchError, IOExcepti logger.d("original minSdkVersion: " + minSdkVersion); } - final boolean skipSplit = apkPaths.size() > 1 && srcApkFile.getName().startsWith("split_") && appComponentFactory == null; - if (skipSplit) { - logger.i("Packing split apk..."); - for (StoredEntry entry : srcZFile.entries()) { - String name = entry.getCentralDirectoryHeader().getName(); - if (dstZFile.get(name) != null) continue; - if (name.startsWith("META-INF") && (name.endsWith(".SF") || name.endsWith(".MF") || name.endsWith(".RSA"))) continue; - srcZFile.addFileLink(name, name); - } - return; - } - logger.i("Patching apk..."); // modify manifest final var config = new PatchConfig(useManager, debuggableFlag, overrideVersionCode, sigbypassLevel, originalSignature, appComponentFactory); @@ -354,4 +342,4 @@ private byte[] modifyManifestFile(InputStream is, String metadata, int minSdkVer os.close(); return os.toByteArray(); } -} \ No newline at end of file +}