yashsingh1/xdaforums huggingface dataset:
[OnePlus 7 Pro Guides, News, & Discussion] saiz136:
Awesome. Thanks very much!
[OnePlus 7 Pro Guides, News, & Discussion] saiz136:
I just noticed after my troubles with fastboot, my OOS version seems to be off? Am I using an outdated version? If I am, there is no new update notification or even checking it manually. How do I flash a new update?
[OnePlus 7 Pro Guides, News, & Discussion] linx1287:
I cant manage to unlock the bootloader. My device is GM1910, i am running 9.5.10 GM21AA. i went to OB2 but then rolled back and decided i wanted to unlock and root, but for some reason i cannot. followed all the proper guides, tried the adb method, but when i type fastboot oem unlock, it just says waiting for device. I also tried the all-in-one tool and same problem, the moment i check for bootloader status, the application hangs. has anyone faced this issue before? could use some help. Thanks

Using the OP cable and tried on both USB 3 and 2
[OnePlus 7 Pro Guides, News, & Discussion] jcsww:
Is the device SIM locked? If so. You will have to flash to DP3 to unlock the bootloader ir SIM unlock the device to be able to toggle the OEM unlock switch in Developer Options.
[OnePlus 7 Pro Guides, News, & Discussion] sathara:
when i "fastboot boot twrp-3.3.1-3-guacamole.img" phone stuck in fastboot mode screen.

i have boot loader unlocked

i am on OB2
[OnePlus 7 Pro Guides, News, & Discussion] redpoint73:
No part of this guide says to use such a command. With that command, you are attempting to flash a recovery image over the system kernel (boot partition) with this command. Which is definitely not what you want to do! In the command you used, "flash" is the verb, and "boot" is the location.

What you meant to do was (command stated in the guide): fastboot boot twrp-3.3.1-4-guacamole.img

Believe it or not, that difference of one word makes a big difference, and completely changes the meaning/action of the command. In this case "boot" is the verb, booting the TWRP image (without flashing it).

In any case, the command actually does not work on OB1 or OB2. For the Android 10 Open Betas, the root method is different. You need to follow the process here: https://xdaforums.com/oneplus-7-pro/how-to/magisk-patched-boot-image-oneplus-7-pro-t3964345

Basically, install Magisk Manager, fastboot flash the patched boot image (OB2), then reboot the phone to OS, and it should be rooted.

The thread title references OB1, but the link in the top post contains the patched boot image for OB2 as well.

---------- Post added at 09:25 AM ---------- Previous post was at 09:20 AM ----------

Please don't post the same question to multiple places. Stick to the thread you started here: https://xdaforums.com/oneplus-7-pro/help/unable-to-unlock-bootloader-t3969317

Cross posting (as it is called) only results in confusion for both you, and those trying to help you. It won't get you help any faster in reality.
[OnePlus 7 Pro Guides, News, & Discussion] linx1287:
No SIM locking, i am on Pie. and yes i toggled the OEM unlock switch in developer settings. Thank you, i got some possible solutions to try on another thread, lets see how that pans out.

Thank you. I will keep this issue contained to that specific thread. Just had a freakout moment :(
[OnePlus 7 Pro Guides, News, & Discussion] sumanre:
very difficult

this seems very difficult method you have shared, is there any easy way to unlock ?
[OnePlus 7 Pro Guides, News, & Discussion] redpoint73:
It is not difficult to unlock the bootloader, install TWRP, root with Magisk using this guide. The guide does go into a lot of detail, but that is more for clarity and thoroughness, and not because the process is complicated.

Briefly, you just unlock bootloader with a single fastboot command, then fastboot boot (

not

flash - more on this below) TWRP, then once in TWRP you can flash TWRP installer zip and Magisk zip for root. That is really it.

It is a bit different from previous devices (where you can flash TWRP in fastboot), I think due to the way the memory is partitioned (recovery resides on boot partition now). But it what really just makes for an extra step or two.

If you can't handle the (pretty simple) process, than it can fairly be said that root is not for you. if you are looking for something like a one-click root, then it doesn't exist, and you are pretty much asking for trouble. Having root, without understanding the basic tools of fastboot and custom recovery, is a really bad idea. It means you won't have the basic knowledge of these tools if something goes wrong. As they almost will inevitably will at some point - that is just the nature of modding these devices.

There is a one-in-all tool that automates some of the described steps. But again, if you need to rely on such a tool just to do fastboot commands, you are asking for trouble.

Side note: Android 10 OTA is rolling out for some users. The root process is a little different from what is described in this guide. In this case, you need to flash a patched boot image first. And lots of folks seem to be having issues. Definitely not for beginners (rooting Android 10 on this device). On the off chance this applies to you (already updated to Android 10), I would recommend waiting a bit to see that the situation is sorted out. But for Android 9, this guide is fine.
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Thanks [MENTION=660462]redpoint73[/MENTION] for the explanation. Yes, the process is simple, but this guide is designed to be thorough. If you wish for simplicity, all important parts of each step are italicized
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Support for Android Q/10 using the proper method without relying on a patched boot image added
[OnePlus 7 Pro Guides, News, & Discussion] ryanxiao:
I wanna try your method, cause it had been written in such detail, my questions prior are:

1.- After fastboot boot twrp.img, is there any specific reason to use "adb sideload” and if reboot system without magisk.zip installed, will it bump into bootloop? For most people, like maurono and Funk wizard’s (6t) guide are: twrp boot into recovery->install twrp zip, reboot to recovery(not reboot system), or just install magisk right after twrp.zip installed before reboot.

2.- Is the latest magisk v20 ok for 10.0.1 instead of 19.4?

3.- About OTA with twrp installed, is this “twrp a/b retention module” step in magisk necessary? For my experience to keep root without twrp, only need reinstall magisk after ota.

4.- I don’t need twrp, if it’s ok to fastboot boot to twrp->install magisk.zip without twrp.zip, reboot, to stay magisk root+stock recovery.

5.- If I’m in magisk root with stock recovery, what’s the right step for OTA while keep root and stock?

Before this 10.0.1 update, worked in 6t/7pro, the first step in magisk manager is to uninstall magisk, choose to restore stock boot.img, then local update->install magisk in the inactive slot before reboot. This is the 1st time run into trouble, do I need this step in future OTA update for magisk+root without twrp situation?

My situation is:

GM1910, China ver, GM21AA update from 10 to 10.0.1, no twrp, alway keep root without any flaws by put magisk reinstall in the inactive slot after ota update, worked every time since 9.5.3. But this time encountered: failed to boot into stock recovery, say: "Qualcomm Crushdump attempted to kill innit! exited code=0x00000100"; Had already tried to uninstall magisk [v20] use magisk uninstaller, local update twice, now stock recovery normal, without root/ magisk/ twrp status. Prepared files are all latest, mauronofrio twrp img/zip v70; magisk zip v20, any help thanks!
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
1. I only suggest using ADB sideload since all the files can be downloaded on the computer, instead of some on the phone, some on computer. I only say to reboot to system in case you want to only have TWRP for some reason. You can use the same method you described if you want TWRP + Magisk. If you only want Magisk, just flash the magisk.zip and not the TWRP one.

2. If you plan to install TWRP, don't use Magisk v20 as your TWRP will randomly disappear

3. If you don't have TWRP you don't need to use that module.

4. Yes

5. No need to uninstall Magisk before applying the OTA. The phone does that for you. Just local upgrade then install to inactive slot if you aren't using TWRP.
[OnePlus 7 Pro Guides, News, & Discussion] ryanxiao:
Such a quick and thorough response, helps a lot, thanks!:good:

Feedback:

I ended up with this method, boot to TWRP, install Magisk (v19.4) only, reboot. And I'm in root+working stock recovery. It seemed the culprit is the latest Magisk v20.

About TWRP, at least for me, I think it's better to avoid to add a layer of potential possibility to mess up Android or future updates, such as the bit outdated TWRP A/B retention script. And as the Magisk author John Wu pointed,

For Nandroid backup, I remembered, don't know where exactly, [MENTION=4712355]mauronofrio[/MENTION] mentioned that You cannot use Android Pie backup to restore for Q, due to decryption incompatible, result factory reset or bootloop.

As for if it's necessary to uninstall Magisk to restore images prior OTA, I've just read John Wu's tutorials, said it must,
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
No problem! If you don't need TWRP installed, you can of course just boot it to install magisk. Personally, I've never had an issue with it on this device.

That's right about the backups, unless you run the device decrypted.

On OnePlus devices, there is no need to uninstall Magisk as the update system will automatically detect if your device differs from stock, and will download and install a full OTA image.
[OnePlus 7 Pro Guides, News, & Discussion] stegg:
posting just to say thank you OP for this useful beginner guide!

I just received my OP7 pro 1910 with Pie, downloaded the full 10.0.1 image and installed it.

Then I followed exactly the instructions of post 1, 2 and 3 and now I have a working rooted Android 10 with Magisk and Twrp, all perfectly up and running with no hassle.

(this thread should be sticked)
[OnePlus 7 Pro Guides, News, & Discussion] ekamjyot:
Plzz help me

I followed ur guide completely and successfully rooted my op 7 pro. When i entered the magisk app i updated it to the latest version and started downloading some modules. Then i rebooted the phone from the app itself. After that it got stuck on the fastboot screen. So to fix it i had to flash magisk uninstaller which again unrooted my device. Although the device booted up i still wanted root. Therefore i flashed magisk again from twrp but everytime it got stuck on the fastboot screen and I had to flash the uninstaller. I tried it with different versions of magisk after v 19.4 but no success. Any suggestions on how i can root the device again.
[OnePlus 7 Pro Guides, News, & Discussion] JudgeDread11:
Likely a module is causing your boot loop.

Check your data/adb folder from twrp to disable or delete the modules.
[OnePlus 7 Pro Guides, News, & Discussion] lumipcgs:
fastboot problem.

Sorry for interrupted. I am stucking at step 2. I had the oem unlocked already. The main point is that I have no idea how to dealt with the fastboot command. I checked my driver(bootloader interface),and i key in fastboot devices,it showed 3aec739f fastboot,but when I kept keying in fastboot boot,it showed (fastboot: usage: expected argument). Btw,I skipped step 1 due to I had already unlocked oem.

thank you for helping me out and abolish my poor English. =.=
[OnePlus 7 Pro Guides, News, & Discussion] ekamjyot:
There is no modules folder in data/ adb folder!! Any other suggestions. Thanks btw
[OnePlus 7 Pro Guides, News, & Discussion] JudgeDread11:
If you used a version older then 19 (I think) they modules might be in a different path.

If marital is not leading any modules then I don't know either, sorry.
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Sounds like you didn't drag the file into your command line window
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
PM sent
[OnePlus 7 Pro Guides, News, & Discussion] Extremelyd1:
I can't seem to use

fastboot boot twrp.img

as it just gets stuck at a splash screen showing "Fastboot Mode" and not booting in TWRP.

Can anyone help me with this?
[OnePlus 7 Pro Guides, News, & Discussion] null0seven:
Yes.

Follow this guide. Choose the image for youre phone/region.

https://xdaforums.com/oneplus-7-pro/how-to/magisk-patched-boot-image-oneplus-7-pro-t3964345

After you got Magisk working you can flash twrp 3.3.1-70 from Magisk.
[OnePlus 7 Pro Guides, News, & Discussion] danielqf45:
Does in matter if i have a custom kernel?
[OnePlus 7 Pro Guides, News, & Discussion] jsm36:
"device is not found"

When I boot TWRP and do the adb sideload command, the "device is not found".

As soon as the TWRP image is booted the Computer doesn't finde the device anymore.

What am I doing wrong?

Some additional Infos:

At this point (TWRP bootet via adb fastboot) Internal Storage and USB Storage show 0MB.

Wehen I open Advanced - ADB Sideload and swipe to start the following lines apperar:

Updating partition details...
Failed to mount '/system' (Invalid argument)
Failed to mount '/vendor' (Invalid argument)
...done
Unable to mount storage
Failed to mount '/data' (Device or resource busy)
Full SELinux support is present.
Unable to mount /data/media/TWRP/.twrps
Failed to mount '/data' (Device or resource busy)
Failed to mount '/system' (Invalid argument)
Failed to mount '/vendor' (Invalid argument)
Failed to mount '/data' (Device or resource busy)
Failed to mount '/system' (Invalid argument)
Updating partition details...
Failed to mount '/system' (Invalid argument)
Failed to mount '/vendor' (Invalid argument)
...done
Unable to mount storage
Starting ADB sideload feature...
Failed to mount '/data' (Device or resource busy)
Starting ADB sideload feature...
Cancelling ADB sideload...
Starting ADB sideload feature...

And on the top, right from the TWRP logo on the blue color: Failed
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Are you using TWRP -70 for your correct android version? Those errors mean the data decryption failed
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
No
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Use the TWRP version from this guide for your Android version
[OnePlus 7 Pro Guides, News, & Discussion] jsm36:
Yes I use twrp-3.3.1-70. Bootloader is already unlocked.

I just got the phone, updated to the latest stock OOS (Android 10) and I set no pin or password because I thought this would prohibit any decryption errors with TWRP.

Any suggestions?

Edit:

TWRP fails to mount the partitions.

I tried it with and without a Lockscreen-PIN, with 4 and with 8 digits.

As soon as TWRP boots (twrp-3.3.1-70-guacamole-unified-Q-mauronofrio.img) the Computer loses the connection to the device.

I also tried the recommended image from the TWRP App (twrp-3.3.1-4-guacamole.img), but this one isn't even booting.

When TWRP starts it asks to "Keep System Read only?" I don't press "Keep Read Only" and swipe "To Allow Modifications".

When I try to mount anything in TWRP I can'T select a Partition, the device just vibrates but the checboxes stay clear. Only "metadata" is checked.

When I press "Select Storage" Internal Storage is selected and USB is not but both show "0MB". I can't select anything.

I found this guide that adresses my problem: https://************/how-to-fix-twrp-unable-to-mount-storage-internal-storage-0mb/

Repairing the file system doesn't work.

When I press "Change File system" it shows "File system: vfat". My options are only ECT2, ECT3, EXT4, FAT, exFAT and F2FS. I never chanced a File system on Android and I really don't want to brick my device, so I havn't done anything here. I just think its strange that it shows "vfat", but I don't know if this is part of the problem.

TWRP never asks for a PIN, it just fails to mount anything.

I googled "TWRP encyption error, TWRP no PIN, etc, but I dind't find a solution.

I have absolutely no idea what to do.
[OnePlus 7 Pro Guides, News, & Discussion] lumipcgs:
I tried more times and it somehow worked :D . Thanks for your help!
[OnePlus 7 Pro Guides, News, & Discussion] gastondefer:
Hi everyone, I know this is not the right thread, but I couldn't find any regarding "Sim Unlock" for the OP 7 Pro, Sprint 5G variant. If anybody here can help, please PM me. I've attached a picture of the phone and it's running on the August security Patch as well
[OnePlus 7 Pro Guides, News, & Discussion] gastondefer:
Image
[OnePlus 7 Pro Guides, News, & Discussion] giacomowrc:
A couple of question, I'm on stock gm21AA 10.0.1, oneplus GM1910. After flashed the "twrp-3.3.1-70-guacamole-unified-installer-mauronofrio.zip" in temporary TWRP I have to reboot in recovery ad install magisk.zip or I have to install magisk without reboot the recovery?

Which version of magisk I have to use, 19.4 or 20.0? Some posts back Arden Says "If you plan to install TWRP, don't use Magisk v20 as your TWRP will randomly disappear".
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
I'll rewrite that part as it's causing a fair bit of confusion. Yes, once you flash the TWRP zip, reboot to recovery and flash Magisk.

20 causes TWRP to vanish randomly, so I'm currently recommending 19.4 and as such it is linked in the guide
[OnePlus 7 Pro Guides, News, & Discussion] siuraczewski:
Model GM1917 TWRP installed Magic installed and i got some freez when i wanna call someone wifi not turning on stock i have 10.0-GM21AA-OnePlus7Pro can somone help me what i doing wrong ?
[OnePlus 7 Pro Guides, News, & Discussion] giacomowrc:
Works like a charm, thanks.
[OnePlus 7 Pro Guides, News, & Discussion] texrex10:
Sorry if this is the wrong thread

But just wondering if there is any rom that will work on 7 pro 5G
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Seeming that hundreds of people have that same setup perfectly stable, it's a modification you made. Only way to be completely stable would be to wipe data, reflash OOS and reroot
[OnePlus 7 Pro Guides, News, & Discussion] miam78:
Hi

Since Magisk 20 makes twrp dissapear how do I get it back ? I tried many twrp.img to boot but none of them work, it can't read them.
[OnePlus 7 Pro Guides, News, & Discussion] indiana99:
Section 4:

Installing an OTA update while rooted

Once again, superb instructions. Worked like a charm. Thank you.
[OnePlus 7 Pro Guides, News, & Discussion] wis3m0nkey:
Bought new phone, unlocked bootloader, started flashing TWRP fastboot reported unknown command.

Turns out my OOS version was 9.5.1, updating now to try again.

Thanks for pointing this (apparently new phones still come with 9.5.1)
[OnePlus 7 Pro Guides, News, & Discussion] JekyllInside:
Flash latest OTA and start over, new TWRP and root again, don't need to wipe anything.
[OnePlus 7 Pro Guides, News, & Discussion] miam78:
Normal update then IMG and reflash everything ? Ok i'll try this weekend , thanks a lot
[OnePlus 7 Pro Guides, News, & Discussion] Ultraman666:
I am trying to update following #4 but everytime i reboot the update shows failed, I still have root etc any ideas? I have Model GM915 Build 9.5.1.GM21AA updating to 95.13. GM21AA

Any place to download the OTA to install this via internal ?

Thanks for the help
[OnePlus 7 Pro Guides, News, & Discussion] raven213:
Try fastboot flash boot twrp.img
[OnePlus 7 Pro Guides, News, & Discussion] Ultraman666:
I started over and updated then rooted all good now
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
That's why I don't recommend Magisk 20 and 19.4 is linked in the guide
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
This will overwrite the bootloader and make the phone only ever boot to recovery, so not the best idea
[OnePlus 7 Pro Guides, News, & Discussion] miam78:
I read yeah

But once i'm on my phone when updates pop up I just do it !

I'm gonna flash through OTA then restart everything
[OnePlus 7 Pro Guides, News, & Discussion] MesaBjorn:
Thanks for the guide, really helpful and clear.

Having had root on android 9, I wanted to reroot after the latest OTA but using this guide my phone enters a bootloop after flashing magisk (either 19.4 or 20.0) and just enters fastboot. Didnt use any modules for magisk before. Any help on getting this to work? Thanks!
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
One other person had this same issue. Flash the Magisk Canary Uninstaller, Grab the boot.img for your specific OS version from the stock ROM thread and flash that, then try the guide again.
[OnePlus 7 Pro Guides, News, & Discussion] distantneighbor:
do you have to do a system update? Usually ROMs are updated so I would just reinstall a ROM when there is a system OS update. Just saying it seems less of a risk to install a new ROM rather than go through all these steps.
[OnePlus 7 Pro Guides, News, & Discussion] MesaBjorn:
Thanks for the advice. However it didnt help me get any further. Used the canary uninstaller for magisk, then I flashed the correct boot.img from this thread :https://xdaforums.com/oneplus-7-pro/how-to/magisk-patched-boot-image-oneplus-7-pro-t3964345

Followed the guide again up to installing magisk 19.4 but it corrupts my boot.img and doesnt boot. Uninstalling it makes it work again. I have no idea what is causing this, is there any way to find out?
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
You can try the latest Magisk v20.2 canary
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
This is a 1 minute process, save for the time downloading and installing the update. It doesn't require a custom recovery
[OnePlus 7 Pro Guides, News, & Discussion] MesaBjorn:
Thanks for the suggestion. Tried it, but unfortunately could not get it to work. I have been trying several things over the last few days but to no success. Even following a factory reset, it would not boot with magisk installed. The only thing I havent tried is flashing Magisk on the other boot slot (as a thread on the OP forums tells me to do), not sure if it makes any difference though. Could some app be the culprit and if so how would I find out which one?

When I reboot to the other slot (slot A), in recovery I can no longer access my sdcard. Not sure if that is normal (I havent been able to fully understand this A/B partition system) so that may give some indication of why the device refuses to boot with Magisk installed? Furthermore, is there a way to go back to android Pie? I prefer having root instead of having android Q. Any help would be appreciated.
[OnePlus 7 Pro Guides, News, & Discussion] a0007:
my phone doesn't boot with magisk , I have to uninstall magisk to boot ...any solution please?
[OnePlus 7 Pro Guides, News, & Discussion] blas4me:
Boot back into recovery, check if data is mounted and if not reboot to recovery and mount all, then you should reboot. I just got out of one of those spins, flashing a custom kernal without doing a nandroid. I just started from scratch, if you try to many tricks, you lose your steps. I used MSM tool and downgraded to 9.2.4, and received a 10.0.1 OTA upgrade. Before booting to install, I copied from .OTA folder to a external source, so I don't have to keep going back.

---------- Post added at 01:02 AM ---------- Previous post was at 12:59 AM ----------

I just went through the same thing, just start over trust me. Eventually you won't be able to manually boot into fastboot mode.
[OnePlus 7 Pro Guides, News, & Discussion] Aolelon:
Alright I guess I'm a noob. I am on TMobile variant, did all these instructions and completed successfully. I wanted to try to get Android 10 on here so I used the msm to to flash to international. Not sure what happened but I'm back on stock tmo firmware, sim unlocked, but my device state is locked, as well as the bootloader. I cannot use the unlock_code.bin because it says my device is locked. I am unsure what to do.
[OnePlus 7 Pro Guides, News, & Discussion] Aolelon:
NVM, I was able to figure it out.