Fix minor compos_key_cmd problems

- Occasionally, when the VM crashes early on, I've seen crashes where
  we call getline with a null FILE*. Defend against this.

- We were always opening the instance image read-only, which prevented
  it being updated, e.g. with info about the loaded APEXes.

Test: Exercise various compos_key_cmd incantations
Change-Id: I09c71dada254d2db426742c0d8175bfebc08125f
1 file changed
tree: 1e61cae8288a811b2ebbd76702bb48adfbb4bde6
  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. .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.