diff options
| author | 2022-08-12 18:06:23 +0200 | |
|---|---|---|
| committer | 2022-08-19 18:43:34 +0000 | |
| commit | 1b9dc28da9496007bff3a93fc62a2069dd152779 (patch) | |
| tree | 0f98d56abbb04645e03f1b22ea66609846f82313 /tools/aapt2/StringPool.cpp | |
| parent | 8c1f443b554e1b78801ecffdbbe0e5274c9510d7 (diff) | |
Prevent loading of Icon resources from the wrong package
If an Icon carries package designator, LocalImageResolver has now
ignored it. This could lead to loading of a wrong icon in cases where
the ID collided with the same ID in android package.
This is fixes that corner-case.
Bug: 241066484
Test: atest LocalImageResolverTest - the new test checks for pkg
correctness and fails on devices without this cl
manual test: bluejay device with known, reproducible resource
collision in media player notification. In reproducible case,
icon appears as a broken block.
After applying this patch, small icon in media notification loads
correctly for the collision case.
Change-Id: Ic79c0d4acb1d347a24282972e009a5a079ce6c21
(cherry picked from commit 32f176e4705694c9d0272eba22887cf6d4f7b783)
Merged-In: Ic79c0d4acb1d347a24282972e009a5a079ce6c21
Diffstat (limited to 'tools/aapt2/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions