Help: Restoring original Modem.img on KB2007? (LineageOS) - OnePlus 8T Questions & Answers

Hey, first of all thank you everybody for all the work you put in to these phones. I'm pretty new to all of this
I installed LineageOS nightly on my KB2007 and attempted to flash the global modem & Magisk module for DSDS to enable dual-sim capability (as per this guide), but something must've failed that I don't understand, because now not only does dual-sim not work, but my original sim can no longer connect to the network
In the process it didn't occur to me (because I'm an idiot) to adb pull the original modem.img for backup before replacing it
What can I do to restore the original modem so I can keep using this phone? Does anyone have a copy of the original KB2007 modem.img?
Thanks for any help you can offer
Note: I've also tried factory resets, and re-flashing LineageOS, to no avail

In this reply I'm assuming your using LineageOS 19 (Android 12).
Seeing as the guide you followed is from 2021 the modem firmware you flashed is most likely for android 11.
And as such likely incompatible with android 12 firmware.
The Magisk module from the guide might also be incompatible with LineageOS 19.
If you want at least one sim to work i recommend reflashing the firmware.
NOTE: When updating firmware follow the guide/thread to the point. This phone was released with both DDR4 and DDR5 RAM. Flashing firmware for the wrong DDR type will brick your phone.
You can update your firmware by doing one of the following:
1. Flashing a firmware zip from this xda thread: (thread)
I recommend using KB2003(EU) android 12 firmware as that one is recommended by the LineageOS maintainer.
Make sure you flash android 12 firmware the .zip name should end with (12.0-ddr).
2. Using LineageOS firmware update guide: (guide).
You can get full stock rom from here: (stock rom). Since the OnePlus site still hasn't been updated with the android 12 ROM. I recommend using KB2003 firmware since it's recommended by the LineageOS maintainer.
3. You can also try to only flash the modem.img from one of the above options and see if that works.
(For the first option its inside the .zip file)
Alternatively if you require dual-sim you can go back to the stock rom using the MSM-tool.
MSM tool xda thread for Oneplus 8T: (thread)
MSM tool xda thread for T-Mobile Oneplus 8T: (thread)
Using this will wipe your phone and relock your bootloader.

Vipe838 said:
In this reply I'm assuming your using LineageOS 19 (Android 12).
Seeing as the guide you followed is from 2021 the modem firmware you flashed is most likely for android 11.
And as such likely incompatible with android 12 firmware.
The Magisk module from the guide might also be incompatible with LineageOS 19.
If you want at least one sim to work i recommend reflashing the firmware.
NOTE: When updating firmware follow the guide/thread to the point. This phone was released with both DDR4 and DDR5 RAM. Flashing firmware for the wrong DDR type will brick your phone.
You can update your firmware by doing one of the following:
1. Flashing a firmware zip from this xda thread: (thread)
I recommend using KB2003(EU) android 12 firmware as that one is recommended by the LineageOS maintainer.
Make sure you flash android 12 firmware the .zip name should end with (12.0-ddr).
2. Using LineageOS firmware update guide: (guide).
You can get full stock rom from here: (stock rom). Since the OnePlus site still hasn't been updated with the android 12 ROM. I recommend using KB2003 firmware since it's recommended by the LineageOS maintainer.
3. You can also try to only flash the modem.img from one of the above options and see if that works.
(For the first option its inside the .zip file)
Alternatively if you require dual-sim you can go back to the stock rom using the MSM-tool.
MSM tool xda thread for Oneplus 8T: (thread)
MSM tool xda thread for T-Mobile Oneplus 8T: (thread)
Using this will wipe your phone and relock your bootloader.
Click to expand...
Click to collapse
Thank you so much for your reply! You're a life-saver
In case anyone gets here by Google and was as stupid as me:
- First I went against the guidelines and tried flashing the kb2005 firmware ("global firmware means it'll have dual sim right?"), when I rebooted I couldn't use the touchscreen
- Rebooting again (volume up + power), interrupting it to go to fastboot mode, and flashing the kb2003 firmware fixed that, but still left me with no connection (still don't know why)
- Using the MSM tool to restore the stock T-mobile ROM fixed everything
- After that, I re-unlocked the bootloader and re-installed LineageOS as per the guide and now everything's just fine & working in Lineage. I still don't have dual-sim capability, but it's better to not have a $300 brick and just deal with using only one sim

Related

proper way to use TWRP and clean flash rom?

New GM1915 T-Mobile OnePlus 7 Pro user here...
I seemed to be out of the loop since the release of AB partition, android 10 and so-on...
I did everything here says, unlocked the bootloader, unlocked the sim, converted to international, twrp, and root...
[GUIDE] How to convert TMobile OP7 to International.
First of all this is not my work I only tested theirs. Credit to themustached for finding that a patched .ops was the solution. This guy doesn't even have the damn phone yet and did this for us so show some love. You can donate to him through...
forum.xda-developers.com
and when I want to try other rom or revert back to OOS stock, I missed up and brick a the phone 3 times already....each time I have to use MSM tool and flash the rom to Android 9.x...which is missing something twrp needs, So I need to do a OTA update to Android 10.x before I can install twrp and root.....
Q1: say I have a working system at android 10, twrp and root, If I want do a clean flash of the rom, do I now only wipe the (user data partition in the twrp advance wipe) or the (data wipe that you will need to put type yes and wipes everything)?
Q2: is there an updated T-Mobile .ops file to use with MsmDownloadTool? So I can restore to android 10 in 1 step?
Thank you
Looking for an updated .ops file as well my phone is bricked with android 11 and can't seem to get msmdownloadtool to work with my bricked oneplus 7 pro

Question LE2117 TMO/India Pro 5G to OP9 Locked BL?

Good evening,
Is it possible to recover from where I am (LE2117 model on OxygenOS 11.2.10.10.LE25AA, OTA Version OnePlus9Oxygen_22.O.13_GLO_0130_2111112106), or is my only option to be stuck on the OnePlus 9 Pro 5G India version for locked bootloader? If it's possible, what do I need to do? Work demands my phone to not be rooted...I'm not married to the concept of global or India region, and am fine with either.
[Marking each area with a reference at the bottom...]
Problem: I've attempted the OnePlus 9 5G T-Mobile to Global transition [REF001] on my LE2117 only to brick my phone midway through the process. The goal here is to get the phone on a NON-T-Mobile variant with a locked bootloader. Thankfully I'm rid of T-Mobile, at least...
Where I am now: I was able to recover the phone by using the MSM tool for OnePlus 9 Pro 5G India [REF002], then using the T-Mobile to Global "flash_all.bat" script [REF001] again with the payload of the global version [REF003]. The issue is that the phone's bootloader isn't locked, and if I lock it then everything is gone and I must start over at the beginning of this paragraph. I've attempted using the global MSM tool [REF004], but the issue is that it provides a Param Preload error for Unsupported Target IN. There was a reference somewhere about flashing the param.bin, though, that didn't seem to work...
Thank you for your insight and assistance!
REF001: Convert T-Mobile OnePlus 9 to Global (or other) firmware - https://forum.xda-developers.com/t/convert-t-mobile-oneplus-9-to-global-or-other-firmware.4277169/
REF002: OnePlus 9 Pro Oxygen OS India MsmDownloadTool - https://forum.xda-developers.com/t/oneplus-9-pro-oxygen-os-india-msmdownloadtool.4270589/
REF003: OnePlus9Oxygen_22.O.13_OTA_0130_all_2111112106 -
https://oxygenos.oneplus.net/OnePlus9Oxygen_22.O.13_OTA_0130_all_2111112106_03a66541157c4af5.zip
REF004: GLOBAL OnePlus 9 MSM TOOL UPDATED -
GLOBAL OnePlus 9 MSM TOOL UPDATED
Frist off Im not responsible for anything that happens to your phone!!! VERY SIMPLE IF YOU ARE BICKED,BOOTLOOPED OR JUST WANT TO GO BACK TO 100% STOCK THIS WILL WIPE ALL DATA!!! AN RELOCK BOOTLOADER OOS 11.2.4.4.LE25AA MUST HAVE QAULCOMM...
forum.xda-developers.com
Run the Indian 9 Pro MSM again and download the global 9 downgrade package in the pinned post and flash that to get back on global firmware. The MSM re-locks the bootloader as part of the process and you don't need an unlocked bootloader to convert between variants if you use the official local upgrade function.
Thank you for your response EtherealRemnant -
I've followed the steps and am probably doing something wrong. I've run the OP9PRO India MSM, unlocked OEM for the flash (because trying local upgrade (downgrade) at this point doesn't show the packages), flashed to either global downgrade package, and attempted the global MSM tool for re-lock. I'm still getting the Unsupported Target IN or Device Not Match Image error. Which part of this am I doing incorrectly?
TuufLess said:
Thank you for your response EtherealRemnant -
I've followed the steps and am probably doing something wrong. I've run the OP9PRO India MSM, unlocked OEM for the flash (because trying local upgrade (downgrade) at this point doesn't show the packages), flashed to either global downgrade package, and attempted the global MSM tool for re-lock. I'm still getting the Unsupported Target IN or Device Not Match Image error. Which part of this am I doing incorrectly?
Click to expand...
Click to collapse
You may actually be running into the same problem I did with the downgrade package where it just vanishes from the storage. Do it like this on your computer:
adb push packagename.zip /sdcard/
When I did this, it didn't mysteriously vanish anymore.
If this doesn't work, you may unfortunately be stuck unless you can get someone to modify an MSM Tool for your purposes.
Finally, a solution that hopefully others can also follow to install different versions of their official builds as well (just exchange REF004 with your appropriate compressed zip containing the payload.bin.):
[Adding references for those who found themselves in my same predicament...]
After utilizing the MSM Download Tool for OnePlus 9 Pro 5G [India Region] [REF001], I unlocked the bootloader and leveraged the TWRP App for OnePlus 9 [REF002] by booting towards it [REF003] and installing/flashing the latest version of the OnePlus 9 5G [Global] [REF004] (it defaulted to slot B.) Re-locking the bootloader [REF005] allowed the phone to automatically wipe, and boot directly into the latest Global install.
Shout-out to ctonylee1965's post that's nearly buried in an off-related thread, or I wouldn't have found this solution.
[Original Discussion: https://forum.xda-developers.com/t/...a-sahara-connection-error-check-this.4308601/]
ctonylee1965 said:
Got back to global. Took me a day to figure it out. Enable OEM Unlock and USB debugging. I flashed temp TWRP, installed the OS Zip file from OnePlus support site. Rebooted into recovery, formatted and wiped system. Booted into global. This installation is in SLOT B. Slot A will still have horrible Indian Rom (only horrible because it shouldn't be installed on my Global Unlocked Phone, no disrespect to my Indian brothers.) Note when logging in for the first time let global do its OTA update before you do anything else, especially before you reboot. The Indian version is installed in slot A. REBOOT after OTA installed. Don't reboot before OTA does its thing. This will ensure Slot A has a clean installation. I made the mistake of rebooting before the OTA and I could not do anything with slot A. Relock the bootloader, it will wipe and you will boot into a pristine Global OS 11.2.8.8 Rom.
Click to expand...
Click to collapse
Thank you EmerealRemnant for your assistance as well!
REF001 - MSM Download Tool for OnePlus 9 Pro 5G [India Region] - https://forum.xda-developers.com/t/oneplus-9-pro-oxygen-os-india-msmdownloadtool.4270589/
REF002 - TWRP for OnePlus 9 (lemonade) - https://dl.twrp.me/lemonadep/
REF003 - TWRP Commands To Use (Scroll Down) - https://twrp.me/oneplus/oneplus9.html
REF004 - OnePlus 9 5G (Global) Official Build - https://www.oneplus.com/global/support/softwareupgrade/details?code=PM1617074715494
REF005 - Re-locking the bootloader (fastboot oem lock) - https://ihax.io/relock-bootloader-a...ommand to reboot your device: fastboot reboot
It seems strange you had to do all that work when all I had to do was flash the downgrade package...

Question How to convert a oneplus 9 tmobile oos12 to pixel experiencie or another rom

Hi everyone! I have a question! Does anyone know how to install a custom rom on the oneplus 9 t mobile with OOS 12? Do I have to downgrade or can I install a rom that has android 12 by default?
My version its LE2117_11_C.19
You should firstly update to the latest OOS12 update TMo gives us. After that unlock bootloader (as per the guide here on the fourms) via unlock code method (you will have to wait for TMo to send that your way as it's device specific) and then follow the instructions from the rom provider.
I'm running StagOS on my TMo OnePlus 9 without issues since their last release, before that ran Lineage, Jaguar, Nameless. As long as you are updated to latest OOS and with an unlocked bootloader, you can flash any rom on here provided you follow their instructions. If you brick your phone you can use the modified MSM tool I posted on one of my threads to un-brick and bring back to life your phone (keep a backup of your data though)
RandomLatinDude said:
You should firstly update to the latest OOS12 update TMo gives us. After that unlock bootloader (as per the guide here on the fourms) via unlock code method (you will have to wait for TMo to send that your way as it's device specific) and then follow the instructions from the rom provider.
I'm running StagOS on my TMo OnePlus 9 without issues since their last release, before that ran Lineage, Jaguar, Nameless. As long as you are updated to latest OOS and with an unlocked bootloader, you can flash any rom on here provided you follow their instructions. If you brick your phone you can use the modified MSM tool I posted on one of my threads to un-brick and bring back to life your phone (keep a backup of your data though)
Click to expand...
Click to collapse
so can i follow any tutorial to install any rom if i have unlocked bootloader next to sim? since I tried once to change to global and it worked, I put a module and my cell phone and the phone bricked, with the MSM Tool I was able to recover the OOS t mobile version, but I thought I had to downgrades OOS 11 to install any rom and I never did anything again because of fear for the brick
sorry for my bad English
Yasser.d said:
so can i follow any tutorial to install any rom if i have unlocked bootloader next to sim? since I tried once to change to global and it worked, I put a module and my cell phone and the phone bricked, with the MSM Tool I was able to recover the OOS t mobile version, but I thought I had to downgrades OOS 11 to install any rom and I never did anything again because of fear for the brick
sorry for my bad English
Click to expand...
Click to collapse
Yes, that's it. Basically have your phone updated to the latest OxygenOS TMobile can give you,; Have your phone SIM Unlocked AND Bootloader Unlocked and then follow all the steps the Developers of the ROM you choose give for the installation.
If any rom specifically asks for OxygenOS 11, then the same steps are applied except instead of latest OS versión, the one the Dev asks for
Then I will start the installation of some rom that I like on top of the latest update of tmobile OOS 12, do you recommend any specific one that is pixel experience or similar performance?
RandomLatinDude said:
Yes, that's it. Basically have your phone updated to the latest OxygenOS TMobile can give you,; Have your phone SIM Unlocked AND Bootloader Unlocked and then follow all the steps the Developers of the ROM you choose give for the installation.
If any rom specifically asks for OxygenOS 11, then the same steps are applied except instead of latest OS versión, the one the Dev asks for
Click to expand...
Click to collapse
For example, when I go to the official lineageOS 19.1 page, it says that the compatible devices are all except mine LE2117, do I continue to install anyway?

Touchscreen not working after installing LineageOS 19.1 on Oneplus 8t

Hi,
I followed the exact instructions on the LineageOS wiki but now i'm stuck on the "enter SIM PIN" screen and the touchscreen is unresponsive, so i can't even turn off the phone.
What i installed :
lineage-19.1-20220915-nightly-kebab-signed
MindTheGapps-12.1.0-arm64-20220605_112439
Known bug on some firmware versions the LineageOS maintainer for this device recommends flashing KB2003 C.33 Firmware to fix this. For more support you can go to the LineageOS thread: [ROM][OFFICIAL][kebab][12] LineageOS 19
NOTE: When flashing firmware follow the guide/thread to the point. This phone was released with both DDR4 and DDR5 RAM. Flashing firmware for the wrong DDR type will brick your phone!
You can flash firmware by doing one of the following:
1. Flashing a firmware zip from this XDA thread: (thread)
Download the EU KB2003 Android 12 firmware version.
Make sure you flash android 12 firmware the .zip name should end with (12.0-ddr).
2. Using LineageOS firmware update guide: (guide).
You can get full KB2003 stock rom from here: (stock rom). Since the OnePlus site still hasn't been updated with the Android 12 ROM.
Vipe838 said:
Known bug on some firmware versions the LineageOS maintainer for this device recommends flashing KB2003 C.33 Firmware to fix this. For more support you can go to the LineageOS thread: [ROM][OFFICIAL][kebab][12] LineageOS 19
NOTE: When flashing firmware follow the guide/thread to the point. This phone was released with both DDR4 and DDR5 RAM. Flashing firmware for the wrong DDR type will brick your phone!
You can flash firmware by doing one of the following:
1. Flashing a firmware zip from this XDA thread: (thread)
Download the EU KB2003 Android 12 firmware version.
Make sure you flash android 12 firmware the .zip name should end with (12.0-ddr).
2. Using LineageOS firmware update guide: (guide).
You can get full KB2003 stock rom from here: (stock rom). Since the OnePlus site still hasn't been updated with the Android 12 ROM.
Click to expand...
Click to collapse
Thanks, it worked!
How did you manage to shutdown your phone?

OnePlus 8T (TMO) KB2007 bricked after LineageOS flash?

Hi, I did something stupid and need some help please.
I got the bootloader unlock code for my KB2007 - Unlock went well, no issues.
Then I proceeded to download and install the latest official TWRP - Also no issues, I was in the custom recovery, created some backups etc.
After that, I followed the instructions to install Lineage OS as posted here:
Install LineageOS on kebab | LineageOS Wiki
wiki.lineageos.org
I flashed the dtbo and vbmeta partitions as instructed and proceeded with adb sideloading the copy-partitions-20220613-signed.zip file - Somewhere around here is where things went south.
I was not able to access/read my data partition anymore, and attempted to flash the lineage-recovery. After a reboot, I'm now stuck in the bootloader (fastboot). When I select Recovery mode, the phone just goes black. I also can no longer "fastboot boot twrp.img" - Error: "Failed to load/authenticate boot image: Load Error".
After checking the guide one more time I noticed it says the device has to be on Android 12, which mine was not (it was still in factory condition - Android 11). So that was likely the problem.
So now the big question is can I recover from this state? If yes, what's the best way to do so?
Thanks so much!
FreeDee said:
Hi, I did something stupid and need some help please.
I got the bootloader unlock code for my KB2007 - Unlock went well, no issues.
Then I proceeded to download and install the latest official TWRP - Also no issues, I was in the custom recovery, created some backups etc.
After that, I followed the instructions to install Lineage OS as posted here:
Install LineageOS on kebab | LineageOS Wiki
wiki.lineageos.org
I flashed the dtbo and vbmeta partitions as instructed and proceeded with adb sideloading the copy-partitions-20220613-signed.zip file - Somewhere around here is where things went south.
I was not able to access/read my data partition anymore, and attempted to flash the lineage-recovery. After a reboot, I'm now stuck in the bootloader (fastboot). When I select Recovery mode, the phone just goes black. I also can no longer "fastboot boot twrp.img" - Error: "Failed to load/authenticate boot image: Load Error".
After checking the guide one more time I noticed it says the device has to be on Android 12, which mine was not (it was still in factory condition - Android 11). So that was likely the problem.
So now the big question is can I recover from this state? If yes, what's the best way to do so?
Thanks so much!
Click to expand...
Click to collapse
Restore to stock via MSM.
You must update to OxygenOS 12 before installing lineageos 19.1 or you will brick.
The lineagsos guide is wrong and I bricked my device by following it too.
For now, you can only unbrick it with msmtool.
[OP8T][OOS TMO KB09CB] Unbrick tool to restore your device to OxygenOS
Disclaimer: By attempting any of the processes listed in this thread you accept full responsibility for your actions. I will not be held responsible if your device stops working, catches fire, or turns into a hipster and claims to have been...
forum.xda-developers.com
Then OTA to OOS 12, then install LOS19.1.
Thanks guys! I was able to restore the device using the MSM tool
I intend to keep it on OOS 11 (and potentially flash LOS18.1), because KB2007 is the T-Mobile variant and based on what I read dual sim only works with OOS 11.
The problem is it is becoming increasingly difficult to find instructions (or even downloads) for anything but the very latest versions :/
FreeDee said:
Thanks guys! I was able to restore the device using the MSM tool
I intend to keep it on OOS 11 (and potentially flash LOS18.1), because KB2007 is the T-Mobile variant and based on what I read dual sim only works with OOS 11.
The problem is it is becoming increasingly difficult to find instructions (or even downloads) for anything but the very latest versions :/
Click to expand...
Click to collapse
You can also use KB2007 OOS 13 beta 1 which works with dual sims.
Rootk1t said:
You can also use KB2007 OOS 13 beta 1 which works with dual sims.
Click to expand...
Click to collapse
Thanks! Yeah, I also read about that, and it does indeed sound like a potential way to go.
Do you know if anyone has figured out yet what makes this "beta 1" special in that it allows dual sims? I think I also read it's no longer possible with beta 2.
FreeDee said:
Do you know if anyone has figured out yet what makes this "beta 1" special in that it allows dual sims? I think I also read it's no longer possible with beta 2.
Click to expand...
Click to collapse
As far as i know, it's still unknown what makes beta 1 work in dual-sim mode.

Categories

Resources