Use package_native only when prefer_staged

Virtualizationservice may start a VM even when package_native is not
ready (e.g. odsign at boot time). Waiting for "package_native" in such a
case will be blocked forever.

Now virtualizationservice uses package_native only when starting a
"prefer_staged" VM.

Bug: 199146189
Test: Create valid image & key files under
  /data/misc/apexdata/com.android.compos/current, make sure
  /data/misc/odsign/compos_key.cert doesn't exist, reboot. odsign starts
  the VM at boot to verify the key, and this all goes through successfully
Change-Id: I02c126f428aea7295814b0e1776c35795938afb7
1 file changed
tree: 04fb39162fa32f5bf1b8ca07952b3c136b6f6498
  1. apex/
  2. apkdmverity/
  3. apkverify/
  4. authfs/
  5. binder_common/
  6. compos/
  7. demo/
  8. docs/
  9. idsig/
  10. javalib/
  11. launcher/
  12. libs/
  13. microdroid/
  14. microdroid_manager/
  15. pvmfw/
  16. tests/
  17. virtualizationservice/
  18. vm/
  19. vmconfig/
  20. zipfuse/
  21. .clang-format
  22. Android.bp
  23. OWNERS
  24. PREUPLOAD.cfg
  25. README.md
  26. 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.