yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S7 Edge Questions and Answers] MoorthySZ:
voLTE not working on latest stock rom ESD2 G935F : JIO

:confused::crying: can anyone help
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
------------------------------------------

Latest update to guide: Jul. 5, 2020

------------------------------------------

Hi everyone!

Many users browse these forums coming from Google or YouTube and have trouble navigating between many guides and threads expecting a working knowledge of Android devices. Many may say that if you don't know what you are getting into, don't do it, but this warning is not followed by many people. Instead of having to deal with the pleas for help from lost users with soft bricked phones, I decided we need a 'megathread' with accurate, easy to follow instructions with correct grammar and concise descriptions.

This thread is constantly updated. Please inform me with a reply or PM if you want anything modified

Sections:

Unlock the bootloader (required for most other modifications)

Install the TWRP custom recovery

Install Magisk for superuser/root

Install an OTA update while rooted
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Section 1:

Unlocking the bootloader (Windows Only)

If your device is a T-Mobile version, you must first request an unlock token from this website to complete this section. Your device may also need to be SIM unlocked. Check your carrier website for details. Using the cable included in the box is also recommended.

Step 1:

With your phone turned on, open

Settings

. Scroll down to the bottom and select

About phone

. Touch

Build number

quickly until a toast message (grey rectangle at the bottom of the screen) appears reading You are now a developer!. Go back one screen to the main settings list and select

System

. Select

Developer options

. Turn on the switch next to

OEM unlocking

. Scroll down a small bit and turn on the switch beside

Advanced reboot

. Scroll down a bit more and turn on the switch beside

USB debugging

. Go back to the home screen.

Step 2:

Plug your phone into your computer with the cable supplied in the box. On your phone, look in the notifications for a message that says: "Android System Charging this device via USB." Touch the notification once to expand it and again to open it. Choose

File transfer

from the list. Download and extract this zip file by right clicking it, clicking

Extract All

, then

Extract

. (File Credit: Google) This file contains the official ADB and Fastboot binaries. Open

File Explorer

and navigate to

This PC

. Under

Devices and drives

, click on the CD drive labelled with a bunch of numbers. Click on

OnePlus_USB_Drivers_Setup

and click yes in the User Account Control popup. Click

Ok

then

Install

, then

Finish

. Navigate back to the extracted ADB and fastboot files (the folder will likely be named platform-tools). With this folder open, hold shift and right click on the blank space. Click

Open command window here

or

Open PowerShell window here

. Unlock/wake up your phone. Type in the terminal window on your computer followed by the enter key

adb devices

A prompt should appear on your phone. Click Ok. Type followed by the enter key

adb reboot bootloader

Your phone screen should show the OnePlus logo as well as the words FastBoot Mode briefly. Type followed by the enter key

fastboot oem unlock

Warning: This next step will wipe your phone. On your phone, use the volume down key to select

Unlock the bootloader

and then the power key to select. Your phone will then be wiped and restart automatically.

Step 3:

Follow the phone's initial setup exactly how you would if you were setting up a new phone. Restore any backup you have now. Once completely set up, follow the instructions from Step 1, ignoring the

OEM unlocking

switch. I also recommend typing this followed by enter

adb devices

A prompt should appear on your phone. Click Ok.

Your device is now Bootloader Unlocked.
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Section 2:

Installing TWRP (Windows Only)

Your bootloader must already be unlocked, and you must be on the latest version of OxygenOS. Using the cable included in the box is also recommended.

Step 1:

With your phone turned on, hold the power button and until the reboot options menu appears on the right side. Click

Bootloader

. Plug your phone into your computer with the cable supplied in the box. Download these two files (File 1 for Android 10, File 1 for Android 9, File 2), which now work on both the OnePlus 7 Pro and OnePlus 7. (File Credit: [MENTION=4712355]mauronofrio[/MENTION] and Team Win Recovery Project). Put these files somewhere accessible, such as your Desktop.

Step 2:

Open the folder with your ADB and Fastboot binaries (the folder will likely be named platform-tools). With this folder open, hold shift and right click on the blank space. Click

Open command window here

or

Open PowerShell window here

. Type in the terminal window

fastboot boot

followed by a space. Drag the image/img file you downloaded called twrp-3.3.1-79-guacamole-unified-Q-mauronofrio into your terminal window. The resulting command in your terminal window should read something like this

fastboot boot C:/Users/Arden/Desktop/twrp-3.3.1-79-guacamole-unified-Q-mauronofrio.img

If it does, click the enter key.

Step 3:

On your phone, enter your PIN/Password/Pattern if requested. You should now see a screen with grey boxes. This is the TWRP recovery. Click

Advanced

, then

ADB Sideload

, then swipe the bar at the bottom to the right. On your computer, type

adb sideload

followed by a space. Drag the zip file you downloaded called twrp-3.3.1-79-guacamole-unified-installer-mauronofrio into your terminal window. The resulting command in your terminal window should read something like this

adb sideload C:/Users/Arden/Desktop/twrp-3.3.1-79-guacamole-unified-installer-mauronofrio.zip

If it does, click the enter key. On your phone, you will see some text scrolling in a black box. Once the button appears on the bottom right, click

Reboot

.

Your device now has the TWRP custom recovery.
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Section 3:

Installing Magisk

You must already have TWRP installed to complete this section.

Step 1:

On your phone, download the Magisk installer zip (File Credit: topjohnwu). If you are not already in the TWRP recovery, hold the power button and until the reboot options menu appears on the right side. Click

Recovery

.

Step 2:

Enter your PIN/Password/Pattern if requested. You should now see a screen with grey boxes. Choose

Install

and navigate to the folder you downloaded the Magisk file to. Select the Magisk file (likely named Magisk-20.4.zip) and swipe the bar at the bottom to the right. Once the button appears in the bottom right, click

Reboot

.

You now have Magisk root.
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Section 4:

Installing an OTA update while rooted

You must be rooted to complete this section.

Step 1:

If you have any themes installed, such as Renovate ICE, Swift Themes, RoundyUI, or Substratum themes, remove them before continuing. Remove the Call Recording Enabler module if you have it. Restart if needed.

Step 2:

Click on the system update notification. If it does not appear, open

Settings

, scroll to the bottom and click

System

, scroll to the bottom and click

System updates

. Click on the

Install

or

Download and Install

button and let it complete. Do NOT click Reboot.

Step 3:

Open

Magisk Manager

and click the hamburger menu in the top left (3 horizontal lines). Click

Downloads

and then click the search icon (magnifying glass) in the top right corner. Type "TWRP" and click enter. Click the download arrow beside the module named

TWRP A/B Retention Script

. Do NOT click Reboot.

Step 4:

Click the back button in the top left, followed by the hamburger menu in the top left as well (3 horizontal lines). Click

Magisk

and then click the top

Install

button, followed by

Install

again, then

Install to Inactive Slot

. You may now click

Reboot

.

You now have updated your phone's OxygenOS. Reinstall any modules or themes deleted in this process if they are compatible.
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
(reserved extra section)
[OnePlus 7 Pro Guides, News, & Discussion] protechtedd:
Great idea, very thorough!
[OnePlus 7 Pro Guides, News, & Discussion] anoymonos:
You forgot the very first step, which is to get sim unlocked. Without this OEM unlock will be greyed out
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Oh, my bad. In my country it's illegal to sell locked phones
[OnePlus 7 Pro Guides, News, & Discussion] teddyearp:
I am curious about this step. For most all time with a phone that has an unlockable bootloader the command has always been:

fastboot [B]oem[/B] unlock

Why do we use 'flashing' instead of 'oem' in that command for this phone?
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Good question, actually. I'm not entirely sure why the wording change, but the command has been different on close to stock devices since the Nexus 6P/5X. If someone more knowledgeable could explain, that would be great
[OnePlus 7 Pro Guides, News, & Discussion] redpoint73:
On earlier OOS versions, the command "fastboot boot" is broken, and this won't work. Process in that case is to flash a patched boot image, root with Magisk, and then flash TWRP like a Magisk module.

Your method works for those that have updated to more recent OOS versions. However, there are folks still out there with older OOS versions, where "fastboot boot" won't work (don't know the cutoff exactly).
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Thanks for the info. I'm not going to add the patched image way, as extracting the boot.img is annoying and I'm trying to avoid methods that rely on someone else providing files. However, I'll add a note to the TWRP install section asking for 9.5.7 minimum as everyone should be on that update by now
[OnePlus 7 Pro Guides, News, & Discussion] Yayodroid:
I hope this gets stickied. Thank you for the guide
[OnePlus 7 Pro Guides, News, & Discussion] Yayodroid:
just an update, fastboot flashing unlock didnt work for me, but fastboot oem unlock did
[OnePlus 7 Pro Guides, News, & Discussion] ph1dft:
For me also...the right command seems still fastboot oem unlock
[OnePlus 7 Pro Guides, News, & Discussion] sovi3tss:
Is this method applicable to all versions ? Im getting the GM1910: China version , I have used this method when i had my OP6 so i just have to get the correct TWRP version, if the IMG boots the TWRP i guess the zip will be good to go when flashing .

Cheers
[OnePlus 7 Pro Guides, News, & Discussion] Xumit:
I confirm this. Tried this tutorial but was stuck at flashing stage. A YouTube video provided further assistance. Fastboot oem unlock worked.
[OnePlus 7 Pro Guides, News, & Discussion] scottspa74:
I think it's great you're supplying these basics. Wish I had it when I first rooted first Android device (htc Evo 4g on sprint). Kudos.
[OnePlus 7 Pro Guides, News, & Discussion] redpoint73:
I'm skeptical that the command "fastboot flashing unlock" is applicable for this device. I think it may just be a carryover from some other device(s). The original poster responsed that it is applicable to "close to stock devices since the Nexus 6P/5X" but never explicitly stated whether it even worked for him on the 7 Pro.

Far as I can tell "fastboot oem unlock" is the correct and only command on this, and other previous OnePlus devices (and is also the command that worked for me).
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
You can always try rooting and running the software. It's pretty simple to unroot. You just have to wipe data/cache and flash the stock ROM zip
[OnePlus 7 Pro Guides, News, & Discussion] rapdes:
This is a great thread. I'm upgrading my phone from OP5 to OP7pro and reading thru everything to understand the whole A/B slot thing. I think I've got it all figured out for when my phone arrives. However I do have one remaining question, that I couldn't find the answer too.

Let's say I have TWRP on my phone and I'm rooted. When a new version of TWRP is released how do I update the TWRP. Am I correct in that all I need to do is flash the new TWRP installer zip file and there's no need to have the new IMG file for any reason? Then I just reflash Magisk.
[OnePlus 7 Pro Guides, News, & Discussion] Geoz:
Correct
[OnePlus 7 Pro Guides, News, & Discussion] Muzzy1:
Hi I just unpacked my op7p and reading your thread. Thnx for this.

At the end of session one you write this?

I also recommend typing this followed by enter

Code:

adb devices

A prompt should appear on your phone. Click Ok.

Is this at the end of session one or before while typing the other stuff?
[OnePlus 7 Pro Guides, News, & Discussion] Phantom Thief:
It's right at the end and before you proceed to the step 2 just to trigger the pop-up on your phone to allow the connection to the phone. Just as a safety measure to make sure the rest will work flawlessly until the end.
[OnePlus 7 Pro Guides, News, & Discussion] carro_d:
Could somebody please help me and post instructions for Mac same as in OP
[OnePlus 7 Pro Guides, News, & Discussion] jprovan1:
Having a ****ty time doing this. I keep getting this error. Help please.
[OnePlus 7 Pro Guides, News, & Discussion] jcsww:
Do you have the ADB/fastboot SDK installed?
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
What OOS version is your device on? You may need to update
[OnePlus 7 Pro Guides, News, & Discussion] null0seven:
Somehow Youre pc (windows ?) does not see the phone now.

Oneplus drivers ?

Fastboot Adb 1.4.3 instaled ?

Or platform tools ?
[OnePlus 7 Pro Guides, News, & Discussion] puredrive1:
How do i go about reverting back to a pre-root unlocked bootloder state?
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Follow the steps outlined in the unbricking guide found in the same section as this one. Your device will be locked again automatically
[OnePlus 7 Pro Guides, News, & Discussion] Amrooz:
Hello

i am on GM1910 Oxygen Os 9.5.11 GM21AA. i have ran through this setup and everything went fine. until i restarted my phone to apply magisk installations and the phone went into bootloop into twrp. i had to install the original firmware to unbrick my phone.

is there is a way to avoid the bootloop?
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
What's the exact step you did that caused it to bootloop?
[OnePlus 7 Pro Guides, News, & Discussion] amr.elzolafy:
Step 4
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
There is no step 4 for installing Magisk. Could you tell me exactly what you did before it happened?
[OnePlus 7 Pro Guides, News, & Discussion] Soumy1234:
Is it still true that an OTA can't be done with a modified system partition? I don't have an OP7P (or any A/B device for that matter), but on my Galaxy Grand Prime (A only), I like to manually delete system apps I don't need in twrp. I know there's a Magisk module but I prefer removing the apps permanently.
[OnePlus 7 Pro Guides, News, & Discussion] trix4rix:
stuck

I'm getting stuck on starting ADB sideload during step #2, it just says "starting" and doesn't continue. Eventually it times out.

If it helps I have the T-mobile version, but it's been flashed with the international version. Also, TWRP doesn't stay as bootloader, it constantly resets to the OP version, I have to do the fastboot boot every time.

Thanks in advance,

Rick

edited to add step #
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Common issues are not enabling sideload mode in TWRP, entering the wrong pin/pattern/password, using outdated ADB drivers, or using a 3rd part USB cable
[OnePlus 7 Pro Guides, News, & Discussion] trix4rix:
my issue is during enabling sideload mode, did you even read my issue? I'm using the most up-to-date platform tools, I'm certainly entering the right pin, and I'm using the brand-new 1st party cable (and I've even swapped it for another 1st party cable).
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Enabling sideload is a two step process. You have to enable it in the TWRP recovery and run the command. I'm ensuring you did both steps
[OnePlus 7 Pro Guides, News, & Discussion] HiGhDRo3o5:
having issue with the fastboot oem unlock command. i keep getting a fastboot error command failed message and also a failed (remote please flas unlock token first) message any help is greatly appreciated
[OnePlus 7 Pro Guides, News, & Discussion] HiGhDRo3o5:
After about 10 tries still same issue
[OnePlus 7 Pro Guides, News, & Discussion] mjdavis871:
Looks like you have the TMO Version. You need sim unlock, and the bootloader unlock token from OnePlus. Search the threads, there's a lot of info on how to get those done.

You can always switch to the international version and bypass all that, but the Sim will still be locked.
[OnePlus 7 Pro Guides, News, & Discussion] HiGhDRo3o5:
Phone is sim unlocked
[OnePlus 7 Pro Guides, News, & Discussion] HiGhDRo3o5:
Been unlocked since yesterday
[OnePlus 7 Pro Guides, News, & Discussion] jcsww:
Then flash to the GM21AA firmware and then you will able to bootloader unlock the device. If you want an unlocked bootloader on the T-Mobile firmware, you need to request the token from OnePlus unless you plan on flashing back after unlocking the bootloader.
[OnePlus 7 Pro Guides, News, & Discussion] mjdavis871:
So that's the first step, you need to get the bootloader unlock token from one plus. I don't have the url, but it is all over the forums on how to get it. Takes about 7 days, and once you have it you can unlock your bootloader.
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
The very first step of my guide warns you about the unlock token and has a link to the website
[OnePlus 7 Pro Guides, News, & Discussion] HiGhDRo3o5:
The unlock code i had didnt work so trying to figure out a work around
[OnePlus 7 Pro Guides, News, & Discussion] Luis Alfonso 93:
I already have my code to unlock the bootloader but I have several doubts.

What ROM model of op7p can I install to make it international?

Once the bootloader is open, can it be closed again?

I ask because it is said that Drm and Google Play support may be broken if the bootloader remains open

Is there any extra advantage to switching to the global ROM instead of staying on the other than the updates?
[OnePlus 7 Pro Guides, News, & Discussion] jcsww:
The bootloader can be relocked and unlocked again, if needed.
[OnePlus 7 Pro Guides, News, & Discussion] Luis Alfonso 93:
And can I have twrp and magisk in the ROM and lock the bootloader again? sorry for these question, I'm still not sure if I change it to international or stay in the tmobile rom
[OnePlus 7 Pro Guides, News, & Discussion] jcsww:
You can, but that is going to cause you a lot of grief in the long run. TWRP and Magisk can be quite temperamental and will need to be reflashed regularly, especially after updates. Unlocking the bootloader will wipe the device every time. Hopefully Magisk hide module will produce the result you want.
[OnePlus 7 Pro Guides, News, & Discussion] talroot:
I just did all of this yesterday when I got my unlock token from oneplus.

What message did you get when you copied and pasted your unlock code into the oneplus website tool?
[OnePlus 7 Pro Guides, News, & Discussion] Ozzief16a:
Need help Please, I've bricked my new OP 7 Pro.

I was able to successfully unlock the bootloader, install TWRP and install Magisk on my OP 7 Pro using the guide provided by the OP. The "bricking" occurred while trying to exit TWRP after successfully

installing TWRP and Magisk. I wasn't expecting to encounter any issues when exiting TWRP so I wasn't watching too closely when the "bricking" occurred. I believe I pressed the Recovery Button on the

TWRP control panel thinking that the phone would reboot back into a normal startup. Instead the screen went black for a few seconds then the Unlocked bootloader warning screen came up saying in part

"! WARNING. The bootloader is unlocked and software integrity cannot be guaranteed...". That's as far as the booting up process goes, the bootup seems to freeze at that point with the Unlocked bootloader warning

screen showing. The only thing that works is the ability to turn the phone off by pressing and holding the Vol. Up, Vol. down and Power buttons at the same time for 10 seconds. Also my Win 10 PC does not recognize

my OP 7Pro since the occurrence. So I can't boot up my new phone and I can't connect to my pc. I could surely use some help on this one. Thanks in advance.

Edit: I've successfully "unbricked" my phone! Thank those of you who responded to my request for help. The solution to my situation turned out to be quite simple: First press the power button to start the boot up

process. As soon as the Bootloader unlocked warning screen comes up press and hold the Vol. UP button and the Power button at the same time until the normal boot up process begins (takes about 10 seconds of

holding the Vol. Up and Power button at the same time). That's all there is to it. This method may not clear all "Bricked" problems but it certainly got me out a jam. Thanks again guys.
[OnePlus 7 Pro Guides, News, & Discussion] bpearson325:
There's Hope for you! Search and download the MSM tool for your phone version. Install the tool on you PC. Open the tool, Turn the phone off. Plug in you power cord to the PC and on your phone press the volume up, volume down and power button for 5 seconds, plush your phone to the cord( while holding the three buttons). Look at the PC for connection status, once you see connected, release the buttons on the phone and press start on the tool.

You will be back to OOS stock and can re apply from there. I've done this a million times(maybe not a million just feels like it). You will loose everything, if you backed up you can reinstall later.

Good luck!
[OnePlus 7 Pro Guides, News, & Discussion] Ozzief16a:
Thank you my friend I'm going to try this remedy immediately.
[OnePlus 7 Pro Guides, News, & Discussion] extremeinside:
Hello everyone can someone explain to me how to do EFS Partition backup for Oneplus 7 pro.

Thank you.
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Open TWRP, click backup, and check the box beside EFS
[OnePlus 7 Pro Guides, News, & Discussion] indiana99:
Thank you Arden144. Worked like a charm.
[OnePlus 7 Pro Guides, News, & Discussion] Limon_Lime:
I messed up while trying to get the OTA, it installed and rebooted automatically. Did I mess up my phone? TWRP and Magisk were uninstalled obviously, but do I need to do anything else?
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Nope, you can just install TWRP and Magisk like normal
[OnePlus 7 Pro Guides, News, & Discussion] saiz136:
Hi, can I lock again the bootloader and still get HD streaming in Netflix?
[OnePlus 7 Pro Guides, News, & Discussion] redpoint73:
You need to return the phone to stock condition in order to lock the bootloader, otherwise you will brick (soft brick?) the device.

In other words, if you want root, and/or custom recovery, you need to leave the bootloader unlocked. Those things go hand in hand, no way around it.
[OnePlus 7 Pro Guides, News, & Discussion] Arden144:
Don't just lock your bootloader. Since the phone needs to be in a stock state, the easiest way is to use the MSM unbrick tool, which restores stock and relocks your bootloader automatically
[OnePlus 7 Pro Guides, News, & Discussion] saiz136:
Thanks, what I mean is if I lock again the bootloader using MSM or any other means to go back to stock, will I still get back the L1 Widevine security or HD streaming in Netflix, Amazon, etc.?

Anyway, mine is unlocked already since Sunday and running the latest Android 9 with Magisk installed.
[OnePlus 7 Pro Guides, News, & Discussion] redpoint73:
Back to stock (no root, no TWRP)

then

lock the bootloader. Then yes, you will have Widevine L1 status again.
[OnePlus 7 Pro Guides, News, & Discussion] KapilNagpal01:
You are perfectly fine on slot a. Whenever you install new Ota you would be shifted to slot b. It is usual that any new Ota is installed on inactive slot and it gets active once you reboot after installing Ota. All is well and no worry bro.