summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceUtils.cpp
diff options
context:
space:
mode:
author Jernej Virag <jernej@google.com> 2022-08-12 18:06:23 +0200
committer Jernej Virag <jernej@google.com> 2022-08-30 09:16:54 +0000
commit166d420cf4d93a7f01d8cd2e9dc5d14446dfdc4b (patch)
treeef360cfec269dfdc364d49e5b4216174b90002d3 /libs/androidfw/ResourceUtils.cpp
parent7b43124412cdc886e154f33583a89e683bd73ae3 (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
Diffstat (limited to 'libs/androidfw/ResourceUtils.cpp')
0 files changed, 0 insertions, 0 deletions