yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T Guides, News, & Discussion] nicknacknuke:
Thanks !!
[OnePlus 3T Guides, News, & Discussion] iampine:
hi currently on 5.0.8 rooted with unlocked BL+encrypted, would just like to confirm if the steps i'll make to flash the latest update is right:

1. Wipe system,data,cache,dalvik cache

2. Flash latest update 9.0.3

3. flash modified boot img

4. flash twrp

5. reboot to twrp

6. flash magisk

7. reboot system

is this right? or i'm still missing something :confused:
[OnePlus 3T Guides, News, & Discussion] mkcs:
After dirty flash of android pie over a rooted android oreo, decryption error occurs after rebooting. Damn it I was forced to wipe all data! My precious photos and recordings are lost!!!
[OnePlus 3T Guides, News, & Discussion] Mizart:
Firstly, you probably did not follow the procedure correctly.

Secondly, even if you did, you were going from Oreo to Pie. Thats not a simple version change, your OS in its entirety was changing. There is no way a dirty flash would work.
[OnePlus 3T Guides, News, & Discussion] nicknacknuke:
I managed to patch the boot image ( 9.0.3 ), but somehow right after i install the img with TWRP,

the phone vibrates non stop, had to just reboot it ( back to TWRP ).

It suceeded allright, just wondering does anyone else experience the same ?

Just quite creepy.. it just wont stop vibrate...
[OnePlus 3T Guides, News, & Discussion] mkcs:
I did follow the procedure, flash the official rom and then flash the boot image immediately before rebooting. From Android 7 to Android 8, dirty flash worked as similar to ota upgrade! But from oreo to pie dirty flash didn't work anymore!
[OnePlus 3T Guides, News, & Discussion] Mizart:
The boot image only disables DM-Verity. That does not do anything to disable force encryption. By any chance, did you miss flashing the Force Encryption disabler zip after flashing the boot image and rebooting back to twrp?
[OnePlus 3T Guides, News, & Discussion] mkcs:
My data was encrypted in Oreo without triggering dm-verity (already get rid of it in Android 7). Therefore, the steps below is applicable to me. I read it carefully, it doesn't mention to flash the force encryption disabler. Yet, after flashing Android Pie and boot-img followed by a reboot, decryption errors occurred and it said the key was correct but the data was corrupted. A factory reset was the only available choice below the error message. I ignored it and tried to enter the recovery mode by rebooting. After I rebooted to the recovery mode, a message prompted out to ask me the password for decryption. Because I did not know the password for encrypting the data which was automatically done by the OxygenOS, I selected the 'cancel' choice. I opened the file manager and try to see if my data existed, but nothing was found. In order to rescue my phone, I was obliged to force decryption using the OnePlus Toolkit, which could wipe the data. However, beyond my expectation, it wiped my entire internal storage:(

I followed the steps below in order without any omission. I couldn't believe that a dirty flash of an official OxygenOS of Oreo over Noguat was applicable while a dirty flash of Pie over Oreo screwed up my data:(

STEPS: This is applicable only to people who have their data currently ENCRYPTED and needs the procedure only for NOT TRIGGERING DM-VERITY

USAGE FOR STOCK OOS:

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

2. Restart back to TWRP Recovery.

3. Done.

4. Now do whatever you want like usual.. Flash root, kernel, mods or anything as usual

5. You dont have to worry about triggering DM-Verity again and any changes made to system via TWRP will not be reverted back..
[OnePlus 3T Guides, News, & Discussion] Xennet:
The first line in the OP is that...

THIS THREAD IS FOR OOS PIE...

This thread is for people on OOS PIE...This thread is not a guide for migration from Nougat to Pie...This thread as the heading states deals with DISABLING DM-VERITY AND FORCE ENCRYPTION ON OOS PIE...

This thread never mentions it has anything to do with migration of your OOS from Nougat to Pie..

This is what happens when people take for granted everything and flash zips and images left and right...

IT'S LIKE A HOT CAKE OUT THERE FOR MORE THAN A MONTH THAT YOU WILL LOSE YOUR DATA AND STORAGE IF YOU UPDATE FROM NOUGAT TO PIE WITH AN UNLOCKED BOOTLOADER...

XDA IS INFORMATION...READ, READ AND GAIN INFORMATION BEFORE YOU PROCEED ANYTHING...AND IT'S NOT SPOON FEEDING...

AND ABOVE ALL THIS GUIDE EXQUISITELY ASKS YOU TO BACK UP YOUR DATA BEFORE PROCEEDING... SORRY YOU DIDN'T PAY ATTENTION TO THAT TOO...
[OnePlus 3T Guides, News, & Discussion] Mizart:
If you were already encrypted then that takes me to my original statement. Its because you went from Oreo to Pie on a dirty flash. Usually what happens is when you follow the procedure that you did, it disables DM-Verity and boots up, and while booting up, the phone proceeds to encrypt your data. Thats why the first boot takes about 30 mins.

But since your app data was from oreo and you were on a pie rom. That messed things up. The encryption did not complete successfully and you were left with an error.

Like Xennet mentioned, always read the OP carefully before proceeding, especially if you don't fully understand what you're doing.
[OnePlus 3T Guides, News, & Discussion] sandeep_kumar:
If I use the patched boot image along with force encryption disabler, is it safe to flash custom kernel over the patched boot image?

I think it should not have any issue.

Correct me if I ma wrong.
[OnePlus 3T Guides, News, & Discussion] Mizart:
Most custom kernels already have DM-Verity patched so they basically do the same thing as what the patched boot image does. If you flash it, it will simply replace the patched boot image with its own. No issues there.

But just make sure that the kernel you're using disables DM-Verity. Also, just to be safe, first boot up into system using Xennets patched boot and then reboot and flash a custom kernel
[OnePlus 3T Guides, News, & Discussion] Xennet:
Update....

Don't know what's in this update for OnePlus3T/3 other than a security update.

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

Oneplus 3T --> Download (md5 - 764CBF251B54A4B9604EF2DE3A837989)

Oneplus 3 --> Download (md5 - DB675369D8EABA523C38A1BEB1E7A0B5)

Force_Encryption_Disabler_For_OOS_Pie_v1.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] stevenhsl:
I have it on oxygen updater too, for OnePlus 3. How do I extract the link from the app?
[OnePlus 3T Guides, News, & Discussion] stevenhsl:
https://androidfilehost.com/?fid=6006931924117906235

Found it on the other server, 9.0.4 for op3
[OnePlus 3T Guides, News, & Discussion] Xennet:
OP and previous release post updated with download link for patched boot image for OnePlus3 stable update 9.0.4...

Oneplus 3 --> Download (md5 - DB675369D8EABA523C38A1BEB1E7A0B5)
[OnePlus 3T Guides, News, & Discussion] stevenhsl:
Thanks for the prompt update! (And still supporting this 3 years old device)
[OnePlus 3T Guides, News, & Discussion] vip57:
there is no 9.0.4 firmware files in the link of the removing dm verity thread
[OnePlus 3T Guides, News, & Discussion] Paschfire:
Um, no? They're available within the Firmware+Modem thread.
[OnePlus 3T Guides, News, & Discussion] pratyush28:
This happened because oneplus still hasn't fixed their encryption key bug, the new oos pie is not able to decrypt previous oreo keys which leads to corruption of /data partition and you lose all your data. This bug had been discussed in the first 3 pages of this thread.

I strongly feel oneplus is at fault here its been like what 2 months since pie was released and they still haven't even acknowledged that this bug exists I've been spamming all their new release threads with this including many others who have lost their data but they are so ignorant that they havent even added a warning in their OP that flashing this on encrypted devices with unlocked bootloader will result in complete data loss.

---------- Post added at 05:44 AM ---------- Previous post was at 05:37 AM ----------

@Xennet i request you to please add a warning or a note in the first line of the OP, saying that Upgrading from oreo to pie will get your internal storage wiped unless you have a decrypted device along with an unlocked bootloader. Seeing this warning people will either refrain from upgrading until oneplus fixes their mess or they will backup their entire internal storage and then proceed. I know its not your fault but this could prevent a lot of people from losing all of their data.
[OnePlus 3T Guides, News, & Discussion] phil_greg2001:
Maybe this help:

https://xdaforums.com/showpost.php?p=79834041&postcount=920
[OnePlus 3T Guides, News, & Discussion] pratyush28:
Thanks i didn't know this existed :svetius:
[OnePlus 3T Guides, News, & Discussion] kenboyles72:
Flashed the latest OOS , have my data backed up and want to decrypt. I have problems with the guide in OP

Step 2, if data is erased, i no longer have access to my zips to be flashed.

Step 3, once I boot to twrp, i cant mount storage or use mtp to transfer files, therefor rest of steps are null

I can finally manage to reboot back to OS, get the decrypt message about data corrupt, proceed to reset and reboot to OS to be encrypted once again.

Can one just boot to twrp, format data and proceed with rest of steps?
[OnePlus 3T Guides, News, & Discussion] Xennet:
You can't get to boot directly to PIE from OREO in one boot step as there is change in keymaster and bootloader which prevents decrypting OREO data in PIE when upgrade from OREO...or else you have to flash the OREO keymaster and bootloader after flashing PIE so that there is no problem in decrypting...

For your other question regarding after data format...you have to transfer OOS ZIP via PC...
[OnePlus 3T Guides, News, & Discussion] kenboyles72:
Was on LineageOS 16 before trying OOS 9.04, pie to pie. Anyways, finally got it worked out though, after doing things a bit different. The main issue was, formatting userdata in fastboot was not fully formatting and was keeping encryption. I know this, after formatting userdata and rebooting back to twrp, console message said that decryption was successful, if encryption really was gone, it would just say "updating partition details. . . . . full selinux support is present . . . . . mtp enabled". That's why data/storage wasn't being auto mounted and not able to transfer files over.

Instead of formatting userdata in fastboot, I just booted to twrp and selected the "Format Data" button in the "Wipe" section. This presented a warning dialog and had to type in "yes" to continue. After doing that and rebooting back to twrp, encryption was fully gone and data/storage mounted like it should. I then transferred my zips over and flashed with no issues.
[OnePlus 3T Guides, News, & Discussion] arifn82:
supersu cannot root here. tried exactly what you said, with sr5 2.82 , flashing ok from twrp, but after booting up, there is no supersu app. my device is currently un-encrypted ,OOS 9.0.4 (patched boot) and latest twrp installed.. please, help me to install supersu, i dont want to use magisk anymore.
[OnePlus 3T Guides, News, & Discussion] the-blind-bandit:
Thanks a lot
[OnePlus 3T Guides, News, & Discussion] Paschfire:
SuperSU is way to old and has not being under active development in over 2 years, that's 2 full Android versions worth of changes since, it's simple not compatible with OOS 9 Pie.

If you're looking to Root your device, then I suggest you reflash OOS 9.0.4 to remove any changes made by the SuperSU zip and proceed with installing Magisk.
[OnePlus 3T Guides, News, & Discussion] Butit:
I used twrp to upgrade to stock oos pie from a custom oos based nougat rom. My phone is now on oos pie but I lost root (magisk) and the twrp recovery that I used in doing the upgrade.

If I flash twrp through adb now that the phone is all set up, will it trigger the dm verity bootloop issue?
[OnePlus 3T Guides, News, & Discussion] Paschfire:
It will if you don't also flash a DM-Verity patched boot.img or Magisk Root after installing TWRP and before booting into the OS.
[OnePlus 3T Guides, News, & Discussion] Butit:
Okay so I should flash twrp recovery via adb, and immediately flash a dm verity patched boot img or magisk right after the twrp recovery?
[OnePlus 3T Guides, News, & Discussion] xarrismoto:
Oxygen OS 9.0.5 is out!

https://androidfilehost.com/?fid=6006931924117931818
[OnePlus 3T Guides, News, & Discussion] stevenhsl:
Oneplus 3:

https://androidfilehost.com/?fid=6006931924117931834
[OnePlus 3T Guides, News, & Discussion] Mizart:
OTA Links for OOS 9.0.5

OnePlus 3:

https://otafsg1.h2os.com/patch/amaz...3Oxygen_16_OTA_085_all_1907311947_108e7e9.zip

OnePlus 3T:

https://otafsg1.h2os.com/patch/amaz...gen_28_OTA_085_all_1907311943_3c4d77566c8.zip
[OnePlus 3T Guides, News, & Discussion] Xennet:
So Xdiians...

This was a surprise release from OnePlus. Still vague about the features in the update other than the security patch update. So thought it prudent to wait for atleat 24 hours before I do my work to release the patched boot images, as (it has happened before) the update may be pulled off. So far so good...

So.....

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

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

Oneplus 3 --> Download (md5 - 82CDC70832076020B69520704AC9BC02)

Force_Encryption_Disabler_For_OOS_Pie_v1.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] stevenhsl:
Thank you very much Xennet!

This should be one of the last updates for 3/3T as OnePlus promises 2 years of feature updates and additional one year of security patch.

3T will reach its end of life by mid November this year (launch mid Nov 2016) and I think there will be no more updates for 3/3T afterwards.
[OnePlus 3T Guides, News, & Discussion] Anghirrim:
For me this firmware update solved the "white led black screen" bug encountered on 9.0.4.

I always had this bug from time to time since Oreo, most of the time under TWRP, at the end of a flash.

But on 9.0.4 (running /e/ rom), I was able to reproduce the bug when entering airplane mode.

Flashing 9.0.5 firmware seemed to have solved this.
[OnePlus 3T Guides, News, & Discussion] shzxm:
Hello author

I have some questions I want to ask.

My phone has been encrypted and the bootloader is unlocked.

Under twrp-3.3.1-0

When I brand new flash oos 9.0.5 (4 cleanup)

Should you enter step 2 after entering the system?

Flash boot-patched.img does not boot before entering the system.

Or need to flash oos 8 first decrypt the phone after flash oos9?

Boot-patched.img should flash to boot or system img? Or do you choose direct flash?
[OnePlus 3T Guides, News, & Discussion] aiamuzz:
Ok ... i am stuck in a boot issue(not a loop)

I tried the above steps ... but instead of installing the twrp recovery i booted into the twrp recovery and successfully followed the steps upto No. 8 ... after that i tried 'fastboot boot twrp.img' ... but i wasn't able to boot into twrp this time(remember it worked perfectly fine when i booted and flashed the zip file as per step 1) ... now i am getting the password prompt failing which i boot into a read only twrp recovery ...

I am guessing with the '4.0.2_firmware_OnePlus_3T.zip' flashed on a functional Stock rom OSS 9.0.5 ... i have messed up things that the OS isn't booting ...

Currently i can only boot into the bootloader and access stock recovery and fastboot !!!

Can somebody help me a way to return to Android Pie via stock recovery ?

Also can you please point me to the Stock ROM file that will successfully flash through the stock recovery ?

thanks
[OnePlus 3T Guides, News, & Discussion] saspo59:
Hi [MENTION=7874870]Xennet[/MENTION] think we need your magic boot file for 9.0.6:)
[OnePlus 3T Guides, News, & Discussion] aiamuzz:
oh ... has 9.0.6 update released ?

When ?
[OnePlus 3T Guides, News, & Discussion] saspo59:
https://xdaforums.com/oneplus-3t/how-to/official-oxygenos-5-0-1-android-8-0-t3728119/page174
[OnePlus 3T Guides, News, & Discussion] Xennet:
Hey Guys... Long time no see.....

Another surprise update from Oneplus for 3T...

Here is the download link to the patched boot image for Stable OOS 9.0.6 for OnePlus 3T....

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

Force_Encryption_Disabler_For_OOS_Pie_v1.zip will work with 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] aiamuzz:
[MENTION=7874870]Xennet[/MENTION] ... i don't understand this part ... is it required to flash the full ROM pie OOS zip file in TWRP ?

can't we just do factory reset in TWRP and then flash the boot-patched.img directly after reset ?

after that without booting couldn't we free up space of 100MB in /system partition and flash the "Force_Encryption_Disabler_For_OOS_Pie_v1.zip" file ... and still achieve disabling of force encryption ?

PS : the OP's stock ROM's full zip files ... are they flashable through TWRP recovery as well ? I thought the stock full ROM zips were flashable only through stock recovery !

---------- Post added at 08:02 PM ---------- Previous post was at 07:45 PM ----------

when i run the command

fastboot format userdata

or

fastboot erase userdata

... i can't mount

/data

partition ... i have to format

/data

to F2FS only then i am able to mount

/data

this whole flashing the OOS Stock full ROM zip is a bit confusing as the

/system

isn't really formated in this procedure 2
[OnePlus 3T Guides, News, & Discussion] bwagner.ash88@gmail.com:
I'm confused as well. I just flashed the new update through twrp. When I go under settings in security it says my phone in encrypted. I don't know how to fix it so if I flash another rom it doesnt lock me out
[OnePlus 3T Guides, News, & Discussion] parag60288:
Patched boot image for OP3?

When can we expect boot image for OP3.

I found OOS 9.0.6 Full zip link in this thread: https://xdaforums.com/showpost.php?p=81012223&postcount=134

If that helps.
[OnePlus 3T Guides, News, & Discussion] bwagner.ash88@gmail.com:
What method would I use so my device won't be encrypted or dm verity. I already flashed the oos update 9.0.6 last week and rooted magisk. So can I just flash the zip file now in twrp.
[OnePlus 3T Guides, News, & Discussion] BillGoss:
Magisk disables the dm-verity warnings, so there's nothing you have to do for that.

Note: the display you get when booting with an unlocked bootloader cannot be disabled. The only way to not get that message is to lock the bootloader.

If you don't want your phone to be force encrypted when running OOS you'll need to flash the encryption disabler in TWRP.

However, that zip doesn't remove encryption from your phone. It just prevents OOS from re-encrypting your phone on boot up.

To remove encryption you have to format data in TWRP and that will wipe /data including the internal storage (/sdcard).

Personally I think it's very unsafe to use an unencrypted phone because then anyone can remove your lock screen password and then access everything on your phone.

To prevent that from happening you have to have the phone encrypted and set an on-boot password.
[OnePlus 3T Guides, News, & Discussion] bwagner.ash88@gmail.com:
OK thank you for helping understand all that. So with it being encrypted if I decide to flash another rom let's say havoc for example, I will have to format data no matter what?
[OnePlus 3T Guides, News, & Discussion] BillGoss:
Android 9 roms should all be ok.

Android 10: Los and PE support encryption, but the others don't yet.
[OnePlus 3T Guides, News, & Discussion] DJBhardwaj:
Hey everyone. I was wondering if I could take a different route here.

For a few of my devices, I have started using universal DM-Verity and ForceEncrypt disabler by [MENTION=6037748]Zackptg5[/MENTION]

I just want to know if the same can be used for the OnePlus 3/3T running Pie as well. Please take a look at the steps below.

1) Boot into TWRP

2) Go to 'Wipe' > 'Format Data' and format the /data partition.

3) Reboot TWRP

4) Flash Zackptg5's disabler and then reboot.

Do you think this will cause any problems? His zip will patch both DM-verity and forceencrypt in the kernel.
[OnePlus 3T Guides, News, & Discussion] BillGoss:
Why would you ask about someone else's zips in Xennet's thread?

Ask in the question in the source thread of the zips you want to use or in the general q&a thread.
[OnePlus 3T Guides, News, & Discussion] rctempire:
[MENTION=7874870]Xennet[/MENTION] - Top job on the 3T, any update one the Standard 3?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Sorry for the long delay....was held up at work...

Here is the download link to the patched boot image for Stable OOS 9.0.6 for OnePlus 3....

Oneplus 3 --> Download (md5 - C7AF79413139538201904D48DE7AE249)

Force_Encryption_Disabler_For_OOS_Pie_v1.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] xSynatiC:
I'm not sure what i'm doing wrong. I want to revert back to OxygenOS (from havoc), lock my bootloader and remove the verity message. Only going back to OxygenOS so far helped. No matter what guide i use, i can't lock the bootloader, even if it says it was a success. Same with the DM_verity. followed every step but i still get the message.
[OnePlus 3T Guides, News, & Discussion] Paschfire:
What version of OOS are you currently running?

Pls list out the steps you took in attempting to relock the bootloader.
[OnePlus 3T Guides, News, & Discussion] xSynatiC:
I solved it...And i can't wrap my head around how stupid the solution was.

Generally i installed the stock oxygenOS 9.0.6, formatted everything, managed to finally find/install the stock recovery. fastboot oem lock, oem flash lock, sdk tools, nothing helped. Everything in this and other guides.

The solution was after entering : fastboot oem lock, i obviously got a prompt to either press yes to lock the bootloader and wipe all data or just leave it as is and do nothing.

I did YES countless times. Without success. Then after trying again i pressed NO..and would you look at that. Everything got wiped and the dm_verity error message at the start was gone. Now i'm even able to toggle oem unlock inside the developer option (before it was greyed out because it was already unlocked)

I have no clue why "NO" to not lock the bootloader was the solution.
[OnePlus 3T Guides, News, & Discussion] pratyush28:
Apparently oneplus has messed up the yes/no in the bootloader lock screen for all oos 9 roms on the op3/3T. To mess things up is one thing and to not fix it in 6 subsequent updates is another :eek:
[OnePlus 3T Guides, News, & Discussion] capz21:
What is the point of disabling DM-Verity?
[OnePlus 3T Guides, News, & Discussion] BillGoss:
If you're running stock OOS without a patched boot image or Magisk, and you make any changes to the system you'll get a dm-verity error (similar to the unlocked bootloader but in red) and the system won't boot.

And even if you don't make any changes to the system but install a custom recovery, then with dm-verity enabled, the stock recovery will replace the custom recovery.

But this only applies to OOS, not to custom ROMs.
[OnePlus 3T Guides, News, & Discussion] capz21:
Makes sense, thank you very much Bill! :fingers-crossed::good::highfive:
[OnePlus 3T Guides, News, & Discussion] Scorpion70:
I'm on havoc os 3.0 with decrypted data. Now i want to revert back to OOS 9.0.5 and keep my device decrypted. Which method should i use?