Patch Android vbmeta image and disable verification flags inside
Go to file
2022-11-23 20:06:39 +08:00
jni init 2022-11-23 20:06:39 +08:00
.gitignore init 2022-11-23 20:06:39 +08:00
LICENSE init 2022-11-23 20:06:39 +08:00
README.md init 2022-11-23 20:06:39 +08:00

vbmeta-disable-verification

Patch Android vbmeta image and disable verification flags inside.

Usage

Get prebuilts from releases.

$ ./vbmeta-disable-verification vbmeta.img 
Successfully disabled verification on the provided vbmeta image.

Give it a vbmeta image and then verification will be disabled on it.

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 :) .

Building

It's easy to build it with Android NDK.

$ export PATH="/path/to/your/ndk:${PATH}"
$ git clone https://github.com/libxzr/vbmeta-disable-verification
......
$ cd vbmeta-disable-verification
$ ndk-build
......
$ tree libs          
libs
├── arm64-v8a
│   └── vbmeta-disable-verification
├── armeabi-v7a
│   └── vbmeta-disable-verification
├── x86
│   └── vbmeta-disable-verification
└── x86_64
    └── vbmeta-disable-verification

References

License

MIT