Use protected VM if possible

If the system is capable of running a protected VM, then request one.

On userdebug/eng builds only, fall back to unprotected VM if that is
all that is available. (This is useful for testing.)

A protected VM doesn't support full debug, so use app only debug in
that case. That change requires relaxing the constraint on running
compilation in test mode to match.

I've also increases the VM start timeout to avoid spurious timeouts.

Bug: 217687661
Test: composd_cmd staged-apex-compile
Test: composd_cmd test-compile
Change-Id: Ic7be2c5260982c3c69421c01d10c1537864b87be
3 files changed
tree: b3380fd2b434abe5f4bdeb6cd1f427ebda2cf2cf
  1. .prebuilt_info/
  2. apex/
  3. apkdmverity/
  4. apkverify/
  5. authfs/
  6. binder_common/
  7. compos/
  8. demo/
  9. docs/
  10. idsig/
  11. javalib/
  12. launcher/
  13. libs/
  14. microdroid/
  15. microdroid_manager/
  16. pvmfw/
  17. statslog_virtualization/
  18. tests/
  19. virtualizationservice/
  20. vm/
  21. vmconfig/
  22. zipfuse/
  23. .clang-format
  24. .gitignore
  25. Android.bp
  26. OWNERS
  27. PREUPLOAD.cfg
  28. README.md
  29. 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.