Skip to content

Commit

Permalink
Merge pull request #86 from Kirlif/base_fused_modules
Browse files Browse the repository at this point in the history
sanitize a bit further when merging
  • Loading branch information
REAndroid committed Jan 15, 2024
2 parents c8d4679 + d2daeb8 commit 2aa1960
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -47,6 +48,15 @@ public static List<ResXmlElement> 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.");
}));
Expand Down

0 comments on commit 2aa1960

Please sign in to comment.