Set avb_hash_algorithm=sha256 for system & vendor img

This sets the hash_algorithm used in add_hashtree_footer to sha256
(which otherwise defaults to sha1).

Also set hash_algorithm flag in sign_virt_apex

Bug: 262892300
Test: (Using avbtool) Check the image_info microdroid.img &
microdroid_vendor.img
Ignore-AOSP-First: This is a cherry-pick. Change already exist in AOSP
Merged-In: I4e17e38bd2d2c4ab0e2041c25ebde74c59e289cf
Merged-In: Ibdeaa0ab9a5e0b21cb5ec88940c6a8f968f897df

Change-Id: I8c4f3bc5bda4d1e361b16121b08c43bb7047b611
(cherry picked from commit 94d7faa228c828abbbfda212f2e4abfa27d00b25)
Merged-In: I8c4f3bc5bda4d1e361b16121b08c43bb7047b611
2 files changed
tree: 3e5c0501c8bc098ea78fa7de52ab752122dd876f
  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.

  翻译: