yashsingh1/xdaforums huggingface dataset:
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Warning!​

While the process below worked nicely, I've now discovered that neither TWRP nor OF prompt to decrypt the data!

So they are both not working after the recovery process. 🤬😡

End warning!​

Woo hoo!

I've managed to use TWRP and OF on OOS 14.601 to backup data. And used TWRP (it should also work with OF but I've not tried it) to restore the backup but in a very sneaky way.

So the issue with TWRP/OF on OOS 14 is this: it sees all the data but ONLY if a lock screen password is set. If you remove the password (ABSOLUTELY NECESSARY to do a restore) then TWRP/OF can't see /sdcard and, therefore, can't find the backups or installation zips.

But since TWRP/OF works perfectly on OOS 13.1, the sneaky way to restore a backup is to do it on OOS 13.1 and then upgrade back to 14:

Downgrade to OOS 13

- backup /sdcard to PC

- boot recovery

- install OOS 13.1 (583)

- install TWRP to both slots (my custom TWRP installer zip does this; attached)

- reboot recovery (switches slots)

Remove encryption

- reboot bootloader

- format data with fastboot -w

- reboot recovery

Restore backup and OOS 14

- push TWRP backup, OOS 14 (601) zip, Magisk apk, and any other desired data to /sdcard

- restore the backup

- install OOS 14 zip

- install TWRP to both slots

- reboot recovery (switches slots)

- install Magisk apk

- reboot

- reboot (you need to do it twice after a backup restore)

- restore you sdcard data from you PC

- SET A LOCK SCREEN PASSWORD. Otherwise you can't use TWRP/OF

Tadah!

You are now on OOS 14 with your system restored from the backup.

I know this is messy, but restoring a backup is very infrequent, so it doesn't need to be done often.

And it means we can continue using TWRP/OF to backup our 8Ts on OOS 14.

I'm attaching my TWRP installer zip that installs it to both slots. Replace the recovery.img file with OF's image if you want it for OF.

Thanks to @Qnorsten for pointing out that TWRP "works" on OOS 14, to @Siddhant221 and @Wishmasterflo for TWRP and OF, and to @osm0sis for the TWRP installation script.
[OnePlus 8T Guides, News, & Discussion] Rootk1t:
Thank you for your time and findings.

Maybe it's some kind of security measure? (which may be broken or implemented wrongly).

I think @Wishmasterflo should be invited to look at this issue. Maybe it can be fixed in the next OF release.

Yeah, it looks to be messy.

Also one performing it should take into consideration that bootloader (fastboot) is broken on OOS14 which may complicate things even further.

I wonder if OnePlus knows about this issue with bootloader and when o if they are going to fix it?

Update: according to this thread bootloader mode is not working on OnePlus 11 too which is hilarious.

I don't see a sitution where they don't know about it. But one person in that thread suggested that they disabled booloader mode with OOS14 update on purpose.

OnePlus 11 will not boot into fastboot.

It flashes fastboot on the screen and then reboots normally.

xdaforums.com

Not working bootloader (fastboot) may be a reason for many not to update to OOS14.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
But bootloader is working fine on my op8t. You can see that I repeatedly reboot into bootloader mode in my "sneaky" process. Also, when I connect the phone to my PC while I'm running OOS 14 and in bootloader mode, the phone shows up in Device Manager on the PC.

I do, however, get repeated "bing" sounds from devices connecting/disconnecting from the PC and I got this error message displayed:

Yet I can run fastboot commands just fine and Device Manager shows the phone connected as "Kedacom USB Device". Very weird.

I had a look using pnputil and I found one brief instance where this showed up:

bill@Inspired:~ $ diff pnp.* pnp4.*
848a849,857
> Instance ID: USB\VID_0000&PID_0001\5&4d549a&0&2
> Device Description: Unknown USB Device (Port Reset Failed)
> Class Name: USB
> Class GUID: {36fc9e60-c465-11cf-8056-444553540000}
> Manufacturer Name: (Standard USB Host Controller)
> Status: Problem
> Problem Code: 43 (0x2B) [CM_PROB_FAILED_POST_START]
> Driver Name: usb.inf

PS: one other "interesting" fact is that if I replace TWRP with the OOS14 stock recovery, it takes 50s to boot into recovery, measured from the time the OP logo shows up on the black screen after rebooting to recovery until the recovery menu shows That's an inordinately long time to start recovery!
[OnePlus 8T Guides, News, & Discussion] Qnorsten:
Fastboot works fine for as well on OOS14, who says it is broken on Oneplus 8t?
[OnePlus 8T Guides, News, & Discussion] Rootk1t:
There are two threads mentioning issue with fastboot not working on OOS14 for 8T

(UPDATE) OP8T A14 Fastboot FIX

UPDATE! You have to flash it to a specified slot. Otherwise "fastboot flash boot magisk.img" won't flash. Example: "fastboot flash boot_a patchedboot.img" Be sure to put "boot_a" or "boot_b". I myself flashed it to both slots. This is just a...

xdaforums.com

And on other OnePlus smartphones running OOS14.

OnePlus 11 will not boot into fastboot.

It flashes fastboot on the screen and then reboots normally.

xdaforums.com
[OnePlus 8T Guides, News, & Discussion] BillGoss:
I'd argue that:

1. The second post is for a OP 11, not the 8T

2. In the first post there's a screenshot showing they used adb reboot fastboot which boots into recovery, when they should have used adb reboot bootloader

3. It's never happened to me, so it can't be true! 🤣

Seriously, though, I'd need more concrete proof of the problem, especially when the first post also has a solution to the "problem", namely add the slot suffix to the partition name.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Wrong log. I want to see the magisk_install_log file that gets created in the same directory as the boot.img file is in.
[OnePlus 8T Guides, News, & Discussion] agpol07:
It has only what I wrote in previous message..
[OnePlus 8T Guides, News, & Discussion] BillGoss:
I'm sending you a PM as this is off topic for this thread.
[OnePlus 8T Guides, News, & Discussion] g4seb:
@BillGoss Hello, I was in oos11 Root without twrp. In oos11 to make the upgrade, I made installation in local mode, then in magisk I reinstalled the one "after OTA" then reboot. To upgrade to OOS12 I did the same thing. But now, how to make an upgrade C15 -> C16 for example, without brick the phone since there is no more the option to install in local mode (Gear icon) ???
[OnePlus 8T Guides, News, & Discussion] agpol07:
Install this and you will have local upgrade

https://oxygenos.oneplus.net/OPLocalUpdate_For_Android12.apk
[OnePlus 8T Guides, News, & Discussion] g4seb:
Many thanks @agpol07 !!!

If you know other tips to have power menu developper or bootanimation change, i'll take it ;-)
[OnePlus 8T Guides, News, & Discussion] Gyalist:
Help!! I downloaded and installed the C16 update and then did a factory reset. So far, so good, but now I want to root the phone and realised that I do not have a boot image for C16 as it was an incremental update. What should I do now?

Edit: Eventually used the MSM tool to revert to an old version of OxygenOS 11, then flashed the A12 update, factory reset and rooted the phone, then flashed the C16 update.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Like you said; without a copy of the boot image you can't root the phone.

So, either stick with an unrooted C16 or you could:

try to use the local update APK to reinstall C15

root that, then when you get the notice that the C16 update is available

Magisk>Uninstall Magisk>Restore images - this restores the stock boot image whilst keeping Magisk

let the update install but don't reboot just yet

Use dd to take a copy of the inactive slot boot image. Do this in a terminal window or ADB root shell

reboot

patch the copied boot image and flash it.

Yes, quite complicated and I'm not going to teach you how to use/write the terminal command. Linux scripting is not in scope for this thread.
[OnePlus 8T Guides, News, & Discussion] Gyalist:
I tried to flash C15 from local update but it wouldn't allow me to downgrade so I resorted to the tedious process as described in the edit of my original post. Because I used the MSM tool I had to unlock the bootloader again and I discovered that it's far easier to do this in OOS 11 than in OOS 12. I don't know if it's unique to my phone but I found that fastboot mode in OOS 12 flashes like a strobe light and it's almost impossible to select the right options.

Anyway, thanks for your help. Your previous posts have been most helpful - especially the one about USNF - as I was puzzled that the fingerprint scanner no longer worked after rooting.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
I've had the flashing screen happen to me also in bootloader on OOS 12 . I've found that rebooting back to bootloader stops it happening.
[OnePlus 8T Guides, News, & Discussion] PurppleMonkey:
Hi ! (Thank you for helping us !)

I updated to this build version : 11.C.15_1150_202204021904 (KB2003 version) without installing magisk to an inactive slot....(yeah.. I hate my life too....).

So, i lost my root and, as i understand, i can't use your method to root again 'cause of TWRP in OS12..

So, what can i do ?

If i have to use the old way, someone has the Unpatched boot img files for this version ?

Thank you :)
[OnePlus 8T Guides, News, & Discussion] BillGoss:
At this point you can only use payload dumper to extract the boot image and manually patch it (you'll find a link to the C.15 zip in: https://xdaforums.com/t/oneplus-8t-rom-ota-oxygen-os-repo-of-oxygen-os-builds.4193183/)

If you had downloaded the C.15 zip and manually installed it you could have used Magisk to install to the inactive slot.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
I've updated the OP to provide information on rooting and keeping root for OOS 12. The process is still a work in progress (WIP). I'll update the OP when I have clarity around the options for OOS 12.
[OnePlus 8T Guides, News, & Discussion] PurppleMonkey:
Thank you ! It worked.

Do you want the unpatched boot.img for this version 11.C.15_1150_202204021904 (KB2003) ?
[OnePlus 8T Guides, News, & Discussion] NGRaziel:
Looking for the C.16 boot.img here, if anyone can provide it.
[OnePlus 8T Guides, News, & Discussion] vet37:
😉 patched boot (by Magisk Canary v24.3) on OOS12 KB2003(EU) C16

and stock boot
[OnePlus 8T Guides, News, & Discussion] Feduz:
On Oxygen Updater available KB2003_11_C.16 3,83 GB so full version.

Can we update as always? Last time from android 11 to C15 version I had a brick :cry:
[OnePlus 8T Guides, News, & Discussion] Feduz:
Did you update from c15 to c16 keeping root?
[OnePlus 8T Guides, News, & Discussion] vet37:
When upgrading from C15 to C16, I dumped stockt boot and patched it.

Yes,
[OnePlus 8T Guides, News, & Discussion] BillGoss:
There's no such thing as "update as always". There's all the ways as listed in the OP.

I suggest downloading the update zip to your phone and follow A.2 Manual Install Without TWRP process.

Use the "My Application2" APK from the OnePlus OOS 12 post to install the downloaded zip as there's no local install option in the OOS 12 System Update.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Heads up!

Please read Update 20220428 in the OP!
[OnePlus 8T Guides, News, & Discussion] rage302:
Okay I was courious and tried to root my KB2005 (GLO) with incremental Update .C16 (since there is no Full OTA yet).

I used @BillGoss guide from OP (Update 20220427 WIP) in combination with @osm0sis method (also mentioned in OP and it worked! -> Kudos to both of them.

These were my steps:

UNROOT current slot in magisk app (=uninstall +restore images) WITHOUT REBOOTING

Download and Install the C16 incremental update from built-in Software Update function WITHOUT REBOOTING

Dump the fresh updated boot_img from the

inactive

slot (find your active slot with ->

adb shell getprop ro.boot.slot_suffix

using the command BillGoss mentioned ->

adb shell su -c dd if=/dev/block/by-name/boot_b of=/sdcard/update-boot.img

(in my case the inactive slot=b please change accordingly refering to your currently inactive slot -> boot_a or boot_b)

patch the dumped update-boot.img with magisk -> "Select and Patch a File"

copy the magisk_patched.img to your PC

Re-root the current slot using the Magisk app direct Install, so in case the update somehow fails you'll be back where you started (rooted on the current slot) (THX to osm0sis for this step)

turn on Airplane Mode

reboot phone from update dialog, let it boot up and check if you are now on the updated slot

reboot to fastboot e.g. using this command ->

adb reboot bootloader

fastboot boot the magisk_patched.img ->

fastboot boot .\magisk_patched.img

boot up and check in magisk app if you are now rooted

in magisk app do a "Direct Install" and reboot again

now you are on the updated slot with persistent magisk root

turn off Airplane Mode and enjoy.

greetings rage
[OnePlus 8T Guides, News, & Discussion] g4seb:
Hi, i have a question, my phone are root on OOS12, but impossible for me to change permissins of file or change bootanimation or other...very strange, no ?
[OnePlus 8T Guides, News, & Discussion] andyman_187:
wow did almost the exact same thing as well and just now completed successfully (i fastboot flashed the magisk patched boot img instead of booting from it > then direct install) . everything works as expected so far, though curiously for me, the boot splash screen is now gone, just goes straight to the boot animation. i wonder, did you lose your splash screen as well?
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Brilliant!

Your steps 10-12 were what I've been missing. Because they enable the simpler method of just using Magisk for later updates.

Thank you!
[OnePlus 8T Guides, News, & Discussion] rage302:
...very welcome (:

I'm very curious if we just can flash magisk directly to inactive slot after incremental OTA is installed (without reboot)?

I think this works on newer incremental OTA updates for the Pixel 6 series.

greetings rage
[OnePlus 8T Guides, News, & Discussion] rage302:
...yes! it's true my boot splash screen is gone as well and the screen stays black until the boot animation is coming up. But doesn't matter for me... it boots up properly.

greetings rage
[OnePlus 8T Guides, News, & Discussion] BillGoss:
You can, but ONLY if you install the update via the manual install apk. You CANNOT do it if you use the System Updater (About device>Software update). This is the essentially the same as in OOS 11.
[OnePlus 8T Guides, News, & Discussion] rage302:
Okay thanks for clarification. Just one more question:

Do you mean the "System-Update" App -> https://oxygenos.oneplus.net/OPLocalUpdate_For_Android12.apk

or do you mean the "MyApplication2" App -> https://oxygenos.oneplus.net/English_20220225101104.apk (but I think this is just for downgrade to OOS11 using downgrade packages)

THX

greetings rage
[OnePlus 8T Guides, News, & Discussion] BillGoss:
I didn't even know about the first one! Where did this come from - I mean where was this posted in the OnePlus forums?

I used MyApplication2 to install the C.16 incremental update.
[OnePlus 8T Guides, News, & Discussion] rage302:
okay! e.g. from here -> https://forums.oneplus.com/threads/kb2003_11_c-16.1574127/#post-24172588

i did some upgrades with this tool (i think from OB1 to C11 with this tool).

...but i think this tool is deprecated and now this "MyApplication2" Tool is on duty.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Yes, the pinned official posts all refer to MyApplication2.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
PS: MyApplication2 had a target SDK of 31 and is version 1.

System-update had a target SDK of 29 and is version 811.
[OnePlus 8T Guides, News, & Discussion] Wasabi72:
Mhmm....

PS C:\adb> adb shell getprop ro.boot.slot_suffix
_a
PS C:\adb> adb shell su -c dd if=/dev/block/by-name/boot_a of=/sdcard/update-boot.img
/system/bin/sh: su: inaccessible or not found
PS C:\adb>

what is going wrong here ?

(OnePlus 8t)
[OnePlus 8T Guides, News, & Discussion] rage302:
You have to grant root access on your phone once, as soon you trigger a super user (su) command. It will show a Magisk root request prompt.

...and if your current active slot=a you have to dump your boot img from slot=b after installing the incremental OTA (adb shell su -c dd if=/dev/block/by-name/boot_b of=/sdcard/update-boot.img)
[OnePlus 8T Guides, News, & Discussion] Wasabi72:
Oh, I must have done something wrong on the first step. Because the option "UNROOT" was not in my Magsik app....I could only uninstall it...then automatically followed by a Auto-Reboot, and have since no longer root.😵

After that I installed the C16 incemental update, without reboot.

....and now it does not go on. :rolleyes:
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Ah, the joys of writing step-by-step instructions. What's obvious to the writer is often meaningless/confusing to the reader!

See my reply in your thread.
[OnePlus 8T Guides, News, & Discussion] rage302:
Okay with "UNROOT" i meant the Uninstall function in magisk (with restore images option).

But the reboot after uninstalling/unrooting is causing that you cannot dump the boot.img cause you are not rooted anymore. You can try to root with the initial/first time root section in OP.
[OnePlus 8T Guides, News, & Discussion] rage302:
...that's true (:

I edited my step-by-step instruction a bit to be more clear on the first step.
[OnePlus 8T Guides, News, & Discussion] Wasabi72:
ok....my mistake....once not read correctly, already root gone.:rolleyes:

Now to find a solution without resetting everything will not be easy.
[OnePlus 8T Guides, News, & Discussion] Victroid:
Thanks, all correct
[OnePlus 8T Guides, News, & Discussion] BillGoss:
I've updated (re-written) the OP. It now caters for OOS 12.
[OnePlus 8T Guides, News, & Discussion] epr:
su -c "logcat -d" | grep -Eo "https://android.googleapis.com/packages/ota-api/package/[a-z0-9]*.zip"

...This returns no link for me in Termux.

KB2003 on 11.0.13.13.KB05BA.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
You received a notification that you have an updated available?

If so, could you do su -c "logcat -d" > /sdcard/logcat.txt and zip the logcat.txt file and attach it to your reply? I'd love to have a look at it, if you don't mind.
[OnePlus 8T Guides, News, & Discussion] epr:
Yes, I received a notification about an update (12.C.16)

Logcat is attached. I had a look at it but I don't know what to search for...
[OnePlus 8T Guides, News, & Discussion] rage302:
First of all > THANK YOU and Kudos for that great Guide!

Just a short question to Method B.2.1.

Is this Method also capable to use it with incremental zip updates or just for Full OTA zips?
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Thanks for the nice comment 😊

It works for both full and incremental updates. All the methods cater for both. The only process that doesn't is A.1 and I've pointed that out clearly.
[OnePlus 8T Guides, News, & Discussion] xb360:
I've followed B.1 method, it was concise and no doubting on what to do next.(y)

On the point 3, there's error on the icode tag. Forward slash was added to the first icode.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Good find! Thank you. Fixed.
[OnePlus 8T Guides, News, & Discussion] slewis1972:
First of all, thank you to the OP. I had a issue and this is how I resolved it.

I have a European model, running Global. Followed guide, all well upto restarting bootloder with patched magisk. Got to point of about to load, get message "Turn Off". Never seen that before, did it a few times, same issue.

Fix, could only find on this forum a patched European boatloader of same level eg c16, which I then used and that worked. I could flash and restart and all seem ok. Says I am still on global version.

So, my comment is, make sure you always back a patched boatloader at hand from someone else, just in case the one you patch with magisk does not work.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Wow, that's very odd. But thanks for sharing your experience.

Which method in the OP were you following?
[OnePlus 8T Guides, News, & Discussion] agpol07:
Hi all,

When I try to uninstall magisk>"restore images" I get the error "stock backup does not exist".

Any thought of how to fix it?
[OnePlus 8T Guides, News, & Discussion] BillGoss:
That's because you must have flashed a Magisk patched boot when you rooted your phone. You should have booted the patched boot image and then done a direct install.

I highlighted this in the instructions in A.1.

You will now have to manually restore the stock boot image (the one you used to get Magisk to patch). See section B.2.3 and specifically steps 2 and 3.
[OnePlus 8T Guides, News, & Discussion] agpol07:
When I run "getprop ro.boot.slot_suffix" the result is: _b

So, can you provide an example of the command in step 3, if the stock boot image is on /storage/emulated/0/ folder and it's name is: "boot.img" plz?

And where I run this command from?
[OnePlus 8T Guides, News, & Discussion] BillGoss:
First tell me how you ran the getprop command.
[OnePlus 8T Guides, News, & Discussion] agpol07:
From termux..
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Then the commands you run in Termux is

su
dd if=/sdcard/boot.img of=/dev/block/by-name/boot_b

Note: /sdcard is the same as /storage/emulated/0
[OnePlus 8T Guides, News, & Discussion] agpol07:
Thanks Bill, I'll give it a try and let you know..
[OnePlus 8T Guides, News, & Discussion] JimDandy68:
@BillGoss, thanks, as always, for your expert help in these forums 👏

For your instructions to keep root during 11-12 upgrade, B1, is there any reason you couldn't determine your active boot slot before starting the upgrade process, or do you have to do that after the phone has gone through the update process, but you haven't rebooted?

Trying to decide whether I should bite the bullet and move off of 11 (also given the amount of negativity around OnePlus' new OOS), but my phone (KB2005) is getting more insistent about wanting me to do it.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
I wanted to keep the instructions very generic and not assume people had specific apps installed. So the Linux commands are all run on the PC using ADB.

The slot doesn't change until after the reboot so you can find the slot suffix before you start the update process.
[OnePlus 8T Guides, News, & Discussion] TheZorg:
Hi everybody,

I have a small SafetyNet issue. I've followed the steps in B.2.1 with the update from C.16 to C.20, KB2003, airplane mode turned on before rebooting after installing the update, but YASNAC reports a pass on basic integrity and a fail on the CTS profile match. Play Store now reports the device as uncertified. What should I do?
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Did you install the USNF Magisk module? If you don't, you won't pass SafetyNet.

After installing it you'll have to clear storage from Google Play Services and Play Store and reboot.

Note: this thread is about the rooting process, NOT about how to use Magisk. That is in https://xdaforums.com/t/discussion-magisk-the-age-of-zygisk.4393877/
[OnePlus 8T Guides, News, & Discussion] TheZorg:
Yes, the USNF module attached in the first post is installed. I forgot about clearing Play Services and Play Store storage, but doing that and rebooting didn't help either. Still a pass on basic integrity and a fail on CTS profile match. I'm wondering if something has changed with the C.20 firmware, as it's supposed to be the Android 12.1 release.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
You may need to use MHPC to set the phone's profile if C.20 isn't recognised as an official phone.
[OnePlus 8T Guides, News, & Discussion] TheZorg:
I will look into Props Config tomorrow, thank you Bill!

EDIT: MHPC works for passing SafetyNet (basic integrity and CTS profile) but breaks fingerprint, as expected.

EDIT #2: magically got it to work (with your module and MHPC together, just changed one boot state setting for MHPC)
[OnePlus 8T Guides, News, & Discussion] JayTheKid:
Bless you for this tutorial. I used it weeks ago, method B.2.1 worked perfectly and seemed the most simple. I'm staying far away from Android 12