yashsingh1/xdaforums huggingface dataset:
[OnePlus 3T Guides, News, & Discussion] Yudh:
I had my bootloader unlocked.

I was on oos 5.0.8 latest stable build.

Also i discovered a workaround.

Steps below to keep your app data, unlocked bootloader and update to pie.

1)First upgrade the twrp to latest 3.3.0-1

2)remove any kind of lock in the system.

{otherwise it creates issues at the last point by not allowing us to enter the phone past lock screen.

[ If forgot to do so like me Workaround(perform after step 14 only) is to reboot to twrp and deleting the file located at /data/system/locksettings.db using twrp file manager (trick picked from OnePlus official rooting guide).

Then reboot into system and create the same locking method to retain fingerprints and facelock]

But for some people it would be better to remove locks in the first place from system before taking a full backup using twrp because you can always forget which file needs to be deleted or bymistakely if wrong file is deleted then it will cause issues}

3) reboot to twrp and take a COMPLETE BACKUP IN AN EXTERNAL DEVICE . Internal backup won't help.

It would be better if you don't compress it.(in rare cases it led me to corrupted backup in the past with previous twrp versions)

4)after taking backup don't go out of twrp and using MTP

Copy the whole internal storage to pc .

Bellow part isn't necessary but it would be better if you do it.

Also check the twrp backups digest for each created partition just to be on safer side.( It's better to be safe than sorry.)

So that you can make sure that your backup isn't corrupted.

5) download the community pie beta build and patched boot image for pie on the external storage like an otg (which i used).

Sha256 for OnePlus 3T beta build is

837d0f972ce7a10e422ddbf4d96d37cf3d84422ee5717c37a0ee5c3e1419d3c0

Also sha256 for OnePlus 3T patched boot image is

e2619b029e2f14f8cbe3c3b9306181e6688f038f39e8fcd4d5dea823360dcce0

6)wipe everything in twrp using format data option.

7) reboot to recovery again immediately using twrp otherwise twrp won't be able to access data partition afterwards.

8)flash the community beta build and immediately after that the patched pie boot image.

9) reboot to twrp again

10)flash magisk if you want.

11) reboot to system. After the system is started don't enter anything.

Instead again reboot to twrp.

12)while in twrp connect the mobile to pc and delete all the new folders and files in new internal storage.

After that copy the old internal storage contents to your mobile.

Just wait even i was exhausted. But it worked out well.

13)after that restore only the data partition from the nandroid backup which you made using twrp in the start of this guide

14) reboot to system and your data is still there in your mobile with pie community beta build and also unlocked bootloader
[OnePlus 3T Guides, News, & Discussion] Yudh:
Proof that i succeeded

Now its time for me to enjoy my pie and go to sleep.

For you it's time to prepare your own pie
[OnePlus 3T Guides, News, & Discussion] Yudh:
The problem isn't with twrp i think because

After rebooting to recovery after flashing the pie beta and patched boot image

Even the system couldn't access the data partition it asked me to reset my phone by saying the data partition is corrupted (which in reality wasn't because i was able to recover the data)

So after i formatted it via twrp and rebooted again into twrp

Both the system and twrp were able to decrypt it.

I think something about encryption is changed in pie in oos
[OnePlus 3T Guides, News, & Discussion] xarrismoto:
I successfully flash the open beta pie following the op's instruction.! Decrypted with no dm-verity message! Thank you Xennet!

I was on Aosip before and I didn't loose my data!
[OnePlus 3T Guides, News, & Discussion] Xennet:
As [MENTION=7440207]a0879[/MENTION] and [MENTION=6823078]xarrismoto[/MENTION] have provided proof it's 100% clear that the patched boot image and force encryption disabler zip is able to update Oreo to pie without losing data if the phone is in DECRYPTED STATE ...

Now the problem is for encrypted phones...

Now as [MENTION=7150737]Yudh[/MENTION] mentioned it is definitely due to a change in the encryption in pie the data wipe is happening..that's sure..

But the question is if you have a locked bootloader and stock recovery, you are able to update from Oreo to pie without lose of data??...but with twrp you can't....

So the question is, whether the problem of encryption is not handled by twrp or by the system in pie itself....
[OnePlus 3T Guides, News, & Discussion] MirzaAwais:
Can you please elaborate a bit more and it will be most helpful post of the day. As i was on closed beta and lost my data on flashing closed beta however afterwards i flashed custom roms and now my device is encrypted and locked bootloader having TWRP running Colt PIE OS. If i flashed decryption zip and modified boot then my data will be wiped or not? If not then please share your steps. Thanks
[OnePlus 3T Guides, News, & Discussion] xarrismoto:
I don't think it will work for you as you are encrypted!

I was decrypted before and I stay decrypted after I flash Pie rom. I use latest TWRP 3.3.0.1 and magisk v19.0,also my bootloader is unlock

I followed the instruction from Op which is PROCEDURE 1: This is applicable only to people who have their data currently NOT ENCRYPTED AND KEEP IT DECRYPTED
[OnePlus 3T Guides, News, & Discussion] DarkSJ1998:
As per the findings of [MENTION=5091734]dianlujitao[/MENTION] and reading user's posts on XDA & OnePlus forums,

1. Unlocked BL + Encrypted /data — causes "Decryption Unsuccessful" issue & /data get's corrupted.

2. Unlocked BL + Not Encrypted /data — no data wipe occurs, just the device gets encrypted (which is preventable using your patched boot images)

3. Locked BL — there's no data wipe. Device successfully migrates from Oreo to Pie.

Looks like it's intentional from OnePlus's side. If Pie used a different Encryption algorithm, then all encrypted users should've been greeted with that "Decryption Unsuccessful" screen, but it's not the case.

The leaked closed beta build that was floating on he internet around 2-3 weeks back also had the same exact 'issue'. [MENTION=4296062]abhibnl[/MENTION] reported it to a OnePlus representative on OnePlus Forums & he said they'll 'fix' it, but it still made it's way to the newly released Community Build.
[OnePlus 3T Guides, News, & Discussion] murti52:
For some reason, I am not able to boot the rom. My bootloader is unlocked + decrypted (stable 5.0.8), what i did was .. wiping everything except internal storage. Flashing the rom + patched image, rebooting into recovery and flashing the force encryption zip. and booting. tried fresh install by deleting whole data using fastboot and following the above procedure again. I had to move back to stable oreo, i did the same for flashing it and it booted just fine. Any one knows what mistake am i doing? Thanks.
[OnePlus 3T Guides, News, & Discussion] Rammit:
What data you saved by doing this time-consuming process...am just curious
[OnePlus 3T Guides, News, & Discussion] xarrismoto:
Do the step 6.I delete drive and duo apk and boot successfully!
[OnePlus 3T Guides, News, & Discussion] murti52:
Where those apps exist? System/app ..?
[OnePlus 3T Guides, News, & Discussion] Rammit:
You missed the 100mb storage free check step 6&7...that's crucial in pie I believe...you might need to delete some apps from system to free space of min 100 mb
[OnePlus 3T Guides, News, & Discussion] xarrismoto:
After you make all the steps

In TWPR mount system, advance /file manager /system /app.

You will see all the apk. Tap the drive apk and you will see the option to delete it. Do the same with duo..

Follow the guide with the other steps and you are good to go
[OnePlus 3T Guides, News, & Discussion] murti52:
Thanks for the help, i didn't do this steps as oreo always booted. I guess with pie the space issue came..
[OnePlus 3T Guides, News, & Discussion] Rajesh_m:
I am on custom pie rom, unlocked bootloader and with decrypted storage. Can i follow this step to flash community pie beta?
[OnePlus 3T Guides, News, & Discussion] DavidXanatos:
Given that this works it means that it must be possible somehow to migrate Oreo to Pie also with an unlocked boot loader without loosing app data.

From Nougat to Oreo it worked fine also...

I for my part am running OnePlus3Oxygen 4.5.0 firmware+modem with OnePlus3Oxygen 4.0.2 boot loader while having OnePlus3Oxygen 5.0.8 boot and system.

I know that is a strange setup but I always wanted to be able to downgrade to most of my backups...

It seams strange to me that the Pie release would not work with at least the 5.0.8 firmware...

And in fact it seams to work:

https://xdaforums.com/oneplus-3/how-to/guide-flash-community-pie-rom-losing-t3922902

this guide is for installing Pie with wiping data but it retains the internal storage, and the trick is to flush https://drive.google.com/file/d/1kV8JhENmqrGc5zL0vAr3xmvXg_wriX0O/view?usp=sharing right after flushing the Pie zip, what restores the firmware+modem back to 5.0.8 keeping only pie boot and system.

I wonder why no one tried the guide just skipping the wipe data step, since its not a real format or anything, it just deletes all files from /data while omitting /data/storage/Emulated/0 hence nothing changes in the way the partition is formate or encrypted.

So if the guide works and it seams it does, just not wiping data should make for a successful migration from Oreo to Pie.

I know I could just try it my self with a modified Pie zip that only installs boot and system and does not touch the other firmware partitions, than if it does not work a downgrade to a recent working backup must work fine.

But since I'm using the phone as my primary phone I don't feel like messing with it to much right now.

So any one here willing to try?
[OnePlus 3T Guides, News, & Discussion] Rajesh_m:
Anyone? Thanks. Btw I'm using Oneplus 3 if that makes any difference.

Rom: Skydragon pie rom

Bootloader: unlocked

Encryption status: decrypted

Can I follow the procedure 1 to successfully flash community pie beta without any issues?
[OnePlus 3T Guides, News, & Discussion] Paschfire:
You could have easily answered this question for yourself 2 days ago, had you used the forum search.

The answer to your question is found here;

https://xdaforums.com/showpost.php?p=79367103&postcount=18

I suggest you start reading from page 2 onwards within this thread, as this has basically been the main topic of discussion.

Also...

Pls don't repeat/duplicate post the same or similar things days apart. When someone has the answer(s), or has the time, of addressing your questions they will. Repeatedly posting similar/same questions will do nothing but create unnecessary clutter within the thread.
[OnePlus 3T Guides, News, & Discussion] Oswald Boelcke:
Moderation Information:

Dear all,

I have removed some off topic posts from this thread. Please stay on topic, be civil and kind to each other during discussion.

Thanks for your support.

v/r

Oswald Boelcke
[OnePlus 3T Guides, News, & Discussion] smk513:
perfect working on op3 (pie)

thx [MENTION=7874870]Xennet[/MENTION]
[OnePlus 3T Guides, News, & Discussion] Rodger_Rulez:
New beta is up!

https://forums.oneplus.com/threads/android-9-community-beta-2-for-oneplus-3-3t.1028413/
[OnePlus 3T Guides, News, & Discussion] BonnyBedlamBoy:
[MENTION=7874870]Xennet[/MENTION] can we still use beta boot image for recent beta 2?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Here are the download links to the patched boot images for BETA OOS PIE 9.0.1 for OnePlus 3T / 3....

And for the query by [MENTION=1762849]BonnyBedlamBoy[/MENTION], you can't use the boot images for the earlier betas with the new betas...Their md5 checksums are rather very different....

Oneplus 3T --> Download (md5 - 8AA38E51F8868FEFEFC8AA4E052891F1)

Oneplus 3 --> Download (md5 - 6525B7170B2E5FF2CA49D3F39C147D14)

Force_Encryption_Disabler_For_OOS_Pie_v1.zip will work well these updates too...

OP Updated Accordingly...

Ok Guys...

Happy Flashing....

NB: If you like my work Donations are always welcome....
[OnePlus 3T Guides, News, & Discussion] Mizart:
What exactly does tripping DM-Verity do aside from putting a dead red warning at the boot?

Let's say i don't really mind that warning and all i want to do is flash without getting force encryption. So would simply flashing the force encryption disabler zip do the trick or do you just need the patched boot image and disabler zip both in any case?
[OnePlus 3T Guides, News, & Discussion] Xennet:
Dm-verity, verifies the integrity of each device block as it is being read from disk. This means that it verifies the boot partition, which also includes the root file system, RAM disk and the verity public key. If the block checks out, the read succeeds, and if not the read generates an I/O error as if the block was physically corrupt. This can lead to outcomes as the device itself may fail to boot as identified as corrupt block or in some instances all the changes you make to the system, ram disk and kernel reverts to stock and then boots up....

The red warning is only the tip of the iceberg...the device will stop booting or revert back to stock wiping up everything unless you patch dm-verity by any means...

The red warning (as itself without any problems) appears only when you trigger dm-verity and then (after you trigger dm-verity) you patch dm-verity by rooting or other means.. if you trigger dm-verity and you don't patch it then you are in trouble...
[OnePlus 3T Guides, News, & Discussion] Mizart:
Aha, I see. I get it now. Thank you for the detailed explanation!
[OnePlus 3T Guides, News, & Discussion] xarrismoto:
I update from Aosip to Os Pie 9.0.1 CLEAN FLASH SUCCESSFULLY.

Unlock bootloader, TWRP 3.2.3.10, decrypted, magisk 19.1.

I follow the steps from the op, delete only duo apk and boot successfully.

Thank you again Xennet!
[OnePlus 3T Guides, News, & Discussion] phoeniix1:
how to update from community beta 1 to beta 2 with dm verity(disabled)+force encryption+twrp+magisk not clean flash just update from beta 1 to beta 2
[OnePlus 3T Guides, News, & Discussion] Paschfire:
Not sure what your question has to do with this thread, but could have easily been answered by searching through the OnePlus community forums related to the CB2 Pie 9 build.

Here;

https://forums.oneplus.com/threads/a...-3-3t.1028413/

If you're already running the CB Pie 9 build, simply flash CB2 Pie 9 Rom without wiping /System or /Data partitions.

Then proceed with installing the patched boot image, Magisk.. etc.
[OnePlus 3T Guides, News, & Discussion] Rizezky:
Well lucky you, i tried it with beta 2, from decrypted unlocked, lineage os. i even had 150mb freed. virtually identical process. can't get it to boot,

i can't get my head around it.
[OnePlus 3T Guides, News, & Discussion] Rajesh_m:
How do I go back to custom pie rom from official pie rom. I've flashed official pie using the steps provided here. Can I just flash the custom pie rom on twrp on top of this official rom just like usual, or is there any extra steps needed? Thanks.
[OnePlus 3T Guides, News, & Discussion] Paschfire:
Yes, just be sure to perform a clean flash before flashing by wiping;

/System, /Data, /Cache, /Dalvik-Art Cache

Then proceed with flashing the custom ROM, GApps, Magisk*... etc

*Rooting with Magisk if supported by the custom ROM to avoid tripping DM-Verity.
[OnePlus 3T Guides, News, & Discussion] Rajesh_m:
Sure, thanks.
[OnePlus 3T Guides, News, & Discussion] Mizart:
Hey Xennet, Stable Pie is out finally. Waiting for you to bless us with your patched images ;)
[OnePlus 3T Guides, News, & Discussion] xarrismoto:
Final Oxygen OS 9.0.2 is out! https://xdaforums.com/oneplus-3t/how-to/official-oxygenos-5-0-1-android-8-0-t3728119
[OnePlus 3T Guides, News, & Discussion] MohamedRaafat:
Pached boot image for 9.02 ?
[OnePlus 3T Guides, News, & Discussion] murti52:
Can wait for a day...?
[OnePlus 3T Guides, News, & Discussion] Xennet:
So Xdiians...

Probably the final update from Oneplus for 3/3T...

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

Oneplus 3T --> Download (md5 - 0E5355450E8DCE89E0740C1A37104177)

Oneplus 3 --> Download (md5 -
de5ee4c7b1abb0d7ef8325b050f73080)

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] nh43:
Sorry to ask this question in this thread too

My device is on stock 5.0.8 unlock bootloader, decrypted and needed to stay that way

Will this procedure work to update it to pie

1. Wipe system,data,cache,dalvik cache

2. Flash pie rom and immediately flash modified boot img and reboot to twrp

3. Have 100mb free and then flash force encryption disabler reboot to twrp

4. Flash magisk

And which twrp and magisk work
[OnePlus 3T Guides, News, & Discussion] Paschfire:
No, the steps you listed will likely cause force encryption and not allow using the patched boot image.

Read the last 3~4 pages of this thread, to find answers to these questions.

More specifically, this post;

https://xdaforums.com/showpost.php?p=79368100&postcount=21

For instructions on how to flash the lastest OOS 9.0.2 build over OOS 5.0.8 with the possibility of avoiding data loss. Though already have a decrypted /Data partition may not work.

Read the last several pages of the Firmware thread.

Here;

https://xdaforums.com/oneplus-3t/how-to/firmware-beta-10-t3631166
[OnePlus 3T Guides, News, & Discussion] mnsiw:
After following this procedure to disable encryption and dm-verity, what if I want to flash custom kernel? Asking this because we are using patched boot image here and kernel will replace boot image.
[OnePlus 3T Guides, News, & Discussion] Paschfire:
Most all custom kernels are already patched.
[OnePlus 3T Guides, News, & Discussion] stevenhsl:
Hi [MENTION=7874870]Xennet[/MENTION],the 9.0.3 is out but so far I couldn't find the download link yet.
[OnePlus 3T Guides, News, & Discussion] Mizart:
Herr are the links :)
[OnePlus 3T Guides, News, & Discussion] BonnyBedlamBoy:
thanks :laugh:
[OnePlus 3T Guides, News, & Discussion] Xennet:
Hey Guys...

I had intentionally delayed the release of these patched boot images, as those following me would have known that these oneplus devs, they do have a knack of releasing buggy updates and later pulling it out asap....Don't think this one is buggy and a gut feeling that this will the last update for these devices....

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

Oneplus 3T --> Download (md5 - 746DEE20EEA18EF74C5E6E6D9B49B371)

Oneplus 3 --> Download (md5 - 1D766CB73EE9AE0C1EDE3A6FCF2261C1)

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] mrsim:
is this why i am getting bootloop after following the 'step 2' instructions i downloaded the OP3T 9.0.3 update file from here https://xdaforums.com/oneplus-3t/how-to/official-oxygenos-5-0-1-android-8-0-t3728119

and i am using the 9.0.3 boot patched.img also the pie force encryption disabler

also noticed that after mounting the system and using the terminal for 'df system' there is no indication of used vs available i will type exactly what i see there below i am guessing that the two long numbers are the used and free info "2984448 2980312" but as you can see nowhere does it say the word 'free'

OnePlus3:/ # df system

Filesystem 1k-blocks Used Available Use% Mounte

d on

/dev/block/sde20 2984448 2980312 4136 100% /syste

m

OnePlus3:/ #

have tried this both with and without flashing root 'magisk 9.3' and also with and wothout wiping cache and dalvik but getting the same responce either way just a straight bootloop
[OnePlus 3T Guides, News, & Discussion] pratyush28:
After doing the previous steps, you should remove some apk's from /system/app using the twrp file manager. (drive, duo, youtube) After deleting these you can flash force encryption disabler zip and proceed to reboot your device. 100% means the system partition is entirely occupied and there is no free space.

Also you can take screenshots in TWRP normally just like you take while you have booted your Rom. It will show up in the screenshots folder under pictures in internal stotage.
[OnePlus 3T Guides, News, & Discussion] hurray:
You can also extend the command to "df -h system". Then you get human readable output of the "df" (disk free) command. I must deleted also a few apps as written in the post above me to make the script work. In the end a got about 153 Mbyte free space left in /system as the script works and I am now on OOS 9.0.3 with unencrypted sdcard & data. :)
[OnePlus 3T Guides, News, & Discussion] mrsim:
anyone know how to get my signal back seems i have lost data and phone signal after flashing 9.0.3 have tried flashing the 9.0.3 modem but still no luck

also twrp is always showing 'unable to mount storage' everytime i boot into it and after flashing the 9.0.3. firmware plus the patched boot.img being on stock without root my device is still showing encrypted...???

in the end i had to full wipe and revert back to 9.0.2 which seems stable for me 9.0.3 was a nightmare for my device had to take a day off work to figure stuff out cause i really need my phone working...LOL...may try again later on and see how it goes although when going through the set up face unlock and fingerprint unlock refused to activate at all

and just found out why i cannot activate face unlock...my camera is borked back on 9.0.2...LOL...not having a great time with this latest release but i will get there in the end...he says with fingers and toes crossed....:laugh:
[OnePlus 3T Guides, News, & Discussion] mrsim:
ok so i am going to attempt to reflash 9.0.3 and all the rest of the help here in this thread but if possible can anyone answer a few questions for me

1) after flashing 9.0.2 with a complete wipe via TWRP and i mean everything a clean slate following all the proceedures in the OP 'procedure 2' for decrypting and disabling dm-verity my device still shows itself encrypted in security settings,(i am currently rooted with magisk 19.3 which i flashed only after i had flashed all the appropriate mods from this thread

2) i am now confused as to which procedure to follow as my system says it is encrypted yet i followed the steps very carefully to make sure i was unencrypted

any help would be much appreciated before i continue
[OnePlus 3T Guides, News, & Discussion] mrsim:
crap this is not good...for the second time i have flashed this mod and it has killed my data and signal network not sure how or why it is doing it but it is....crappydappydoodah

any suggestions guys

p.s. my system is still showing as encrypted
[OnePlus 3T Guides, News, & Discussion] DarkSJ1998:
I suppose that you messed up the modem or the EFS partition (if I remember the name correctly).

EFS partition is meant to store IMEI information AFAIK, correct me if I'm wrong. Try dirty flashing the ROM zip. It should flash all the needed partitions again.
[OnePlus 3T Guides, News, & Discussion] mrsim:
yeah i tried all of that to no avail even just flashing 9.0.3 back to stock without flashing any of the dev's mods it still broke my modem...either the camera broke or the EFS/modem/IMEI broke so eventually i had to flash back to oreo 8.0.0 using THIS thread and will update via OTA from there till i get to 9.0.3 hopefully it wont break either again but it's bloody annoying as i have been flashing this dev excellent dm-verity/decryption mod since oreo without issues up till now
[OnePlus 3T Guides, News, & Discussion] nicknacknuke:
Ok dont shoot me...

I still have the old TWRP ( twrp-3.2.1-x_blu_spark_v8.61-op3_op3t.img )

Will this work ?

I'm still on 8.0.1 and plan to go straight to 9.0.3
[OnePlus 3T Guides, News, & Discussion] Mizart:
It might. But it would take less than 5 minutes to update twrp. Why not just do it ? You don't even need to connect ADB you can just update through twrp itself. Always better to be safe than sorry.