From d2daeb863072eb7051328b71177ba2365602dabe Mon Sep 17 00:00:00 2001 From: Kirlif Date: Mon, 15 Jan 2024 21:48:17 +0100 Subject: [PATCH] sanitize a bit further when merging --- .../apkeditor/common/AndroidManifestHelper.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/com/reandroid/apkeditor/common/AndroidManifestHelper.java b/src/main/java/com/reandroid/apkeditor/common/AndroidManifestHelper.java index fb265d51..55cf7c1b 100644 --- a/src/main/java/com/reandroid/apkeditor/common/AndroidManifestHelper.java +++ b/src/main/java/com/reandroid/apkeditor/common/AndroidManifestHelper.java @@ -16,6 +16,7 @@ package com.reandroid.apkeditor.common; import com.reandroid.apk.APKLogger; +import com.reandroid.apk.ApkUtil; import com.reandroid.app.AndroidManifest; import com.reandroid.arsc.chunk.xml.AndroidManifestBlock; import com.reandroid.arsc.chunk.xml.ResXmlAttribute; @@ -47,6 +48,15 @@ public static List listSplitRequired(ResXmlElement parentElement) if(value == null){ return false; } + if (value.equals("com.android.dynamic.apk.fused.modules")){ + ResXmlAttribute attribute = element.searchAttributeByResourceId(AndroidManifest.ID_value); + if (attribute != null){ + String attributeValue = attribute.getValueAsString(); + if (attributeValue != null && attributeValue.equals(ApkUtil.DEF_MODULE_NAME)) { + return true; + } + } + } return value.startsWith("com.android.vending.") || value.startsWith("com.android.stamp."); }));