Pass sorted list of apexes to VM

The order of apex list does matter within microdroid. To keep the
stability, sort the list of apexes before passing to a VM.

Sorting key is a composite of (apex name, apex version, apex mod
timestamp). Paths are not suitable for sorting key because
"prefer_staged" will result in different paths before/after reboot.

We could use "unordered list", especially when checking the VM identity
within a VM. But "ordered list" is assumed in many places and is more
efficient.

Bug: 257377686
Test: virtualizationservice_device_test
Change-Id: I1c269afc059da0df4c6f318d5a591f7a03d4600f
1 file changed
tree: 6276b2402520055db5f7587bcabac4dffefc7584
  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.