mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-05-01 06:34:26 +02:00
validate namespace of AndroidManifest before XML decode
This commit is contained in:
parent
2c2f2c2b13
commit
8937e3cb91
@ -159,6 +159,8 @@ import java.util.*;
|
||||
File file=new File(outDir, AndroidManifestBlock.FILE_NAME);
|
||||
logMessage("Decoding: "+file.getName());
|
||||
AndroidManifestBlock manifestBlock=apkModule.getAndroidManifestBlock();
|
||||
XMLNamespaceValidator namespaceValidator=new XMLNamespaceValidator(manifestBlock);
|
||||
namespaceValidator.validate();
|
||||
int currentPackageId= manifestBlock.guessCurrentPackageId();
|
||||
XMLDocument xmlDocument=manifestBlock.decodeToXml(entryStore, currentPackageId);
|
||||
xmlDocument.save(file, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user