yashsingh1/xdaforums huggingface dataset:
[Lenovo Vibe K4 Note Questions & Answers] MoazSalem:
because of the chipset

it can't be fixed

mediatek mt6753

the only fix is change your phone :rolleyes:
[Lenovo Vibe K4 Note Questions & Answers] spidy1212:
so there is no other way to fix it :(:(
[Lenovo Vibe K4 Note Questions & Answers] MoazSalem:
maybe underclocking

but no
[OnePlus 3T Guides, News, & Discussion] Xennet:
THIS IS FOR PEOPLE WHO HAVE TRIGGERED DM-VERITY AND NEEDS TO GET RID OF THE DM-VERITY MESSAGE PERMANENTLY ON OOS OR OPEN BETA OR CUSTOM ROM. CONFIRMED WORKING EVEN IN THE LATEST OOS 4.5.1/BETA Nougat Roms...

THIS IS FOR ONEPLUS 3T AND FOR ONEPLUS 3 but be careful in using the correct files corresponding to the OOS version and your MODEL

FOLLOW THE STEPS EXACTLY AND 100% THE DM-VERITY MESSAGE WILL BE GONE WITHOUT ANY DATA LOSS OR ANY OTHER HARM!!!

Prerequisite : Install ADB for windows from here: [url]https://xdaforums.com/showthread.php?t=2588979[/URL]

1)

Download 4.0.2 Firmware for Oneplus 3T from here: [url]http://www.mediafire.com/file/cx568em66025p5b/4.0.2_firmware_OnePlus_3T.zip[/URL]

Download 4.0.2 Firmware for Oneplus 3 from here: [url]http://www.mediafire.com/file/8tt5x4xxy4m488t/4.0.2_firmware_OnePlus3.zip[/URL]

2) Flash the downloaded 4.0.2 firmware OnePlus 3.zip or 4.0.2 firmware OnePlus 3T.zip file in TWRP.

3) DONT REBOOT TO SYSTEM. REBOOT TO BOOTLOADER FROM OPTION IN TWRP.

4) Connect your phone to the pc

5) Press windows button + X

6) Open Command prompt

7) Type "fastboot oem disable_dm_verity" without quotes and press enter

8) Type "fastboot oem enable_dm_verity" without quotes and press enter

9) DONT REBOOT TO SYSTEM. REBOOT TO TWRP RECOVERY.

10)

In case of Oneplus3T, Flash the required firmware files for Stable or Open Beta OOS corresponding to your current OOS (current OOS is the version of OOS which you are using now on your phone) in TWRP from this post: https://xdaforums.com/oneplus-3t/how-to/firmware-beta-10-t3631166(Courtesy: [MENTION=4369704]kamilmirza[/MENTION])

In case of Oneplus3, Flash the required firmware files for Stable or Open Beta OOS corresponding to your current OOS (current OOS is the version of OOS which you are using now on your phone) in TWRP from this post: [url]https://xdaforums.com/oneplus-3/how-to/radio-modem-collection-flashable-zips-t3468628[/URL] (Courtesy: [MENTION=3068641]jamal2367[/MENTION])

11) DONT REBOOT!!!!

10) VERY IMPORTANT: WITHOUT REBOOTING, Flash the downloaded boot-patched.img file corresponding to the OOS version and phone model(either stable or beta) in TWRP from post 1...

11) Reboot..The DM-verity message is gone forever...

VERY IMPORTANT: If you are attempting this method on a a CUSTOM ROM then after Step 10 flash the full CUSTOM ROM zip file + latest gapps again without doing any sort of wipes in TWRP immediately and then only reboot....

Enjoy!!!

FAQs...

Q: Will I lose any data after I do these steps?

A: Never. There will be no data loss or any untoward effects of the procedure. Your data and phone will be in the exact same state as it was a before except for the fact that the damn dirty Dm-Verity message will be gone forever!!!

Q: Will this work on CUSTOM ROMs?

A: Of course. It has been tested to be perfectly working on even CUSTOM ROMs. Just follow the instructions in this post carefully where specific steps for CUSTOM ROMs are mentioned.

HIT THANKS IF I HELPED YOU. IT DOESN'T COST YOU ANYTHING, BUT IT MEANS A LOT TO ME...
[OnePlus 3T Guides, News, & Discussion] Aksbot:
Thanks mate..... You made my day..... Working perfectly.
[OnePlus 3T Guides, News, & Discussion] Teenzak:
Nice to see this thread on the day of release of oos 4.1.5 itself.
[OnePlus 3T Guides, News, & Discussion] Xennet:
Deleted..
[OnePlus 3T Guides, News, & Discussion] jkbdroid:
So well explained and working perfectly

One if the most detail step by step explanation

Thanks dev.
[OnePlus 3T Guides, News, & Discussion] MohamedRaafat:
Hi,

I have already done the second method on 4.1.4 but without reflashing the firmware so will I have to do it again when Install 4.1.5?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Do the second method only if you trigger DM Verity while installing 4.1.5

To be sure you don't trigger DM Verity while installing 4.1.5 follow the instructions in the OP...
[OnePlus 3T Guides, News, & Discussion] prorokrak:
Hi,

would it be too bold to ask if something similar could be prepared also for OP3?

I have exactly the same problem with DM-Verity triggered on my OP3. I have seen several guides how to get rid of it but they are sometimes contradictory and the whole process seems to be a bit overwhelming.

This solution seems to be the cleanest of all I have seen but I am not so lucky to own OP3T.

Would you be so kind to prepare this also for us, OP3 owners, if possible?

Of course, there can be many valid reason why not and I can perfectly understand that. But I decided to ask, just in case...
[OnePlus 3T Guides, News, & Discussion] Xennet:
I have been thinking about it for the past few days...

Anyways I thought as no one asked they were not interested in getting the patched boot images for op3...

Ok.. they have released OOS 4.1.6..

So will push the links for the patched boot images for both op3 and op3T tomorrow after I test and get hands on the flashable ROMs.
[OnePlus 3T Guides, News, & Discussion] Xennet:
The OP has been updated to accomodate both ONEPLUS 3T and ONEPLUS 3

Now this thread can be used for both models and will be updated as new OOS version come..

Enjoy!!!
[OnePlus 3T Guides, News, & Discussion] Xennet:
NEW UPDATE RELEASED!!!

Links in OP...

Oxygen OOS 4.1.6 patched boot images for ONEPLUS 3T and ONEPLUS 3...
[OnePlus 3T Guides, News, & Discussion] Bazilli:
Thenks for this!
[OnePlus 3T Guides, News, & Discussion] Xennet:
Just flash the patched boot.img and select boot in the twrp option..

It's the boot image so boot option...
[OnePlus 3T Guides, News, & Discussion] sparky vicky:
Yes i choose boot but still the warning showing on boot:confused:
[OnePlus 3T Guides, News, & Discussion] Xennet:
Which phone are you using op3 or 3t..

Did you flash 4.0.2 zip and type the commands

Tell the steps you did.

Which is the warning being shown?

DM Verity warning or the the phone is unlocked warning??
[OnePlus 3T Guides, News, & Discussion] sparky vicky:
Im on OP3T, OOS 4.1.6
[OnePlus 3T Guides, News, & Discussion] Xennet:
Which is the warning being shown and explain the steps you did
[OnePlus 3T Guides, News, & Discussion] sparky vicky:
Dm verity warning showing and asusal the unlocked warning also. Im on 3T with OOS 4.1.6. I need to flash 4.0.2 zip before this? Those are not mentioned in OP?

---------- Post added at 05:28 PM ---------- Previous post was at 05:26 PM ----------

Flashed 4.1.6 with twrp at same time without reboot flashed bootpatch and rebooted to system and still the dm verity showung :confused:

Did i collapsed the procedure?:confused::silly:
[OnePlus 3T Guides, News, & Discussion] Xennet:
Mate do read the second post in the OP...

For getting rid of the DM-Verity message..

The first OP post is only for those who have no DM Verity warning on their phone..

If you already have DM Verity warning on your phone you have to follow the second post..it is clearly mentioned in the OP.. AND WRITTEN IN BOLD LETTERS..

Once you get rid of the DM Verity warning from next time onwards you have to follow only the instructions in the first OP post..
[OnePlus 3T Guides, News, & Discussion] abalam:
The message dm-verity is just a warning that you have no encryption. More is not actually. This message does not affect the system etc ... But thank man that you have make a solution for those who disturb this message.
[OnePlus 3T Guides, News, & Discussion] redpoint73:
No, that isn't what it means. The DM-Verity warning means that the kernel will not be verified as stock.

The "force encryption" part of the patched boot image, means that if you are already decrypted, it will

not

be automatically encrypted if you flash a stock ROM. If the phone is encrypted, the patched boot image will

not

decrypt it. This info covered in the top post of this thread.
[OnePlus 3T Guides, News, & Discussion] abalam:
I also meant such a thing, but did not know exactly how to speak in English. Thank you for the clear explanation
[OnePlus 3T Guides, News, & Discussion] loveuhp:
update fast ....:D
[OnePlus 3T Guides, News, & Discussion] buski:
fingerprint button doesn not workafter goin back to stock after using this fix?:confused:
[OnePlus 3T Guides, News, & Discussion] Xennet:
Didn't get your problem..

Please detail your problem...

No problems with fingerprint button here in my phone nor anyone has complained about...

Do give the details of the OOS or custom rom version the method you used etc before posting a problem..

The boot patch has nothing to do with fingerprint... everything is stock...may be an issue on your side...
[OnePlus 3T Guides, News, & Discussion] buski:
After using this fix i flashed latest stock oos from oneplus 3t and fingerprint enrollment does not work....

I tried another custom rom and fingerprint enrollment works thats weird.....
[OnePlus 3T Guides, News, & Discussion] Xennet:
Flashing stock OOS FULL ROM ZIP will rewrite everything including the firmware and hence the fix has nothing to do with it... But it's weird that after flashing stock full ROM zip fingerprint doesn't work and it works with custom roms..usually it's other way round...did you try a clean flash with stock 4.5.0 ROM zip?

My phone is 3T and my wife's is oneplus 3 both phones now run on OOS 4.5.0 with my patched boot image and has no problems at all..no fingerprint issues nothing...
[OnePlus 3T Guides, News, & Discussion] Mofokiller69:
So I deliberately for the sake of research one might say triggered DM-VERITY, and used the method mentioned by our saviour [MENTION=7874870]Xennet[/MENTION] but DM-VERITY keeps triggering back on, on 4.5 any possible theories or fixes?

*Edit*

I factory reset the device and flashed other oxygen os roms to try the method on but my phone keeps triggering DM-VERITY so at this point I'm officially lost :( any help is appreciated
[OnePlus 3T Guides, News, & Discussion] Xennet:
Mention the steps..Did you enter the commands after flashing the 4.0.2 firmware?

Follow the steps exactly as in post 2. There is no way that DM verity message will not be gone.
[OnePlus 3T Guides, News, & Discussion] Mofokiller69:
Yes exactly [MENTION=7874870]Xennet[/MENTION] and it works for a period of time too, like it boots up without dm-verity after the unlocked bootloader screen but then the phone restarts again, shows the unlocked bootloader page and then Dm-verity again. Something triggers it back up

Steps:

Follow the same exact stuff you mentioned and flashing the stock rom over it again and wiping cache just in case
[OnePlus 3T Guides, News, & Discussion] Xennet:
Did you boot right back to twrp after typing in the commands right? Never boot back to system first...

Boot to twrp and flash the ROM followed by the patched boot image and againg restart back to twrp...

Then rebooting to system will not trigger it..

Never reboot to system before any of these steps...
[OnePlus 3T Guides, News, & Discussion] Mofokiller69:
First off thanks for the quick replies, and the mistake I made this time around was I didn't install the patched boot image for the new OOS rom I flashed after clearing dm-verity problem, so this acted against the dm-verity and triggered it again and again but this time around I flashed the patched image file too after flashing the OOS rom and hence it hasn't been triggered.

Maybe I'm the only one stupid enough not to realise that but thanks now the dm-verity problem is gone thanks once again mate and keep up the good job :)
[OnePlus 3T Guides, News, & Discussion] kararangga:
Working well..
[OnePlus 3T Guides, News, & Discussion] drsudarshanbk:
Tried on OP3T oos 4.5 ... failed

Did everything as per instructions

1. Flashed 4.0.2 firmware

2. Booted to bootloader

3.Fastboot cammands

4.booted to recovery

5.flashed OOS 4.5 firmware file

6.flashed patched boot img for OOS 4.5

7. Rebooted to system

8. Then came annoying locked bootloader n dm verity.
[OnePlus 3T Guides, News, & Discussion] Xennet:
What OOS version did you trigger the DM verity?

What was the response in command prompt after entering the fastboot commands?
[OnePlus 3T Guides, News, & Discussion] drsudarshanbk:
DM verity triggered on OOS 4.5

both fastboot cammands passed ... completed successfully.
[OnePlus 3T Guides, News, & Discussion] Xennet:
Just for confirmation I did the the procedure on my phone with OOS 4.5 Oneplus 3T and it clears the DM verity message...and it has been confirmed by other users who has posted above on 3T...

The steps you did should remove DM verity message...think you missed something...

If you can, do make a video of the procedure you did and post it here so that I can check it out...
[OnePlus 3T Guides, News, & Discussion] drsudarshanbk:
One question..

During flashing boot img it asked flash in partition

1. Boot

2.Recovery

3.System img

I flashed it in boot, is it right?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Yes. Flash it in boot partition..
[OnePlus 3T Guides, News, & Discussion] FrailtyXYZ:
i can confirm the method is still applicable on oos 4.5.0
[OnePlus 3T Guides, News, & Discussion] Xennet:
Yeah guys!!!

Thanks for all your interest in this thread...

The downloads counter attached shows how overwhelming has been the response..

There needs no other proof that this method and my patched boot image is foolproof and works to the core...

Your support keeps me driving...
[OnePlus 3T Guides, News, & Discussion] HampTheToker:
Your patched boot.img is a godsend. I've gone through multiple clean flashes to get magisk modules and xposed working, and not once have I tripped dm-verity since I started using it. Many many thanks for that.
[OnePlus 3T Guides, News, & Discussion] 2CAN0:
Open Beta 16 (android 8.0)

Do you know if there is a boot patch for open beta16
[OnePlus 3T Guides, News, & Discussion] Xennet:
For disabling DM-VERITY AND FORCE ENCRYPTION IN OOS OREO BETA ROM 16/25 for ONEPLUS 3T AND 3 VISIT MY NEW THREAD BELOW...

https://xdaforums.com/oneplus-3t/how-to/disable-dm-verity-force-encryption-op3t-t3688748
[OnePlus 3T Guides, News, & Discussion] kenzolo:
can I relock bootloader after flash this modded boot.img ?
[OnePlus 3T Guides, News, & Discussion] Xennet:
No....

Relocking will again wipe the whole phone to factory state and will lose all changes made
[OnePlus 3T Guides, News, & Discussion] kenzolo:
Yes I know but but here my step

1.flashed official 4.5.0 in twrp

2.flashed stock recovery

3. wipe data

dm verity message stll here (I haven't trid relocking bootloader, I don't know if relocking before fix dmverity message was the right direction)

so I apply your method and dm verity error is gone... but I want lock the bootloader too, how can I do ?
[OnePlus 3T Guides, News, & Discussion] Xennet:
First now flash stock recovery

Go to bootloader connect via PC and type in

"fastboot oem lock" without quotes and press enter

Go to your phone and use volume buttons to click on lock bootloader. Hope this helps..
[OnePlus 3T Guides, News, & Discussion] Xennet:
Hey Guys!!!

This week has been really hectic...

Oneplus releasing their first OREO build and to my astonishment a new method of enforcing DM-Verity and Forced encryption for which i had to toil a lot to finally get to a working flashable zip that does the required job...

And now a new Stable OOS build 4.5.1???

But still as usual an early release for all of you...

The OP has been updated with the patched boot images of stable OOS 4.5.1 for both Oneplus 3T and Oneplus 3.

Enjoy a mega flashing WEEK!!!:):):)
[OnePlus 3T Guides, News, & Discussion] saspo59:
Hi [MENTION=7874870]Xennet[/MENTION]

I triged the dm verity message,

I try to do your method but cant install 4.0.2 firmware over 4.5.1
[OnePlus 3T Guides, News, & Discussion] Xennet:
Do you have oneplus 3T or oneplus 3?
[OnePlus 3T Guides, News, & Discussion] saspo59:
3t
[OnePlus 3T Guides, News, & Discussion] saspo59:
3T
[OnePlus 3T Guides, News, & Discussion] Xennet:
Which version of bluspark twrp are you using?
[OnePlus 3T Guides, News, & Discussion] saspo59:
Last, v47
[OnePlus 3T Guides, News, & Discussion] Xennet:
The assert line that I had added at the beginning of updater script in the firmware zip checks if your device is indeed 3T or not so that you don't brick your device by wrong firmware flash but from the twrp screenshot I can see that the twrp return for getprop("ro.display.series") is empty..

Can you try with an earlier bluspark twrp v46...
[OnePlus 3T Guides, News, & Discussion] saspo59:
At earlier ver i think 4.1.6 i did it and all was fine i think i wad with oficial twrp 3.1.1

2
[OnePlus 3T Guides, News, & Discussion] Xennet:
Ok you can do with the official twrp and then after getting rid of the DM verity you can switch back to this version of twrp if needed...

There is nothing wrong with the firmware zip file but something wrong with the twrp that is doesn't return the getprop("ro.display.series") correctly...
[OnePlus 3T Guides, News, & Discussion] saspo59:
Thank u my friend moving to oficial 3.1. 1.2twrp did the trick, blu v47 is not working
[OnePlus 3T Guides, News, & Discussion] Sir Backe:
Thank you so much for this guide. I spent hours searching and reading guides. This one is the ultimate working to get rid of dm-verity error in nougat/OOS4.5.1!
[OnePlus 3T Guides, News, & Discussion] Nicky Carts:
I flashed OOS 4.5.1 earlier today. Now that I'm reviewing this post, is it too late to flash the patched boot image? From what I have read (still a little confused), it appears so. I'm under the impression that I'd have to revert to an old version first.

Or can I just re-flash 4.5.1, not reboot to system, and then flash the patched boot image?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Did you trigger DM verity? If so you can follow the 2nd post...

Or else it's absolutely safe to reflash 4.5.1 and patched boot image..
[OnePlus 3T Guides, News, & Discussion] Valeriuz:
Hi, a newbie question.

When exactly is the DM-Verity flag triggered? Only if a flash the stock rom from TWRP?

I'm on stock rom, I want to unlock bootloader first and then install TWRP and flash Magisk. No other operations.

In my situation, if I've understood well, flashing DM-Verity/Force Encryption Patched Boot Image is not necessary. Correct?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Can't guarantee...

Installing twrp and swiping to allow system modification will trigger DM verity in the next boot and flashing magisk should prevent triggering but can't guarantee..

Flashing the patched boot image after swiping to allow modifications in twrp will 100% prevent DM verity and then you can flash magisk after that by following instruction in the post 1 in OP...

The other way I can't guarantee...it's upto magisk...
[OnePlus 3T Guides, News, & Discussion] Valeriuz:
Thank you.

So, anyway, better to flash the patched boot image.
[OnePlus 3T Guides, News, & Discussion] potato654123:
thank you so much！

i followed each steps and finally success! that thing really annoying

:rolleyes:
[OnePlus 3T Guides, News, & Discussion] xQuantum:
1st way doesn't work (nx appears in oos version "your mark")

2nd also doesn't, when I tried to flash FW 4.0.2 it shows an error 7 in TWRP

I'm on stock OOS 4.5.1, 3T
[OnePlus 3T Guides, News, & Discussion] Xennet:
Don't post it doesn't work without reading the posts or searching...

First of all after triggering DM verity, simply flashing the patched boot image is never gonna remove the message which is clearly written in post 1 that's the OP.

Second read a few posts above... the error 7 you are getting while flashing the firmware zip is due to the problem with the bluspark twrp you are using and not due to my firmware zip. Use the official twrp and flash it. Get rid of the DM verity and then if needed change back to the bluspark twrp...
[OnePlus 3T Guides, News, & Discussion] xQuantum:
Thanks. Annnd it's done!

Is there anyway to hide Force Encryption? I didn't see it on 2nd post:(
[OnePlus 3T Guides, News, & Discussion] Xennet:
First of all Backup your data for later restore. You will lose your data...

1. Go to Bootloader...

2. Connect to your PC..Type "fastboot format userdata" without quotes and press enter. (You will lose your data, do back up if you need something.)

3. Don't reboot to system...Using volume buttons select boot to recovery and Reboot to TWRP.....(Very Important)

4. Flash the patched boot image corresponding to the version of OOS

5. Reboot to system
[OnePlus 3T Guides, News, & Discussion] Flounderist:
Hi [MENTION=7874870]Xennet[/MENTION], so I decided to mess my full stock op3t.

I was on stable 4.5.1. I followed this procedure and it went smooth:

fastboot format data

fastboot flash boot boot.img

fastboot flash recovery twrp.img

On twrp setup, I swiped to allow system modifications and no dm-verity hit.

Now device is decrypted, with twrp 3.1.1 and LOS14.1.

Thank you for your boot.img! :highfive:
[OnePlus 3T Guides, News, & Discussion] Flying_Bear:
could we get this for Oreo betas maybe? I'm using these stock images for magisk patching, so they're quite useful

edit:

nevermind, just re-read the OP. thanks anyway
[OnePlus 3T Guides, News, & Discussion] jerikice:
thanks

thanks for your guide, no more dm_verity in my phone now:D
[OnePlus 3T Guides, News, & Discussion] darkchronicle:
Thank you so much for this! I am following the steps on post 2, it's working perfectly!
[OnePlus 3T Guides, News, & Discussion] Sypher_Guitar_Solos:
Open beta 17 boot.img

Hi I'm trying to disable the dm-verity on open beta 17 (OnePlus 3T). Could you update the post with the ob 17 patched boot.img please? Thanks a lot.
[OnePlus 3T Guides, News, & Discussion] Xennet:
It is given in the OP ... For disabling DM VERITY in Oreo OOS visit the link....

https://xdaforums.com/oneplus-3t/how-to/disable-dm-verity-force-encryption-op3t-t3688748
[OnePlus 3T Guides, News, & Discussion] saspo59:
Hi [MENTION=7874870]Xennet[/MENTION]

Are we expecting a new boot file?
[OnePlus 3T Guides, News, & Discussion] Xennet:
As mentioned in the OP the OREO BUILDs have a different location for the fstab file ...

So basically there is no need for a patched boot image..

There is a link to the DM VERITY disabler zip for Oreo builds in OP. Follow that...
[OnePlus 3T Guides, News, & Discussion] stevenhsl:
It works for me on nougat! Thanks a lot Dev!
[OnePlus 3T Guides, News, & Discussion] Arrowblue:
I am on Freedom Os 2.12 tried the both way still dm verity is there. Than i flashed 4.5.1 firmware and afterwords flashed Bootpatched and rebooted to recovery still Dm verity dont seems to be getting any where? Am i missing some thing ?

using 3t 2.12 freedom os
[OnePlus 3T Guides, News, & Discussion] Xennet:
Follow the instructions in POST 2 step by step....

If you have problems do ellaborate the steps you did and problems faced...
[OnePlus 3T Guides, News, & Discussion] LeodeGen:
I followed the guide step-by-step but the message always appear....It's ruining my life.
[OnePlus 3T Guides, News, & Discussion] Xennet:
It's been working for all..

Should work for you...

Just review each and every step you did...

Or just post here exactly what you did so that I can review
[OnePlus 3T Guides, News, & Discussion] LeodeGen:
So after a lot of attempts finally I removed dm-verity, and updated the OP3T to Android O. But after flashing twrp and root the message appers again... It is connected to root or it should disapper completly?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Flashing Twrp will trigger DM VERITY unless you have patched the DM VERITY flag...

Just follow the steps in the OP whenever you update so that you won't trigger it...

Now as you have already triggered DM VERITY follow steps in post 2 to get rid of it...