How to Fix Disable DM Verity error in OnePlus System Updater app

Disable DM Verity error in system updater app OnePlus

Disable DM Verity error in system updater app OnePlus

There exist quite a few ways through which you can install OTA updates on your OnePlus device. These include the Local Install/Local Upgrade, via the ADB Sideload [on some devices], by flashing the Fastboot ROM, and by flashing the OPS firmware via MSM Download Tool [the latter two are mostly used by the tech enthusiasts in extreme situations]. Out of all these methods, it is the Local Install or the Local Upgrade that is the preferred choice for the masses.

This is because the ADB Sideload feature is not supported across all the OnePlus devices [talking about the stock OS] and flashing the Fastboot ROM requires an unlocked bootloader, which in turn will wipe off all the data from your device and could nullify its warranty as well. Likewise, the MSM Download Tool requires a lot of effort and could prove to be way too technical for many. So owing to all these reasons, it’s the Local Install option that has forever been the go-to choice for the masses.

However, that is proving to be easier said than done for a subset of users. They have voiced their concern about the Disable DM Verity error while trying to update their OnePlus via the System Updater app. As a result of this, they are left stuck on an older OS build, thereby missing some new and intriguing goodies, and more importantly, it could prove to be a major security and privacy risk as well.

Do note that this issue is most likely to occur if you are trying to install an update on your rooted device and henceforth trying to preserve root after an OTA. If you are simply downloading and installing the update in the stock ecosystem, then this issue wouldn’t happen. So for those users who are currently affected by this bug, this guide will outline the steps to rectify this issue once and for all. Follow along.

What is DM Verity?

According to AOSP, “The dm-verity feature lets you look at a block device, the underlying storage layer of the file system, and determine if it matches its expected configuration”. In the simplest of terms, it verifies whether the underlying code base has been tinkered with or not. If it has, most probably while rooting your device via Magisk or flashing a customized firmware, then your device might not boot to the OS.

In such cases, you’ll have to first disable the verity and verification checks by flashing the vbmeta.img file and adding the disabling check parameters to the command. While you wouldn’t have to carry out this task manually while rooitng your device, however, if you are flashing any GSI ROM, then disabling the verity check is a must.

If we talk about the current issue at hand, then we already have gained administrative privileges and access to the system partition. For the OS, this might prove to be a red flag and hence it would prevent you from installing updates on your rooted OnePlus. With that said, we do have a nifty workaround that should help you address this bug once and for all. So without further ado, let’s check them out.

How to Fix Disable DM Verity error in OnePlus System Updater app

There exist two different methods through which you could get this job done: KernelSu and Magisk. You should use the method that you have initially used for rooting your device. Thedroidwin will not be held responsible if anything happens to your device and data after performing the below steps:

For KernelSU

  1. To begin with, download and install the Termux app from the Play Store.
  2. Then launch KernelSU, go to SuperUser, and select Termux from the list.
  3. Now enable the toggle next to SuperUser. Then go back to the Termux app.
  4. Now type the below command and hit Enter to open the root environment
    su
  5. Finally, execute the below command and your task stands complete:
    setprop ro.boot.veritymode enforcing

    Disable DM Verity error in system updater app OnePlus

Via Magisk

  1. To begin with, download and install the Termux app from the Play Store.
  2. Now type the below command. You’ll get a SuperUser request, tap Grant.
    su
  3. Finally, execute the below command and this should rectify the verity bug:
    resetprop ro.boot.veritymode enforcing
  4. Now you can flash full rom via the System Updater app without any issues.

That’s it. These were the steps to fix the Disable DM Verity error in OnePlus System Updater app. Still, have any doubts? The comments section is all yours, make your voices heard there and we’ll chalk out the best fix for you.


Leave a Reply

Your email address will not be published. Required fields are marked *