summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Nikita Ioffe <ioffe@google.com> 2022-04-21 17:58:12 +0100
committer Nikita Ioffe <ioffe@google.com> 2022-04-29 19:19:47 +0100
commit2589a7e8f756ce3212b6763dfc5cb91fe04e50ec (patch)
tree41d1c216cc1ed79a84135c1676d4b815f35cd763 /libs/androidfw/misc.cpp
parent439a7fe9a072df5aebb56926d82e2ee51ebc4d77 (diff)
apk-in-apex-cache 1/n: Fix isCacheUpToDate for apk-in-apex
In case an APK resides on the APEX mount point it's mtime will always be zero. This breaks the isCacheUpToDate check, which is based on comparing the mtime of the apk to the mtime of the cache. This cl fixes the issue by using the mtime of the APEX file backing the /apex mount point the apk resides on. Also noticed some inefficiencies in ApexManager and added TODO's to fix them in the follow-up cls. s Bug: 225435110 Test: atest PackageParserTest Test: atest ApexManagerTest Change-Id: I8a0ab8952454652048076a26e81097b95991ae60 Merged-In: I8a0ab8952454652048076a26e81097b95991ae60
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions