From 80549346eaf1abcb42a705bfdf744d1606b859cf Mon Sep 17 00:00:00 2001 From: Andrew Gunnerson Date: Wed, 31 Jan 2024 17:39:13 -0500 Subject: [PATCH] README.md: Temporarily suggest manual procedure for initially flashing system.img We'll switch to using `fastboot flashall` in the future once that has been implemented and tested. Fixes: #252 Signed-off-by: Andrew Gunnerson --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8c910b8..e9f73ab 100644 --- a/README.md +++ b/README.md @@ -144,15 +144,17 @@ If you lose your AVB or OTA signing key, you will no longer be able to sign new 4. Flash the partition images that were extracted. - This can be done by manually running `fastboot flash extracted/.img` for each image in the `extracted/` directory or by using the following script: + For each partition inside `extracted/`, except for `system`, run: ```bash - for image in extracted/*.img; do - partition=$(basename "${image}") - partition=${partition%.img} + fastboot flash extracted/.img + ``` - fastboot flash "${partition}" "${image}" - done + Then, reboot into recovery's fastbootd mode and flash `system`: + + ```bash + fastboot reboot fastboot + fastboot flash system extracted/system.img ``` 5. Set up the custom AVB public key in the bootloader.