Patch Android vbmeta image and disable verification flags inside.
Based on vbmeta-disable-verify by LibXZR [email protected]
Give it a vbmeta image and then verification will be disabled on it.
android_vbmeta_disable_verification.py <vbmeta-image> [<vbmeta-output-image>]
Example:
$ python3 ./android_vbmeta_disable_verification.py vbmeta.img
Patched vbmeta image was saved to the file 'vbmeta.patched.img'.
Successfully disabled verification on the provided vbmeta image.
You can also use android_vbmeta_disable_verification.py as a python module:
import android_vbmeta_disable_verification as vbm
vbm.patch_vbmeta_file('vbmeta.img')
This should be equal to fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
.
The only difference is that it directly patch the image file. Fastboot doesn't provide the ability to generate an image with verification disabled, but sometimes I need it :) .
Python >= 3.8 is required.