Skip to content

Commit

Permalink
aapt1: allow duplicate bag items
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Jul 8, 2023
1 parent 64121f4 commit bc4ca27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/aapt/ResourceTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3556,7 +3556,9 @@ status_t ResourceTable::Entry::addToBag(const SourcePos& sourcePos,
// one an attr and one an id, with the same name. Not something we
// currently ever have to worry about.
ssize_t origKey = mBag.indexOfKey(key);
if (origKey >= 0) {

// Apktool: Make statement false so we pack duplicate bag items if needed.
if (origKey >= 0 && 1 == 2) {
if (!replace) {
const Item& item(mBag.valueAt(origKey));
sourcePos.error("Resource entry %s already has bag item %s.\n"
Expand Down

0 comments on commit bc4ca27

Please sign in to comment.