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
Merged-In: Ic2fa826df484ba70f5fbb8bb044fc74b3f20a5ef
Change-Id: Ic2fa826df484ba70f5fbb8bb044fc74b3f20a5ef
(cherry picked from commit 743e0d67122ba34310297f45db931da32ec0e2f7)
2 files changed
tree: 888e3fe9225d0fb147f65ab28ab205c0da624301
  1. .prebuilt_info/
  2. apex/
  3. apkdmverity/
  4. authfs/
  5. compos/
  6. demo/
  7. docs/
  8. javalib/
  9. launcher/
  10. libs/
  11. microdroid/
  12. microdroid_manager/
  13. pvmfw/
  14. tests/
  15. virtualizationservice/
  16. vm/
  17. zipfuse/
  18. .clang-format
  19. .gitignore
  20. Android.bp
  21. OWNERS
  22. PREUPLOAD.cfg
  23. README.md
  24. 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.