[OnePlus 3T Guides, News, & Discussion] Xennet:
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://xdaforums.com/oneplus-3t/how-to/dm-verity-disable-oxygen-os-t3922324. For Disabling DM-Verity in Oreo Based OOS ROMs visit my thread here: https://xdaforums.com/oneplus-3t/how-to/disable-dm-verity-force-encryption-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/vm2k81s3pregdiv/boot-patched-4.5.1-OP3T.img

Patched Boot Image Stable OOS 4.5.0

http://www.mediafire.com/file/m8e3nu4ak4u1zkz/boot-patched-4.5.0-OP3T.img

Patched Boot Image Stable OOS 4.1.7

http://www.mediafire.com/file/g5rk4284lzyvqnu/boot-patched-4.1.7-OP3T.img

Patched Boot Image Stable OOS 4.1.6

[url]http://www.mediafire.com/file/j3802c259gea6f2/boot-patched-4.1.6-OP3T.img[/URL]

Patched Boot Image Stable OOS 4.1.5

[url]http://www.mediafire.com/file/78ej52gmthok212/boot-patched-OOS4.1.5.img[/URL]

BETA OOS Boot Images

Patched Boot Image OOS Beta 15

http://www.mediafire.com/file/a436larx3ddx00l/boot-patched-Beta15-OP3T.img

Patched Boot Image OOS Beta 14

http://www.mediafire.com/file/brlvdth86lxi0yl/boot-patched-Beta14-OP3T.img

Patched Boot Image OOS Beta 13

http://www.mediafire.com/file/2clnhl0x4vu8bu8/boot-patched-Beta13-OP3T.img

Patched Boot Image OOS Beta 12

http://www.mediafire.com/file/2214mr1adpdwlx4/boot-patched-Beta12-OP3T.img

Patched Boot Image OOS Beta 11

http://www.mediafire.com/file/hywcwmv0a993ah5/boot-patched-Beta11-OP3T.img

Patched Boot Image OOS Beta 10

http://www.mediafire.com/file/n7nu0wj266e8fhh/boot-patched-Beta10-OP3T.img

Patched Boot Image OOS Beta 9

[url]http://www.mediafire.com/file/5lkp6fi33u9lkpt/boot-patched-Beta9-OP3T.img[/URL]

Patched Boot Image OOS Beta 8

[url]http://www.mediafire.com/file/4d5zrpff4jakjgk/boot-patched-OOS_Beta_8.img[/URL]

For OnePlus 3

STABLE OOS Boot Images

Patched Boot Image Stable OOS 4.5.1

http://www.mediafire.com/file/srdurw9pg4f614f/boot-patched-4.5.1-OP3.img

Patched Boot Image Stable OOS 4.5.0

http://www.mediafire.com/file/nrbuddj0652bf4u/boot-patched-4.5.0-OP3.img

Patched Boot Image Stable OOS 4.1.7

http://www.mediafire.com/file/2cb3jrqckb4suxw/boot-patched-4.1.7-OP3.img

Patched Boot Image Stable OOS 4.1.6

[url]http://www.mediafire.com/file/ytax9vfa9lyhd6d/boot-patched-4.1.6-OP3.img[/URL]

BETA OOS Boot Images

Patched Boot Image OOS Beta 24

http://www.mediafire.com/file/8fcbeiduhiewc9v/boot-patched-Beta24-OP3.img

Patched Boot Image OOS Beta 23

http://www.mediafire.com/file/9i3snrmmsinczct/boot-patched-Beta23-OP3.img

Patched Boot Image OOS Beta 22

http://www.mediafire.com/file/bauq66z2s6o2k1q/boot-patched-Beta22-OP3.img

Patched Boot Image OOS Beta 21

http://www.mediafire.com/file/r31feak94y3cm5z/boot-patched-Beta21-OP3.img

Patched Boot Image OOS Beta 20

http://www.mediafire.com/file/5h32hzw5ot1gbba/boot-patched-Beta20-OP3.img

Patched Boot Image OOS Beta 19

http://www.mediafire.com/file/y6446j7sxiw9jwx/boot-patched-Beta19-OP3.img

Patched Boot Image OOS Beta 18

http://www.mediafire.com/file/zfsji9mjjds7a6n/boot-patched-Beta18-OP3.img

Patched Boot Image OOS Beta 17

[url]http://www.mediafire.com/file/mrqhkq7igt7x4na/boot-patched-Beta17-OP3.img[/URL]

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...