pvmfw: Use pvmfw_embedded_key from Rust

pvmfw will need the key to validate AVB-signed images so wrap it in a
rlib to import it into Rust code while making sure Soong is aware of the
dependency and handles file paths.

As this will be used in the context of AVB, create the module and
re-export the PUBLIC_KEY from there.

Use a debug! statement in main() to ensure that the key is kept in the
final binary by the toolchain.

Bug: 255575669
Test: m pvmfw_bin # verify that it contains testkey_rsa4096_pub.bin
Change-Id: I840a32a39f113d6becd50bea42b8552e551fee5f
3 files changed
tree: 86f29d96af323c6633204990e7a4596437a86cdc
  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.