Disable DM-Verity via Fastboot
Android

Disable DM-Verity via Fastboot: Step-by-Step Guide [100% Working]

Hello friends! In our previous post, we learned how to disable DM-verity via Magisk, and today, we will learn how to disable DM-Verity via Fastboot. In this post, we are going to share every step in detail that you need to follow to disable Android Verified Boot. So, stay with us and read the post till the end. 

Android being the open-source OS gives us full freedom to customize and modify the Android devices like flashing Custom ROM and installing Custom Recovery like OrangeFox Recovery, TWRP Recovery, etc. We can add hundreds of tweaks to it. It allows us to enable USB debugging and OEM that lets them unlock the bootloader and root the device to do that.

We can also give apps root permissions to use all of their features. But doing so will also allow the app to access the system partitions and to perform admin-level tasks. They may perform malicious activities that can harm the device. But DM-Verity restains those apps from doing so to protect the device. 

Users who have root knowledge and know about the apps that can cause problems will not install such apps. When they know about what they are doing, they will find themselves limited by Android Verified Boot that stops the apps from using the full functionalities. Therefore, we have shared a full guide on how to disable DM-Verity so that you can disable it easily and add any tweaks to your device. 

About DM-Verity

DM-Verity is a kernel feature that checks & verifies the integrity of all the device blocks. It ensures the user that no changes are made by any app when booting the device, and the device is in the same state as it was when last used. If any app tries to compromise the system before the kernel comes up, DM-verity restrains that app to protect the device.

How to Disable DM-Verity

Many root users know the risk of rooting the device and giving superuser access to an app. They know which apps are good and bad for them. And as the DM-Verity restricts the apps, they want to disable DM Verity to customize their Android devices. I guess most users only know how to disable DM-Verity using TWRP recovery. But there’s also a way to disable DM-Verity without using TWRP recovery

Yes. You heard me right. You can disable DM-Verity via Fastboot and it doesn’t need TWRP recovery. To use this method, you will need a computer, Android SDK Platform Tools like ADB and Fastboot, and a USB cable. 

Disable DM-Verity via Fastboot

Disable DM-Verity via Fastboot

In this section, we have written all the steps you need to follow one by one to disable verified boot. These steps are:

Step 1: Install Android SDK Platform Tools

First of all, download and install the Android SDK Platform Tools such as ADB and Fastboot on your computer. You will use the ADB and Fastboot commands to disable DM Verity

Use the download links given below to download Platform Tools depending on your computer’s OS.

It will download a zip file containing the Platform Tools. Extract it to any location on your computer.

Disable DM-Verity via Fastboot

Step 2: Download & Extract Stock Firmware

You have to download the stock firmware for the Android device you have. You can download it from the official website of the device. The download file will be in ZIP format. Extract it to get the stock firmware files. Once extracted, paste the following files to the Platform Tools folder.

  • boot.img
  • Vbmeta.img
  • vbmeta_system.img
  • vbmeta_vendow.img
  • vendor_boot.img
  • dtbo.img

Step 2: Enable USB Debugging and OEM Unlock

You will need to enable the USB Debugging and OEM unlocks option in your Android device. Enabling the USB debugging will let the PC recognize the connected Android device in ADB mode. And OEM unlocks option will allow you to unlock the bootloader. You can enable them using the steps given below:

  • Go to the Settings >> About Phone. 
  • Here, tap on the build number 7 times to become the developer.
Disable DM-Verity via Fastboot 2
  • Then go back to the Settings and then to Advanced Settings >> Developer Options. 
  • Now, you will see both options – USB Debugging and OEM Unlock. Enable both of them.
Disable DM-Verity via Fastboot 1

When done, proceed to the next step to disable DM-Verity without TWRP.

Step 3: Open Command Prompt

Now you will need to use the Command Prompt to execute the ADB and Fastboot commands. To open the Command Prompt, follow the below steps:

  • Go to the Platform Tools folder where ADB and Fastboot files are stored. 
Disable DM-Verity via Fastboot
  • To open the Command Prompt, type CMD in the address bar and press the Enter key. It will open the Command Prompt.

Step 4: Unlock the Bootloader Mode 

Now use the ADB commands to boot into bootloader mode. We have written the commands below for Command Prompt. Execute them one by one.

  • Open the ADB server using the command:

adb start-server

  • To check if the Android device is connected and recognized by the computer using the command:

adb devices

  • If it shows the serial number of your device, that means the device is connected and recognized. And execute the next command to enter into Bootloader mode.

adb reboot bootloader

  • Now check if the computer is recognizing the device in bootloader mode or not. To do that, use the following command:

fastboot devices

  • If it shows the device, then the computer is recognizing it, and proceed to the next command. If it shows nothing, then that means the USB drivers are not updated in your computer. You need to update your USB drivers before proceeding to the next steps. To update the drivers, you can read our post – USB Driver
  • After updating the drivers, unlock the oem and reboot the device.

fastboot oem unlock

fastboot reboot

These steps will unlock the bootloader mode.

Step 5: Boot Device to Fastboot Mode 

Now boot the device to fastboot or bootloader mode. Use the links given below:

adb reboot bootloader

Then, check the fastboot connection using the following command:

fastboot devices

It will show the serial ID of the connected device.

Step 6: Disable DM-Verity via Fastboot 

It’s the final step you need to follow. In these steps, flash the vbmeta files using the fastboot commands to disable Android Verity. Here’s are the steps:

  • First, flash the vbmeta file using the command given below:

fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.img

fastboot --disable-verity --disable-verification flash vbmeta_b vbmeta.img

  • If the device has vbmeta_system and vbmeta_vendor files, then flash them too using the following commands:

fastboot --disable-verity --disable-verification flash vbmeta_system_a vbmeta.img

fastboot --disable-verity --disable-verification flash vbmeta_system_b vbmeta.img

and

fastboot --disable-verity --disable-verification flash vbmeta_vendor_a vbmeta.img

fastboot --disable-verity --disable-verification flash vbmeta_vendor_b vbmeta.img

  • Now reboot the device using the following command:

fastboot reboot

Done. It will successfully disable DM-Verity via Fastboot commands.

FAQ

What does DM-Verity do?

DM-Verity is a security feature in Kernel that restricts the apps from performing activities that can harm the device when booting.

Can I disable DM-Verity without TWRP recovery?

Yes. You can use Magisk or Fastboot commands to disable the DM-Verity without using TWRP recovery.

Why do I need platform tools?

Platform tools contain the ADB and Fastboot commands that let you perform various functions on an Android device using a computer via a USB connection.

Conclusion

Thank you for visiting and reading the post. In this post, we have shared all the steps required to disable DM verify via Fastboot on Android devices. You can use these steps to successfully disable Android Verified Boot (AVB). However, DM-Verity is a security feature to protect your device from harmful apps. If you don’t have root knowledge, then we suggest not disabling it. If you have any questions regarding this post, feel free to ask us. Have a nice day!

Leave a Reply

Your email address will not be published.