FORUMS
Remove All Ads from XDA

[FIX][DM-Verity][Oneplus3/3T]DM-Verity/Force Encryption Patched Boot Image

723 posts
Thanks Meter: 2,192
 
By Xennet, Senior Member on 7th June 2017, 08:52 AM
Post Reply Email Thread
I am creating this thread keeping in my mind the several posts in various threads mentioning that they have accidentally triggered the DM-Verity flag and have an annoying message during startup or due to force encryption in the boot image the phone went back to encrypted state after flashing a new Stock Oxygen OS zip file in TWRP recovery.

So I decided to start a thread where I will post the links to the OFFICIAL BOOT IMAGES of Oxygen OS ROMs for both OnePlus3 and OnePlus3T which have been patched to disable the DM-Verity Flag and to disable the Force encryption that is present in the Stock Oxygen OS ROM.

NB: This thread is only for Nougat Based OOS ROMs. For disabling Dm-Verity and force Encryption in PIE OOS ROMs refer to my thread here: https://forum.xda-developers.com/one...en-os-t3922324. For Disabling DM-Verity in Oreo Based OOS ROMs visit my thread here: https://forum.xda-developers.com/one...-op3t-t3688748

THIS IS FOR BOTH ONEPLUS 3 and 3T and read the instructions carefully and apply the file specific for your model
Disclaimer: I am not responsible for any damage to your phone by using this...

Nothing has been changed....
It is 100% stock boot image except that the DM-Verity Flag and Force Encryption has been patched...

Links:

For ONEPLUS 3T


STABLE OOS Boot Images

Patched Boot Image Stable OOS 4.5.1
http://www.mediafire.com/file/vm2k81...4.5.1-OP3T.img

Patched Boot Image Stable OOS 4.5.0
http://www.mediafire.com/file/m8e3nu...4.5.0-OP3T.img

Patched Boot Image Stable OOS 4.1.7
http://www.mediafire.com/file/g5rk42...4.1.7-OP3T.img

Patched Boot Image Stable OOS 4.1.6
http://www.mediafire.com/file/j3802c...4.1.6-OP3T.img

Patched Boot Image Stable OOS 4.1.5
http://www.mediafire.com/file/78ej52...d-OOS4.1.5.img


BETA OOS Boot Images




For OnePlus 3

STABLE OOS Boot Images

Patched Boot Image Stable OOS 4.5.1
http://www.mediafire.com/file/srdurw...-4.5.1-OP3.img

Patched Boot Image Stable OOS 4.5.0
http://www.mediafire.com/file/nrbudd...-4.5.0-OP3.img

Patched Boot Image Stable OOS 4.1.7
http://www.mediafire.com/file/2cb3jr...-4.1.7-OP3.img

Patched Boot Image Stable OOS 4.1.6
http://www.mediafire.com/file/ytax9v...-4.1.6-OP3.img


BETA OOS Boot Images



USAGE FOR STOCK OOS:
# Flash the downloaded boot-patched.img file corresponding to the Model and OOS version in TWRP immediately after flashing the Stock ROM zip in TWRP before doing anything (even before restarting or applying any patches, root, kernels, etc.)
# Restart back to TWRP Recovery.
# Done.
# Now do whatever you want like usual.. Flash root, kernel, mods or anything as usual
# You dont have to worry about triggering DM-Verity or Getting Force Encrypted again...



VERY IMPORTANT: FOR PEOPLE WHO HAVE ALREADY TRIGGERED DM-VERITY ON THEIR OOS OR CUSTOM ROM AND NEEDS TO GET RID OF THE DM-VERITY MESSAGE PERMANENTLY, READ MY POST 2. AFTER GETTING RID OF DM-VERITY BY FOLLOWING THE STEPS IN POST 2, NEXT TIME ONWARDS WHILE UPDATING YOUR OOS OR CUSTOM ROM FOLLOW THE INSTRUCTIONS IN THIS OP TO KEEP YOUR OOS AND PHONE FREE FROM THE TROUBLE OF DM-VERITY AND FORCE ENCRYPTION...


FAQs:

Q: Is the boot.img file altered in anyway?
A: As mentioned above its 100% stock boot image except that the DM-Verity Flag and Force Encryption has been patched...

Q: My phone is already encrypted, will I lose encryption?
A: No. It only disables force encryption. That means if you have already disabled encryption in your phone it will prevent the phone from getting encrypted when you flash a stock OOS ROM..

Q: I happen to lose TWRP and revert to stock recovery every time I update OOS, I happen to lose data/apps accidentally while updating OOS after I lose TWRP ...Can this be corrected by using this method?
A: Definitely. Follow the steps correctly. Each time while updating the OOS, after flashing the Full OOS ROM.zip, immediately flash the patched boot.img of the corresponding OOS given in this thread and then restart back to TWRP recovery. Done. You will never lose TWRP again..

Q: I am Rooting my phone using Magisk/Supersu then why do i need this?
A: Its optional.. If you are rooting phone using Magisk/Supersu it patches the stock boot.img. But in case you have problems flashing Magisk/Supersu after flashing the STOCK ROM zip this can come in handy or as an insurance policy just flash this patched boot.img before doing anything. But is very helpful to those people out there who doesn't root their phone but has unlocked their phone or installed TWRP for other purposes..

Q: How to flash the patched boot.img in TWRP?
A: Default flash option is for zip files in TWRP. Select the flash image option in TWRP. Then select the downloaded patched boot.img file and among from the partition option (boot, recovery and system) select the boot option and then flash it.

Q: Can I use it for CUSTOM ROMs? / What to do while updating CUSTOM ROMs?
A: For hassle free and the best results whenever you update CUSTOM ROMs always do it this way...
The below steps are for CUSTOM ROMs only. (For STOCK ROMs follow the main step mentioned above in the section USAGE)...
1.Go to TWRP
2.Flash the required firmware zip file
3.Flash the corresponding patched boot IMG
4.Flash the ROM whether LINEAGE, RR, ASOP, etc.
5.Flash gapps
6.Flash root (magisk /su)
7.Flash kernel
8.At last Reboot...
There will not be any problem ever...
You can reboot after step 5
Steps 6,7 are optional

Q: What is "-Xn" seen after the OOS Version in the settings menu?
A: That's just my signature -Xn that I had put there to make sure that you have correctly done the procedure and the boot image that is currently in use is my patched boot image and to ensure you that you are 100% safe from DM verity and forced encryption..


Hope you find it useful...
Will update as newer OOS versions come....

HIT THANKS IF I HELPED YOU. IT DOESN'T COST YOU ANYTHING, BUT IT MEANS A LOT TO ME...
The Following 126 Users Say Thank You to Xennet For This Useful Post: [ View ] Gift Xennet Ad-Free
7th June 2017, 08:52 AM |#2  
Xennet's Avatar
OP Senior Member
Thanks Meter: 2,192
 
Donate to Me
More
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: https://forum.xda-developers.com/sho....php?t=2588979

1)
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)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...
The Following 102 Users Say Thank You to Xennet For This Useful Post: [ View ] Gift Xennet Ad-Free
7th June 2017, 10:02 AM |#3  
Junior Member
Thanks Meter: 2
 
More
Thanks mate..... You made my day..... Working perfectly.
The Following User Says Thank You to Aksbot For This Useful Post: [ View ] Gift Aksbot Ad-Free
7th June 2017, 10:20 AM |#4  
Junior Member
Thanks Meter: 4
 
More
Nice to see this thread on the day of release of oos 4.1.5 itself.
The Following 2 Users Say Thank You to Teenzak For This Useful Post: [ View ] Gift Teenzak Ad-Free
11th June 2017, 01:09 PM |#6  
Junior Member
Thanks Meter: 5
 
More
So well explained and working perfectly
One if the most detail step by step explanation

Thanks dev.
The Following User Says Thank You to jkbdroid For This Useful Post: [ View ] Gift jkbdroid Ad-Free
11th June 2017, 01:12 PM |#7  
Senior Member
Thanks Meter: 23
 
More
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?
11th June 2017, 01:37 PM |#8  
Xennet's Avatar
OP Senior Member
Thanks Meter: 2,192
 
Donate to Me
More
Quote:
Originally Posted by 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?

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...
The Following 10 Users Say Thank You to Xennet For This Useful Post: [ View ] Gift Xennet Ad-Free
12th June 2017, 08:22 PM |#9  
Member
Thanks Meter: 13
 
More
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...
12th June 2017, 08:29 PM |#10  
Xennet's Avatar
OP Senior Member
Thanks Meter: 2,192
 
Donate to Me
More
Quote:
Originally Posted by 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...


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.
The Following 11 Users Say Thank You to Xennet For This Useful Post: [ View ] Gift Xennet Ad-Free
13th June 2017, 08:34 AM |#11  
Xennet's Avatar
OP Senior Member
Thanks Meter: 2,192
 
Donate to Me
More
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!!!
The Following 10 Users Say Thank You to Xennet For This Useful Post: [ View ] Gift Xennet Ad-Free
Post Reply Subscribe to Thread

Tags
dm-verity, encryption, fix, oneplus3, oneplus3t

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes