README: Add minor clarifications

This commit is contained in:
Johannes Schnatterer
2024-04-07 21:07:25 +02:00
parent cf77999d95
commit 2532476583
+8 -1
View File
@@ -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.