yashsingh1/xdaforums huggingface dataset:
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
OnePlus doesn't currently provide the t-mobile full rom, the one we have was created by the community here at xda. But yeah, once you're on the t-mobile firmware you can receive OTA's, but you have to manually flash them via twrp, since they are not flashable via stock recovery if I remember correctly.

BUT you cannot use OTA's provided for the international version, if you do, you will brick and we currently have no way of restoring those devices, not sure if we can get into fastboot to restore via what we have, as the one user who bricked this way returned the device.

Edit: yes, I plan on testing returning to stock including locking the bootloader.
[OnePlus 6T  Guides, News, & Discussion] PuTTYMySSH:
I tried it on my home computer and it worked without a hitch. Think part of the reason it wasn't working is from me using a Wyse Terminal to do it on.

Thank you for the help.
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
Glad you're up and running, keep the success stories coming.
[OnePlus 6T  Guides, News, & Discussion] TJSteveMX:
Yes, I'm aware about not using OTA from global firmware.

So, if we decided to go back to stock, all we have to do is install a custom recovery and flash OTA from TWRP. I'm assuming we can remove the flash userdata from script so that we can still hold out data.

Sounds like for now, all that we decided to flash the global version, are not gonna be able to use the OTA application from the ROM.
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
Yeah but we get the firmware files dumped/pulled from the OTA's a day or so after release which we can flash in fastboot, so really no need to be worried about OTA's, in my opinion, its not very technical if you've done the conversion to begin with.
[OnePlus 6T  Guides, News, & Discussion] vettejock99:
I'm sorry for a but of a double post, but I realized I should probably ask this question in this thread rather that the OTA thread. Does anyone know if taking the Tmo update causes any issues for those of us that may be planning to flash the nonbranded firmware soon? Would love to take this until I update next week, but don't want to find out the they blocked that.
[OnePlus 6T  Guides, News, & Discussion] mang0:
The general consensus is that it should not.
[OnePlus 6T  Guides, News, & Discussion] KMHartford:
do you have a link to the latest T-Mobile ota to flash via twrp? or where does the phone save the ota to
[OnePlus 6T  Guides, News, & Discussion] strictlyphat:
PS C:\Users\Dad\Desktop\op6tfiles> fastboot oem lock

...

OKAY [ 0.028s]

finished. total time: 0.029s

PS C:\Users\Dad\Desktop\op6tfiles> fastboot flash cust-unlock unlock.bin

target reported max download size of 536870912 bytes

sending 'cust-unlock' (0 KB)...

OKAY [ 0.011s]

writing 'cust-unlock'...

(bootloader) Device is unlocked.

OKAY [ 0.009s]

finished. total time: 0.022s

no matter how much i lock it. as you can see i locked it in a prior command. then tried to issue unlock.bin and it already says bootloader device is unlocked, although clearly right above i locked it
[OnePlus 6T  Guides, News, & Discussion] KMHartford:
I tried all these, i gave up lol

fastboot flash cust-unlock <unlock_token.bin>

fastboot oem unlock

Fastboot oem unlock_critical

fastboot lock

fastboot erase userdata

im gonna try to update the latest T-Mobile ota via twrp just gotta figure out where it saves it
[OnePlus 6T  Guides, News, & Discussion] strictlyphat:
do we need to boot before locking again?

so your eback on tmobile but unlocked bootloader?
[OnePlus 6T  Guides, News, & Discussion] mang0:
I linked the update zip over in this thread if you guys need it

https://xdaforums.com/oneplus-6t/how-to/tmo-6t-update-incoming-t3868100/page7
[OnePlus 6T  Guides, News, & Discussion] hartleyshc:
Welp, I can tell others to NOT attempt to dd these criticals that are inside the payload.bin.

I decompiled the payload.bin in the latest Tmo OTA. Got all of the img files. Attempted to fastboot flash the img files, gives back that critcal partitions are locked. if you use the unlock_critical command, it will tell you that the critical partitions are unlocked for flashing. So fastboot will say theyre unlocked, until you actually attempt to flash them.

So next I booted into twrp and ran dd to copy them to the criticals. I was a little hesistent in this, so I dd all partitions except abl. (Hesitant due to the issues I had dd the other img files from the dump.) I have a feeling these dont work for DD because they are not full sized. The DD command copies every bit. Even zero data. So when you use dd and copy from a partition, the image is the same size as the partition. When you use dd command to copy to a partition, it changes the size of the partition to the what the file size is.

Lets use abl partition as an example. The partition is 8mb. When you use dd to copy an img file to it thats only 256k, it changes the partition size to 256k, and not 8mb.

So the lesson of today, fastboot isnt stored just in abl. Dont dd img files to criticals unless the images were dumped by you, or are the full size. And Im still curious how were going to flash criticals from updates without doing full flashes. Im currently bricked. Stuck in 9008. All key combos boot into qualcomm mode. Will be swapping out my device, the crappiest part is that I just got a glass screen protector on it friday. We might want to repackage the files in the OP of this thread, so its ONLY the files that are included in fastboot flash. Get rid of the criticals all together. It will be the same for International devices, if they flash those critical files on their device, they WILL get a brick. But they at least have the msmtool. Tmo users DO NOT.

Also I know people are going to read this and think they cant update OTA, or that they wont be able to go to 9.0.5 after they update. This has nothing to do with this. Flash the OTA if youre on Tmobile and you wont have any issues.
[OnePlus 6T  Guides, News, & Discussion] DrakenFX:
[MENTION=1459374]hartleyshc[/MENTION]

sorry to hear that man, i know that feeling had happen to ne on other devices by testing stuff,

question : by flashing OTA , you meant the capture ota or extracted form via TWRP?

sorry for the question , just learning how flashing OTA, etc on OP devices works.
[OnePlus 6T  Guides, News, & Discussion] SmileBigNow:
I'm BL unlocked and rooted but didn't flash anything, I got the OTA from T-Mobile it downloads fine but installation fails, how can I get passed this? Wanna get it installed on my device
[OnePlus 6T  Guides, News, & Discussion] Josh McGrath:
It usually doesn't install because it detects a modified system . Im waiting on my 6t still but on other devices like the Moto z2 force, you have to go back to stock.
[OnePlus 6T  Guides, News, & Discussion] KMHartford:
that's y I gave up, I didn't want to brick messing around with the system critical files, I know enough but not enough to keep trying to flash the tmobile update on my own. i'll wait for the more experienced to figure it out then proceed.... goin back to 9.0.5 international

---------- Post added at 11:52 AM ---------- Previous post was at 11:34 AM ----------

yup was trying to figure out how to flash the new tmobile update but I can't figure it out on my own... don't want to brick flashing system critical

---------- Post added at 11:56 AM ---------- Previous post was at 11:52 AM ----------

sorry to hear man... I had to give up to prevent bricking, at least the international version will always be more updated more then the tmobile version. I would like to use the launcher and radio from the new incoming tmobile 9.0.5
[OnePlus 6T  Guides, News, & Discussion] strictlyphat:
You won't be able to go back to stock. You have to flash updated via twrp.
[OnePlus 6T  Guides, News, & Discussion] KMHartford:
Do you know the proper way to flash the update via twrp? I tried to sideload but theres a data encryption issue in twrp
[OnePlus 6T  Guides, News, & Discussion] mackentosh:
I'm on 9.0.5 now and I'm not rooted yet but keep getting this for some reason when setting up Google Pay
[OnePlus 6T  Guides, News, & Discussion] LLStarks:
You have to be rooted and have Magisk Hide toggled in settings.

You will fail SafetyNet otherwise and will not be able to use Pay.
[OnePlus 6T  Guides, News, & Discussion] mackentosh:
Ok thanks
[OnePlus 6T  Guides, News, & Discussion] strictlyphat:
Sorry man not a clue I haven't tried to ota. I went back to 9.0.5 until someone can figure it out. I git tired of wiping and setting back up so many times.
[OnePlus 6T  Guides, News, & Discussion] phillymade:
Did you get it working? I was curious about this as well
[OnePlus 6T  Guides, News, & Discussion] mackentosh:
Yes thanks a bunch
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
I have no clue what’s going on in this thread right now, backread when I get home later, did anyone need my help by chance? Lol
[OnePlus 6T  Guides, News, & Discussion] jimlightner:
Well I took the plunge and flashed the 9.0.5 rom and boy am I glad I did..what a big difference..I read this whole thread and decided I'll go for it..if anyone is on the fence about it it's worth it to flash.. follow the directions and you'll be fine.
[OnePlus 6T  Guides, News, & Discussion] phillymade:
So to sum it up. Extract all files and put them in folder where adb lives. Use your modded flash all bat for auto reboot on completing and profit.

Do we need to remove the critical files or just leave it alone?

To return to TMO do the same with the correct files.
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
Correct.
[OnePlus 6T  Guides, News, & Discussion] phillymade:
To flash a kernel, fastboot flash as well
[OnePlus 6T  Guides, News, & Discussion] jimlightner:
Yup that's it make sure you extract all files to that same folder flash and profit.just flash as is don't mess with anything that's what I did and it worked flawless.
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
It depends on the kernel, for the most part, you’ll need to temp flash twrp using the command fastboot boot twrp.img and then use adb sideload to flash the kernel zip file, I’d you have exkernel manager, you can just flash within the app, there may be other apps you can use as well, I haven’t tested any others, so I can’t recommend by name.
[OnePlus 6T  Guides, News, & Discussion] hartleyshc:
I have all of the files from the update extracted. DO NOT even attempt to flash the criticals. They are not flashable from fastboot flash command or through adb shell dd.

You can update the files that you can use the fastboot flash command on. (Or at least attempt to. They might be partial files in which case you would just need to flash the full partitions again after it fails. But you'll still have access to fastboot).

I'll post all the files from the update at some point today. Should help those who want to run the latest TMobile version but are rooted and unlocked and want to update.
[OnePlus 6T  Guides, News, & Discussion] _nkay_:
Did you flash from the latest TMO update?
[OnePlus 6T  Guides, News, & Discussion] jimlightner:
Yes took the tmo update when it came out.just followed the instructions on flashing that the OP provided..
[OnePlus 6T  Guides, News, & Discussion] DrakenFX:
There is no need to extract the payload and if you have Magisk install just , Uninstall Magisk uninstalled Magisk all through the app and then check and get update via software update.

https://xdaforums.com/showpost.php?p=78197388&postcount=80
[OnePlus 6T  Guides, News, & Discussion] futango:
I flashed this international version wanted to go back to tmobile to get the 9.0.5. I was able to flash the Tmobile 9.0 rom from the first post but whenever I run the update, it keeps failing with Installation failed. Anyone else have this issue? I've since reflash the international rom again because the finger printer reader is better but would like to get back on Tmobile 9.0.5.
[OnePlus 6T  Guides, News, & Discussion] _nkay_:
Great. Waiting for the unlock bin
[OnePlus 6T  Guides, News, & Discussion] TJSteveMX:
Out of curiosity, does anyone on 9.0.5 have tried to login into OnePlus account from settings/accounts?

I always get no connection.

Not even sure why I want to login after all but just noticed that
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
There is no t-mobile 9.0.5 yet.

I've logged in fine, maybe its a bug of some sort? Everyone's got random things that either don't work or works iffy while it works for others, kind of a weird thing I noticed with this device.

Edit: for everyone who's trying to install the OTA, seems you just need an unmodified system, therefore just uninstall magisk and try again, if no go, flash back to the stock fastboot files and you should be good to go install the OTA with an unlocked bootloader.

Test and let me know.
[OnePlus 6T  Guides, News, & Discussion] BIGWORM:
Looking forward to a TWRP that sticks. Sorta sucks having to use a computer to boot to temp TWRP like a tethered jailbreak lol! =P OP, does your 9.0.5 bat have a boot image or does anyone have a stock boot image? Forgot to back mine up before I flashed EX Kernel.
[OnePlus 6T  Guides, News, & Discussion] strictlyphat:
Yeah sorry for hijacking lol. I been checking everyone seems good so far. How'd your appt with op go?
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
It went really good and bad, but I found what I got my answer, so all goody, for anyone wanting to return to stock firmware and relock the bootloader, OP can do it for you, sadly they don't allow you to keep the unzipped files and remove them permanently upon completion of the process.
[OnePlus 6T  Guides, News, & Discussion] strictlyphat:
So do they remote in?
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
That's correct.
[OnePlus 6T  Guides, News, & Discussion] strictlyphat:
How long did the process take?
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
10 maybe 15 minutes?
[OnePlus 6T  Guides, News, & Discussion] BIGWORM:
*deleted *
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
MSMDownloadTool Available for t-mobile users folks, temp download link for now. :u:
[OnePlus 6T  Guides, News, & Discussion] ryanwiggum:
Thanks for putting the guide together!. I was able to successfully flash 9.05.

You mentioned not to flash OTA or you may brick your phone. Can you update with full ROM updates (files over 1GB) via "Local Upgrade" under system settings? Or only fastboot updates?
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
Fastboot only, until we can figure out how to properly convert the critical partitions. We basically use the full ROMs to create the Fastboot files, so its essentially the same thing, just applied differently.
[OnePlus 6T  Guides, News, & Discussion] ryanwiggum:
Gotcha. Thanks again, much appreciated!
[OnePlus 6T  Guides, News, & Discussion] Nileshdd:
Is there any recent update about criticals? Is it recommended to wait for that to be figured out or in general it's fine to flash now?

9.0.5 is supposed to come from TMO very soon so what are the additional advantages of flashing global rom? Dual SIM support and quicker updates in the future right?

Just trying to decide whether to flash or not. Really appreciate all the support :)
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
And so far it is has more features/options enabled than the tmo version.
[OnePlus 6T  Guides, News, & Discussion] Eliminater74:
I keep reading about people wanting to flash the critical partitions that come with the international edition or so on,

What I dont get is this, How are you going to bypass the certs check when you flash them? certs dont match you get a bootloop,

and some seem to think that a unlocked bootloader means you can flash anything you want all day long, all a unlocked bootloader means is

the certs are bypassed under system/boot and recovery as well maybe a few other areas.. but critical partitions are signed with T-mobiles own RSA certs..

but the extra features you all are talking about, you dont need the critical partitions for it, all that is in system, under the frameworks and systemUI and settings....

So in all, it doesnt matter if you cant flash the international criticals, as long as you can flash system your good to go with the extra features.....

Now this being OP, and I know they seem to relax on security more then others, Its possible just maybe possible you can get around the certs check on cridicals as long as

OP didnt use a sep hash into the main un writable SOC section, Its possible that both certs might be present there.. which means as long as you flash FULL firmware matching all the same certs

it could be possible to work, but if OP only has one or the other hash cert listed in the un writable section, then there is no way to bypass that unless you can figure out a way to get the device into

developer mode, and dont mistake Engineering mode with Developers mode.. Developers mode is more of a efuse that allows the device to be in 100% pure dev mode allowing to flash anything and pretty much do anything bypassing all certs on anything..

But in all, I just dont see that happening.. but its no lost, as I said you can still flash system and have the extra options..........

Both Firmwars are identical except, global has 2 sims, and no T-mo apps, and each firmware are signed with a seperate RSA certs .

meaning, unless you can bypass that.. you will never get a fully working international firmware on the T-mo edition..............

But dont give up, as I said, this is OP, and they will do anything to make things easier for them.. so maybe there is something out there.
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
You can’t really be mad at anyone for asking, since that was the general idea given on a “FULL” conversion. I think most are aware of the RSA signatures, but since there used to be an option to unlock criticals and flash these partitions, it’s just a matter of curiosity now, most people, like me are content with the general rom style of conversion and I’m sure once we can get a fully working twrp build, we’ll just package these ROMs into zip files and flash the easier way.

Js... /end rant
[OnePlus 6T  Guides, News, & Discussion] Eliminater74:
No, I wasnt mad at anyone.. Didnt mean it to come out like that.. I was just wondering if everyone knew about that....

I know next to nothing when it comes to the RSA stuff, as I said before.. im just a developer of ROMS kernels and recoverys.. all the cert stuff I only learn by reading what others have said that know about all that.

but some of what I said might be possible.. as long as everything matches.. Now with the tool for t-mo released, more people can test and see what works best....

I never in a million years thought that the T-mo tool would be release.. so it just might be possible still to get the T-mo edition rebranded to the Global edition..
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
Ah, same here, I’ve learnt more of the way the devices work from reading, despite oddly enough using these same processes and tools for years. The tool was just luck honestly, OP doesn’t make it easy in any way to get your hands on it. So I’m really just waiting to see what comes next, despite having a recovery option now for bricks, I’m more interested in seeing a fully functional recovery and for rom development, I miss the old days of flashing between ROMs to test features, see some great themes, etc. Maybe we will have a proper conversion, if I can stop being lazy maybe I’ll get around to messing with criticals again, but it’s not at the top of my list of things to do.
[OnePlus 6T  Guides, News, & Discussion] Dameon87:
I've been working on the recovery, but the encryption bits are making it hard. I feel that the answer lies in how the twrp was built for the pixel 3/xl. But the Omni source tree doesn't seem to be working well. I'll keep digging and see what I can come up with tonight.
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
I tried to mirror a few flags I noticed in the recovery for pixel 3, but when I did that it wouldn’t compile.
[OnePlus 6T  Guides, News, & Discussion] Dameon87:
I can get it to compile just fine. I can get a booting recovery, even. It just seems that nothing is properly triggering the decryption and the log is riddled with weird entries. Dmesg states that the stuff can't run due to the file not existing, when it does indeed exist. I'll play with it a bit more tonight and hopefully make some progress.
[OnePlus 6T  Guides, News, & Discussion] gigawatt:
Hi, how can I get my little grubby hands on the t-mobile msm tool or what ever tool you are talking about. I'd like to use it and work with it. Do I have to wait for op to remote in and disconnect the connection while there in so I don't loose the zips or what?
[OnePlus 6T  Guides, News, & Discussion] mang0:
Please see this thread: https://xdaforums.com/oneplus-6t/how-to/tool-t-mobile-oneplus-6t-msmdownloadtool-t3868916
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
I’m up for testing/logging in any way I can help.
[OnePlus 6T  Guides, News, & Discussion] DrakenFX:
[MENTION=1314742]Dameon87[/MENTION]

QUOTE=Dark Nightmare;78207630]I’m up for testing/logging in any way I can help.[/QUOTE]

Count me in, if need more help on testing/logs.
[OnePlus 6T  Guides, News, & Discussion] LLStarks:
I think people are still interested in signing with the possible test certificate, but that sounds like a huge engineering challenge.
[OnePlus 6T  Guides, News, & Discussion] adobrakic:
Wonderful, thanks for putting this together. I was able to flash 9.0.5 and root way more easily than expected.
[OnePlus 6T  Guides, News, & Discussion] amg83:
Anyone know if there was any work going on to compare unlock bin files? Just got mine and am willing to donate the token for research purposes. I haven't unlocked bootloader yet as I am waiting for a functional TWRP.
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
Aren't the development e-fuses blown prior to shipment?

PM mauronofrio, I think he was trying to look into it.
[OnePlus 6T  Guides, News, & Discussion] Eliminater74:
In most cases they are, every now and then, one slips through the cracks.. and this being OP, and how relax they

are on security, Its just possible they left a few things on.. Nobody has found before.. because OP never had to do this before.

its all new to them when it comes to the Carrier certs and all that.. So its just possible they left it in..

Its a matter of finding it and activating it.. Which I have no clue on that..........

But I have a feeling that OP might have left most of that in place.. They do know how much their devices are dev on.. so I dont put it past them..
[OnePlus 6T  Guides, News, & Discussion] jkeith1:
Ok, using macos to install flash. I got everything done but the flash all. I'm not sure how to do this on a mac.

I ran the file and it stopped after enter y or n

[MENTION=279333]ECHO[/MENTION] on

title Mauronofrio All Fastboot Partitions Flasher :P

:choice

set /P c=Do you want to wipe all the data ( Reccomended )[Y/N]?

if /I "%c%" EQU "Y" goto :wipe

if /I "%c%" EQU "N" goto :continue
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
You have to manually run each of those commands, for the wiping command it would be fastboot -w to wipe.
[OnePlus 6T  Guides, News, & Discussion] jkeith1:
Ok, so, the bat won't work on mac?
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
Nope, it's a windows executable, uh maybe tonight I can try to make an sh script for mac, for now you have to manually run each command, or maybe you can edit the script itself to suit terminal, I believe you have to put ./ before each fastboot command, example:

./fastboot -w
[OnePlus 6T  Guides, News, & Discussion] Dark Nightmare:
Try the attached file, I don't have the files with me to test, but its basically the same script, except it WILL wipe your device, I'll remove the wipe command later once we confirm this one works properly.
[OnePlus 6T  Guides, News, & Discussion] Shpongled01:
I just ran all of the commands individually on my MacBook. It worked out great. Just skip each line with an echo or each line that doesn't start with fastboot. It was easy peasy.