mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-07 10:35:52 +01:00
fix: properly read 'XML_TYPE_OVERLAY_POLICY' (#3035)
This commit is contained in:
parent
603e52d1f8
commit
d3c5813442
@ -138,6 +138,9 @@ public class ARSCDecoder {
|
|||||||
case Header.XML_TYPE_OVERLAY:
|
case Header.XML_TYPE_OVERLAY:
|
||||||
readOverlaySpec();
|
readOverlaySpec();
|
||||||
break;
|
break;
|
||||||
|
case Header.XML_TYPE_OVERLAY_POLICY:
|
||||||
|
readOverlayPolicySpec();
|
||||||
|
break;
|
||||||
case Header.XML_TYPE_STAGED_ALIAS:
|
case Header.XML_TYPE_STAGED_ALIAS:
|
||||||
readStagedAliasSpec();
|
readStagedAliasSpec();
|
||||||
break;
|
break;
|
||||||
@ -180,13 +183,11 @@ public class ARSCDecoder {
|
|||||||
|
|
||||||
private void readOverlaySpec() throws AndrolibException, IOException {
|
private void readOverlaySpec() throws AndrolibException, IOException {
|
||||||
checkChunkType(Header.XML_TYPE_OVERLAY);
|
checkChunkType(Header.XML_TYPE_OVERLAY);
|
||||||
String name = mIn.readNullEndedString(128, true);
|
String name = mIn.readNullEndedString(256, true);
|
||||||
String actor = mIn.readNullEndedString(128, true);
|
String actor = mIn.readNullEndedString(256, true);
|
||||||
LOGGER.fine(String.format("Overlay name: \"%s\", actor: \"%s\")", name, actor));
|
LOGGER.fine(String.format("Overlay name: \"%s\", actor: \"%s\")", name, actor));
|
||||||
|
|
||||||
while(nextChunk().type == Header.XML_TYPE_OVERLAY_POLICY) {
|
nextChunk();
|
||||||
readOverlayPolicySpec();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void readOverlayPolicySpec() throws AndrolibException, IOException {
|
private void readOverlayPolicySpec() throws AndrolibException, IOException {
|
||||||
|
Loading…
Reference in New Issue
Block a user