summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Yurii Zubrytskyi <zyy@google.com> 2025-02-11 22:05:28 -0800
committer Yurii Zubrytskyi <zyy@google.com> 2025-02-11 22:05:28 -0800
commit3a626ec5721ea1cd544e459b48f5605eb9c6dbc1 (patch)
treee1e94ec8e73aceb51f208d97b3300eca9c0195c3 /libs/androidfw/misc.cpp
parent58f1298cad32c8ea8b5436fd946f1278cfa86e55 (diff)
[aapt2] Fix aapt2 diff for added/removed resources
The old implementation used to iterate over both apks in parallel, making the whole output wrong as soon as they get out of sync because of an added or removed resource. New code performs a lookup for each resource, making it much less efficient (quadratic complexity), but actually produces useful output. Performance is enough to run a framework-res.apk diff in milliseconds - no need to make a lookup table. + print the output into STDOUT instead of STDERR, as it's supposed to be + add a --ignore-id-shift command line flag to skip printing differences in IDs if those are the only differences. Any added or removed resource will make all subsequent IDs change, making the output almost unusable Bug: 396020063 Flag: EXEMPT bugfix Test: manual on framework-res.apk Change-Id: I8d13038b5e4ddccd465393529e17809245c3b9ad
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions