chenxiaolong / avbroot

Sign (and root) Android A/B OTAs with custom keys while preserving Android Verified Boot
GNU General Public License v3.0
433 stars 40 forks source link

Unable to relock bootloader #305

Open kcespedes opened 2 weeks ago

kcespedes commented 2 weeks ago

I followed the guide successfully until last step. However, when I attempt re-locking the bootloader there is the following error message:

% fastboot flashing lock

FAILED (remote: 'invalid android images, skip locking')

I followed these steps:

1 downloaded OTA image and stock image from the google website for Pixel 6 pro 2 created the necessary keys 3 created a patched image with magisk of the stock image boot.img 4 patched the OTA.zip file with the signing keys created and the magisk patched stock image 5 applied the patched OTA 6 added custom avb keys to bootloader 7 checked with this command: adb shell su -c 'dmesg | grep libfs_avb' and did receive the following response: init: [libfs_avb]Returning avb_handle with status: Success

what am I missing if all steps completed successfully? Why am I not able to relock the bootloader?

chenxiaolong commented 2 weeks ago

5 applied the patched OTA 6 added custom avb keys to bootloader

Could you try these again and post the output of the commands here?

I'm not sure if it's the case here, but invalid android images, skip locking usually means either avb_custom_key or vbmeta did not get flashed properly.