yashsingh1/xdaforums huggingface dataset:
[OnePlus 8T Guides, News, & Discussion] GIutton:
I can never get this to work:

su -c "logcat -d" | grep -Eo "https://android.googleapis.com/packages/ota-api/package/[a-z0-9]*.zip"

Tried it on C35 today and got no output. Am I wrong to assume the output should come up right in termux or is there a step I am missing? I checked for the update and C35 came up, I immediately went to this page and copied the code directly into termux and got nothing. The last few times I tried this I did wait like ten or fifteen min before I remembered to do it but this time I did it almost right away and still got nothing so maybe I am missing something. How quick does the log rollover?
[OnePlus 8T Guides, News, & Discussion] BillGoss:
I find that the logs seem to roll over about every 10 or 15 minutes with the default log buffer size of 256 K. I've set mine to 1 M.

What variant of OOS are you on (I'm on kb2005)?
[OnePlus 8T Guides, News, & Discussion] GIutton:
Yeah I definitely got to it before 10 min so idk maybe just looking up the code was enough to cause it to roll over. I am also on KB2005 on C.33.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
In that case, have a look https://xdaforums.com/t/updates-thread.4188149/post-87478139
[OnePlus 8T Guides, News, & Discussion] GIutton:
Do you happen to know what the name of the app is for OTA updates? I figured it would be the Software Update app but that has been disabled on my phone since root like 2 updates ago and cannot be re-enabled no matter what I try.

Asking because on my other phone I can force-stop that Software Update app while it's extracting and that will force a full OTA. Figured maybe I could do the same on the 8T or at least cause the app to check for the update again so I can grab the URL with the termux logcat you posted.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
I also was wondering which app handles the update. Software update (com.oplus.ota) is also disabled on my phone.

There's also another candidate, namely Update service (com.oplus.romupdate).

But I've never played around with any these.

If you find out how to get the update to check again, I'd love to know.
[OnePlus 8T Guides, News, & Discussion] MystikalE:
It was my first time messing around android, I bricked my device by accidentally flashing TWRP to the wrong partition (am still not sure but whatever). I spent 2 full days trying to unbrick it but made it wrose, and I eventually sorted it out by trying a few times to flash stock ROM on MSN tool which I thought infected my PC as it is detected as false positive. I had to try many Qualcomm drivers and many other ****.

Long story short, my device reverted to OOS 11 (that I am still using on its lastest ver because I wasn't fully satisfied with A12.

I unlocked boot loader, *booted* TWRP, took backup of both recovery and boot images, installed Magisk, rooted, flashed TWRP to revcovery, and updated to lastest available A11 update and kept the root (using B.1 on tutorial)

That was my journey to get my phone rooted for the first time ever.

There's many more to learn about this OS I am sure.

Thanks OP 🙏
[OnePlus 8T Guides, News, & Discussion] saar17:
Could you please let me know what steep I should start with if alreayd have a rooted phone with magisk safenet and on version C.21?

(If TWRP is the advance boot menu that you can use to flash, then I dont have it)

Thanks
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Did you go through the options in the OP? Where I refer to other software I also include links to the software.

How did you root C.21?
[OnePlus 8T Guides, News, & Discussion] gvmiguez:
I don't know what I did wrong, but I upgraded from C33 to C35 using method B1 and the phone rebooted when I pressed the install button on system updater....
[OnePlus 8T Guides, News, & Discussion] BillGoss:
I assume you're now on C35. You'll have to re-root your phone (see section A).

And after that you'll also need to wipe storage from Google Play Services and Google Play and reboot to get it to be certified again.
[OnePlus 8T Guides, News, & Discussion] :
C36 stock - https://www.mediafire.com/file/sidypjugxk0kd9m/C36_stock_boot.img/file

C36 magisk patched image - https://www.mediafire.com/file/1vy63rdwd6e881c/c36_magisk_patched-25200_xAoJz.img/file

extracted from KB2005 - not sure if all variants have the same boot images but could be worth a try if stuck.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Thanks for sharing this (I people being helpful), but there are other threads more appropriate for sharing firmware and/or boot images.

Please share them there, NOT in this thread as this is a "how to" thread.
[OnePlus 8T Guides, News, & Discussion] sketch.droid:
Hey @BillGoss,

I see other poeple are having that issue where Magisk does NOT make a backup of the original boot.img... even myself now don't have it.

I searched manually for it (MixPlorer) and nothing at all.

Are we sure that Magisk "still" created a backup of the boot.img when using "Direct Install" method?

Out of curiosity, I did the "Direct Install" on my already rooted boot.img, reboot the phone, and still no files created.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
I tested this just now as follows:

- I'm currently rooted using Magisk 25.2 and have a /data/magisk_backup* directory

- renamed the backup it to /data/xxgisk*

- flashed the stock boot image using dd of=/dev/block/by-name/boot_a if=oos-KB2005_11_C.36-boot.img

- did a Direct install using Magisk and it created an new /data/magisk_backup* directory; the hash is identical to the previous one

- rebooted

So, yes, Direct install does the correct thing and creates a backup of the stock boot image.

However, if you do a direct install on top of a rooted boot image then, obviously, Magisk cannot create a backup of the stock image as it didn't patch a stock boot image.
[OnePlus 8T Guides, News, & Discussion] sketch.droid:
Yeah thats a fair point, I wasnt sure if backups are created if the boot is already patched... I dont know if Magisk checks for that.

However, I don't have any file created... I just flashed the stock boot.img from my current C.33, then used Direct Install. I'm rooted now, but still no backup file created

What could be causing this?!
[OnePlus 8T Guides, News, & Discussion] BillGoss:
I have no idea. You could ask in the Magisk forum: https://xdaforums.com/t/magisk-general-support-discussion.3432382/

PS: since you have a copy of the stock boot image you don't actually need a backup.
[OnePlus 8T Guides, News, & Discussion] sketch.droid:
Yeah I was looking for the Magisk forum, but while searching up on this issue I came across it here, so I asked here since it's specific to my 8T and OOS12. ..ohh yeah, the backups were there in OOS11, i forgot to mention that.

Yeah I know I dont need it if I still have the stock img... it's just a confusing one.

Would it make a difference if I just boot the stock boot image, then install OTA?? rather than flash the stock boot image?
[OnePlus 8T Guides, News, & Discussion] BillGoss:
It all depends on what you're trying to do. If you boot the stock image you obviously wouldn't have root, so you can use Magisk to do a direct install (it won't have permission to write to the boot partition).

That's why there are options in the OP - not everybody wants to use the same method.
[OnePlus 8T Guides, News, & Discussion] sketch.droid:
well i'd be trying to apply the OTA update, then root again.

my process is from your OP. in this case i'd be doing:

Un-root from Magisk.

Install OTA from system update.

Root again with Direct Install.

Extract boot.img from inactive slot.

Patch OTA boot.img with Magisk.

Reboot phone to apply OTA update.

Boot magisk patched boot.img.

Use magisk to Direct Install.

but in my case, I cant Un-Root with magisk because there is no backup.

now you pointed out something I didnt consider... stock boot.img does not have permission to the boot partition.

so does this mean that OTA checks the Active slot for root before installing to the Inactive slot?

removing root from active slot does not remove permissions until after a reboot??

is that how it works?
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Yes, that's right. An incremental OTA does check that the current (active) partitions are stock during the update process and will fail if they aren't.

And root is only lost if you boot up on an unrooted boot image. That's why you can restore the active slot boot (and recovery if you use TWRP or Orange Fox) image back to stock in order to do the update and not loose root permissions until after the reboot.
[OnePlus 8T Guides, News, & Discussion] sketch.droid:
so what should I do in my case?

since I dont have a backup for magisk to restore.

the only way to boot a stock img is to reboot from it or flash it, which means i lose root completely.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
If you have a copy of the current stock boot image then you have two options:

1. Use shell commands (either through a terminal app like Termux or using "adb shell") to restore the stock boot image instead of getting Magisk to restore the image. Followed by the update process (B.1 or B.2.1) Or

2. Restore the stock boot image using fastboot (you'll lose root) and then update the phone and root it from scratch. You'll also have to clear data from GMS and G Play and reboot to make your phone certified again.
[OnePlus 8T Guides, News, & Discussion] sketch.droid:
I'm not very good with command line, but according to your OP, is this what I need to restore the stock boot.img that I've got?

dd if=path/to/stock-boot.img of=/dev/block/by-name/boot_a

I can run this in ADB while the phone is turned ON right?

is my syntax correct?
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Yes, you have to have the phone running normally.

Looks good. Just check that your current (active) slot is "_a" by using getprop ro.boot.slot_suffix

And you will need to run the "dd" command as root by either starting adb as root or using /system/bin/su -c dd if=path/to/stock-boot.img of=/dev/block/by-name/boot_a.
[OnePlus 8T Guides, News, & Discussion] sketch.droid:
thanks for the help mate!

I didnt realise I can run root commands inline like that... i usually do something like:

adb shell

su

<then root commands>

in windows cmd terminal.

I'll give this a try today... fingers crossed I don't have to wipe the phone again. :rolleyes:

--UPDATE--

Everything went smoothly, restoring factory boot by command line seems to be even quicker than Magisk.

the only confusion I had was orientation...

using windows CMD terminal, I assumed my directory "path-to-factory-boot-image" was on the computer, but it has to be on the phone storage.

So if someone wants to restore factory boot.img by command line, remember that your starting orientation point is the ROOT folder of your phone, and "not" the directory location CMD terminal says.

when you do:

adb shell

you will be taken into the phone's root storage.

rookie mistake on my part.:geek:

Thanks again @BillGoss for your help.
[OnePlus 8T Guides, News, & Discussion] The Apostle:
I'm still on 11.0.13.13.KB05AA but thinking of finally moving to A12. I assume, like past versions of Android, I need to move to C.11 and not jump to the most current version?
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Can't tell you what to do on that as I went through every update since C.11. But I don't see any real reason for not going straight to the latest version - C.36 - if that's available to you.

My only concern would be that if you want to do a manual install then I don't know if you can use the OOS 11 process or if you need use the MyApplication2 APK.
[OnePlus 8T Guides, News, & Discussion] The Apostle:
I haven't been keeping up and have no idea what the MyApplication2 APK process is..
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Read the OP
[OnePlus 8T Guides, News, & Discussion] Rootk1t:
Now there is another one version for A13 too.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Where did you find this? Because it's not mentioned in the OOS 13 open beta post.
[OnePlus 8T Guides, News, & Discussion] Rootk1t:
In this post.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
I'll be interested to see if they (OnePlus) mention this app when they roll out the OBT 13 for the 8T to NA/EU.

Update: the update APK for the 9/9Pro is different to this one (see https://community.oneplus.com/wap/thread/1159705720795955204).

I definitely won't be using either unless OnePlus say so.
[OnePlus 8T Guides, News, & Discussion] Rootk1t:
We'll see as NA/EU betas are released. At the moment the first beta (IN) was pushed back because of roll-back issues.

OnePlus Community

Introducing our new OnePlus Community experience, with a completely revamped structure, built from the ground-up.

community.oneplus.com

OxygenOS 13 beta builds are now available for the OnePlus 8 series and OnePlus 9R

OnePlus has released the first OxygenOS 13 Open Beta builds for the OnePlus 8, OnePlus 8 Pro, OnePlus 8T, and OnePlus 9R.

www.xda-developers.com
[OnePlus 8T Guides, News, & Discussion] Xainn:
Hi there how you extract the Boot.img from ota update as i know you can only extract boot.img from full ota update through payload dumper?
[OnePlus 8T Guides, News, & Discussion] BillGoss:
The My Application2 app used for local install on OOS 12 works fine installing OOS 13 F.13. See https://xdaforums.com/t/updates-thread.4188149/post-87731031
[OnePlus 8T Guides, News, & Discussion] BillGoss:
You don't need to. If you're rooted, then just follow the instructions in section B.1 of the OP.
[OnePlus 8T Guides, News, & Discussion] Xainn:
Today i update my phone to c.33

Today i updated my phone too C.33 After updating my battery starts draining so i suddenly download Ota C.36 and i updated my phone now i am stuck my root is gone i dont have a boot img for C.36 my phone model is Oneplus 8t Kb2005 thats why i want a boot.img for C.36 sorry for my bad english...
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Then follow the instructions in section A.1.1 or A.2.

If you had read the whole OP you should have known this.
[OnePlus 8T Guides, News, & Discussion] Xainn:
My Phone is Rooted now Msm tool is working Perfectly Thanks
[OnePlus 8T Guides, News, & Discussion] 0wdj:
I'm doing the B.1 method to keep my root after an OTA update (Android 13), after the step when I have to type "fastboot boot magisk_patched.img", my phone restart like usual but the touch screen doesn't work anymore. The buttons work but not the touch screen.

If I restart my phone, it's working again but I'm not rooted...

Any reason why it goes that way?
[OnePlus 8T Guides, News, & Discussion] BillGoss:
I have no idea why that's happening. B.1 has been the most reliable way to date.

What version of OOS 13 are you on (EU/IN/NA)?

What version of Magisk?
[OnePlus 8T Guides, News, & Discussion] 0wdj:
It's the KB2005 version, I think it's the Global?

For Magisk it's 25.2
[OnePlus 8T Guides, News, & Discussion] 0wdj:
I think I know why it's like that.

I have installed a module for bypassing Safetynet (https://github.com/kdrag0n/safetynet-fix)

It worked well on Android 12 but I remember during the first days that this module caused a bug on the touch screen on OnePlus and Oppo phones and we have to wait for the fix a few days.

I bet it's this module that is not working on Android 13 again, but to test my theory I have to find aa way to deactivate it, how can I do it?
[OnePlus 8T Guides, News, & Discussion] BillGoss:
You have to use the Displax version. See A.2 for link.

I'll have to update A.1 to use the correct version.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
fastboot boot <Orange Fox for OOS 13 img>

Then, in Orange Fox delete /data/adb/modules/<SafetyNet directory>

Source: https://xdaforums.com/t/recovery-un...ct-oneplus-8t-9r-18-oct-2022.4391139/[/Icode]
[OnePlus 8T Guides, News, & Discussion] Gandalf19:
Hi.

I updated to Android 13 F.13 with method B.2.1 with MyApplication2 app.

Now, when I boot, I see this message:

With Magisk modules, I pass SafetyNet test

How can I solve ?

Thank's
[OnePlus 8T Guides, News, & Discussion] BillGoss:
You can't. Just like we used to get the unlocked bootloader warning in OOS 11 and it disappeared in OOS 12, it's now back in OOS 13.
[OnePlus 8T Guides, News, & Discussion] Gandalf19:
Okay. Thank you. I thought I did something wrong.... 🤣
[OnePlus 8T Guides, News, & Discussion] Feduz:
Hi Bill, I've always used B.2.1 Local Install, I will use the same to OOS13. After that do you suggest to add the OrangeFox recovery?
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Given that on OOS 13 TWRP doesn't work (touch screen isn't working) and OF works well, then what option do you have?

But I'm not recommending that you install a custom recovery - that's entirely up to you.
[OnePlus 8T Guides, News, & Discussion] Rootk1t:
It seems there is a way to hide this message by flashing bootloader (abl.img) from the first beta of OOS13.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
I'm not bothered with the message showing. It's been on Android for ever. It's only OOS 12 that didn't display it.

I, personally, wouldn't complicate ota updates more than they already are (having to restore stock boot and recovery) by using a non-stock abl just to remove the message.
[OnePlus 8T Guides, News, & Discussion] Victroid:
Hi, I don't understand what I'm doing wrong. I want to upgrade to Oos13 from 12 following the steps in B.2.1. I get the update directly from "Oxygen Updater" for my EU version - KB2003. When I install with MyApplication2 it tells me "Verication Failed", can you help me. Thank you very much.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Because this is full (not incremental) update, you might be able to use the system installer (About device>update) to install the update on step 4.

I have never used Oxygen Updater.

Have you previously used MyApplication2 to update EU OOS 12 (I'm on NA)?
[OnePlus 8T Guides, News, & Discussion] Victroid:
Hi Bill, thanks for replying. No i dont remember use MyApplication2 maybe from 10 to 11. I was updating by steps B1. This was done when I received the update notification, but I have not received it yet and I thought that I could iron the full version with B.2.1 Guide. Not even with the Bulgarian VPN I can get the update notification. What do you recommend me? Thank you
[OnePlus 8T Guides, News, & Discussion] BillGoss:
Does your EU version of About device>Update have an option for doing a local install? If it does, try that.

If not, then either wait for the update notification or go hunting in the forums for other people updating to EU OOS 13.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
So I decided to play around and see how things work on EU. And in the process of doing this I discovered that @Wishmasterflo's version of Orange Fox (OF) recovery https://xdaforums.com/t/recovery-un...ry-project-oneplus-8t-9r-22-nov-2022.4391139/ will happily install an OOS zip that My Application 2 won't (fails verification). I used the OOS 13 v14 version of OF.

I successfully installed both NA OOS 13 and the EU OOS 13 downgrade. And also used the same OF to backup my EU OOS 12 installation!

So I suggest you try using OF to install your Oxygen Updater update zip.
[OnePlus 8T Guides, News, & Discussion] BillGoss:
I wanted to see if keeping root on the EU OOS 13 is the same as in NA.

I've documented what I did in the attached text note.

The main things I found out are:

You can use the local install (About device>Update>3-dot menu>Local install) to install the downloaded (I used Oxygen Updater) OTA zip.

You can use Magisk to install to inactive slot when the extraction finishes and BEFORE tapping on Install.

You should, however, pull a copy of the inactive boot image before using Magisk because it won't create a backup of the stock boot when you install to inactive.

You could also use Orange Fox to install the OTA and then use the the A.2 process (First time root) using Orange Fox

The differences between NA and EU is all in the logical partitions, with the exception of the mdm_oem_stanvbk partition. See the diff output in the attached note.

This means that you can use the same Magisk patched boot image for both the NA and EU OOS 13. I didn't check IN but someone with it could verify if the IN boot image md5sum is the same as the NA/EU one.

Orange Fox will install an OTA zip even if the local installer fails verification.

You don't need to turn on airplane (AP) mode on EU before using a backup of /data - it was necessary on OOS 12 in TWRP. Orange Fox happily restored a backup taken without AP mode on.
[OnePlus 8T Guides, News, & Discussion] Victroid:
Hi Bill, thanks for your work. Unfortunately, my EU kb2003 version does not have the local installation option. So I just have to wait for the notification or install OF and flash the OT
[OnePlus 8T Guides, News, & Discussion] jushhh:
Hi, @BillGoss I change my 8T for an 10T and will restore my old 8T to factory reset and my wife will stay with it. My question is: How is easyest way to keep root or re-root it after factory reset.

Thanks a lot.
[OnePlus 8T Guides, News, & Discussion] Wishmasterflo:
After Factory reset you can just unlock your bootloader again and install Magisk again to root it.
[OnePlus 8T Guides, News, & Discussion] jushhh:
Factory reset will re-lock my bootloader? If yes, then I don't need root. Just need Google pay working fine for her.
[OnePlus 8T Guides, News, & Discussion] Wishmasterflo:
No if you just do format data or factory reset from recovery it will not relock bootloader.
[OnePlus 8T Guides, News, & Discussion] jushhh:
But, if I want, could I do? From fastboot?
[OnePlus 8T Guides, News, & Discussion] BillGoss:
FYI, I've updated the OP for OOS 13 and now also include both TWRP and Orange Fox as custom recovery.
[OnePlus 8T Guides, News, & Discussion] Fredator:
Hello,

l'm a but lost in all those posts because my case is special

I never updated to android 12 !

Can someone point me a step-by-step tutorial or a precise summary on how to update my 8T from android 11.0.13.13 KB05AA - KB2003 (Europe) rooted with magisk 23 (no twrp), to Android 13 KB2003 with magisk up to date, and safety-net passed? what version, which modules?

i actually use Universal safetynet Fix V2.1.3, systemless hosts, and Riru (for calls recording if i remember well, which seems to be a thing of the past sadly (?)

Im' currently downloading a rom called KB2003_11_F.13 on oxygen updater

(And i don't need to install any custom recovery, i always only used them to boot the phone (fastboot boot) to be able to root it next)

many thanks 🙏

PS: i don't have the current stock boot image
[OnePlus 8T Guides, News, & Discussion] Rootk1t:
Take a look at this great thread.

[GUIDE] Root and keeping root options

Update 240721: TWRP and Orange Fox do NOT work properly on stock OOS 14. See the discussion starting at https://xdaforums.com/t/guide-root-and-keeping-root-options.4387977/post-89610238 A. First time rooting This process is common across all...

xdaforums.com
[OnePlus 8T Guides, News, & Discussion] mingkee:
Unfortunately, you may need Magisk 25+ in order to use modified USNF in order to pass 2/3 play integrity

Safety Net is no longer relevant
[OnePlus 8T Guides, News, & Discussion] Fredator:
Thanks both

i'm processing your answers...

Do i have to update Magisk to 25 first, on my actual A11?

and then find the relevant part of the big post quoted by @Rootk1t and follow the tutorial to update rom?
[OnePlus 8T Guides, News, & Discussion] Devtick.:
I recently updated to A13 from A11 following these steps:

"You can use the local install (About device>Update>3-dot menu>Local install) to install the downloaded (I used Oxygen Updater) OTA zip.

You can use Magisk to install to inactive slot when the extraction finishes and BEFORE tapping on Install.

You should, however, pull a copy of the inactive boot image before using Magisk because it won't create a backup of the stock boot when you install to inactive." Credit to BillGoss.

Yes, I would update magisk to latest version before updating the android version. The only thing I haven't figured out is to get viper4android to work.