From 2532476583e49eae56fd6661e4a6a1bb26f76ed2 Mon Sep 17 00:00:00 2001 From: Johannes Schnatterer Date: Sun, 7 Apr 2024 21:07:25 +0200 Subject: [PATCH] README: Add minor clarifications --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1edbbe2..e89cebf 100644 --- a/README.md +++ b/README.md @@ -157,9 +157,10 @@ If you lose your AVB or OTA signing key, you will no longer be able to sign new fastboot flash system extracted/system.img ``` -5. Set up the custom AVB public key in the bootloader. +5. Set up the custom AVB public key in the bootloader after rebooting from fastbootd to bootloader. ```bash + fastboot reboot-bootloader fastboot erase avb_custom_key fastboot flash avb_custom_key /path/to/avb_pkmd.bin ``` @@ -180,6 +181,12 @@ If you lose your AVB or OTA signing key, you will no longer be able to sign new 7. Reboot back into fastboot and lock the bootloader. This will trigger a data wipe again. + ```bash + fastboot flashing lock + ``` + + Confirm by pressing volume down and then power. Then reboot. + Remember: **Do not uncheck `OEM unlocking`!** **WARNING**: If you are flashing CalyxOS, the setup wizard will [automatically turn off the `OEM unlocking` switch](https://github.com/CalyxOS/platform_packages_apps_SetupWizard/blob/7d2df25cedcbff83ddb608e628f9d97b38259c26/src/org/lineageos/setupwizard/SetupWizardApp.java#L135-L140). Make sure to manually reenable it again from Android's developer settings. Consider using the [`OEMUnlockOnBoot` module](https://github.com/chenxiaolong/OEMUnlockOnBoot) to automatically ensure OEM unlocking is enabled on every boot.