One of the most valuable advantages of using an open-source operating system like Android is the flexibility to perform a variety of tweaks. Unwanted attacks are detected using dm-verity or Andriod verified boots encryption. But your technical enthusiasm will lead you to move one step ahead for customization. By Disabling DM-Verity or Android Verified Boot, You could unlock the device’s bootloader, install custom ROMs such as LineageOS, Pixel Experience, and AOSP, or flash a custom recovery such as TWRP. This guide will teach us how to disable DM-Verity or Android Verified Boot Via Fastboot.
Disable DM Verity via Fastboot Command- Step by Step
You can easily disable the DM-Verity or Android Verified Boot via the Fastboot command. Here are the steps to do it:
1. Install Android SDK
You must first install the Android SDK Platform Tools on your computer. The only one Google officially recommends is this one, which is also the official ADB and Fastboot binaries. Download it, then extract it to a spot on your computer that is appropriate for you. You will receive the platform-tools folder as a result, which you will need for the rest of this manual.
2. Download and Extract Stock Firmware
Afterwards, extract the stock firmware for your device to any suitable spot on your PC after downloading it. Move the files listed below to the platform-tools folder after extraction is finished.
- boot.img [compulsory]
- vbmeta.img [compulsory]
- dtbo.img [if present]
- vendor_boot.img [if present]
- vbmeta_system.img [if present]
- vbmeta_vendor.img [if present]
Please be aware that not all devices will have the dtbo.img, vendor boot.img, vbmeta system.img, and vbmeta vendor.img; that is perfectly acceptable. The boot.img and vbmeta.img files must, however, be present in your default firmware.
3. Enable USB Debugging and OEM Unlocking
After that, you ensure your device has OEM Unlocking and USB Debugging enabled. In ADB mode, the former will enable the PC to recognize your device. To boot your device into Fastboot Mode after that, do this. Conversely, to do the bootloader unlocking procedure, OEM Unlocking is necessary.
Therefore, navigate to Settings > About Phone > Seven times, tap the Build Number > Visit Settings > System > Advanced > Developer Options once again. Unlock the OEM and enable USB debugging.
4. Unlock Bootloader
Next, The bootloader of the smartphone must also be unlocked. Do keep in mind that doing so would erase all of the data from your device and can void the warranty. You can google up a detailed guide on how to unlock the bootloader on any android device for this.
5. Boot Device to Fastboot Mode
- As a next step, Utilize a USB cord to connect your gadget to the PC. Ensure that USB Debugging is turned on.
- Then enter CMD in the address bar and navigate to the platform-tools folder. By doing this, the Command Prompt will open.
- To boot your device into Fastboot Mode after that, enter the following code in the CMD window (adb reboot bootloader)
- Lastly, Enter the following command to acquire the device ID and confirm the Fastboot connection.
6. Disable DM Verity Check via Fastboot
Now that the vbmeta (as well as vbmeta system and vbmeta vendor) files have been flashed, you can disable the Verity Check. In order to begin the procedure, follow the steps below:
I. First, use the command below to flash the vbmeta file into both slots:
[fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img] [fastboot --disable-verity --disable-verification flash vbmeta_b vbmeta.img]
II. If your device already has a vbmeta system file, use the following commands to flash it in both slots:
[fastboot --disable-verity --disable-verification flash vbmeta_system_a vbmeta_system.img] [fastboot --disable-verity --disable-verification flash vbmeta_system_b vbmeta_system.img]
III. Similarly, if your firmware includes the vbmeta vendor file, use the following commands to flash it across both slots:
[fastboot flash --disable-verity --disable-verification vbmeta_vendor_a vbmeta_vendor.img] [fastboot flash --disable-verity --disable-verification vbmeta_vendor_b vbmeta_vendor.img]
IV. That’s about it. You can now reboot the device to the operating system with the following command:
Therefore, these were the procedures to disable DM-Verity or Android Verified Boot (AVB) with Fastboot Commands. It is advisable to have a backup of your device before you follow the above steps. In the event that some mishap occurs to your device, no one will be held accountable for it.