prefer_staged keeps factory version

We need to pass inactive/factory apexes as well for some types of
apexes. When a VM app sets "prefer_staged", it accidentally removed
inactive/factory apexes by overwriting them with staged apexes based on
apex name.

This causes CompOS to fail when running verification after mainline
update because the VM sees the identity has changed due to different set
of input apexes from the last run which was before update using
"prefer_staged".

Now "staged" apexes are handled correctly by keeping factory/inactive
apexes and updating only active ones.

Bug: 257377686
Test: virtualizationservice_device_test
Change-Id: Ic2fa826df484ba70f5fbb8bb044fc74b3f20a5ef
2 files changed
tree: 5f2bafc6c1e30641222bb9388fe4863f61a799e0
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. avmd/
  5. compos/
  6. demo/
  7. docs/
  8. javalib/
  9. launcher/
  10. libs/
  11. microdroid/
  12. microdroid_manager/
  13. pvmfw/
  14. rialto/
  15. tests/
  16. virtualizationservice/
  17. vm/
  18. vmbase/
  19. vmclient/
  20. zipfuse/
  21. .clang-format
  22. .gitignore
  23. Android.bp
  24. OWNERS
  25. PREUPLOAD.cfg
  26. README.md
  27. TEST_MAPPING
README.md

Virtualization

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.