yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T Guides, News, & Discussion] motherninja:
I already said in that post that I haven't tried it by myself. Feel free to try it if you're feeling adventurous enough. :cyclops:

Currently, I don't have any needs to restore my OP3T to completely stock condition since it is running really really well with latest OOS OB, BluSpark kernel, latest Magisk, and BluSpark TWRP.
[OnePlus 3T Guides, News, & Discussion] Sam Nakamura:
The described way you posted would definitely be the way to go for me, less complicated and equally effective, should work flawlessly...
[OnePlus 3T Guides, News, & Discussion] motherninja:
Good to know that... Please post your report after you tried it, so other folks here can also try this method :good:
[OnePlus 3T Guides, News, & Discussion] sandeep_kumar:
Guide to revert oneplus 3t to stock and lock bootloader

Hello Friends,

I have unrooted my oneplus 3t to stock completely. I was using paranoid android(No matter what OS you are using) and took the following steps:

1) I flashed Oxygen OS 4.1.6 through latest TWRP 3.1.1.2 . After booting successfully I noticed that stock recovery is installed automatically so I did not flash stock recovery manually through fastboot method.

"But note that before flashing any other OS in TWRP, always perform clean flash i.e. wipe system, data, delvic cache and cache excluding internal storage and USB OTG because internal storage will be having the OS file which you are going to flash."

2) Now my oneplus 3t is having Oxygen OS 4.1.6 with stock recovery but having DM verity issue. Then I full wiped ( select erase everything) in stock recovery.

3)After complete wipe, check your phone must not have any traces of TWRP folder or substratum folder which all these have in a rooted device. Now, I sideloaded the same file i.e. oxygen OS 4.1.6 through the following command:

adb sideload OTA.zip where OTA is zip file downloaded from oneplus site for oneplus 3t and renamed it as OTA

(For this, you will have to go to stock recovery and select the option of "install from ADB" then a pop up screen will show you that you are in sideload mode. But remember that sideloading the OS is a slow process; so keep patience and do not remove cable in the middle of installation otherwise your device will be bricked.)

4) Still DM-verity issue was not resolved, then locked the bootloader with following command:

fastboot oem lock

5) Now,My devices is running Oxygen OS 4.1.6 with stock recovery and locked bootloader and-and and

NO DM verity.

Now wait for the next update by oneplus as your phone is completely stock.

Please note that if you follow these steps, you will not have any issues but I do not take any responsibility of bricked devices.

Perform at your own risk.
[OnePlus 3T Guides, News, & Discussion] Sam Nakamura:
Any traces of substratum or twrp (or everything else) will be wiped by locking the bootloader... After this the device is clean, one just has to make sure to be on OOS with stock recovery before locking bootloader..
[OnePlus 3T Guides, News, & Discussion] sandeep_kumar:
revert oneplus 3t to stock.

I have tried similar method in which I unrooted my oneplus 3t and made it stock completely.

Read my post.
[OnePlus 3T Guides, News, & Discussion] sandeep_kumar:
I got the OTA update of 4.1.7 and installed successfully.
[OnePlus 3T Guides, News, & Discussion] Uqbar:
Thanks and fix request

[MENTION=5973699]the_rooter[/MENTION] Thanks for your stuff I am going to use.

Would you mind to fix the OP title by changing "you're" (which means "you are") to "your" (which means "belonging to you")?
[OnePlus 3T Guides, News, & Discussion] Disgustip8ed:
I went step-by-step from the first post and now I am getting WRONG PATTERN errors when booting up. I didn't see anything with this particular problem via search and since I now do not have TWRP installed, how can I get back into the phone?
[OnePlus 3T Guides, News, & Discussion] sandeep_kumar:
Hi Friend,

Go to fastboot mode and type the following command one by one and enter after each command:

1) fastboot format userdata

2) fastboot format cache

3) fastboot format system

4) fastboot erase boot

5) fastboot reboot

Now reboot phone into Recovery and flash the TWRP recovery. Now you you will be good to go. and please hit the like if liked.
[OnePlus 3T Guides, News, & Discussion] valhallen.282:
P.S.A - for those reading this thread if you still end up tripping DM Verity while going back to stock with a locked bootloader. You need to copy the 4.0.2 to internal. Flash from within the ROM not the recovery. The disable+enable DM Verity.
[OnePlus 3T Guides, News, & Discussion] sandeep_kumar:
DM verity problem

Please help, I took your guide and flashed oxygen is 4.02 file after wiping everything including internal storage in TWRP 3.1.1.2 and then after flashing stock recovery,I locked the boot loader but DM verity still exists.

I am unable to sideload because on my windows 10 PC, fastboot commands are working but adb sideload is not working.

My device manager also doesn't show ADB interface on the TOP,it shows on the bottom.
[OnePlus 3T Guides, News, & Discussion] valhallen.282:
Check the post above yours I already posted the solution.

You need to skip through ROM setup. copy the zip to your internal storage flash it one more time and then attempt to reset dm-verity. It works.
[OnePlus 3T Guides, News, & Discussion] HiM@L:
Hi All,

I am new to 3T universe. I will be getting my 3T soon from Swappa.

I would like to know if this guide is still valid for OxygenOS Open Beta 26.

TLDR, I want to go back to stock OS.

Thank you in advance.
[OnePlus 3T Guides, News, & Discussion] redpoint73:
OB26 is for the 3, not the 3T.

The current OB for 3T is OB17.

Anyway, this guide is for flashing back to stock and locking the bootloader. OBs are different. You don't necessarily need to have an unlocked bootloader to go OB route. So it's not completely clear what you are asking.
[OnePlus 3T Guides, News, & Discussion] HiM@L:
Thank You for the reply.

I hope I can be more clear on what I want to do.

According to seller, phone has "Latest beta Oreo ROM from OnePlus and TWRP recovery".

In Nexus universe, if I flash factory image, it will wipe system/data/storage every thing and have phone back to stock ( minus oem lock). Then, from there I have to start from scratch to flash custom ROM.

So, my question is How do I do similar to that in OnePlus 3T.

I hope I am clear enough.

Thanks in advance.
[OnePlus 3T Guides, News, & Discussion] redpoint73:
Yeah, that is more clear. There is a lot of nuance here, so bear with me a bit. The specific case you describe has a number of "complications".

In general, for this device, flashing a stock image will

not

wipe data. However there are exceptions:

a) Going from Open Beta back to the "official" OTA path requires a fill wipe. Not sure how that would impact you, since you want to go custom ROM (rather than returning to "stock" of the official OTA path). Also, you need to consider the following:

b) Open Beta 17 (Oreo) in particular, if you want to go back to Nougat, requires you flash a special build. Again, I'm not sure how this impacts what you want to do, as it may depend on whether the custom ROM you want is Oreo or Nougat.

You can get more info on Open Beta, the special build to "downgrade" to Nougat, etc. from this thread: https://xdaforums.com/oneplus-3t/how-to/coming-update-oos-based-7-1-t3564240

Based on the points above, I'm personally not 100% sure the easiest way to do what you want. Such as keeping user data, whether you need to flash the "special build" to go to custom ROM (and whether that custom ROM Oreo vs. Nougat matters or not). But I'd say, the more surefire way (but possibly a bit too thorough) would be:

1) Backup any data you want to keep (off phone to your PC or cloud). I'd suggest this anyway (even in instances without the above complications), since you are flashing a ROM. And any major OS change like that, backing up your data is best practice and the smart move (even if you didn't have to wipe data).

2) Full wipe

3) Special build to go back to stock Android N

4) Flash TWRP back to the phone, if it was overwritten with stock recovery

5) Flash custom ROM

Step 3 above may not be necessary if going to Oreo custom ROM. It's not clear to me. You might read up on the custom ROMs, and see if there is any mention of going to the desired ROM directly from OB17. If it's a Nougat ROM you want to flash, I'd say it's definitely best (maybe mandatory) to do Step 3.

Also note that the above process isn't based (literally or entirely) on personal experience, as I haven't don't exactly what you intend (OB17 to custom ROM). But rather an extrapolation of what I have done, plus what I've read.
[OnePlus 3T Guides, News, & Discussion] HiM@L:
Awesome. thanks.

I really dont care about data in the phone and since, I am buying this phone from someone else and I want it wiped as thorough as possible.

So I guess my path will be more like this and please correct me if I am wrong:

1. go back to official OTA path NOUGAT and this should wipe every little things in the phone.

2. then update to Open Beta 17 (Oreo)(this should flash all needed firmware and radios) and for my insanity sake, I will factory reset again.

3. root (i still need to find guide on how to root 3T)

4. flash Oreo custom ROM.
[OnePlus 3T Guides, News, & Discussion] redpoint73:
My comments below in red font:
[OnePlus 3T Guides, News, & Discussion] smithmunki:
First time oneplus owner and i am hating it i cant get rid of dm verity i just want to go back to 100% stock i regret trading my samsung for this phone
[OnePlus 3T Guides, News, & Discussion] Sam Nakamura:
Well, first off.. It's not the phone's fault, if you attempt to modify it you should do some basic reading before, especially if you easily get frustrated if things don't work out and even if it happens that you trigger DM verity it's definitely no magic to get rid of it... But if that's already enough so that you which back your previous phone I totally agree with you - storck is the best alternative for you, also the resell value of the oneplus device isn't that bad, so switching back to the Sammy camp isn't impossible too...
[OnePlus 3T Guides, News, & Discussion] sandeep_kumar:
I am surprised to read such a strange question. If you are really disturbed from DM verity then don't unlock the bootloader.

It is your good luck to have oneplus device which is far far better than any samsung brand phone especially in the same price bracket.
[OnePlus 3T Guides, News, & Discussion] Chaplan:
Take a look at this thread:

https://xdaforums.com/oneplus-3/how-to/how-to-remove-red-warning-dm-verity-t3727959
[OnePlus 3T Guides, News, & Discussion] smithmunki:
I appreciate it i have tried all of those. I finally was able to get it sorted out thank you though
[OnePlus 3T Guides, News, & Discussion] narutoniraj:
I am having OP3t even after following step by step guide that you have load( which is very good and solved 90% of problem) I am still not able to remove dm-verity screen which keeps screening at the beginning. can you please guide me through this

Regards
[OnePlus 3T Guides, News, & Discussion] Sam Nakamura:
This is by far the best and easiest solution for the dm-verity screen:

https://xdaforums.com/oneplus-3/how-to/how-to-remove-red-warning-dm-verity-t3727959/page1

Alternatively this is a slightly updated method to return back to stock and lock the bootloader, it worked perfectly for me:

https://forums.oneplus.com/threads/...-3-3t-and-go-back-completely-to-stock.456232/
[OnePlus 3T Guides, News, & Discussion] 9988338275:
I Have Oneplus 3T Us A3000 Model. I am From India

actually here is the main issue is Volte Related, meanwhile 4g is working internet working super but Volte for calling not working. even i switch on Volte in settings but still they did not work for i try everything.

then i search and got the band issue is here i checked my Network provider using Band 3,5,40.

but in my mobile has band 5. so i unlock rest network bands by Qcn File of CN.

successfully unlocked the all my network provider bands.

but still Volte is not working i try my all efforts and things factory reset, custom rom but still Volte not working for me.

2nd issue

even now only 1 sim can work at a time other network gone out and when i try to search network the error comes (error while searching network)

means dual stand by is not working for me. vice versa same when i switch internet on 2nd sim 1st network gone

even i switch 1 sim on 4G and other on 2G.

?please help me out my Oneplus 3T is down
[OnePlus 3T Guides, News, & Discussion] coyote03:
I need this for the oneplus 3
[OnePlus 3T Guides, News, & Discussion] Sam Nakamura:
It's the same process, just take care to use the OP3 files (as TWRP is unified for the OP3 & 3t you actually only need to get the correct full ROM from here:

https://downloads.oneplus.com/devices/oneplus-3/)

If it's just a "dm-verity issue there's a much shorter and more convenient solution known, working for both 3 & 3t:

https://xdaforums.com/oneplus-3/how-to/how-to-remove-red-warning-dm-verity-t3727959

---------- Post added at 05:57 PM ---------- Previous post was at 05:53 PM ----------

Sorry, being from Europe I never used VoLTE on the OP3T, now I'm not even owning the device anymore but more importantly you're totally off topic here, so please search for a more appropriate thread to post your queries, I'd suggest you this if you're not able to find a specific thread for you're topic:

https://xdaforums.com/oneplus-3t/help/qa-noob-friendly-qa-help-thread-t3509641/page124/page124
[OnePlus 3T Guides, News, & Discussion] coyote03:
I get the "updater process ended with error : 7" when I try to flash the official rom downloaded from oneplus website
[OnePlus 3T Guides, News, & Discussion] Sam Nakamura:
Error 7 usually means "ROM does not fit the device", so make sure you not have accidentally downloaded the 3t ROM for the 3 (or vice versa)...

Another common problem is a outdated recovery, so make sure to use the latest official version of TWRP or even better use blu_spark's TWRP!
[OnePlus 3T Guides, News, & Discussion] kinslayer7:
I'm using the blu_spark TWRP and 3t ROM for my 3t

But I keep getting error:7
[OnePlus 3T Guides, News, & Discussion] Sam Nakamura:
Sure you're using the latest version of blu_twrp?

Are you on the latest OOS firmware?

That's are the next common user errors...
[OnePlus 3T Guides, News, & Discussion] kinslayer7:
I think my problem lies in the OSS firmware as well.

Can you please direct me as to from where can i download the proper firmware from.
[OnePlus 3T Guides, News, & Discussion] Sam Nakamura:
This is a great resource for flashable firmware only zips, remember this is only the "firmware" and not a full bootable ROM, download & and flash in TWRP:

https://xdaforums.com/oneplus-3t/how-to/firmware-beta-10-t3631166/page45

This is the latest available Blu_spark TWRP for OP3/t:

https://xdaforums.com/devdb/project/dl/?id=27655

Please use this thread for in case you have further questions as your request for help has nothing with the thread's topic to do and can be regarded as off topic:

https://xdaforums.com/oneplus-3t/help/qa-noob-friendly-qa-help-thread-t3509641/page1
[OnePlus 3T Guides, News, & Discussion] kinslayer7:
Thanks a lot
[OnePlus 3T Guides, News, & Discussion] Crazy32:
There is no 4.0.2. Does it work with the 5.0.4 too?
[OnePlus 3T Guides, News, & Discussion] sandeep_kumar:
You can use the latest 5.0.6 after wiping everything without any magisk or mode and check DM-verity should not trigger after booting.

If DM-verity triggers as was in my case too, then sideload the same 5.0.6 zip through fastboot which will remove DM-verity.

After that you can lock bootloader after again wiping everything from stock recovery.

Make sure before locking the bootloader, you have stock recovery.
[OnePlus 3T Guides, News, & Discussion] Shubham Darekar:
There in no link available to download the full stock rom can you please give me the link
[OnePlus 3T Guides, News, & Discussion] BillGoss:
There's a link in this post https://xdaforums.com/oneplus-3t/how-to/official-oxygenos-5-0-1-android-8-0-t3728119/post75026505
[OnePlus 3T Guides, News, & Discussion] Shubham Darekar:
The link is only for OTA version, which i am not able to flash....... Can i get the link to Full rom
[OnePlus 3T Guides, News, & Discussion] BillGoss:
It is actually the full ROM (1.5 GB), not the partial update.
[OnePlus 3T Guides, News, & Discussion] L.P.:
Thank you most of you for pointing out all the issue one can face.

I facing a strange issue where in my device is stuck in a reboot loop and cant seem to do anything. It just vibrates and turns off and back on and so on and so forth.

Please note - i have read all the 7 pages of the thread, no one seem to come across the issue and I seem to be the only dumb*** who is stuck , LOL

Any help will be greatly apprecaited.
[OnePlus 3T Guides, News, & Discussion] vinoxflame:
https://forums.oneplus.com/threads/...-3-3t-and-go-back-completely-to-stock.456232/
[OnePlus 3T Guides, News, & Discussion] Degru01:
So, I'm currently running just Lineage with TWRP recovery on my OP3. I would like to go back to *full* stock with OTA updates and Google Pay etc. all working properly, because Google Pay isn't working with Magisk any more. Will following this guide get me there with the latest ROM and image available on the OnePlus site? I specifically want to make sure OTA and Google Pay will all work because I had a previous phone where "just" flashing the stock ROM and recovery wouldn't get it back to that state.
[OnePlus 3T Guides, News, & Discussion] sandeep_kumar:
Recently I returned back to stock completely.

I did:

1) Flashed the full zip of 5.0.8 after wiping all partition except internal storage(We can do factory reset from stock recovery thereafter).

2)Now after hitting reboot, make sure that you must not have DM-verity problem and if it exists than you will have to use adb sideload method to flash 5.0.8.zip again so that DM-verity is completely gone as stated in the OP.

3) After removing DM-verity problem, you can reset the device completely from stock recovery just for safety to make sure the device is safe and clean.

4) After that you can enter the command fastboot oem lock.

Enjoy the stock with OTA update
[OnePlus 3T Guides, News, & Discussion] Degru01:
Are you able to set up Google Pay and other apps that require stock/locked device?
[OnePlus 3T Guides, News, & Discussion] sandeep_kumar:
I do not use Google pay.

I confirm THAT my bootloader is locked with oxygen os 5.0.8 and after that I have taken the local update of community beta of android 9.0 successfully.
[OnePlus 3T Guides, News, & Discussion] Ricky_Karmator:
Hello guys, can I flash the latest stable through TWRP following this guide even if I am on a decrypted device? And after I flash it and flash the official recovery, locked the bootloader and back to be encrypted,can I update to the community beta based on Pie? Thanks
[OnePlus 3T Guides, News, & Discussion] BillGoss:
Deleted
[OnePlus 3T Guides, News, & Discussion] sandeep_kumar:
You can flash the latest stable 5.0.8 even if your decrypted afaik.

After installing stock recovery, after factory reset from the recovery menu of stock recovery your data partition will be changed to F2FS. Make sure that you have stock recovery and no-DM verity triggering before locking the bootloader.

After that you can flash local update of community beta of pie.
[OnePlus 3T Guides, News, & Discussion] hrockh:
I installed the latest Pie stable (9.0.2) and while I can send the command "fastboot oem lock" to the device, the bootloader does not lock.

Downloading now OOS 5.0.8 to see if it works. I will report back.

UPDATE

Yup, downgrading to 5.0.8 did the job.
[OnePlus 3T Guides, News, & Discussion] Xidroid:
This guide was great, thanks! I had difficulty getting rid of the DM-Verity warning on boot using the Fastboot commands while OOS 5.0.8 was installed. After completing this guide, while still locked I started up the system and re-enabled Developer Options and got ADB running. This command: adb reboot "dm-verity enforcing" fixed the DM-Verity warning and the screen didn't come up during boot. I used the stock Recovery to wipe all data and reset to factory wipe the device.. Anyone having trouble with the DM-Verity should try this.
[OnePlus 3T Guides, News, & Discussion] mrsim:
hello there the dev

there seems to be no option in the link in instruction "Step 6: Next go to this link: http://downloads.oneplus.net/oneplus...xygenos_4.0.3/ , and go all the way to the bottom where it says download Oxygen Recovery (optional), and download that file, and place it on desktop" to download a recovery....there are just options to choose which device rom you require,after you choose the OP3T there is still no option at the bottom of the page to download a stock recovery...???

ok odd you have to copy'n'paste the listed link into your browser and the download pops up but i managed to get it...thank you

maybe you should update the OP here is the image we receive at the link i mentioned above

https://imgur.com/MpBXt82

pps

i also noticed in the OP at step 7 that you do not mention to put the device into bootloader mode before connecting to ADB/fastboot on the PC i do not think i have ever in my life gone through ADB to access fastboot in order to flash any recovery....maybe years gone by this was a thing but now'a'days is this needed...??? and also isn't the command 'fastboot flash recovery recovery.img'

"Step 7: Now this is assuming you have adb/fastboot setup on you're pc/laptop. Please open up a Command prompt window with phone connected and type these commands in:

1) adb devices ( this will show your device ID Number). If it shows it please continue, if not there is an issue with adb/fastboot set up on your computer, or you typed that command in wrong. Once u get the issue resolved try the command again.

2) adb reboot bootloader (this will reboot your device to bootloader mode)

3) fastboot devices ( again this will show your device ID number as from before)

4) fastboot flash recovery [click and drag the recovery file you downloaded from oneplus website and saved to the desktop here, press enter, and once completed go to your phone and use either the volume up or down button till u see the word Start in green and then press the power button. This will reboot your device, and again you will still have the dm-verity warning on. We are almost done. "
[OnePlus 3T Guides, News, & Discussion] diegogero:
Where can i find the 4.0.2 version? on the oneplus website I can only find the new version, which is the 5.0.8 :confused:
[OnePlus 3T Guides, News, & Discussion] diegogero:
I can't find the rom nowhere. I could find a modified one, but the original? there must be some way to find it... I am sure i am not seing something
[OnePlus 3T Guides, News, & Discussion] ivano949:
https://mega.nz/#!w0VREYbZ!VGzp2GcJPnfbzy6ShtOL7Mo3ypmrFbs49tlaqu9hLi0

This is my Mirror

Taaaak....
[OnePlus 3T Guides, News, & Discussion] diegogero:
wow, thank you very much.
[OnePlus 3T Guides, News, & Discussion] diegogero:
what about the 4.0.3? do you have that one too?
[OnePlus 3T Guides, News, & Discussion] vettayyan:
These are all for OOS 4.1.6 ..

Now I'm on Nitrogen OS ,running Android P .. Any way instead of ADb Sideload,since the usage for a PC is very restricted for me ..

Like Flashing thro TWRP .. ? I also wish to return to Stock OOS with TWRP and Rooted
[OnePlus 3T Guides, News, & Discussion] Degru01:
You can flash zip from TWRP. That's how I did it. But flashing stock recovery and locking bootloader will need to be done from fastboot. Can use Oxygen updater app to get latest OTA if you can't fully return to stock and have trouble updating.
[OnePlus 3T Guides, News, & Discussion] aeQuitas90:
Hello, I'm on latest resurrection remix right now. I'd like to go back to stock and unrooted device because I need it for some banking apps (already tried with magisk hide but it isn't working o all apps).

What should I do? I can't find the stock recovery for oxygen os 9.0.5. Can I stay with twrp?

Thanks