r/Magisk•
ReimarPB

[HELP] What does "Preserve AVB 2.0/dm-verity" do and when should it be turnd on?

Help

I'm going through Magisk's installation instructions and it tells me when I should enable the "Patch vbmeta in boot image" option.

However, I cannot find anywhere where the "Preserve AVB 2.0/dm-verity" option is mentioned. What does it do, and in which case should I have it enabled?

Posted Jun 21, 2022, 1:19 PM UTC

83
ReimarPBOP•

I think I've found an explanation here

Q: After flashing Magisk, my device will show a scary popup saying "There's an internal problem with your device. Contact your manufacturer for details" A: This is caused by dtbo image patched to remove AVB 2.0 of the vendor partition. This is required for allowing you to mount vendor to rw and make modifications If you never plan to modify the vendor partition, in Magisk Manager, "Uninstall > Restore Images" to restore the images, check "Preserve AVB 2.0/dm-verity" box in Advanced Settings, then reinstall Magisk via the app.

So as I understand it, having it checked will not allow you to modify the vendor partition, while having it unchecked will make the phone show a warning message.

7
DestroyerNile•

For this exact reason I flash magisk directly from recovery and it preserves AVB

2
stifflippp•

What recovery? TWRP?

1