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:
parent
e7f5532e0a
commit
eb88e7b677
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue