-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that PrepatchedImagePatcher runs before other patchers
On older devices, like the Pixel 4a, where `boot` is used for both Android and recovery mode, the image will be patched by OtaCertPatcher and PrepatchedImagePatcher. OtaCertPatcher was always set to run first, so when PrepatchedImagePatcher used the user-supplied image as-is, prior modifications got wiped out. This made is so users could no longer flash further patched OTAs. This is an unfortunate regression that was introduced in avbroot 2.0.0. The e2e tests never caught this issue because the --prepatched test was being fed the boot image previously patched by --magisk. That already had valid certs so the result of OtaCertPatcher's modifications being lost were not visible. This commit also fixes the e2e tests so that this type of issue will be caught in the future. Fixes: #356 Signed-off-by: Andrew Gunnerson <[email protected]>
- Loading branch information
1 parent
352352b
commit 296df25
Showing
2 changed files
with
60 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters