diff options
author | Alistair Delva <adelva@google.com> | 2022-01-28 10:31:40 -0800 |
---|---|---|
committer | Alistair Delva <adelva@google.com> | 2022-01-28 13:02:31 -0800 |
commit | 87ce02c6c20dc677d64c84903ef321bc16d3c1ba (patch) | |
tree | 8d87dd06cae1a4790bce98183bbe7f6b716b2edd /default_env.txt | |
parent | 4ff8e2a25505979d8b064b78b0d670244eff29bf (diff) |
ANDROID: Use a built-in environment for all virtual devices
Recent changes to the bootloader have made booting Android much simpler,
with fewer workarounds required. Avoid loading the bootloader
environment from disk, which provides a control vector for an attacker.
This makes the cuttlefish and microdroid bootloaders like kiwi's.
On microdroid, the device "0#misc" will be used, even though this
platform does not have a misc partition. The bootloader will
automatically detect this and fall back to "0", which means the Android
boot flow will assume NORMAL boot is wanted, and the slot suffix should
be "_a".
Bug: 216304872
Change-Id: Ib8dc81000ae42e56b321041c1119630cf698723b
Diffstat (limited to 'default_env.txt')
-rw-r--r-- | default_env.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/default_env.txt b/default_env.txt new file mode 100644 index 00000000000..1d43b1f05c2 --- /dev/null +++ b/default_env.txt @@ -0,0 +1,3 @@ +bootcmd=virtio scan && setenv bootargs "$cbootargs" && verified_boot_android virtio 0#misc +android_keymint_needed=N +bootdelay=0 |