yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T Guides, News, & Discussion] Mr_Q:
A bit late with the reply; but the answer is yes; dm-verity was not triggered.

I did not use any root methods.
[OnePlus 3T Guides, News, & Discussion] Siddk007:
[MENTION=7874870]Xennet[/MENTION] thanks, procedure 2 worked for me
[OnePlus 3T Guides, News, & Discussion] isoladisegnata:
Full wipe...? Data/davilk/cache/system?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Just follow Procedure 2 in the OP....
[OnePlus 3T Guides, News, & Discussion] Sivabalan:
Rooting:

For Rooting use only SuperSu 2.82 SR5 as of now. Magisk dont seem to work.

Flash SuperSu 2.82 SR5 just before flashing the DM-Verity and Force Encryption Disabler For OOS Oreo.zip for rooting...

DO HIT THANKS IF I HELPED YOU...

IT DOESN'T COST YOU ANYTHING BUT MEANS A LOT TO ME....[/QUOTE]

while flashing supersu the systems needs to be mounted or not required??
[OnePlus 3T Guides, News, & Discussion] Xennet:
System needs to mounted always...

Please do delete the quote ... Don't quote the OP
[OnePlus 3T Guides, News, & Discussion] Durga teja:
Hi,

My device is encrypted and I triggered DM Verity..

Can I disable the issue by this method?
[OnePlus 3T Guides, News, & Discussion] Needles_one:
For those who wonder if it works with beta 17 for Op3T - confirm. My actions - had beta 16 with Bluespark and firmware from 4.5.1. Recovery - Bluespark v50 for Oreo. Flashed beta 17 over and the fix straight away. Dm-verity was not triggered.
[OnePlus 3T Guides, News, & Discussion] Nube420:
A little issue flashing 5.0.3 OOS stable firmware

In this part

I had a problem while I was trying to flash te zip, had some error in twrp, saying error 7 that my phone was not an oneplus 3t, so what I did was to delete the first line with notepad++ of the second file located in metainf/Android/(i don't remember).script.

I hope this can be useful
[OnePlus 3T Guides, News, & Discussion] Yudh:
Exkernel with magisk

/proc/cmdline contents

sched_enable_hmp=1 sched_enable_power_aware=1 app_setting.use_32bit_app_setting_pro=1 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 cma=32M@0-0xffffffff androidboot.selinux=permissive buildvariant=eng androidboot.bootdevice=624000.ufshc androidboot.verifiedbootstate=orange androidboot.veritymode=enforcing androidboot.keymaster=1 androidboot.serialno=4114e7f4 gpt androidboot.baseband=msm mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_samsung_s6e3fa5_1080p_cmd:1:none:cfg:single_dsi fpsimd.fpsimd_settings=0 app_setting.use_app_setting=0 androidboot.mode=recovery androidboot.ftm_mode=ftm_recovery androidboot.project_name=15811 androidboot.selinux=permissive androidboot.rf_version=22 androidboot.hw_version=28 ddr_manufacture_info=Samsung ddr_row0_info=16 androidboot.pcba_number=001581207316032000009947 androidboot.enable_dm_verity=1 androidboot.secboot=enabled androidboot.angela=disabled androidboot.nobatt=0 androidboot.rpmb_enable=true

Other 1 will take sometime
[OnePlus 3T Guides, News, & Discussion] Yudh:
[MENTION=7874870]Xennet[/MENTION]

I took all the variants of cmdline files.

Also i took getprop output in each condition
[OnePlus 3T Guides, News, & Discussion] Xennet:
New Updates...

Here are the download links to the patched boot imgaes for Open Beta 28/37 for OnePlus 3T / 3....

Oneplus 3T --> Download (md5 - 4C6E0807E36BD420F874CB1701EA1AB2)

Oneplus 3 --> Download (md5 - A8563A1B6DEA84964D1EAC7F286688E9)

Force_Encryption_Disabler_For_OOS_Oreo.zip v2.zip will work well these beta updates too...

OP Updated Accordingly...

NB: If you like my work, Donations are always Welcome...
[OnePlus 3T Guides, News, & Discussion] Xennet:
Do flash this zip in Twrp with only patched stock boot image and no magisk and get back with the safety net results...

[MENTION=7150737]Yudh[/MENTION]..it's better you PM me and we shall continue further talk there...
[OnePlus 3T Guides, News, & Discussion] Yudh:
Failed

Can't attach image in PM i don't know why

[emoji1308]
[OnePlus 3T Guides, News, & Discussion] BillGoss:
It's a limitation of pm in XDA.

You could upload the image to Drive or Dropbox or something similar and then paste the URL in the PM.
[OnePlus 3T Guides, News, & Discussion] ny15456:
OS not found

OP3T decrypted

For OB27 & OB28, i am getting an "OS not found" message in TWRP, after which I :crying: have to format the entire phone and reload the data :crying:.

Never happened before, always followed the steps mentioned in OP as specified (wipe system cache data), install rom > boot image > reboot ..

I get the OS not found after installing the rom and then the boot file (just before rebooting back into TWRP).

However, once i format the phone userdata and start over (including installing TWRP), the process works without a hitch. Am i missing something?
[OnePlus 3T Guides, News, & Discussion] Xennet:
This again.....

I mentioned in a few posts above the answer..

You got this from OB27/28....I have got this from the first ROM I installed...

IT IS ABSOLUTELY NORMAL....

JUST FOLLOW THE STEPS I MENTIONED..

Even if TWRP tells there is no OS installed just reboot back to Twrp..It's the way...After rebooting back to Twrp you can see the system directory after mounting system.... somehow Twrp sees the system partition only after a reboot...This happens in many phones but not all....Just search the thread as I have answered this previously..

May be I should edit the FAQs in the OP to include this...but this not the patched boot image problem but Twrp and OOS zip problem and has nothing to do with my method or patched boot image...that's why I didn't bother to include it in the FAQs...
[OnePlus 3T Guides, News, & Discussion] mrsim:
hello the thread,

well just received an update,(A3003_28_180517), for my OP3t which was rooted and had previously been running this patched boot.img and because i completely forgot about encryption and dm-verity i just went along and applied the update...OUCH...big mistake the device detected root and gave me a message saying that i would have to re-root after applying the update then after waiting for half an hour i realised that i was in a bootloop on reboot,turned the device off and allowed it to cool down,(boy was it toasty),then rebooted only to be met by an encrytion message telling me to add a password or reboot and lose everything,i certainly didn't have an encryption password as i had disabled it with this threads method many moons ago,so lost all data,(no big deal everything is backed up to cloud nowadays anyways),factory reset and viola,am completely stock no TWRP no root and i assume am now encrypted and dm-verity is back,(that's one of the reasons i am posting),so am i actually re-encrypted and is dm-verity re-enabled on the device,(my bootloader is still registered as unlocked,i do not have '-Xn' after my OOS version anymore...so i am just wanting confirmation...1) re flash latest version of TWRP 2) re flash modded boot.img from OP here....3) follow steps to re root as in the OP.....4) profit...!!!

P.S. TWRP 3.2.1.0 installed
[OnePlus 3T Guides, News, & Discussion] Xennet:
Yup good to go....

But if you need a decrypted device then you will have to follow the specific instructions for that...or if you are happy with an encrypted one you are good with the steps you mentioned..
[OnePlus 3T Guides, News, & Discussion] mrsim:
thanks for the quick reply...may i ask how can i tell if the device is encrypted...???

sorry absolutely stupid question...LOL...my bad it's in security settings
[OnePlus 3T Guides, News, & Discussion] mrsim:
anyone have a solution to get TWRP to stick it's refusing to do it ATM even when i boot directly into it after fastboot flashing it will boot ok but after booting into system and then back into TWRP....straight back to stock...bloody hell what have oneplus done to these devices...they used to be so easy to play around with...LOL

EDIT: finally managed to get TWRP to stick just had to flash magisk after install and viola it stuck...ok next port of call getting rid on encryption and that pesky dm-verity...wish me luck.......:good:
[OnePlus 3T Guides, News, & Discussion] RichardEb:
Did I understood this correctly? When I set the "keep dm-verity" option in the Magisk Manager any changes done as root will be reverted during a reboot?

Is it secure to have "dm-verity" disabled or does this harm device security and integrity?
[OnePlus 3T Guides, News, & Discussion] mrsim:
may i suggest updating the OP "Proceedure 2" by adding links to actual stock flashable roms which need to be flashed before flashing the patched boot.img and changing the "4. Flash the downloaded boot-patched.img file corresponding to the Model and OOS version in TWRP immediately after flashing the Stock ROM zip" to something like

"4. Flash the Stock ROM zip in TWRP then straight away afterwards flash the patched boot.img file" makes a little more sense to instruct people to do it in this order rather than tell them to first flash the patched boot .img file but only after flashing the stock OOS rom...what do you think....also adding a link to the stock rom thread by [MENTION=4954690]Siddk007[/MENTION] would be kinda cool as he has added a link to your thread here for people requiring the whole dm-verity thing,he also has both root zips and official and unofficial TWRP recoveries as well as a stock recovery which funny enough i needed for this thread

---------- Post added at 08:39 PM ---------- Previous post was at 08:36 PM ----------

here you go my friend a simple explanation link... https://source.android.com/security/verifiedboot/dm-verity

also found a great explanation over on the oneplus forums thanks to [MENTION=5893666]Anuprit[/MENTION]asino1 copy n pasted below

"Dm-verity stores a hash of the filesystem and allows for forward error correction

Basically dm-verity can protect you against malware modifying the system however it can also protect you from accidental corruption with its forward-error-correction feature

Custom ROMs can potentially benefit from dm-verity (right now they are negatively affected), because the ROM developer can modify the build system and follow aosp build guidelines and sign the ROM with their own keys and the bootloader will accept them. Locking bootloader on custom ROMs and still having verity pass is great"
[OnePlus 3T Guides, News, & Discussion] Xennet:
Just flashing the patched boot image immediately after flashing the stock rom zip and then rebooting will never erase twrp and replace it with stock .....I have mentioned in the FAQs in the OP....

EDIT: I am an open person, open to suggestions...This thread is created for users like you and if you people have confusion regarding wordings in the instructions (which no one else had ever reported before) I will try to clear out the wordings better....and yeah [MENTION=4954690]Siddk007[/MENTION] has been with me and one of the first to comment in this thread and a good buddy around and indeed a link to his thread will be done in the OP when I rewrite it...
[OnePlus 3T Guides, News, & Discussion] mrsim:
aha...in the faq's

Q: I happen to lose TWRP and revert to stock recovery every time I update OOS, I happen to lose changes made to system via TWRP or lose data/apps accidentally while updating OOS...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..

---------- Post added at 09:22 PM ---------- Previous post was at 08:51 PM ----------

brilliant then i have another suggestion as i just encountered when in the PROCEEDURE 2: at 2: you mention running the command "fastboot format userdata" after doing this any zip files that you managed to put onto the device in preperation for flashing are also wiped which means i had to reconnect the device and copy'n'paste all the neccessary zip files once again in order to carry on the flashing process....and please do not take it as any kind of insult if i mention making the OP more understandable your work is fantastic and without people like yourself doing this for us poor noobs we would all be stuck on stock and at the mercy of OEM's...i cannot thank you enough and yes i will donate when i am finished getting this done as you deserve something not only for your efforts but also for maintaining this thread for so long for people with older devices like me.....:laugh::laugh::laugh::good::good::good::D:D:D:good::good::good:

---------- Post added at 09:26 PM ---------- Previous post was at 09:22 PM ----------

ok one more issue TWRP is not showing the boot patched.img file...when i connect to the PC i can see it in there but in TWRP it is invisible...?? how to flash this file

EDIT: OMG i am so blind...LOL

---------- Post added at 09:53 PM ---------- Previous post was at 09:26 PM ----------

so finally after much huffing and puffing...i am done and it seems everything is ok...encryption not showing in security options and also now have Xn back in about phone so all good would like to say a massive thank you to [MENTION=7874870]Xennet[/MENTION] for the help and for creating this thread.....donation incoming
[OnePlus 3T Guides, News, & Discussion] Dinesh6252:
i am using 3t and i am on open beta 21 currently and rooted with magisk and having twrp. it is currently decrypted. So, my questions are

1. how do i clean flash stable 5.0.3? Step by step procedure would be nice.

2. would it still be decrypted or it will become encrypted after clean flashing stable 5.0.3?

3. should i leave it encrypted if it becomes encrypted after a clean flash? is encryption related to any speed?
[OnePlus 3T Guides, News, & Discussion] pratyush28:
1. To clean flash, wipe every partition except internal storage from twrp then flash the stock rom zip.

2. if you follow the steps in the OP you wont get your data re encryped. ( patched boot image immediately after flashing stock rom then rebooting to recovery mode and flashing the v2 zip of forced encryption+magisk)

3. It will take a lot of time to encrypt all the data and there wont be any progress bar/ indication that the files are being encrypted. Its just that spinning logo for hours. Once i thought my device is in bootloop but actually i had forgotten to flash magisk which led to encryption of my data which i interrupted by booting into recovery and ended up losing all my data. So my advice is stay unencrypted.
[OnePlus 3T Guides, News, & Discussion] anttaz:
New OOS OB release today. Any chance of update please?
[OnePlus 3T Guides, News, & Discussion] Bearthquake:
1: don't ask for eta's

2: going by history, there will be a new one.

Its literally the same day as the update. Chill out
[OnePlus 3T Guides, News, & Discussion] DawoodSahi:
OB29?
[OnePlus 3T Guides, News, & Discussion] Bearthquake:
Like everything on XDA, it'll get here when it gets here. Don't ask. If its not posted then OP obviously hasn't done it yet.
[OnePlus 3T Guides, News, & Discussion] rippledrums:
Maybe a silly question but...

If I want to clean flash OOS, root it with Magisk and use a custom kernel, do I really need this image?

Or can I just flash the "Force Encryption Disabler For OOS Oreo v2.zip" and Magisk and it works?

Thanks!
[OnePlus 3T Guides, News, & Discussion] anttaz:
Deleted
[OnePlus 3T Guides, News, & Discussion] xpissio:
You don't have so much patience, true?
[OnePlus 3T Guides, News, & Discussion] Yudh:
I think you need it so you don't trigger dm verity
[OnePlus 3T Guides, News, & Discussion] Xennet:
Suffered a Personal loss of Family...Really was and still is hard to cope up with...The times when you know that death is the ultimate reality and the void left behind by them can never be really filled by anything and their memories will always linger and haunt us throughout life...And the ultimate realisation to cherish every moment of life when you are still living with your loved ones....

Here are the download links to the patched boot imgaes for Open Beta 29/38 for OnePlus 3T / 3....

Oneplus 3T --> Download (md5 - AB88BA2080CF46FE9EE4814623DB379A)

Oneplus 3 --> Download (md5 - E5C5B244B47FCE94878C28C3A2E78C1D)

Force_Encryption_Disabler_For_OOS_Oreo.zip v2.zip will work well these beta updates too...

OP Updated Accordingly...
[OnePlus 3T Guides, News, & Discussion] anttaz:
Sorry to hear that and sorry for your loss.

Thanks for the update even in such a hard time for you. Much appreciated and much respect to you for doing so in this hard time.
[OnePlus 3T Guides, News, & Discussion] arifqur:
May the Lord gives you courage to deal with this tragedy.

Bless you.
[OnePlus 3T Guides, News, & Discussion] DawoodSahi:
Thank you so much for your efforts!

You're a living legend.
[OnePlus 3T Guides, News, & Discussion] ayush2901:
May the Lord almighty give you the courage to pull through this, very sorry for your loss. You are truly a kind soul to be giving updates in this time of grief, truly appreciate
[OnePlus 3T Guides, News, & Discussion] murti52:
I definitely feel you because one of my precious one is in serious condition and it suddenly struck that life is such a unpredictable thing. You may never know what you might have to face when you get up tommorrow. Really thanks for the support you are giving even in this hard time. May god rest her/his soul in peace and gives you and your family strength to bear this loss. Please accept my heartfelt condolences.
[OnePlus 3T Guides, News, & Discussion] bibin thomas:
What about flashing magisk??did u flashed magsik
[OnePlus 3T Guides, News, & Discussion] elmer_fudd:
SuperSU works fine. The problem was that I didn't flash the disabler file.
[OnePlus 3T Guides, News, & Discussion] bibin thomas:
Flash DM Verity and force encryption disabler OOS Oreo

I only find force encryption disabler OOS Oreo zip file OP thread ...I don't find DM Verity

Please help me
[OnePlus 3T Guides, News, & Discussion] Paschfire:
Read the OP again, in its entirety. You're clearly not paying attention to what is stated there.

Doing so and you'll figure out where to find the DM-Verity check disabler.
[OnePlus 3T Guides, News, & Discussion] bibin thomas:
Thanks man
[OnePlus 3T Guides, News, & Discussion] Rodger_Rulez:
Hello)

[MENTION=7874870]Xennet[/MENTION]

The last beta 39/30 already released

Waiting for update)
[OnePlus 3T Guides, News, & Discussion] Xennet:
Hey Everyone,

Was a liitle bit inward and in link with my inner world for the last month and thank you to all at xda who have been with me in these worst times...

Here are the download links to the patched boot images for Open Beta 30/39 for OnePlus 3T / 3....

Oneplus 3T --> Download (md5 - 23DE4A05338B83E92BC9986E368B9D81)

Oneplus 3 --> Download (md5 - 92A52F2CB1C81FCA5FF461372EB920BD)

Force_Encryption_Disabler_For_OOS_Oreo.zip v2.zip will work well these beta updates too...

OP Updated Accordingly...

For those who appreciate my work Donations are always welcome...
[OnePlus 3T Guides, News, & Discussion] Siddk007:
that was quick!! :good:
[OnePlus 3T Guides, News, & Discussion] elmer_fudd:
Thank you! Works like a dream, as usual :)
[OnePlus 3T Guides, News, & Discussion] Zackptg5:
I finally got that universal zip thing figured out. The solution ended being an entirely different direction then where I was originally headed :cowboy:

https://xdaforums.com/android/software/universal-dm-verity-forceencrypt-t3817389
[OnePlus 3T Guides, News, & Discussion] Dominius:
It's should work with the newest 5.0.4 oos?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Ok Guys,

Here are the download links to the patched boot images for Stable OOS 5.0.4 for OnePlus 3T / 3....

Oneplus 3T --> Pulled out...

Oneplus 3 --> Pulled out...

FOR ONEPLUS 3 the fullrom zip is OnePlus3Oxygen_16_OTA_065_all_1807092129_70293439.zip and MD5 as A7A19C6448CFB2B157F3C2D6837A050B...do reconfirm the details before using the patched boot image for Oneplus3....

Force_Encryption_Disabler_For_OOS_Oreo.zip v2.zip will work well these stable updates too...

OP Updated Accordingly...

Ok Guys...

Happy Flashing....

NB: If you like my work, Donations are always welcome...
[OnePlus 3T Guides, News, & Discussion] rippledrums:
Damn [MENTION=7874870]Xennet[/MENTION], that was fast!

I'm still trying to find a download link for the update... :laugh:

Thank you! :highfive:
[OnePlus 3T Guides, News, & Discussion] Zackptg5:
Yup. Should work with pretty much any rom
[OnePlus 3T Guides, News, & Discussion] Sam Nakamura:
WOW, you are fast... :good:

Not sure how you did it but I haven't seen a download link for the 3t yet, not on the oneplus forums, oneplus download section, oxygenos updater, xda, reddit, nowhere :) impressive!
[OnePlus 3T Guides, News, & Discussion] Xennet:
That's once again...

Now I can't find the OOS FULL ROM ZIP FOR ONEPLUS3T file on the server....But for Oneplus3 the full ROM ZIP is still there...

"So for the time being like OnePlus I too am pulling my update for Oneplus3T unless they upload their new zip to their servers"...:laugh:

FOR ONEPLUS 3 the fullrom zip is OnePlus3Oxygen_16_OTA_065_all_1807092129_70293439.zip and MD5 as A7A19C6448CFB2B157F3C2D6837A050B...do reconfirm the details before using the patched boot image for Oneplus3....
[OnePlus 3T Guides, News, & Discussion] virousmedo:
i unlocked my bootloader , flashed TWRP recovery and no-verity-opt-encrypt-6.0 then the supersu zip files... after that i flashed OP3TOS rom and my phone is still encrypted and i'm confused which procedure to follow because i don't know what's DM-VERITY and if i triggerd it or not ... i googled it and didn't understand a bit
[OnePlus 3T Guides, News, & Discussion] Paschfire:
Read the OP, everything you need to know, including the correct .zip files to flash, are provided there. I also suggest using Magisk instead of SuperSU for Root.
[OnePlus 3T Guides, News, & Discussion] virousmedo:
thanks a lot for your help but another question if DM_Verity messege didn't apper this means it's ok to follow procedure 2 ?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Everything is written in the OP...

Follow Post 2 only if you have DM Verity triggered...else everything you need is in the OP...
[OnePlus 3T Guides, News, & Discussion] Paschfire:
The bold print of each procedure 1&2 clearly explain what each process does, choose whichever applies to your current device setup.

It also states, Post 2 is for people whom have already tripped DM-Verity, so unless you have tripped DM-Verity procedure 1&2 are your choices.

It may serve you well to re-read the entire OP including the FAQ section, until you completely understand what is written there before proceeding.
[OnePlus 3T Guides, News, & Discussion] Xennet:
Hey Guys!!!

Here is the download link to the patched boot image for Stable OOS 5.0.4 for OnePlus 3T.... Hope they don't pull this one out...

Oneplus 3T --> Download

MD5- 21006395FC3FF2869D708EABED552FE1

Force_Encryption_Disabler_For_OOS_Oreo.zip v2.zip will work well this stable update too...

OP Updated Accordingly...

Ok Guys...

Happy Flashing....

NB: If you like my work, Donations are always welcome...
[OnePlus 3T Guides, News, & Discussion] stevenhsl:
It looks like there is new OTA (Another 5.0.4) for op3 with different file name as well. Can I use the existing 5.0.4 patch boot inage on this new 5.0.4?