In this context, --flags 2 sets the flag AVB_VBMETA_IMAGE_FLAGS_HASHTREE_DISABLED , which tells the bootloader that hash tree verification (dm-verity) is turned off. By comparing two images, if the stock image had a flag of 0 , a custom image with a flag of 2 explicitly signals the bootloader to bypass those checks.
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img Variant for A/B slots: Sometimes you must explicitly flash both slots: vbmeta disableverification command 2021
: You cannot modify or disable verification on a locked bootloader. In this context, --flags 2 sets the flag
: Your computer's Fastboot drivers are outdated. Download the newest SDK Platform Tools. In this context