Skip to content

Commit

Permalink
fix: only mark as sparse if intended application
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Aug 27, 2023
1 parent 06c5f46 commit 4389d3b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ private ResType readTableType() throws IOException, AndrolibException {

mHeader.checkForUnreadHeader(mIn);

if ((typeFlags & 0x01) != 0) {
// Be sure we don't poison mResTable by marking the application as sparse
// When its the framework that might be.
if ((typeFlags & 0x01) != 0 && mPkg.getId() > 2) {
mResTable.setSparseResources(true);
}

Expand Down

0 comments on commit 4389d3b

Please sign in to comment.