• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[Guide] How to ROOT OnePlus8T (CN/IN/EU/US) KB2000,KB2001,KB2003,KB2005

Search This thread

g96818

Senior Member
Dec 27, 2014
284
45
That was the first time I updated (it's a new phone).
I recommend you use the MSM tool at least once. You'll be problem free after that. I've had all kinds of update and root issues until I used the MSM tool. I also don't get any of the update bugs other ppl run into and complain about on the op forum.

I'm going to assume you used it to restore so you'll be fine with the non-pc method in the future.
 

BillGoss

Senior Member
Sep 2, 2010
4,627
4,042
Sydney
OnePlus 3T
OnePlus 8T
I tried the non-PC method to update, and now I'm getting kernel errors.

Here's what I did:

Uninstalled magisk (just restore images), didn't reboot
Installed update via system updater. I got installation errors until I removed root, only after doing that did it work. didn't reboot. The version it had was 11.0.8.13.KB05AA
Installed magisk to inactive slot and it prompts me to reboot.

Then I boot up and it says "Qualcomm crashdump attempted to kill init! exitcode=0x00007f00"

I tried `fastboot flash boot boot.img` using the boot.img (11.0.5.6.KB05AA+Stock) I used previously to root (edit: and same result with the latest), and that ends with a similar message saying dm-verity device is corrupted.

edit: well at least it wasn't hard to restore stock. Still curious why the kernel panic happened; I definitely followed the instructions for non-pc upgrade

Any ideas?
I got the same problem using Magisk to patch the inactive slot when updating from .12 to .13. Getting back to .12 was as simple (once I found this out) as changing the active slot back to the previous one.
It seems to me that the "safe" way is to create a patched boot of the updated boot after applying the update but before booting. Then boot the new update to let it finish any remaining changes before booting the patched image.
 

adrifc

New member
Mar 2, 2019
3
1
Hi,
The last time I tried to update my 8t following the steps of the first page and I got a boot loop, losing all my data.
Can anyone explain to me how to safely update the mobile and keeping root?
With my previous op6 I just click on System -> update -> magisk install after OTA,
but with my current mobile, it fails the download every time that I try to update.


I have root with magisk, KB2003 with global KB05AA.
Thanks in advance!
 

alfonsocl

New member
Mar 26, 2012
2
1
Hi guys, I just made a patched boot.img for the KB2003 last update, OxygenOS 11.0.8.13.KB05BA


Cheers
 

BillGoss

Senior Member
Sep 2, 2010
4,627
4,042
Sydney
OnePlus 3T
OnePlus 8T
Hi,
The last time I tried to update my 8t following the steps of the first page and I got a boot loop, losing all my data.
Can anyone explain to me how to safely update the mobile and keeping root?
With my previous op6 I just click on System -> update -> magisk install after OTA,
but with my current mobile, it fails the download every time that I try to update.


I have root with magisk, KB2003 with global KB05AA.
Thanks in advance!
I find @osm0sis's process to be reliable and safe: https://forum.xda-developers.com/t/...ices-platforms.2239421/page-149#post-84764713
 
  • Like
Reactions: osm0sis

adrifc

New member
Mar 2, 2019
3
1
Thanks I will check it.
Also I found another that says that its possible to find the full update instead of the incremental, with the playStore oxigen update app.
I will check during the weekend :)
 
  • Like
Reactions: Lz3807775t

g96818

Senior Member
Dec 27, 2014
284
45
It's only a modified/mixed version of my pc and non-pc update process with extra unneeded steps. If you want the safest way, then download the update file and check the file hash on pc, then follow the pc method I've posted on previous updates.

Up to you, but the main thing you need to make sure is that you have Magisk Canary installed, not beta or the regular version.
 

Hakemblue

Member
Apr 25, 2019
11
2
DISCLAIMER

I have only tested this on my OnePlus8T Indian model - KB2001
Huge thanks to @topjohnwu for his magic.

YOU NEED TO UNLOCK YOUR BOOTLOADER!
In case you brick your device, use this unbrick guide
If you get into a boot-loop by flashing problematic magisk modules, consider using the patched recoveries from my post HERE to remove the modules.


Manual ROOT procedure
Skip to step #6 and then #10 if you do not want to use the payload dumper tool and want to directly flash the patched images for your variant and Build version!
  1. If you haven't updated OxygenOS yet, download it via the system updater. It will be stored in /sdcard/.Ota folder in your internal storage ( /sdcard/.Ota/OnePlus8TOxygen_15.I.16_OTA_0160_all_2010150110_84be0c.zip )
    The size should be >2GB. If it is not, it's probably an incremental OTA, not a full one. This guide will NOT work on incremental OTA Zips.
    DO NOT Reboot or else you will lose the file
  2. Copy the ZIP file over to your PC
  3. Download the Payload Dumper
    Alt dumper for windows only:
    https://androidfilehost.com/?fid=818070582850510260
    1.Put payload.bin to "payload_input" folder
    2.Run payload_dumper.exe
    3.Successfully extracted img files are in "payload_output" folder
    Extract the zip in the folder where you downloaded the payload dumper.
  4. Follow the instructions in the readme of payload dumper, and extract the OTA images:
    Code:
    python payload_dumper.py payload.bin
    You will get a boot.img file in the output folder.
  5. Proceed with installing the OxygenOS update and reboot the phone.
  6. Download and install the latest magisk canary release to your phone : https://raw.githubusercontent.com/topjohnwu/magisk_files/canary/app-debug.apk
  7. Copy over the boot.img file created by payload_dumper to your internal storage
  8. Open Magisk Manager > Select Install > "Select and patch a file"
  9. Browse and select the boot.img file.
    Magisk will create a patched boot.img file in /sdcard/Downloads/magisk_patched.img . Copy this file over to your PC.​
  10. Reboot to fastboot mode
    Code:
    adb reboot bootloader
  11. Either flash the patched magisk_patched.img in the active slot or temporarily boot into it if you are skeptical.
    I recommend to BOOT first and then perform a direct install via magisk as it is more reliable to patch the active slot.

    To flash:
    Code:
    fastboot flash boot magisk_patched.img
    To Temporarily boot into a rooted system (RECOMMENDED!!):
    Code:
    fastboot boot magisk_patched.img

    If you used the fastboot BOOT method, next you'll have to open magisk manager again, and this time, perform a "Direct Install".
    This will install magisk on the active boot slot and the next reboot will give you root.
How to update OTA and KEEP ROOT
It is advised to disable all magisk modules to be safe!


For the curious / impatient, Here are the OTAs / boot images for the different 8T Versions:

To find your model and build to download the right file:
Bash:
adb shell getprop ro.product.model
KB2001
adb shell getprop ro.build.version.ota
OnePlus8TOxygen_15.I.16_GLO_0160_2010150110
adb shell getprop ro.build.display.id
KB2001_15_201015
KB2000 / KB05?? - Chinese Variant

KB2001 / KB05DA - Indian Variant

KB2003 / KB05BA - EU Variant

KB2005 / KB05AA - International Variant

Credit @northmendo @SAKO4444GODZ and @g96818
UPDATE:
For this variant please refer to this guide first! The OTA updates on this variant are partial and hence the rooting method isn't straightforward.
https://forum.xda-developers.com/showpost.php?p=83791723&postcount=95
Stock KB2005_15_201015 boot image SHA-1 D59C74767F74F4D7876BDCA930DEF23CCAA3FD2E
Patched KB2005_15_201015 boot image SHA-1 C1126E8057EF9FB25D80645B850374BBDDE983C5
OOS 11.0.3.4.KB05AA : Refer to https://forum.xda-developers.com/showpost.php?p=83893183&postcount=151
OOS 11.0.4.5.KB05AA : Refer to https://forum.xda-developers.com/showpost.php?p=83940123&postcount=210
OOS 11.0.5.6.KB05AA : Refer to https://forum.xda-developers.com/showpost.php?p=84003695&postcount=258

KB2007 / KB05CB - T-Mobile Variant
¯\_(ツ)_/¯

It's also a good practice to backup a few important partitions once you're rooted.
I used ADB shell, but you can use any terminal emulator from the play store (Termux)

adb shell
[email protected]:/ $ su
[email protected]:/ #

Now run:
Bash:
dd if=/dev/block/platform/soc/1d84000.ufshc/by-name/modemst1 of=/sdcard/modemst1.img
dd if=/dev/block/platform/soc/1d84000.ufshc/by-name/modemst2 of=/sdcard/modemst2.img
dd if=/dev/block/platform/soc/1d84000.ufshc/by-name/modemdump of=/sdcard/modemdump.img
dd if=/dev/block/platform/soc/1d84000.ufshc/by-name/persist of=/sdcard/persist.img
dd if=/dev/block/platform/soc/1d84000.ufshc/by-name/persist_bkp of=/sdcard/persist_bkp.img
Other Misc Stuff for my reference!

If after flashing a custom kernel, you see Sim cards not working:

Recovering lost app data after a failed boot:
  • Download and flash one of my adb-patched recoveries from my post here
  • Reboot to recovery, enter the password, open adb shell
  • Create a tar bundle of the app via tar -czvf MiXBackup.tgz data/data/com.mixplorer/silver and adb pull it to your system
  • *Or* the entire /data partition via tar --exclude /data/media/0 -czvf /data/media/0/data.tgz data/ (You CANNOT restore all of /data like this due to encryption stuff! but you can extract one app at a time and test)
  • Reinstall the app , reboot to recovery, adb push, and extract via tar xf MiXBackup.tar
probably the worst tutorial ever on xda there are no clear steps for incoming problems
 

Psychozuna

Member
Sep 29, 2010
17
0
TOULOUSE
Hi,

I followed the procedure when I first got my 8T and it worked great.
On the first OTA I followed the procedure to keep root and it worked great again
On the second OTA I messed up and forgot a step so I lost my root (no biggie)
Now I 'm trying to get root back following the original procedure and my phone just can't boot from the magisk patched image.
I'm stucked on the boot animation.
It will boot normaly on the stock boot.img

Any advice on how to figure out what's going on or on how to get my root back ?

thanks in advance
 

BillGoss

Senior Member
Sep 2, 2010
4,627
4,042
Sydney
OnePlus 3T
OnePlus 8T
Hi,

I followed the procedure when I first got my 8T and it worked great.
On the first OTA I followed the procedure to keep root and it worked great again
On the second OTA I messed up and forgot a step so I lost my root (no biggie)
Now I 'm trying to get root back following the original procedure and my phone just can't boot from the magisk patched image.
I'm stucked on the boot animation.
It will boot normaly on the stock boot.img

Any advice on how to figure out what's going on or on how to get my root back ?

thanks in advance
You can boot the patched image and then update using Direct Install in the Magisk app.
 

Top Liked Posts