summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Chun-Wei Wang <wangchun@google.com> 2022-08-12 12:16:13 +0000
committer Chun-Wei Wang <wangchun@google.com> 2022-08-25 11:22:13 +0000
commiteb832a8a336274260be8490d8aa3ad8592cd87f2 (patch)
tree40d7b1759ae16dc8344a774ac5b23afa0b174d21 /libs/androidfw/ResourceTimer.cpp
parent8b082eaed2a0c760d4b510c2762f9320e5b07c20 (diff)
Fix wrong path is returned when 2 files have the same name
Before the fix, the cache is reused when 2 files have the same name. Now the full file path is included when calculating the cache key. This will reduce the chance of key collision. We also check if the paths match to ensure 2 different files are never mapped to the same cache entry. Bug: 242639590 Test: atest PackageParserTest Change-Id: I4d240407f6fd6de9a64f9ea46339d73202d40927
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions