Test that we can parcel & unparcel VirtualMachineDescriptor

The test creates a VirtualMachineDescriptor, writes it to a parcel,
reads it from the parcel, and then tries to create a VM from it.

This change also fixes the bug in how VirtualMachineDescriptor is
parceled/unparceled: the writeToParcel was writing a full
ParcelFileDescriptor parcelable, while VirtualMachineDescriptor(Parcel)
c-tor was reading just a raw fd.

Bug: 259384440
Test: atest MicrodroidTestApp
Change-Id: I809fa635ebb934e0ba957d3e2642d1b40d21ec50
2 files changed
tree: 7218df293c2df7a24362a36915142bc63bb6820c
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. avmd/
  5. compos/
  6. demo/
  7. docs/
  8. encryptedstore/
  9. javalib/
  10. launcher/
  11. libs/
  12. microdroid/
  13. microdroid_manager/
  14. pvmfw/
  15. rialto/
  16. tests/
  17. virtualizationmanager/
  18. virtualizationservice/
  19. vm/
  20. vm_payload/
  21. vmbase/
  22. vmclient/
  23. zipfuse/
  24. .clang-format
  25. .gitignore
  26. Android.bp
  27. OWNERS
  28. PREUPLOAD.cfg
  29. README.md
  30. 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.