yashsingh1/xdaforums huggingface dataset:
[OnePlus 7T Guides, News, & Discussion] andr3w282:
Thanks for the reply and sharing info for everyone. Glad what you did worked! What you describe(Global MSM Tool via North America version) is what I was going to attempt, but ended up trying something else first. Sharing below in case it helps anyone else:

While still digging last night and debating what to do I stumbled into the 'official' rollback files when they introduced OS 12 (before this latest patch). Those files and instructions are here: https://community.oneplus.com/thread/1181167844348919809

However something important to know is that the OS 12 latest update removed the local upgrade option via the gear under update stats (what the hell). More info on that here https://xdaforums.com/t/how-to-local-upgrade-since-android-12.4431607/. To work around that, there's an APK they provided here: https://community.oneplus.com/thread/1555060

Something else worth noting for any readers, is 7t is now EOL. It went EOL before this latest update. It seems unclear whether HD1901_11_F.20 is going to the last update or not, so it may be possible the bugs in OS12 on 7T will not be addressed (couldn't find anything saying it will be). https://www.xda-developers.com/oneplus-7-7t-end-of-life-final-update/

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

To rollback Unlocked, Unbranded 7T HD1907 (T-Mobile "factory unlocked") which was running HD1901_11_F.20 (and now displaying HD1901) back to OS 11, to fix the dual sim broken problem, did the following:

** The following will wipe your device **

1. Copy the rollback file from https://community.oneplus.com/thread/1181167844348919809 to phone root directory. Used the Global file (GM1903_11.H.31). You'll notice URLs for "IN"dia and "GLO"bal are the same URLs.

2. Copied and installed local upgrade APK file found here (Step 3 under rollback guide): https://community.oneplus.com/thread/1555060

3. Ran the Local File Upgrade APK file and pointed the application to the local file in step (1)

4. Waited approximately 5-10 mins for it to finish. Rebooted the phone.

5. Phone booted into clean reset OS 11. I triggered an OTA update to grab the latest OS 11 security patch. Triggering another OTA update, it attempted to grab HD1901_11_F.20. Cancelled and will be ignoring the upgrade notification moving forward.

6. Dual sim is now working again.
[OnePlus 7T Guides, News, & Discussion] Robinlong:
You can disable the package called com.oneplus.opbackup with your favorite method to disable the updater, it becomes completely greyed out in settings. It worked for me on OOS 11.
[OnePlus 7T Guides, News, & Discussion] andr3w282:
amazing, thanks for that tip!
[OnePlus 7T Guides, News, & Discussion] cher81:
Anyone knows if I can flush global version over T-Mobile without unlocking it with T-Mobile? Can I unlock bootloader after that and flush LineageOS?
[OnePlus 7T Guides, News, & Discussion] nolimit78:
No worries! Re-reading what I wrote it sounds way harsher than I intended!

You can do it a few different ways. You can fastory reset through the OS or you can skip a step and wipe through recovery. This will wipe your device while still keeping it on 10.0.7 firmware.
[OnePlus 7T Guides, News, & Discussion] infamousvincci:
Hey no worries man. Thanks! I tried to system factory it through the OS (without deleting internal storage). I lost root but im still on 10.0.7. Now im trying to look for the 10.0.7 patched image haha. Do you know if I can boot using 10.0.6 that you attached on the first page and then direct install the magisk once i get to OS?

EDIT: I figured it out lol. I am rooted now.

Thanks!
[OnePlus 7T Guides, News, & Discussion] droidwrx:
FYI, after converting from TMobile to global 10.0.6 and then flashing the full 10.0.7 OTA, I was able to relock the bootloader. Everything has been working perfectly for a few days now.
[OnePlus 7T Guides, News, & Discussion] nolimit78:
Ha, great!

This is super interesting. Why'd you want do yo this? Did you leave everything stock and then lock?
[OnePlus 7T Guides, News, & Discussion] droidwrx:
Yes, left everything stock. Didn't want to root or have an unlocked bootloader due to having work apps on my phone, etc.
[OnePlus 7T Guides, News, & Discussion] infamousvincci:
Hmmmm. You would prefer to lock the bootloader instead of just using Hide in magisk? Or does the apps that you use detects the bootloader itself and not root?
[OnePlus 7T Guides, News, & Discussion] Jordans6996:
Hello im getting this error when i tired to flash.

< waiting for any device >

Finished. Total time: 9.530s

Sending 'system_a' (2289084 KB) FAILED (Write to device failed (Invalid argument))

fastboot: error: Command failed

Invalid sparse file format at header magic

Sending sparse 'vendor' 1/2 (785581 KB) OKAY [ 26.614s]

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

fastboot: error: Command failed

Invalid sparse file format at header magic

Sending sparse 'product' 1/2 (785468 KB) OKAY [ 26.405s]

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

fastboot: error: Command failed

Rebooting OKAY [ 0.002s]

Finished. Total time: 0.003s

Press any key to continue . . .
[OnePlus 7T Guides, News, & Discussion] fossiltkm:
I tried relocking my bootloader using the same method as you, but ran into the "this device is corrupted and will not boot" message. Had to use the msmdownload tool to unbrick. Don't know I could have possibly done wrong.
[OnePlus 7T Guides, News, & Discussion] droidwrx:
Sorry that it didn't work for you - not sure why. 10.0.7 with the relocked bootloader is still working great for me.
[OnePlus 7T Guides, News, & Discussion] fossiltkm:
Did you flash 10.0.7 via fastboot, or did you use the OnePlus system update ota local method?
[OnePlus 7T Guides, News, & Discussion] droidwrx:
I unlocked the bootloader, then flashed 10.0.6 via fastboot. I then downloaded the full (2 gb or so) 10.0.7 ota and applied it via the local update method. Then relocked bootloader in fastboot.
[OnePlus 7T Guides, News, & Discussion] fossiltkm:
Finally got it to work! Thanks for responding to me, my friend.
[OnePlus 7T Guides, News, & Discussion] XD-MOD2-9MM:
He said he doesn't need it unlocked. Really there is no need to leave the bootloader unlocked. Especially if you use work apps ??*♂️
[OnePlus 7T Guides, News, & Discussion] wrathre:
Thank you for all the info.

I wanted to swap from the T-Mobile firmware to the international firmware and read through all the posts. I was able to unlock the device and do a direct upgrade to 10.0.0.6 using the all in one tool kit and fastboot image. I then used the settings > system update and it downloaded and applied the full 10.0.0.7 update. After this update, I performed a full system wipe, relocked the bootloader via fastboot commands, and restored from backup (google account). Everything appears to be working well with no issues from device radios or camera.

Thanks again everyone for the info! Will post a follow up if I run into any issues.
[OnePlus 7T Guides, News, & Discussion] Crappyvate:
[MENTION=1766947]nolimit78[/MENTION] [MENTION=3073925]droidwrx[/MENTION] seems like several people were able to go straight from tmobile firmware to global firmware without the added Indian firmware step? Since i'm not interested in root (and will re lock my bootloader) but want global so I can use a dual sim tray do you think I could go straight from tmobile to latest global 10.07 trough a fastboot flash?

I just can't afford to hard brick since I don't have access to a PC! :D
[OnePlus 7T Guides, News, & Discussion] droidwrx:
I can only speak to the method I described above. Not sure if a direct flash to 10.0.7 would work.
[OnePlus 7T Guides, News, & Discussion] destrorox:
Is there a way to see if my phone is fully unlocked? I just received my 7t, bought 2nd hand. It's sim unlocked. I just toggled the oem unlock. If I'm able to toggle oem unlock, does that mean I don't need to get the unlock_code.bin file from op and I just need to get to flashing (Indian then international)? What's the best way to find out? TIA!
[OnePlus 7T Guides, News, & Discussion] awr128:
Enable Advanced Reboot under the developer options in the settings menu. Then hold down the power button and reboot into the bootloader. Once your in fastboot the last line should say device status. If it says

Device Status: Unlocked then your bootloader is unlocked. If you bout the TMobile version second hand it is still most likely bootloader locked.
[OnePlus 7T Guides, News, & Discussion] destrorox:
Great, I'll give it a go. Much thanks!
[OnePlus 7T Guides, News, & Discussion] Josh McGrath:
Is magisk canary version still required for this?
[OnePlus 7T Guides, News, & Discussion] rob420p:
I don't think so I use regular magisk with no issues
[OnePlus 7T Guides, News, & Discussion] bynarie:
Has anyone used this guide successfully?
[OnePlus 7T Guides, News, & Discussion] awr128:
It is not required if you want to unlock the bootloader or flash the Indian version and global version. Magisk only has to do with rooting the ROM.

---------- Post added at 09:01 AM ---------- Previous post was at 08:48 AM ----------

Yes with a small tweak that made it much easier. I did NOT root though, I only flashed the Indian version then updates to Global 10.0.07.

In step 8, I unzipped the Indian version to a folder on my desktop and NOT the adb folder. The Indian fastboot zip already contain the needed adb and fastboot files.

Open that folder and anywhere in the folder hold down the shift key and right click with the mouse then select "Open Powershell Window here". Then follow the rest of the guide.
[OnePlus 7T Guides, News, & Discussion] stuckintheskull:
Just wanted to say I successfully went from T-Mobile 10.0.05 to global 10.0.07. Everything working like it should. I used rgreen83's method.
[OnePlus 7T Guides, News, & Discussion] bynarie:
Thank you for the info.. You followed the guide exactly as posted?(other than the adb thing)

---------- Post added at 02:56 PM ---------- Previous post was at 02:56 PM ----------

Can you link me to the method? Or is it the one in this thread?
[OnePlus 7T Guides, News, & Discussion] awr128:
I follow e this guide but I didn't do any of the rooting steps.
[OnePlus 7T Guides, News, & Discussion] nolimit78:
Yes, there are those who didn't go through the Indian ROM to 10.0.6, and they've had good results. Myself, I ran into problems that was mentioned in other threads and going from Indian > 10.0.6 > 10.0.7 fixed those problems.
[OnePlus 7T Guides, News, & Discussion] stuckintheskull:
It is the one in this thread. On the first page.
[OnePlus 7T Guides, News, & Discussion] awr128:
Some helpful info I've found.

Bootloader unlock guide and a link to apply for the unlock code.bin

This guide will give you step by step directions on how to unlock the bootloader. Make sure your 100 percent certain you want to do this. Once you unlock your bootloader it will force a full system wipe, YOU WILL LOSE ALL YOUR DATA and there's a BUG that will NOT ALLOW YOU TO INSTALL ANY FUTURE SYSTEM UPDATES. It deletes a critical file that is required to allow system updates to install. I speak from experience, it happend to me, this is my second 7T from T-Mobile.

You must be SIM unlocked first. Guide doesn't tell you how to do that.

BootloaderUnlock Guide

https://forums.oneplus.com/threads/q-a-the-ultimate-oneplus-7t-series-guide.1117753/
[OnePlus 7T Guides, News, & Discussion] awr128:
Yes with a small tweak that made it much easier. I did NOT root though, I only flashed the Indian version then updates to Global 10.0.07.

In step 8, I unzipped the Indian version to its own folder on my desktop and NOT the adb folder. The Indian fastboot zip already contain the needed adb and fastboot files.

Open that folder and anywhere in the folder hold down the shift key and right click with the mouse then select "Open Powershell Window here". Then follow the rest of the guide.[/QUOTE]

If anyone is interested I could probably write up a guide on how to this along with links to apply for the unlock code. Along with images.
[OnePlus 7T Guides, News, & Discussion] Josh McGrath:
I have already unlocked my bootloader and rooted in stock tmo OOS and don't care about app data and apps, but will this clear internal storage?
[OnePlus 7T Guides, News, & Discussion] awr128:
I would back up just in case.
[OnePlus 7T Guides, News, & Discussion] Josh McGrath:
Im getting the partition not found error. Ive done this 3 times and same error. Any help?

Everything else flashes fine

fastboot: usage: unknown reboot target fastboot

target reported max download size of 805306368 bytes

Invalid sparse file format at header magic

sending sparse 'system' 1/3 (784720 KB)...

OKAY [ 30.053s]

writing 'system' 1/3...

FAILED (remote: Partition not found

EDIT: Figured it out. you *MUST* use command prompt and NOT minimal adb like I was using.
[OnePlus 7T Guides, News, & Discussion] nolimit78:
I found that using prepackaged ADB tends to lead to inconsistant issues down the road. Installing ADB directly from my link helps ensure there isn't any issues with outdated ADB installs. Trying to instill good habits, as I damn near bricked a phone due to an old ADB install.

I've had very inconsistant issues using ADB and powershell. Moving back to CMD resolved all of those issues and for ease of use, I tend to recommend sticking with that.

I also re-added the unlock link address, I must have just missed it beforehand. If you follow all the steps in the correct order, now, it walks you through the unlocking bootloader process from requesting a code, placing the file in the adb folder, and flashing it accordingly.
[OnePlus 7T Guides, News, & Discussion] nolimit78:
Added some changes and reorg to the OP. I got my partner a OP7T and I'm just waiting for the unlock code. I'll adjust the OP to remove the 10.0.6 steps once I can verify that I don't run into the same issues I did with mine. Thanks for all the comments and PMs about this!
[OnePlus 7T Guides, News, & Discussion] awr128:
I had the same issue which is why I recommend unzipping the Indian ROM to its own folder and running Powershell and executing the flashall command from there. No having to mess with making sure you navigated to the correct folder in CMD prompt. If you really want to, you can use the adb files and fastboot files from the adb folder and replace the ones in the unzipped Indian ROM folder. That way you know your using the most current ones. I've been flashing ROMs and modifying apk' since Windows phones and Mighty Mouses ROM's, Never came close to bricking a phone.
[OnePlus 7T Guides, News, & Discussion] Tap_818:
Would anyone be able to help me with this? After running flash-all.bat command to flash to 10.0.6 Indian or global, the first part of the process runs fine, then my phone reboots and I'm met with a screen which has 2 lines of chinese letters and then a third which says English. I've waited to see if this screen would just bypass but it will not. So I have to click English and then there's an "advanced" option to reboot to fastboot. My phone is then detected after rebooting to fastboot and the remaining script (below) continues but I keep getting the same errors. I've also tried using the all in 1 tool and get the same results.... I'm still on tmobile rom and I have no data or wi-fi access

Rebooting into fastboot OKAY [ 0.003s]

< waiting for any device >

fastboot: error: Failed to boot into userspace fastboot; one or more components might be unbootable.

Invalid sparse file format at header magic

Sending sparse 'system' 1/3 (784720 KB) OKAY [ 18.439s]

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

fastboot: error: Command failed

Invalid sparse file format at header magic

Sending sparse 'vendor' 1/2 (785581 KB) OKAY [ 18.372s]

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

fastboot: error: Command failed

Invalid sparse file format at header magic

Sending sparse 'product' 1/2 (785468 KB) OKAY [ 18.438s]

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

fastboot: error: Command failed

Rebooting OKAY [ 0.001s]

Finished. Total time: 0.005s
[OnePlus 7T Guides, News, & Discussion] awr128:
I had the same issue, are you unzipping the fastboot folder into the adb folder and running the flash command from there like it's mentioned in the OP? Or are you running the command from the method I mentioned above by unzipping the Indian ROM to its own folder and running the command that way?
[OnePlus 7T Guides, News, & Discussion] Tap_818:
I’ve tried both ways. Even deleted my adb/sdk tools and downloaded new ones, no dice. Were you getting the one plus screen where you have to choose language after the first portion of the script running?
[OnePlus 7T Guides, News, & Discussion] awr128:
Yes, but I left it and it kept flashing the firmware

Did you unlock the Bootloader using the unlock_code.bin file? It's rebooting into the recovery menu.
[OnePlus 7T Guides, News, & Discussion] Tap_818:
Yes, boot loader is unlocked. Maybe I just have to wait and let it continue to run? I’ve waited around 10 mins. Idk why it would boot to recovery though, after I choose ‘English’ I’ve been choosing the option to reboot to fastboot, there is another option to reboot to recovery
[OnePlus 7T Guides, News, & Discussion] awr128:
Once you run the flashall command don't touch the phone at all, when it reboots to recovery don't choose any options, let the phone sit.
[OnePlus 7T Guides, News, & Discussion] Tap_818:
Got it. I’ll try again later after work. Thanks. I’m kinda curious if everyone else is encountering this screen cause it’s not mentioned anywhere in the OP and I haven’t seen anyone else mention it either so it kinda threw me off
[OnePlus 7T Guides, News, & Discussion] awr128:
When you boot into the fastboot menu does the last line say device State - unlocked?
[OnePlus 7T Guides, News, & Discussion] nolimit78:
Sounds like you're seeing the fastbootd screen, which will look a lot like the recovery screen but it actually in fastboot. Yes, you'll just want to leave it until it's done flashing, it'll reboot from that state on it's own.
[OnePlus 7T Guides, News, & Discussion] Tap_818:
Yes lol, 100% sure my boot loader is unlocked. I get the bootloader unlocked warning every time my phone reboots
[OnePlus 7T Guides, News, & Discussion] awr128:
Just covering the basics, haha

My other recommendation would be to use the adb and fastboot files that come preloaded on the 7T. When you plug the phone into to the computer there is a OnePlus installation file that installs them. Put them in the unzipped Indian ROM, or if your following OP's way use those files instead of the ones they say to download, and use the original usb cable that came with the phone, sometimes the cable matters.
[OnePlus 7T Guides, News, & Discussion] Tap_818:
I’m familiar with fastboot screen, this one is different. I found the attached image online, this is the one I get after first portion of the script runs and my phone reboots
[OnePlus 7T Guides, News, & Discussion] awr128:
That's the recovery menu
[OnePlus 7T Guides, News, & Discussion] imakul8:
I'm waiting for my unlock code to finish either tonight or tomorrow night. I was on 10.0.5 and my phone just rebooted and auto updated itself to 10.0.6 although I have it disabled in developer settings. Will I still be able to fastboot the Indian rom 10.0.6 over T-Mobiles 10.0.6? Or should I just download the Indian 10.0.7 and fastboot? Also, any tips to keep my phone from auto updating?
[OnePlus 7T Guides, News, & Discussion] nolimit78:
FastbootD is something that was pretty new to me, and this is part of the added confusion in trying to get this device rooted.

Pulled from the Omni thread, check this post LINK out describing FastbootD vs (old)Fastboot

You can also run in fastboot:

fastboot getvar is-userspace

To check which version of Fastboot you've booted into. A Return yes, means you're in FastbootD. A return no, means you're probably in (old)Fastboot.

To boot to FastbootD from a booted phone:

adb reboot bootloader
fastboot reboot fastboot
[OnePlus 7T Guides, News, & Discussion] awr128:
Yeah you can fastboot to the Indian 10.0.6. When you flash through fastboot, your writing the entire system file over the old one, it's not an incremental write of the system, it's a complete write over.
[OnePlus 7T Guides, News, & Discussion] nolimit78:
Yes you should. One difference between the Indian ROM and the TMobile Build is the gear icon that allows you to manually select your update file. You use this to upgrade to Global 10.0.7. Honestly, you shouldn't worry about the auto updates even if you were going to stick with the stock build. There aren't any exploits allowing bootloader unlock, so I wouldn't worry too much about it. Once you're on Global, your phone will report as a Global phone so you won't have to worry about the stock firmware overriding the conversion.
[OnePlus 7T Guides, News, & Discussion] Tap_818:
Had honestly never heard of fastbootD before. Just tried to flash Indian version again and same thing is happening. I left it in fastbootD (or recovery?) for 30 mins, nothing happened. Checked my cpu and it doesn’t even detect my phone when booted into this screen but if I manually boot into fastboot through the advanced options it detects my phone immediately. Not sure what the issue is, I hate this bs
[OnePlus 7T Guides, News, & Discussion] awr128:
Can you show us the commands you are using and the messages from fastboot on the first steps before the it hangs
[OnePlus 7T Guides, News, & Discussion] imakul8:
Yay! Great success! (Borat voice) Finally made it to Global rom. :good::D
[OnePlus 7T Guides, News, & Discussion] heyitsconan:
I followed this method using the all in one tool to unlock bootloader once I got the bin file from OnePlus.

Then I flashed directly too Global 10.0.6, and once completed was able to update through oxygen updater to 10.0.7.

I even locked the bootloader after updated to the global 10.0.7 and have full functionality with all my work apps and google pay (any apps affected by security).

Its been only a day but I use my phone daily for work and all the functions seem good and stable so far.
[OnePlus 7T Guides, News, & Discussion] Tap_818:
Finally figured it out after doing some troubleshooting last night. I googled "Failed to boot into userspace fastboot; one or more components might be unbootable" and came across a few posts in pixel forums and realized it was likely due to 1 or both of these issues...

1. I had a failed windows security update from November that I had to manually push through (this update took hours to download, which is the main reason for late reply).

2. I had old adb.exe files on my computer from old LG G5 root tools (rookie mistake, I know) but didn't even realize I even had these on this computer until I did a search for all adb files on my computer. Deleted all of these files

After doing these 2 things I tried again a little earlier and flashed successfully to 10.0.6 global on first try. Data/Wifi/bluetooth and camera all seem stable, about to update to 10.0.7. Thanks for the help fellas
[OnePlus 7T Guides, News, & Discussion] awr128:
Nice, figure it had to be adb or fastboot files, that's why I recommend using the ones that came with the 7T phone, glad you got it to flash over.
[OnePlus 7T Guides, News, & Discussion] 26donny:
Hey, noob here. I was able to unlock my bootloader and get all the files necessary to convert but I keep running into an issue on step 8. When I type flash-all.bat into terminal, it gives me

"/Applications/Android/flash-all.bat: line 1: [MENTION=279333]ECHO[/MENTION]: command not found

/Applications/Android/flash-all.bat: line 2: title: command not found

: command not foundid/flash-all.bat: line 3: :choice

/Applications/Android/flash-all.bat: line 4: syntax error near unexpected token `('

/Applications/Android/flash-all.bat: line 4: `set /P c=Do you want to wipe all t'e data ( Reccomended )[Y/N]?" I type in yes and it does nothing. It just such directory not found. I have all the files in one folder as stated and have dowloaded the correct roms. I'm using a mac if that helps. Any advice would be appreciated.
[OnePlus 7T Guides, News, & Discussion] awr128:
.bat files are for windows only. They are windows batch files. The process is probably different on a mac, which I'm not familiar with. You could run it on a windows vm.