Skip to content
Commit 2589a7e8 authored by Nikita Ioffe's avatar Nikita Ioffe
Browse files

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
parent 439a7fe9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment