Use ro.product.vendor.device to determine if running on Cuttlefish

So far, we used ro.product.name to check if the tests are running on
Cuttlefish or not. However, that is errorprone because Cuttlefish (as a
device) can run different variants of Android having different
ro.product.name values. For example, the prop is aosp_[arch] for GSI
(Generic System Image).

Fix this by using the device name that is in the vendor partition. The
partition is not replaced even with GSI.

Bug: 253638551
Test: run MicrodroidHostTestCases -- --abi x86_64 on Cuttlefish running
GSI

Change-Id: I6671d27a58bc4bcf7a209bbbfd7fdc5f0417ac68
3 files changed
tree: ce164bb56ae07937f7ad1ca086c278c19c0e5d5b
  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.