commit | 9bffc3b515a466fa83b4d4c22749902178f6253c | [log] [tgz] |
---|---|---|
author | Alan Stokes <alanstokes@google.com> | Wed Jan 25 09:45:54 2023 +0000 |
committer | Alan Stokes <alanstokes@google.com> | Wed Jan 25 13:52:28 2023 +0000 |
tree | 79b60f9f2aa9b5ee50f8e0995055f4c69c085bc5 | |
parent | 630e0c3138c10693d84028fb47d8dab85fe3cd3e [diff] |
Cache package name not APK path The APK path for an app can change, e.g. if an update is installed. Where the caller hasn't specified an explicit APK path we should store the package name rather than the current APK path in the config file, and map it to the APK path on run(). I modified the builder/config tests to cover the changes. I've manually tested this using my demo app and it is now possible to start a VM after the APK is updated; it then fails (as expected) because the APK hash has changed. And it succeeds if I reinstall the same APK (so the path changes, but the hash doesn't). Bug: 266395810 Test: atest MicrodroidTests Change-Id: Ifa0680d3e6bc805282674eb37c89190a996a7af4
This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.