How To Guide How To: Unlock the T-Mobile Bootloader

Search This thread

plzdonthackme

New member
Feb 6, 2023
4
2
After a week I received the "unlock_code.bin" file via the website <https://www.oneplus.com/us/unlock_token> but unfortunately it was impossible to flash the file due to a "verification error" so I requested a new file from Oneplus support via email <[email protected]>. I recommend adding to the body of the message exact model of your device (Oneplus 8T KB2007 in my case), serial number, IMEI, PCB number, unlock code and screenshots of the information shown in Settings/About device. After a little over a week I received a new file "unlock_code.bin" via email (A shout out to Leo Smith).

I then proceeded to convert my TMO device to EU using MsmDownloadTool. In my case I used the files from the following website <https://firmwarefile.com/oneplus-8t-5g-kb2007>.

It was necessary to install the Qualcomm driver from Windows test mode for MsmDownloadTool to recognise my device in EDL mode. I found a guide about it on the Oneplus forum (Step 1 to 3) <https://community.oneplus.com/thread/306306>
What is the reason to convert it from TMO to EU?
 
  • Like
Reactions: TheGhost1951

Atrinad

New member
Mar 22, 2023
2
0
Getting bootloader UNLOCK CODE without unlocking a sim card




SIM card unlock required for Settings > About Phone > Tap on Build Number 7 times > Go back to Settings > System > Advanced > Developer Options > OEM Unlocking
because without unlocking the sim card it is inactive
To bypass this limitation, follow the guide below.


First and foremost, you will have to install the Android SDK Platform Tools on your
PC. This is the official ADB and Fastboot binary provided by Google and is the only
recommended one. So download it and then extract it to any convenient location on
your PC. Doing so will give you the platform-tools folder, which will be used
throughout this guide.


Next up, you will have to enable USB Debugging on your device so that it is
recognizable by the PC in ADB mode. So head over to Settings > About Phone > Tap
on Build Number 7 times > Go back to Settings > System > Advanced > Developer
Options > Enable USB Debugging.


1. To begin with, connect your device to the PC via USB cable. Make sure USB
Debugging is enabled.
2. Then head over to the platform-tools folder, type in CMD in the address bar,
and hit Enter. This will launch the Command Prompt.
3. Now in the following command in the CMD window to verify the ADB
connection:
Code:
adb devices
4. If you get the device ID, then the connection stands successful. Now type in
the below command to open the Shell environment:
Code:
adb shell
5. It will now list out your device name/codename, which means that the shell
connection has been successfully established


1. Now just execute the below command to disable the Qualcomm system app
which in turn will enable the greyed-out OEM Unlock on your T-Mobile
carrier-locked OnePlus device;
Code:
pm disable-user com.qualcomm.qti.uim
2. Once that is done, head over to Settings > System > Advanced > Developer
Options > and you will now be able to enable OEM Unlock toggle.
3. However, if the toggle is still greyed out, then you will have to uninstall that
app from your device. For that, use the below command
Code:
pm uninstall --user 0 com.qualcomm.qti.uim

1. Go to fastboot and use the below command
Code:
fastboot oem get-psid
result:
Code:
(bootloader) SN:XXXXXXXXXXXXXXXX
(bootloader) IMEI:XXXXXXXXXXXXXXX
2. For unlock code use below command
Code:
fastboot oem get_unlock_code

WHEN COMPLETE go to 6-th step of main guide
 

ginger709

Member
May 12, 2017
41
6
Im having issues with my new 9 pro, I am getting

FAILED (remote: 'Please flash unlock token first.')


when I try to fastboot oem unlock

It is a LE2125 so how am I getting this? I enabled developer settings, enabled OEM unlocking, and turned usb debugging on. It sees the device when I fastboot devices.

Do I need to do this to get it unlocked? How is it locked???





Edit: nuked picture cause nachi mods have to keep this place safe for the children
 
Last edited:

Appreciative

Senior Member
Mar 6, 2015
244
138
Im having issues with my new 9 pro, I am getting

FAILED (remote: 'Please flash unlock token first.')


when I try to fastboot oem unlock

It is a LE2125 so how am I getting this? I enabled developer settings, enabled OEM unlocking, and turned usb debugging on. It sees the device when I fastboot devices.

Do I need to do this to get it unlocked? How is it locked???
Try:
Code:
fastboot flashing unlock

I have additional suggestions if that fails but I think that will work for you


Edit just in case that doesn't help:
Did you buy it new, used or from a chinese reseller on Alibaba or similar? What does About Phone say? What does the sticker on the back of your phone say?

Any chance it was a TMO model that someone flashed Global rom onto? Have you tried any Global or Tmo msm tools or done any flashing previously?
 

ginger709

Member
May 12, 2017
41
6
Try:
Code:
fastboot flashing unlock

I have additional suggestions if that fails but I think that will work for you


Edit just in case that doesn't help:
Did you buy it new, used or from a chinese reseller on Alibaba or similar? What does About Phone say? What does the sticker on the back of your phone say?

Any chance it was a TMO model that someone flashed Global rom onto? Have you tried any Global or Tmo msm tools or done any flashing previously?
Thanks for the reply.

It was from Swappa, from a really big seller in Cali. I am going to try this now, and let you know.

It did say that it was an Unlocked, but from Cricket Mobile. In the settings it had the LE2125 model number. I just turned it on and tried to unlock it, I havent used any tmo or msm tools, or any flashing.

EDIT:

So I tried it and it gave the same error:

$ fastboot flashing unlock
FAILED (remote: 'Please flash unlock token first.')
fastboot: error: Command failed
 

TheGhost1951

Senior Member
Feb 11, 2009
1,720
423
Garfield
OnePlus 9 Pro
Thanks for the reply.

It was from Swappa, from a really big seller in Cali. I am going to try this now, and let you know.

It did say that it was an Unlocked, but from Cricket Mobile. In the settings it had the LE2125 model number. I just turned it on and tried to unlock it, I havent used any tmo or msm tools, or any flashing.

EDIT:

So I tried it and it gave the same error:

$ fastboot flashing unlock
FAILED (remote: 'Please flash unlock token first.')
fastboot: error: Command failed
MSM to Global then fastboot OEM unlock
 

Appreciative

Senior Member
Mar 6, 2015
244
138
I got the unlock.bin and get this error when I try to flash it:

fastboot: error: ANDROID_PRODUCT_OUT not set

I cant find much on this error.
If you use the Eu conversion tool https://forum.xda-developers.com/t/...7-to-eu-via-msm-no-unlock-bin-needed.4272837/, you can bypass the need for Tmo token altogether. Use the Tmo->Eu conversion tool and unlock the bootloader while on oos11. If you update to oos13 before unlocking, you'll need the token again.

OnePlus tokens have been having issues for months it seems. I've seen people saying they have to email them because the generated ones aren't working right. I didn't have that experience but I did mine late last year.

Use the conversion to convert from Tmo to EU, unlock bootloader, flash global (https://forum.xda-developers.com/t/...onverted-to-global-le2125-oos-13-ob2.4512829/) and then update to latest global... If that's what you want to do. I am on Eu OOS11 and everything is fine. I did flash my original modem back in.

Latest EU oos13 is giving issues so people are going to global to fix their connection issues. From 11 to 13, all of the Eu versions work fine except the latest one, as far as I know.

Before you do anything, take back ups of modemst1/2, efs/persist with msm tool readback (press F8, password is oneplus). If anything goes wrong, you'll have everything needed to fix it
 
  • Like
Reactions: TheGhost1951

jayram1408

Senior Member
Mar 25, 2012
100
22
Denver
I had to fight tooth and nail with OnePlus to get my unlock token. There website was hacked for a while. Now because of copyright issues OnePlus is pulling out of the European markets. I was lucky to get mine before things start going South for them. Anyways it took me talking on the phone with them at least 5 times, a few chats, my service request elevated 3 times and me submitting the unlock info to them to FINALLY get my unlock bin token. This took a little under two weeks.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    Hello all, this is a quick and simple guide to unlocking your T-Mobile locked bootloader. Just a reminder: unlocking the bootloader will wipe your data. The instructions here will apply to all T-Mobile OnePlus devices.

    1. Unlock your SIM. Some options here
      1. Finding a sympathetic rep to unlock your device. I used the I'm a developer and need the device unlocked for work purposes and took 2 agents before I got mine unlocked.
      2. Finding an awesome XDAer who has the capability to do it, such as https://forum.xda-developers.com/t/...ng-service-oneplus-samsung-google-lg.4231597/ (never used this service, just an example but he seems active and still unlocking)
      3. Paying a (trusted) 3rd party service. I never used them, YMMV
      4. T-Mobile's official policy of waiting 40 days and paying off any balance on an EIP.
    2. Toggle OEM Unlocking in Developer Options.
    3. Jot down your IMEI with *#06#
    4. Reboot the device to bootloader. You can do this via ADB or advanced reboot options in Developer Options.
    5. On a computer with latest fastboot and OnePlus drivers installed, run:
      Code:
      fastboot oem get_unlock_code
    6. Fill out the unlock application on OP's site: https://www.oneplus.com/unlock_token You should have all the necessary information to fill it out now.
    7. Wait for the unlock application to be processed. It can take up to 2 weeks, or even longer on a new device. You can enjoy your still-locked OP9P for now.
    8. Once the unlock application is processed, download the unlock file from the unlock site above, save it (as an example, I saved it as unlock.bin)
    9. With your device in bootloader again, run:
      Code:
      fastboot flash cust-unlock [path/to/unlock.bin]
      In my example, from the CWD as the unlock.bin file, I would run
      Code:
      fastboot flash cust-unlock unlock.bin
    10. Unlock your bootloader with the command:
      Code:
      fastboot oem unlock

    Congrats, your OnePlus device should now be unlocked!
    4
    The unlock token came for me in exactly 7 days and 1 hour.

    The magisk and stock boot.img for 11.2.2.2 is below for T-Mobile variant root
    3
    Looks like the site is fixed, just downloaded my unlock bin. 288bytes
    2
    Both of you have made statements that sound like you are talking about SIM unlocking. This is bootloader unlocking and is not related. T-Mobile support isn't there for you to unlock your bootloader and yes they will grant a temporary sim unlock if you need it.
    The device needs to be Sim unlocked before you can even attempt to bootloader unlock.
    2
    Is this a OP9 series issue? I've never had to do this with 7 or 8 series from Tmo to Global... 🤔
    It's an OP9 Pro issue afaik, doesn't affect regular OP9