Skip to content

Commit

Permalink
fix: properly read 'XML_TYPE_OVERLAY_POLICY'
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Mar 23, 2023
1 parent 603e52d commit 413131b
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ private ResPackage readTablePackage() throws IOException, AndrolibException {
case Header.XML_TYPE_OVERLAY:
readOverlaySpec();
break;
case Header.XML_TYPE_OVERLAY_POLICY:
readOverlayPolicySpec();
break;
case Header.XML_TYPE_STAGED_ALIAS:
readStagedAliasSpec();
break;
Expand Down Expand Up @@ -180,13 +183,11 @@ private void readStagedAliasSpec() throws IOException {

private void readOverlaySpec() throws AndrolibException, IOException {
checkChunkType(Header.XML_TYPE_OVERLAY);
String name = mIn.readNullEndedString(128, true);
String actor = mIn.readNullEndedString(128, true);
String name = mIn.readNullEndedString(256, true);
String actor = mIn.readNullEndedString(256, true);
LOGGER.fine(String.format("Overlay name: \"%s\", actor: \"%s\")", name, actor));

while(nextChunk().type == Header.XML_TYPE_OVERLAY_POLICY) {
readOverlayPolicySpec();
}
nextChunk();
}

private void readOverlayPolicySpec() throws AndrolibException, IOException {
Expand Down

0 comments on commit 413131b

Please sign in to comment.