yashsingh1/xdaforums huggingface dataset:
[OnePlus 7T Guides, News, & Discussion] the_link_8:
hi, i went to the link where you can request for the token for unlocking the bootloader and it is asking me for the unlock code and i do not know what that is, i think that it is asking for the sim unlock code but i bought this phone in ebay and it came already unlocked so i do not know what to do, so if someone could help me out with this i will appreciate that.
[OnePlus 7T Guides, News, & Discussion] Chxc:
Follow the Oneplus instructions, there isn't anything better that explains the process.

Please understand the difference between carrier sim unlock and device bootloader unlock before proceeding.

The Oneplus link is used for official unlock of bootloader, not carrier sim unlock. Carrier sim unlock happens inside the OS.
[OnePlus 7T Guides, News, & Discussion] asvg:
I am a real noob in this, so forgive me if these are dumb questions.

What do you do with the TWRP file? I assume you use it in the all in one tool's "Recovery Flasher and Device Rooter", right?

Also, you only use the all in one tool to EDL the device and nothing more?

Lastly, can you relock your device after changing it to the international version?

Thanks in advance!

(I also agree with one of the users suggesting to make a video of this...)
[OnePlus 7T Guides, News, & Discussion] super michael:
I did this on AMD Ryzen 5 2600 Six-Core Processor, 3850 Mhz, 6 Core(s), 12 Logical Processor(s). In my last post (above) I tried to explain how to get drivers to work properly.
[OnePlus 7T Guides, News, & Discussion] asvg:
When did you do this? Immediately after running the MSM patched toolset?

Actually nevermind, I understood what you meant. During the flash you didn't let the mobile show the T-Mobile screen and went into recovery directly.

The flashing continued for me, but gave several errors at the end:

ending sparse 'system_a' 1/5 (523136 KB) FAILED (Write to device failed (Invalid argument))

fastboot: error: Command failed

Invalid sparse file format at header magic

Sending sparse 'vendor' 1/2 (785569 KB) OKAY [ 18.609s]

Writing 'vendor' FAILED (remote: 'Partition not found')

fastboot: error: Command failed

Invalid sparse file format at header magic

Sending sparse 'product' 1/2 (785436 KB) OKAY [ 19.774s]

Writing 'product' FAILED (remote: 'Partition not found')

fastboot: error: Command failed

Rebooting OKAY [ 0.000s]

It occasionally gives remote: 'Flashing is not allowed for Critical Partitions' if I retry.

EDIT: changed USB port and it worked. Gotta find a way to lock the bootlocker now.
[OnePlus 7T Guides, News, & Discussion] w8812:
Hi,

I tried to follow the initial instruction. And I made it to Step 3 "Boot into EDL on 7T". I used the ALL IN ONE tool to reboot EDL and the MSM can recognize it. But I accidently hit the start button on the MSM tool and let it finish the flashing... (1st mistake)

Then I am stuck on the FastBoot screen.

After this, I tried to use the token, but use the "fastboot oem unlock" and forget to apply "

fastboot flash cust-unlock unlock_code.bin" in advance... (2nd mistake)

In the FastBoot screen, it did show the device state is unlocked.

Before I make more mistakes, what can I do now?

I notice this post "https://xdaforums.com/t/op7t-t-mobi...l-to-restore-your-device-to-oxygenos.4004005/"

Can it work in my situation?

Any comments or suggestions are appreciated!!!

@asvg
[OnePlus 7T Guides, News, & Discussion] w8812:
One more thing need to mention, even I power it off. Once I connect the phone to PC, it will go to FastBoot mode directly. And the MSM cannot recognize it.

I guess the TOOL ALL IN ONE is the only option to save the phone?

BTW, the device shows as "Kedacom USB Device: Android Bootloader Interface " in PC Device Manager.

@Chxc
[OnePlus 7T Guides, News, & Discussion] the_link_8:
thanks for the help, i followed the instruccions in the link and they say that you have to get into fastboot mode and there you will get the unlock code, but they do not say how actually get it, so i was searching for the instruccions and it seems that you have to enter a comand ( fastboot.exe oem get_unlock_code ) the thing is that when my phone is in fastboot mode my pc does not regconize it, but as soon as my phone start android, it recognize it and i can even use adb, i used this command (adb devices) when the phone is running android and it works but when i am in fastboot mode and i use this one(fastboot devices) it does not do anything, my pc does not even detect the phone.
[OnePlus 7T Guides, News, & Discussion] super michael:
Before the flashing (before Step 5)

Nice! :)

Boot to fastboot and run fastboot oem lock

Source: https://xdaforums.com/t/how-to-relock-bootloader-of-oneplus-7t.4011135/

Be aware: Every unlocking of Oneplus 7T will wipe the User Data.

This is what I tried to explain above (post) - you need different drivers for every mode!

Normal Connection

Here connected "normal" (meaning the device is running and yould copy files to or from it) it sais HD1907, same as device Name in Settings. Here you can use the ADB commands if you enabled USB Debugging in settings (i.e. adb devices).

View attachment 5179971

fastboot connection

Here connected in fastboot (Android ADB Interface) here you can use the fastboot commands (i.e. fastboot oem device-info)

View attachment 5179973

EDL Mode

And finally here in EDL Mode (Qualcomm HS-USB...) it should NOT say QHUSB_BULK! as far as I know you can only send files to the device with the MSM Tool. I think EDL is some sort of "last resort" mode to flash images to bricked devices.

View attachment 5179975

You need to look in Device Manager in every mode and adjust drivers accordingly. (Look for Yellow [!] for not recognized / installed devices) maybe this explains it to some extent.
[OnePlus 7T Guides, News, & Discussion] super michael:
Wrong quoting, please delete
[OnePlus 7T Guides, News, & Discussion] the_link_8:
waoo!!, got it

thanks, i will follow your instructions carefully.
[OnePlus 7T Guides, News, & Discussion] the_link_8:
i finally was able to request the token, it seems that the issue that i had was that the drivers were installed but my computer was not using them when i plugged in the phone, so i had to go to system manager and did this,

go under 'Other devices' listed as something like 'Android ADB Interface' or 'Android Phone' or similar. Right click that and click on 'Update Driver Software...'

Select 'Browse my computer for driver software'

Select 'Let me pick from a list of device drivers on my computer'

Double-click 'Show all devices' and select android devices and that is it, i am leaving the link here where i found the information, so thanks for the help and now i am just waiting for the token in order to continue the tutorial.

https://forums.oneplus.com/threads/guide-how-to-get-your-device-recognized-on-adb-fastboot.465778/
[OnePlus 7T Guides, News, & Discussion] hugotias:
The guide worked on my recently bought T-mobile 7T for the EDL part, but I never successfully fastboot flashed all the partitions and I always got " remote: 'Flashing is not allowed for Critical Partitions' " errors, from my Windows 10 laptop. Later I switched to an older Windows 7 laptop. And bingo! It worked like gangbasters!
[OnePlus 7T Guides, News, & Discussion] slickrick423:
I completed everything and had everything working. I went to lock the bootloader, and am now stuck on the "system corrupt" screen and a boot loop. Can I just flash the GLOBAL firmware again? Or do I have to start the process all over again?
[OnePlus 7T Guides, News, & Discussion] slickrick423:
Well, was finally able to get it working by manually putting it in EDL mode and redoing the entire process. Just terrified to attempt to re-lock the bootloader.
[OnePlus 7T Guides, News, & Discussion] the_link_8:
hi, i already did the whole process but when i tried to relock the bootloader i got an error saying the system was corrupted and the phone was stuck on that screen so i unlocked the bootloader one more time and it started to function. again and everything is working great, what happens is that I wanted to convert my phone to the international version and re-lock the bootloader so that I can have the advantage of having the international version, so is there a way to re-lock the bootloader and keep running the international version?
[OnePlus 7T Guides, News, & Discussion] thetoady:
so I'm hitting the same 'Flashing is not allowed for Critical Partitions' issue. I dont have any other windows machiens to try it against (just linux boxes). any ideas?
[OnePlus 7T Guides, News, & Discussion] thetoady:
ok, figured it out (I think) what was going on, for others that have the issue.

Reading another thread, I saw that the all in one tool, could flash a fastboot rom , so I did that (and it worked perfectly), and while doing that I saw what was the problem.

when you do the fastboot reboot fastboot, you get to the screen that has chinese and english. That's good. that's what you want, you dont want to continue going into english and selecting fastboot that's the mode you seem to need to be in to overwrite critical partitions (or at least the all in one tool was able to do that).

I kept on putting it back into "normal" fastboot mode and that was the problem. what a headache. But now I have a dual sim global 7t with the bootloader back to being locked.

With that said, I did seem 2 lose 2 pieces of "functionality" going from t-mobile to global.

1) I don't have wifi calling anymore.

2) the icon packs (including standard android icons) don't seem to be installed. while I can find the 2 icon packs oxygenos in the play store (round and square), I can't seem to find the "normal" android ones. I really can't stand oxygenos' standard sms icon.
[OnePlus 7T Guides, News, & Discussion] VillaRuizHN:
Hello friends! My mobile has the bootloader unlocked using the token code that I requested on the official Tmobile website, so I just go to step 7? or do I still need to use msm download tool?
[OnePlus 7T Guides, News, & Discussion] AGNBSL:
Hello, thank you for your guide. I did convert my 7T to global successful :D

But when i lock bootloader, device is corrupt and can't boot. Is there anyway to lock bootloader and work on Global firmware? Since i'm not flashaholic anymore, i don't want BL stays unlocked (also OTA update is easier in BL Locked state). Help me guys :D

EDIT: After convert to Global, i did OTA update, then locked BL. Now it's working like charm.
[OnePlus 7T Guides, News, & Discussion] Chxc:
fantastic addition, thank you for sharing!
[OnePlus 7T Guides, News, & Discussion] Chxc:
If my memory serves me right, you should unlock your bootloader before running the MSM tool.

Bootloader unlock and MSM tool target different partition(s), they shouldn't affect each other than locked bootloader will cause your MDM tool to fail.

Try unlock bootloader again and make sure you follow the steps.
[OnePlus 7T Guides, News, & Discussion] Chxc:
Correct, always do a native OS system rewrite through OTA
[OnePlus 7T Guides, News, & Discussion] Chxc:
You have to use a compatible fastboot.exe binary, I personally used the OnePlus suggested.

If your device doesn't detect the device, please check with your drivers to remedy your situation.
[OnePlus 7T Guides, News, & Discussion] Chxc:
This entire process is filled with uncertain variables. Very glad you got it working.
[OnePlus 7T Guides, News, & Discussion] Chxc:
Once booted into global firmware, use OTA to perform a full system upgrade to conform system integrity, then proceed to bootloader unlock.
[OnePlus 7T Guides, News, & Discussion] Chxc:
MDM tool step is a must complete step after blootloader unlock.
[OnePlus 7T Guides, News, & Discussion] Chxc:
Have you tried a full system refresh through OS's OTA?
[OnePlus 7T Guides, News, & Discussion] thetoady:
yes, I'm running the latest firmware (and relocked the bootloader, which should demonstrate that he full system update worked).

I figured out the wifi calling issue. Basically, it doesn't play nice with dual sim. it will only show the wifi calling option on the primary data sim (as I'm overseas had my primary data sim to be my overseas sim). With that said, even when I disabled my primary sim, and saw the wifi calling option, it wasn't seeming to connect to tmobiles servers, at least it refused to make a call when phone in airplane mode with wifi turned on.
[OnePlus 7T Guides, News, & Discussion] Chxc:
Also, I would personally object to messing with your bootloader partition by flashing using all in one tool as experience has shown it is not necessary if you can ensure fastboot binary version.
[OnePlus 7T Guides, News, & Discussion] Chxc:
Wifi-Calling is a very carrier sensitive feature. My personal experience is that don't use it unless the your primary carrier support the OnePlus's implementation of Wifi-Calling, also Wifi-Calling providing carrier's sim is on primary, and your are using that primary sim for data connection as well.
[OnePlus 7T Guides, News, & Discussion] thetoady:
you're right! switched my primary calling and data sim to t-mobile sim and it worked from overseas in airplane mode and shows the icon on top. of VoWifi. thanks that's very helpful. just had a decently long chat with my parents to test it out. manually switching it when I have to call the US isn't such a big deal.

though when I just tried to reproduce it, it didn't work. so it seems temperamental.
[OnePlus 7T Guides, News, & Discussion] Chxc:
I'm glad you got it figured out.

As with manual switching, may I suggest to take a look with the App on play: Tasker. It might have the necessary privilege without system being rooted to automate your switching task. It's a paid app with a trial period, but I personally recommended it, strongly.
[OnePlus 7T Guides, News, & Discussion] the_link_8:
thanks it works.
[OnePlus 7T Guides, News, & Discussion] the_link_8:
thanks i already did the whole process and now my phone is running the international version.
[OnePlus 7T Guides, News, & Discussion] thetoady:
sort of. It works, but is unreliable to connect via vowifi. I have tasker (and have taser setup to enable call recording on each reboot, no root or bootloader unlocking neccessary)
[OnePlus 7T Guides, News, & Discussion] Chxc:
It's my personal opinion this unreliability might has something to do with the rather opaque nature of VoWifi hand shake process. Thus, making it harder to anticipate edge cases in tasker.
[OnePlus 7T Guides, News, & Discussion] thetoady:
I'm not talkin tasker, I'm talking just doing it by hand in the settins menu, its unreliable to setup, and no idea why its happening. need logs
[OnePlus 7T Guides, News, & Discussion] Chxc:
Unreliable in what sense? My curiosity runs amuck, hah.
[OnePlus 7T Guides, News, & Discussion] dimelus:
Can someone help me I already tried this multiple times.

I'm on step 8, after I run flash-all.bat (CMD with admin rights) after some steps my phone just boot T-Mobile rom.

If i try to go into recovery(power and vol+) there is a msg saying that the boot loader is unlocked and software integrity cannot be guaranteed and it just boot again in t-mobile rom.

What should I do?

I got this phone from B&H Photo Video as an T-Mobile Unlocked device.
[OnePlus 7T Guides, News, & Discussion] Chxc:
CMD DOS environment =/= PowerShell

I have never got this last flash to work on anything other than admin priv PowerShell, neither should you.
[OnePlus 7T Guides, News, & Discussion] dimelus:
Just tried with power shell

AfterRebooting into fastboot my phone just go directly to T-mobile stock rom... What should i do now?

If i turn it off and and do power and vol +it just start on t-mobile again...the phone don't go into recovery and my powershell is stuck on WAITING FOR ANY DEVICE.

EDIT:

I managed to get into recovery(power and vol down, and went into advanced options and boot into recovery.

Now Power shell continue to do those things but there are tons of errors. (Screenshoot 6).

After it finished it just bot again on t-mobile
[OnePlus 7T Guides, News, & Discussion] Chxc:
Are you surr you are using the latest fastboot binary?

This is the classic behavior of not starting the final flashing process using the latest fastboot.exe.

Please consider read more into the details of this guide. This stuff is all there.
[OnePlus 7T Guides, News, & Discussion] dimelus:
I'm actually new to all of this...

I download all the files from this topic, used power shell and did the manual commands copying and pasting from step 7.
[OnePlus 7T Guides, News, & Discussion] Chxc:
Any more luck?
[OnePlus 7T Guides, News, & Discussion] dimelus:
nope.

I'm trying to download everything again in a different pc...

Yesterday I tried all different guides on this...more than 10 hours trying haha
[OnePlus 7T Guides, News, & Discussion] thetoady:
not enabling reliably or staying connected (which makes me scared to even have it on overseas if I mistakenly call or accept a call without realizing it). If I jump between prefer mobile or prefer wifi, sometimes it enables when it didn't enable before.
[OnePlus 7T Guides, News, & Discussion] Chxc:
Just keep trying. The final fastboot.exe flash is a bit tricky. Took quite a bit hair pulling for me to get lucky.

Make sure, you are not suppose to enter the final flash command one by one, they should be queued with a single copy of paste on powershell or batch invocation.

During the final flashing process, you are NOT suppose to see fastboot screen on your device nor you need to touch it until it's all done and boot into the global firmware, during the middle reboot, 7T should display stock recovery screen (even though it's responding to fastboot commands, don't ask don't know)

Again, you are very close. Keep trying and gl.
[OnePlus 7T Guides, News, & Discussion] Chxc:
I definite see your reservation, it's definitely a lot more trickier when hefty carrier bills are involved.

If VoWiFi is perferred, then you should always prefer wifi as roaming mobile is always throttled to 128kbps on T-Mobile at least, not to mention real world roamed network's own congestion.

Additionally, you might be use the notification icons of the ugly VoWifi as some sort of indicator of success, but don't take my word for it. Give it a try yourself.
[OnePlus 7T Guides, News, & Discussion] thetoady:
yes, I base it on seeing the icon. And I have 256kbps (one plus plan), but in general my idea would be to use something like tasker to switch the sims around if I'm on wifi or not. so when I go out of wifi, it switches to local sim, when I'm back in wifi, it switches to t-mobile sim for vowifi.

with all that said, the design decision to require vowifi to only work on primary data sim seems to be a terrible design decision IMHO. I really wonder why it's required. especially when on wifi and the data sim isn't actualy going to be actively used.
[OnePlus 7T Guides, News, & Discussion] Chxc:
Could be a just a practical and security vulnerabilities perversion concern to making dropping and switching between unsafe, unreliable alternative Wi-Fi data paths possible by locking your primary data connection as fail safe.

Also, in your opinion, does the plus worth the extra $10 a month for doubling from 128 to 256 mbps for roaming?
[OnePlus 7T Guides, News, & Discussion] thetoady:
I was granfathered into plus for free, haven't actively used it this time around, but in the past, it did feel a bit more snappy than what I remembered the 128kbps limit being. Somewhat because its a very rough speed limit. basically bursty, so when you burst fast, you are effectively locked out till it gets down. with twice the speed, your "cool down" period is half. though that's just my observation, no real data on it.
[OnePlus 7T Guides, News, & Discussion] Chxc:
Much appreciated for your kind share of these information.

Good luck!
[OnePlus 7T Guides, News, & Discussion] sat2pc:
I don't know what I can do. Flash operations from 1 to 6 work perfectly.

When I start with operations from 7, all works good with :

.\fastboot -w

.\fastboot flash boot boot.img

.\fastboot flash dtbo dtbo.img

.\fastboot flash modem modem.img

.\fastboot flash reserve reserve.img

.\fastboot flash recovery recovery.img

.\fastboot --disable-verity flash vbmeta vbmeta.img

.\fastboot --disable-verity flash vbmeta_system vbmeta_system.img

.\fastboot reboot fastboot

Next my phone restart on T-Mobile and:

.\fastboot flash abl abl.img

doesn't work.

I have always the same issue:

Sending 'abl' (1164 KB) OKAY [ 0.038s]

Writing 'abl' FAILED (remote: 'Flashing is not allowed for Critical Partitions

')

fastboot: error: Command failed

I really don't know what I can do. I tried several times and I tried on different laptop.

Maybe I miss something because I 'm french (not a native English speaker).

Any help will be so appreciate.
[OnePlus 7T Guides, News, & Discussion] Chxc:
The flashing process should not go into the T-Mobile reboot screen.

Make sure you are using the latest fastboot binary under powershell (not cmd) in admin priv.

This is a very weird process indeed, I wish you good luck.
[OnePlus 7T Guides, News, & Discussion] sat2pc:
Thank you.

I use latest fastboot (release 30.0.5) and I have installed this lastest fastboot in the same directory than Global ROM .

I have done all modifications (.\fastboot) in flash-all.bat

I have tried both Powershell (blue screen) : Windows PowerShell and Windows PowerShell (x86).

So, I don't know what I can try.

I fear the only solution will be to send the phone to oneplus company.
[OnePlus 7T Guides, News, & Discussion] Chxc:
Try a different cable, USB port, driver, and/or PC.

You are so close.
[OnePlus 7T Guides, News, & Discussion] Chxc:
What was the command you used to unlock your bootloader before the final fast boot flash?

Your device should boot into the stock recovery screen during the reboot in the middle, it's not getting you there. You shouldn't need to do anything for the fast boot flash as it will go into intentional firmware by itself.
[OnePlus 7T Guides, News, & Discussion] Chxc:
Also, looks like you are using the fastboot batch file that comes with the download. For your information, using that script without adding ./ to all lines will only invoke the pathed fastboot binary rather than the local fastboot binary in the directory.
[OnePlus 7T Guides, News, & Discussion] sat2pc:
I use the following command:

.\fastboot flashing unlock_critical

I don't have any errors.

Before I used MsmDownloadTool V5.0.13. However when download is finished the 'Stop' is still active. Does it work this way?

View attachment 5207737
[OnePlus 7T Guides, News, & Discussion] sat2pc:
I have inserted the following line at the top of flash-all.bat:

.\fastboot --version

which return version number: 30.0.5

I also have changed all 'fastboot' with '.\fastboot'.

But it always restart T-mobile rom.

I really don't find a solution.
[OnePlus 7T Guides, News, & Discussion] Chxc:
And you are under admin priv power shell using stock cable?
[OnePlus 7T Guides, News, & Discussion] sat2pc:
Yes, I'm using red stock cable and I'm under admin privilege (administrator on windows 10).

It drives me crazy because I have been an electronics and computer teacher for 25 years and this is the first time I have stopped with such a simple thing. And it's the phone of my son who is waiting for this phone.
[OnePlus 7T Guides, News, & Discussion] Chxc:
My next course of recommendation is the combination of the following

try again with new USB port(s), cable(s), driver, all inside a newly made local windows account, with a freshly download fastboot binary from Google, then repeat on a new PC if all fails.

I failed the flashing on Linux, so, give it a try if nothing else works for you.

This flashing certainly drove me closer towards madness. I sincerely wish you the best of luck.
[OnePlus 7T Guides, News, & Discussion] sat2pc:
I also failed on Linux.

After:

./fastboot reboot fastboot (root account)

it always restarts on T-Mobile.

I even don't know if i can send the phone to "Oneplus" company for reparation.

Any ideas where I could find T-mobile version of "modem.img"?

I could try to flash this version to get access to wifi and simcard.