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

Search This thread

sin-cal

Senior Member
Aug 16, 2008
189
10
Porterville, CA
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!
I just wanted to reply and Thank you for providing this. I spent a few hours today trying to troubleshoot getting the unlock code from the phone using a cmd string that was incorrect that oneplus unlock instruction provided. cd “root directory ”> Command: fastboot.exe oem get_unlock_code "" <<< That is what was provided, It brought back an error. Again, Thank you!!!! Unlock submitted and awaitin approval.
 

tancam

Senior Member
Apr 22, 2010
57
10
28
Altadena
I keep getting unlock code or serial number is invalid. I copied them from the actual console so i know its correct and i dont see any spaces. Serial number is valid also so im stumped
 

MushroomElm

Member
Oct 28, 2021
5
1
Seeming to have an issue around step #5. ADB Devices picks up my phone no issue. I'm able to use CMD to reboot into bootloader but when I use the command "fastboot oem get_unloock_code" the CMD window says "Waiting for any device"

Is there a step I'm messing up on? Any help would be appreciated!

Edit: Figured out the issue. Had to go into Windows 10 optional Updates and select Google Bootloader Interface.
 
Last edited:

cowsquad

Senior Member
Aug 31, 2009
1,372
322
Portland, Oregon
OnePlus 9 Pro
I am glad I came to this thread. I have an appointment tomorrow to buy this phone on T-mobile for $750 off. I will only have to pay $150 on installment payments (It is a requirement to get $750 off) But if they won't allow me to have my phone unlocked until I pay that in 24 months. I won't buy this phone then. I am sick in tired of companies blocking phones that are us.
 

jruizdesign

Senior Member
Jun 15, 2012
58
12
whittier
OnePlus 10 Pro
So I have not done any of these steps, I'm pretty sure I had to use a dialing code and an app or something and request an unlock, it told me granted within like 2 minutes and I've been able to unlock since...


Screenshot_20211208-015558.jpg
 

DerrickTight

Senior Member
Jan 22, 2018
317
156
Boise
I dont know who needs to hear it but I couldn't find this anywhere. If you are still (edit: Sim) locked you can try this out. Go to settings/Apps and Notifications/Press the 3 dot button in the top right of the screen and select System Apps/Scroll down to the App "unlock" and long press it to select enable. Once enabled, go back to your WiFi and Network settings and Unlock may be available, it was for me.
 

mightysween

Senior Member
Feb 18, 2011
1,562
1,293
Maine/USA
Moto G Stylus
Yeah, I know this is an old thread but thought I'd mention that I got two OP9's from T-Mobile in December 2021 and after the recent absolute disaster of OOS12 I decided it was time to unlock.

I was surprised to find that neither phone came SIM- locked from T-Mobile. Perhaps since the phone is aged-out and is now in the "free" tier (still on installments but with monthly credit) they are just not bothering with SIM-locking.

Still have to wait 7 days for the token, but otherwise no hoops to jump through.
 
  • Like
Reactions: galaxys
Mar 28, 2017
23
21
Sacramento
OnePlus 9 Pro
Is it safe to flash the unlock_code.bin on my OnePlus 9 Pro 5G while I'm still network/sim locked to TMobile? I was able to toggle OEM Unlock and got my unlock code to submit to OnePlus and received my token from them 7 days later. I'm a Sprint customer but my phone and sim card were purchased from TMobile.
 

Jed!Master

Senior Member
Aug 17, 2019
105
9
why does it say I need 8 characters serial number but I only have 7 even did a fast boot command and came back with 7 digits only. what do I do
 

Ali Zaman

Senior Member
Jan 9, 2021
66
21
Will unlock token work if I get my phone's imei changed? I already have a working unlock token for my phone

Device: OnePlus 8
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    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!
    3
    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
    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
    2
    The device needs to be Sim unlocked before you can even attempt to bootloader unlock.
    This is not true, i have decovered a bypass. I have a way to flip the oem-unlock switch and you dont even need to enter the Dev options. And you can do the fastboot oem get_unlock_code. And get all the info. I located the bit that needs fliped. And this can be added to a msmdownload tool . So all you need to do is flash and the switch is already flipped. Even if you are simlocked.
    IMG_20211003_170545_853.jpg
    2
    Looks like the site is fixed, just downloaded my unlock bin. 288bytes