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

Similar reasoning as aosp/2255456. ro.product.device could be overridden
by GSI if system.img was replaced with GSI.
Use ro.product.vendor.device, which comes from the vendor.img, to
determine the "device" type.

Bug: 243116800
Test: adb-remount-test on cuttlefish
Change-Id: Ib4a956047ef46d8e4837b27334f8d58162d4fa2a
This commit is contained in:
Yi-yo Chiang 2022-10-18 07:32:13 +00:00
parent e7f5532e0a
commit eb88e7b677

View file

@ -1423,7 +1423,7 @@ LOG RUN "flash vendor, and confirm vendor override disappears"
is_bootloader_fastboot=true
# cuttlefish?
[[ "$(get_property ro.product.device)" == vsoc* ]] &&
[[ "$(get_property ro.product.vendor.device)" == vsoc_* ]] &&
is_bootloader_fastboot=false
is_userspace_fastboot=false