sign_virt_apex: use thread pool

Use ThreadPoolExecutor to run external tools for signing/verification to
avoid unnecessary IO waiting which makes the tool extremely slow and
tests depending on it fail.

Local test shows `sign_virt_apex_test` running time reduced 15s->4s.

Bug: 229721225
Test: atest --host sign_virt_apex_test
Test: atest MicrodroidHostTestCases
Test: presubmit
Change-Id: I2b1ebe9f74e06256a049565a936c3b604a1775ce
1 file changed
tree: 6625f8af3cf316a76b15e9ab44c2ffad87d64795
  1. .prebuilt_info/
  2. apex/
  3. apkdmverity/
  4. authfs/
  5. compos/
  6. demo/
  7. docs/
  8. javalib/
  9. launcher/
  10. libs/
  11. microdroid/
  12. microdroid_manager/
  13. pvmfw/
  14. tests/
  15. virtualizationservice/
  16. vm/
  17. zipfuse/
  18. .clang-format
  19. .gitignore
  20. Android.bp
  21. OWNERS
  22. PREUPLOAD.cfg
  23. README.md
  24. 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.