summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorDonald Chai <dchai@google.com>2017-10-12 21:00:45 -0700
committerDonald Chai <dchai@google.com>2017-10-17 19:14:52 +0000
commit94251fac62b12f030c404132a395fdef73e7ab29 (patch)
treee75a6bbec24a097fd5579e0139892b77545a3169 /tools/aapt2/java/JavaClassGenerator.cpp
parent69780830e5b07b3949b847c2837aa5b01f8fc3b3 (diff)
AAPT: treat "-I" with lower precedence than main APK for dumping.
This is the desired behavior if resource IDs may overlap, and also happens to improve the behavior of: aapt dump -I base.apk badging feature.apk when both APKs use the same package name with different package IDs (base=0x7F, feature=0x80). Previously, the final call to DynamicRefTable::addMapping was for base.apk, and all references to 0x80 were rewritten in DynamicRefTable::lookupResourceId to 0x7F. After this change resources defined in both APKs are resolved correctly. Note that this is a bit of kludge, and APKs should use different names to avoid conflating the package IDs. Fixes: 67070085 Bug: 64058531 Test: manual with sample in b/67070085#comment2 Change-Id: I285adb6f44a297440b08fc7a1f9ad73c700eb9bc (cherry picked from commit d1ac6e1f9ea3a4d6c0d6d4a118c61526b8234a5f)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions