Skip to content

Commit

Permalink
volla-mimameid: fix coming (back) from Android
Browse files Browse the repository at this point in the history
- If the current slot is 'b' (as it can be if Android has been updated),
  even if we set the (new) active slot to 'a', we still have to
  explicitly spell out the slot, otherwise bootloader will still
  flash to slot b.
- vbmeta has to be flashed, replacing the one from Android. Use a
  generic vbmeta from Google. In the future, the bootstrap tarball could
  include one.
  • Loading branch information
peat-psuwit committed Jun 28, 2023
1 parent e1b7588 commit 293122d
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions v2/devices/mimameid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ operating_systems:
checksum:
sum: "c0216239cc6dc11e23940884d0f6d1183b29898e63b561da8122bf69636f6c7c"
algorithm: "sha256"
# TODO: tells Volla to ship a vbmeta.img as part of the bootstrap zip.
- url: "https://dl.google.com/developers/android/qt/images/gsi/vbmeta.img"
checksum:
sum: "f6da5489fd877cb69cf61fa721cfd6d77e530084aefe9b96664f818947ff61f6"
algorithm: "sha256"
condition:
var: "bootstrap"
value: true
Expand Down Expand Up @@ -87,12 +92,16 @@ operating_systems:
- actions:
- fastboot:flash:
partitions:
- partition: "lk"
- partition: "lk_a"
file: "unpacked/lk.img"
group: "firmware"
- partition: "boot"
- partition: "boot_a"
file: "unpacked/boot.img"
group: "firmware"
- partition: "vbmeta_a"
file: "vbmeta.img"
group: "firmware"
flags: [ "--disable-verity" ]
- partition: "super"
file: "unpacked/super.img"
group: "firmware"
Expand Down Expand Up @@ -333,13 +342,13 @@ operating_systems:
- actions:
- fastboot:flash:
partitions:
- partition: "dtbo"
- partition: "dtbo_a"
file: "unpacked_droidian/data/dtbo.img"
group: "firmware"
- partition: "boot"
- partition: "boot_a"
file: "unpacked_droidian/data/boot.img"
group: "firmware"
- partition: "vbmeta"
- partition: "vbmeta_a"
file: "unpacked_droidian/data/vbmeta.img"
group: "firmware"
- partition: "userdata"
Expand Down

0 comments on commit 293122d

Please sign in to comment.