yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T Guides, News, & Discussion] Playa82:
i got another question. if a new oxygenos is out, do i have to flash the newest boot image again when i update linageos ?
[OnePlus 3T Guides, News, & Discussion] Xennet:
For the best hassle free and for the best results whenever you update CUSTOM ROMs always do it this way...

For CUSTOM ROMS

1.Go to twrp

2.Flash the required firmware

3.Flash the corresponding patched boot IMG

4.Flash the ROM whether lineage, rr, asop, etc.

5.Flash gapps for custom ROMs only

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
[OnePlus 3T Guides, News, & Discussion] chenrp:
I am using oneplus 3t,Resurrection Remix ROM...

will this guide work? will data be lost?

thank.s
[OnePlus 3T Guides, News, & Discussion] Xennet:
Yes...it will work

No data loss nothing..

Follow the steps correctly..
[OnePlus 3T Guides, News, & Discussion] manishsoni7689:
Yes... you are right. When I flashed the latest firmware zip 4.1.6, the dm-verity again appeared. Then I followed all the steps mentioned in post #2 and it worked perfectly fine. Thanks for your hardwork. Keep it up.
[OnePlus 3T Guides, News, & Discussion] Xennet:
Every Next time you upgrade to the next OOS version follow the steps in the OP...
[OnePlus 3T Guides, News, & Discussion] chenrp:
anyway of running this guide via phone only...without pc.
[OnePlus 3T Guides, News, & Discussion] Xennet:
Nope...

You have to type those fastboot commands while in bootloader. Once phone boots, fastboot cammands can't be sent to phone..

To send a fastboot command while in bootloader you need an external access like computer coz there is no other way to send a command or type in a command at bootloader...
[OnePlus 3T Guides, News, & Discussion] chenrp:
no chance running fastboot commands via zip or macro...?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Never heard of such methods..Why do you so badly want a computer free method??? Don't you have access to computer?
[OnePlus 3T Guides, News, & Discussion] chenrp:
on Resurrection Remix rom, should i flash:

1. 4.0.2 Firmware

2.Type "fastboot oem disable_dm_verity" without quotes and press enter

3.Type "fastboot oem enable_dm_verity" without quotes and press enter

4.Boot Image OOS Beta 9

?

thanks
[OnePlus 3T Guides, News, & Discussion] Xennet:
Yes..

If any problems you can just flash RR ROM zip and gapps after step 4 without any wiping of data or system and then restart...
[OnePlus 3T Guides, News, & Discussion] chenrp:
just wanted to be sure about the boot image.

should i flash stable or beta?

thanks

update:

the dm verity is not showing up,

but the phone won't boot to os.

i tried flashing stable and beta boot image.

after flashing RR again (without GAPPS), everything is working good.

this last operation (reinstall the rom file) should be in the first page!
[OnePlus 3T Guides, News, & Discussion] Xennet:
It is written in post 1.. last question in FAQs specially for CUSTOM ROMs...READ THE OP WELL BEFORE TRYING ANYTHING...

Anyway thanks for pointing out that some of you need additional information in post 2 so post 2 instructions updated...
[OnePlus 3T Guides, News, & Discussion] chenrp:
cool.

thanks people!
[OnePlus 3T Guides, News, & Discussion] argo7:
can i flash magisk even it patchs the boot img after doing the tutorial?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Of course. No harm...

One you flash the patched boot IMG file you are 100% safe..

You can do anything after that without worry.

Install magisk, SuperSU any mods or anything you want..it's your wish...
[OnePlus 3T Guides, News, & Discussion] argo7:
Thank you so much
[OnePlus 3T Guides, News, & Discussion] Xennet:
Of course will keep updating as soon as I can when newer versions come ...
[OnePlus 3T Guides, News, & Discussion] randyok@:
It works with 4.1.6!!!
[OnePlus 3T Guides, News, & Discussion] Xennet:
Open beta 10 and 19 are out!!!

Will patch the boot files and upload it....

Don't worry will update in 24-48hrs as soon as I can...

Have exams tomorrow..After that!!!

Wait...
[OnePlus 3T Guides, News, & Discussion] digitaldai:
Hello

on bootloader my 3T says secure boot enabled, will I need to reformat the whole device now? I updated to 10beta and forgot to flash the no verity zip as well. I can still get into TWRP but I cant copy anything across or access storage.

Is there a way to fastboot the the firmware ?

I am on a mac and the

./fastboot oem disable_no_verity command doesnt seem to work.

I have flashed the patched boot through fastboot with no problems.

just trying to avoid losing everything on my phone.

thnaks
[OnePlus 3T Guides, News, & Discussion] Xennet:
Try adb sideload firmware.zip file while in twrp...

Then go to bootloader and type fastboot commands...

Then come back to twrp and sideload latest firmware...
[OnePlus 3T Guides, News, & Discussion] Xennet:
Hey Everyone!!!

OP Updated with the download links of patched boot images of Open Beta 10 and 19 for OP3T and OP3!!!

Enjoy hassle free flashing!!!
[OnePlus 3T Guides, News, & Discussion] Sunil.Kathet:
need suggestion , I trigger dm-verity on oos 4.1.6 installed twrp in op3t but no root access or i can't go futher to root my device, whenever i flash super su my phone goes on bootloop and it bootup only when i clean dalvik cache from twrp. pls help to root my device
[OnePlus 3T Guides, News, & Discussion] Xennet:
Remove DM verity by the method in post 2

Then after flashing the patched boot image try flashing magisk beta 13 and reboot to get root..

In my opinion no particular advantage of using supersu over magisk ... While magisk can pass safety net too..
[OnePlus 3T Guides, News, & Discussion] twoxa:
Will this work on hydrogen os?
[OnePlus 3T Guides, News, & Discussion] Xennet:
I don't think so

Because the firmwares are different....

And the boot image files are different too...

Is your phone oneplus 3/3T???
[OnePlus 3T Guides, News, & Discussion] twoxa:
3T, I'm running latest stable h2os that just came out 2 days ago, and its awesome. But my dm-verity got triggered. No big deal.
[OnePlus 3T Guides, News, & Discussion] slim shader:
beta 10 firmware

[MENTION=4418475]djsubterrain[/MENTION] theres only firmware from beta 9
[OnePlus 3T Guides, News, & Discussion] Xennet:
You can try steps from post 2

You can flash firmware 4.0.2 for OOS do all the steps and finally instead of flashing the lastest firmware for OOS flash the latest firmware for hydrogen os and try booting without flashing the patched boot image....

Get to me with the results...
[OnePlus 3T Guides, News, & Discussion] Xennet:
https://xdaforums.com/oneplus-3t/how-to/firmware-beta-10-t3631166

Use link from this thread.. [MENTION=4369704]kamilmirza[/MENTION]

Didn't mention this as I was looking whether the post would be regularly updated or not..

Once I feel that that thread would be regularly updated I will mention it in the post...

Or else I will start a new thread maintaing firmware for oneplus 3T...
[OnePlus 3T Guides, News, & Discussion] kamilmirza:
well I will try to keep updating firmware thread regularly :fingers-crossed:
[OnePlus 3T Guides, News, & Discussion] Xennet:
Ok... Will link to your thread in thread in OP and 2 nd post for the instructions to download firmware for stable and beta for 3T...Keep up the good work...
[OnePlus 3T Guides, News, & Discussion] Sunil.Kathet:
Thanks mate:good:
[OnePlus 3T Guides, News, & Discussion] Xennet:
Ok guys have seen the updates for the betas...Open beta 11 and 20 for oneplus 3T and oneplus 3...

Will put up the updates tomorrow after I get hands on the update files and test it..
[OnePlus 3T Guides, News, & Discussion] ErnyTech:
How did you create these images?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Manually unpack each boot image. Rewrite the code that does the force encrypt and DM verity in the FS tab and ramdisk and repack...No other alterations made whatsoever...100% stock..

And I do extensively test all the images before I upload so that there's no problem for the end user...

Why do you ask?? Any problems???
[OnePlus 3T Guides, News, & Discussion] ErnyTech:
Thanks! I ask because I'm a dev and this patch is interesting :)
[OnePlus 3T Guides, News, & Discussion] Xennet:
OP Updated with the download links for Beta 11 and Beta 20 patched boot images for oneplus 3T and oneplus 3 respectively...

Enjoy!!!

There has been no updates for Stable OOS for more than a month now... Too Stable Ha...!!!:laugh::laugh::laugh:
[OnePlus 3T Guides, News, & Discussion] Bionic Toad:
Xennet you get all my Thanks today. That screen has been haunting me for months. Thanks again for your work.
[OnePlus 3T Guides, News, & Discussion] DawoodSahi:
Um hello, so I got my oneplus 3 today and I want to unlock bootloader, flash twrp so I can get magisk working. I've been reading about this dm verity thing and something that comes on while booting when bootloader is unlocked. Firstly I just want to confirm that unlocking bootloader is going to get rid of the OTA updates right? Secondly what method should I be using right now as I am on 4.0.6. Would it be unlocking bootloader (obv the phone might reboot auto after that), flashing twrp and then flashing this patched boot image or should I download the firmware I am on rn, flash it and then immediately flash the patched boot image and after that magisk. Please guide me through so I don't mess up the new phone. Thanks!
[OnePlus 3T Guides, News, & Discussion] Xennet:
Unlock bootloader (after which you can't do ota updates only full ROM zip flashing)

Flash twrp

Then flash full ROM zip of 4.1.6 and without restarting

Flash patched boot image from post 1

Reboot back to twrp not to system

Now flash magisk 13.3 zip from twrp

Wipe dalvik and cache

Boot to system

For details refer post 1..
[OnePlus 3T Guides, News, & Discussion] DawoodSahi:
Thank you for the quick response. This is really helpful. Just another question, I downloaded the firmware+modem zip of 4.1.6 from Jamal's firmware collections (xda thread) and it is around 47 mbs. That's the one you're talking about right?
[OnePlus 3T Guides, News, & Discussion] Xennet:
No it's just the firmware...

Full ROM zip of 4.1.6 is around 1.5 GB

Get it from the official site

http://downloads.oneplus.net
[OnePlus 3T Guides, News, & Discussion] redpoint73:
Actually, no. You will still get update notifications, and they will still download. The system will detect you have TWRP, and it will download the full zip (not the OTA patch) which is needed for TWRP install. Then the full zip will install. Just make sure you root (flash Magisk) before rebooting to OS (after the update); which will prevent TWRP from being wiped out (which would have happen if you updated and booted to OS without rooting).
[OnePlus 3T Guides, News, & Discussion] Xennet:
Yes you would get the notification for the OTA. But I don't think downloading and installing the full ROM zip via the system is a good method. There is high likelihood of twrp being replaced by the stock recovery even before you get a chance to root and getting messed up.

The best method would be to download the whole zip via an external link and install the via twrp as mentioned in my previous post...
[OnePlus 3T Guides, News, & Discussion] DawoodSahi:
Alright so I followed the steps you mentioned, unlocked, flashed twrp, flashed the latest rom zip, flashed boot img, rebooted to recovery, flashed magisk, cleared cache, rebooted and everything went well. Although I am still getting a 5 second screen at the start of the boot message that BL is unlocked, device can't be trusted etc. Is that to remain or something? (Btw OOS version now says: 4.1.6 - Xn (is that also okay?)
[OnePlus 3T Guides, News, & Discussion] Xennet:
Up perfect!!!

That 5 sec message will stay unless you relock the boot loader...and that Xn is my signature indicating you have my patched boot image and have 100% nothing to worry about DM-verity or other stuff..
[OnePlus 3T Guides, News, & Discussion] DawoodSahi:
Great! Thank you so much for your great work.

Really enjoying oneplus 3, it's dope.
[OnePlus 3T Guides, News, & Discussion] Xennet:
And each time you update your OOS do follow the steps in the first post so that you don't get messed up and get DM verity triggered..
[OnePlus 3T Guides, News, & Discussion] redpoint73:
Yeah, I've never actually tried it that way; mostly only reiterating what Funk Wizard posted on his update thread. And that guy seems really knowledgeable.

Are you saying updating that way (letting it update via the notification) will actually auto reboot after installing the full zip, before you have a chance to root (or at least there is some possibility of that)?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Yeah definitely.

Always be on the safe side...

The twrp flash is the safest..

And why take the risk when you can just reboot to twrp and flash the zip when it takes no extra effort..

Better prevention than cure...Right?
[OnePlus 3T Guides, News, & Discussion] redpoint73:
I was under the impression that doing the update via notification would still boot to TWRP in order to install, seeing as that is the installed recovery. But again, I've never actually done it, so it's an assumption. And that doesn't mean it still won't reboot before you can root.

On the other hand, flashing TWRP again via fastboot is typically not a big deal (just takes a couple minutes) in the event it is wiped out. Unless you happen to be updating away from a computer, etc. But I'm always too paranoid to do something like that!

In any case, just about every time; I've gone to download the full zip manually (and update that way) before I even get an update notification!
[OnePlus 3T Guides, News, & Discussion] Xennet:
Yup always better via a twrp...and always the update is an incremental role out and almost 90% if us download it from an external server and flash it via twrp..
[OnePlus 3T Guides, News, & Discussion] DawoodSahi:
Patched boot image for the oneplus 3 beta v21 please.
[OnePlus 3T Guides, News, & Discussion] Xennet:
Ok..

The patched boot images for the latest betas of oneplus 3 and 3T that is 21 and 12 will be uploaded by tomorrow morning.

Have downloaded the zips and uploading will be done after patching and thorough testing by tomorrow morning..
[OnePlus 3T Guides, News, & Discussion] nadeemakhtar1994:
I am on latest beta 12 and triggered dm Verity long ago. Can i follow steps in post 1 ? It will work?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Follow the steps in post 2 if you have already triggered DM verity and to avoid triggering DM verity during future updates follow the steps in post 1..

If you are on beta 12 wait for a few hours I am finalising the patched boot images for the latest betas and will upload in a while....
[OnePlus 3T Guides, News, & Discussion] Xennet:
OP updated with the patched boot images of Beta 12 and Beta 21 of oneplus 3T and oneplus 3 respectively....

Sorry for the delay guys...

Was held up at work....

Enjoy!!!

[MENTION=4369704]kamilmirza[/MENTION]...

Post 2 updated to the link to your thread permanently..Hope you will keep up the good work with the firmwares for both stable and betas for oneplus 3T...
[OnePlus 3T Guides, News, & Discussion] kamilmirza:
thanks and definitely! :fingers-crossed:
[OnePlus 3T Guides, News, & Discussion] ryan8r:
Just to confirm , I won't lose my internal storage if I flash this after formatting data , will I !?

I am trying to make a clean update from beta 11 to 12
[OnePlus 3T Guides, News, & Discussion] Xennet:
No..

Unless you format internal storage in twrp you will never lose internal storage...
[OnePlus 3T Guides, News, & Discussion] itsjustmelhez:
open beta 13 just got released ..
[OnePlus 3T Guides, News, & Discussion] Xennet:
I am on it...

Just wait an hour or 2... Will upload....
[OnePlus 3T Guides, News, & Discussion] Xennet:
OP has been updated with the download links of the patched boot images of latest open beta 13 and 22 of oneplus 3T and oneplus 3 respectively...

Enjoy the release!!!
[OnePlus 3T Guides, News, & Discussion] itsjustmelhez:
im rooting my phone with supersu. do i need to flash your patched boot.img every update? method : full rom flash > flash supersu. is it ok not to used your boot.img since supersu is patching the boot.img?
[OnePlus 3T Guides, News, & Discussion] Xennet:
SuperSU patches the boot image off DM verity but sometimes as I had an experience it rooted but didn't patch the verity flag but that was old times. I didn't use the latest version. But the forced encryption i suppose is not removed by SuperSU.

As always as mentioned in the OP it's better to have a boot image that is patched for DM verity and forced encryption so that whether or not the root method patches it you are hundred percent safe and moreover SuperSU and magisk are root methods and basically not methods to patch DM verity and force encryption. They don't use device specific methods to patch these but rather generic methods..this generic method may or may not work or your specific device like in case of oneplus 5 neither SuperSU nor magisk patches the forced encryption because the boot image has an additional FS tab entry name file encryption.

So it's your choice.....
[OnePlus 3T Guides, News, & Discussion] counterfeit187:
Sorry, found my answers. I should read more.
[OnePlus 3T Guides, News, & Discussion] _DarkKnight_:
Hi [MENTION=7874870]Xennet[/MENTION] FreedomOS should be evaluated as a custom rom? In the setup you mentioned, we should do a clean installation. Would we do a dirty flash? I tried it by dirty flash but could not get results
[OnePlus 3T Guides, News, & Discussion] Xennet:
Freedom OS is nothing but pure Oxygen OS that is customised to the core by scripting in the aroma installer.. always use the method I mentioned for stock OOS when using Freedom OS...

I didn't get you. No where I had mentioned to do clean installation....Both clean and dirty flashing works well with the method I posted in OP...and in case of DM verity fix as mentioned in post 2 there is no need of flashing ROM at all except in case of custom roms but there too dirty flashing works well...

And be sure freedom os works as stock os not custom os...
[OnePlus 3T Guides, News, & Discussion] _DarkKnight_:
Thanks for the descriptive answer. I solved the problem by doing a clean install
[OnePlus 3T Guides, News, & Discussion] Xennet:
Hey guys,

Finally the long awaited Stable OOS update has arrived...

As usual it is an incremental roll out.....

But here its the patched boot images of Stable OOS for both oneplus 3T and oneplus 3...The links are updated in the OP...I think i have hit the mark this time in bringing the update early being an incremental update...

Thanks guys...Your encouragement keeps me going..:o

Enjoy...No incremental....Only complete universal roll outs...:laugh::laugh::laugh:
[OnePlus 3T Guides, News, & Discussion] Datiree:
Was downloading your file before your message XD

When I see the file was here, I was like :

Already ?! oO

Thanks again, you made my day ;)
[OnePlus 3T Guides, News, & Discussion] rgregor210881:
Lose Root?

I will lose my root? I´m in OOS 4.1.7 with magisk 13.3. Tks
[OnePlus 3T Guides, News, & Discussion] Xennet:
No.

Just follow the steps exactly as given in OP...

To get root you will need to flash magisk after flashing the patched boot IMG...
[OnePlus 3T Guides, News, & Discussion] rgregor210881:
Ok, works fine using the method in the 2nd post of this thread.
[OnePlus 3T Guides, News, & Discussion] Ashu.Eltero:
after doing all this, I've flashed my oneplus 3 with SuperSU.zip for rooting it. But as previous, again it stuck on startup screen. Please help.
[OnePlus 3T Guides, News, & Discussion] Xennet:
Do explain the steps that you did so that I can help...
[OnePlus 3T Guides, News, & Discussion] DawoodSahi:
OP 14 please.
[OnePlus 3T Guides, News, & Discussion] HampTheToker:
He'll get to it.

Patience is a thing here.
[OnePlus 3T Guides, News, & Discussion] casual_kikoo:
A true sentence please.
[OnePlus 3T Guides, News, & Discussion] Xennet:
Sorry...Was busy with duty...Will patch and upload today....
[OnePlus 3T Guides, News, & Discussion] Xennet:
Sorry for the delay guys...

OP updated with download links of open beta 14 and 23 of oneplus 3T and oneplus 3 respectively...
[OnePlus 3T Guides, News, & Discussion] DawoodSahi:
Thank you so much
[OnePlus 3T Guides, News, & Discussion] Flounderist:
Hi [MENTION=7874870]Xennet[/MENTION], I have a full stock OP3T (locked bootloader, encrypted, no TWRP, 4.1.7 fw, stock OOS).

Do you think flashing your pacthed boot.img using fastboot command before flashing TWRP could work?

More specifically, does this sequence in fastboot mode could work?

fastboot oem unlock (to unlock bootloader)

fastboot format userdata (to get rid of encryption)

fastboot flash boot boot.img (to flash your patched boot.img)

fastboot flash recovery twrp.img (no need to explain it)

If positive, swiping TWRP should not incur in dm-verity issue.

Device should be already not-encrypted and it won't be re-encrypted on further custom ROM flash.

Thank you!
[OnePlus 3T Guides, News, & Discussion] Xennet:
The steps mentioned should work theoretically..as I never tried it personally...yup should work and after flashing my patched boot image swiping twrp shouldn't trigger DM verity...

Just if you need just flash my patched boot image in twrp once again after swiping in twrp for the first time and then only restart...to make double sure that my patched boot image is correctly flashed...

Just get back to me with results...

But beware formatting user data you would lose all data on your phone...
[OnePlus 3T Guides, News, & Discussion] Flounderist:
Device is almost empty as it is a new purchase, so format user data won't be an hassle.

I was waiting for a stable Oreo ROM before unlocking.

I will follow your suggestion and I will go for a double flash. :highfive:
[OnePlus 3T Guides, News, & Discussion] izukamikain:
New OB update 24/15

Hi, sir, can you please update to OB 24/15 that just got released today? Thank you. :):)
[OnePlus 3T Guides, News, & Discussion] Xennet:
OP Updated with the links of the latest patched boot images of Open BETAs 15 and 24 of OP3T and OP3 espectively...

Enjoy!!!
[OnePlus 3T Guides, News, & Discussion] izukamikain:
So fast! Thank you! :)
[OnePlus 3T Guides, News, & Discussion] loveuhp:
i'm done...successful with Beta 15 of 3T...

thanks for sharing....

but if i flash custom kernel it will be shown again? and can i use custom rom?
[OnePlus 3T Guides, News, & Discussion] Xennet:
No problem.

You can use any custom kernel or custom rom..
[OnePlus 3T Guides, News, & Discussion] thomas999:
7) Type "fastboot oem disable_dm_verity" without quotes and press enter

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

These two steps say failed for me. I downloaded and flashed 4.1.7 in steps 1 and 2.
[OnePlus 3T Guides, News, & Discussion] Xennet:
Flash the firmware 4.0.2 in steps 1 and 2 not 4.1.7.

Those commands work only till firmware 4.0.2.

Oneplus patched the vulnerability starting from firmware 4.0.3
[OnePlus 3T Guides, News, & Discussion] thomas999:
Thanks will try again.
[OnePlus 3T Guides, News, & Discussion] loveuhp:
fix forever....

i flash h2os 8.0 and unlock BL but no show when bootup
[OnePlus 3T Guides, News, & Discussion] Xennet:
H2OS ???

I never mentioned a fix for hydrogen os...

This works only for oxygen is..
[OnePlus 3T Guides, News, & Discussion] loveuhp:
I do it on oos but i flash h2os still fix :D
[OnePlus 3T Guides, News, & Discussion] Xennet:
Yup. It will work for DM verity...

But I don't think the patched boot image will work

Anyway thanks for reporting...
[OnePlus 3T Guides, News, & Discussion] loveuhp:
not work :( when i root or flash kernel
[OnePlus 3T Guides, News, & Discussion] Xennet:
That's because I have not not made the patched boot images for hydrogen os..
[OnePlus 3T Guides, News, & Discussion] abalam:
Verry useful treat
[OnePlus 3T Guides, News, & Discussion] Mofokiller69:
General Doubt

Do I have to install 4.0.2 oxygen os before I use the fastboot commands or will it work for every 4.x.x version?

Edit: Re-read the provided instructions and figured it out sorry :p