Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.46 KB

README.md

File metadata and controls

48 lines (35 loc) · 1.46 KB

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