Unlock DM Verity
Unlock DM Verity
To disable the Android dm-verity in the new devices you should have the below.
• A Window/Linux computer
• The Android SDK platform-packages tools.
To use the Android kernel or give root access to your Android device, is needed to have some tools from
the Android SDK like ADB or fastboot. To download those tools just go to below web-page:
https://developer.android.com/studio#downloads
Go to the “command line tools only” part and download the sdk-tools-windows-4333796.zip package.
Note: Is recommended to storage the content of the zip file in path that you could find without any
problem, since the Android SDK tools can only be run by the terminal console.
Go to the developer options and search for the OEM unlock option. You need to activate that option.
Open the power-shell terminal and go to the path where you stored the zip file.
Example for Windows:
cd C:\users\diego\Documents\platform-tools
The you will use the ADB tool (Adroid Debug Bridge). To use it you need to run adb.exe in your power-
shell terminal. To run a executable in the Windows terminal is just with .\.
Connect the serial download cable to the host computer (the Type C for the i.MX8M and i.MX8MM. The
OTG for the i.M6 SabreSD boards).
.\adb.exe start-server
.\adb.exe devices
You should see your device and the serial number that is assigned to the device.
Once inside the Bootloader mode, using fastboot you can unlock your phone.
First see if your computer recognizes your board once inside the Bootloader mode.
.\fastboot.exe devices
If you do not see any device, go to the final section of the document.
.\fastboot.exe oem-unlock
.\fastboot.exe reboot
Unlock the dm-verity option.
.\adb.exe start-server
.\adb.exe devices
.\adb.exe root
.\adb.exe disable-verity
After disabling the verity option, it will request you to reboot your board. Just reboot your board.
.\adb.exe reboot
With that, you should have successfully disabled the verity option in your board.
Appendix A Update the USB driver (For Windows only)
If your computer does not recognize once you are inside the bootloader mode. What you need to do is
update the USB driver. To update the driver, follow the below steps.
First open your device manger and locate the Universal Serial Bus devices -> USB download gadget.
Then press the right click and select the update driver option.
Select the “Browse my computer for driver software” option.
Select the “Let me pick from a list of available drivers on my computer” option.
Select the ADB Device Model.
And accept to install the driver. After that your computer should recognize the board being into
Bootloader mode.