[Tutorial] Crossflash, Bypass OPID Mismatched Error

Search This thread

r33tom

Senior Member
Jan 9, 2018
60
15
Hi there ;)
Thanks to all other guys here who have made helpful development to tame this beautiful =)

LG has made things difficult in flashing custom and even stock roms by this new OPID thing! It prevents us from crossflashing but we have been able to use TWRP and change the system and some other partitions to have a different rom. We had to make some changes into OP partition using HxD editor.
But now, through this tutorial, we're able to flash any rom without the need to change OPID in OP partition. Also, there is no need to root or unlock boot-loader.
I was successful to do this on some G8 (LMG820UM) but I AM NOT RESPONSIBLE FOR ANY HARM TO YOUR PHONE!

By continuing to read the following instructions you are actually accepting the risk.


IMPORTANT!
first, MAKE A FULL BACKUP OF ALL PARTITIONS; and I mean it!!!
at least, for your sake, make a backup of "modemst1, modemst2, fsg, fsc, ftm" partitions, for emergency.


Requirements
QPST and Qualcomm USB Driver (get)
LGE SM8150 Firehose (get)
LGUP 1.16.0.3 (get)
LGUP_Common.dll (get)
UI_Config.lgl (get)
LG Mobile Driver 4.4.2 (get)


Preparation
1. Install QPST and Qualcomm USB Driver.
2. Install LGUP.
3. Find the folder named "model" in the installation directory of LGUP, then Create a folder named "common" in the "model" folder.
4. Move "LGUP_Common.dll" and "UI_Config.lgl" into "common" folder. Change the attribute of "UI_Config.lgl" to read only.
5. Install LG Mobile Driver 4.4.2.


Steps
A)
1. Open QFIL.
2. Change "Storage Type" to UFS.
3. Select "Flat Build".
4. Browse for "LGE SM8150 Firehose" and pick it.
5. Now, connect the phone to PC and boot into EDL mode.
6. Open "Select Port" and select the phone, press OK.
7. In "Tools" open the "Partition Manager".

B)
!!!BE CAREFUL TO DO EXACTLY AS THE INSTRUCTIONS SAY OR YOU WILL BRICK THE PHONE!!!
1. Make a backup of and erase these 7 partitions: FTM, Modem_A, Modem_B, SID_A, SID_B, OP_A, OP_B.
1.1. You have to left-click on a partition then right-click on it and select "Manage Partition Data".
1.2. In the pop-up window, you have 4 choices: I. Erase (to erase data on the partition), II. Read Data (to dump or back up the partition), III. Load Image (to restore the partition), IV. Close (to close the window).
1.3. First dump/back up the partition by choosing "Read Data" then Erase it.
2. Close the "Partition Manager" window.
3. Wait for 5 seconds then press Vol- and Power until it restart.
3.1. Immediately after rebooting, Release the Vol- and Power buttons and press Vol+ to get into Download Mode.
Note: Do not let the phone to begin to boot! If it begins to boot, it may regenerate the SID and FTM partitions data and so you need to redo the whole step B.

C)
1. Open LGUP.
2. Pick your favorite KDZ.
3. Select "PARTITION DL".
4. Press Start. And a pop-up window will appear. In this window you can select which partitions to be flashed.
5. Here, uncheck these partitions: SID_A and SID_B. It will make it able to bypass the OPID Mismatched Error.
6. If you are in Sprint or other platforms you will get the message whether to change the model or not. Of course you know what to do =)

after completing the process it will boot up in some minutes and before starting the customization it will do one restart. just be patient.
Just want to say a big thanks to @netmsm your guide has saved me from replacing my LG g8x sprint version. I was stuck on android 10 and security updates from a year ago. Now on android 12 with a recent security update. This has given my phone another year of service before I'll replace it.

The guide was easy to follow and I didn't encounter any issues. Device is like new again.
 
  • Like
Reactions: netmsm

Wish39

Senior Member
Jan 13, 2015
206
59
@netmsm Hey whats up, long time no see. We talked some months ago when I was trying to crossflash a Mediatek powered LG K51.
Well I finally figured out how to crossflash on LG Mediatek devices. You get the phone into BROM mode and just erase both OP_a and OP_b partitions, and LGUP will let you flash any firmware you want. I successfully flashed Korean LG Q31 Android 11 firmware onto a Spectrum Mobile LG K31 that had Android 10.

It's still risky to crossflash because I then hard bricked a Spectrum LG Stylo 6 by trying to crossflash it to LG K71 Android 12 firmware. Something somehow went wrong and I had to use SP flash tool to unbrick it.
20220808_1409482.jpg
 
  • Love
Reactions: netmsm

netmsm

Senior Member
Oct 3, 2010
432
198
Esfahan
@netmsm Hey whats up, long time no see. We talked some months ago when I was trying to crossflash a Mediatek powered LG K51.
Well I finally figured out how to crossflash on LG Mediatek devices. You get the phone into BROM mode and just erase both OP_a and OP_b partitions, and LGUP will let you flash any firmware you want. I successfully flashed Korean LG Q31 Android 11 firmware onto a Spectrum Mobile LG K31 that had Android 10.

It's still risky to crossflash because I then hard bricked a Spectrum LG Stylo 6 by trying to crossflash it to LG K71 Android 12 firmware. Something somehow went wrong and I had to use SP flash tool to unbrick it.
20220808_1409482.jpg
Heyyy
Not much, thanks.
Yeah I remember that, so how have you been.
Great job, so we got Mediatek devices unlocked to be crossflashed. Nice.
LG Stylo 6 and LG K71 have minor differences, maybe this is the reason that it had been bricked.
I've never worked on Mediatek devices, but if we can create a full backup then it makes us able to use the backup file and unbrick the phone like what we do on Qualcomm devices.

I'll mention your guide and pin this post to the first page for those who are willing to crossflash their Mediatek devices if you find it good and have no problem with that.
 

TPMJB

Senior Member
Jun 28, 2010
1,375
370
www.blackcats-games.net
LG V50 ThinQ
Hey @netmsm is there an easy way to backup all partitions or do I have to do them one-by-one? Because that seems like a royal pain lol.

I'm getting another one of these phones so curious for the future. I didn't do this for my US Cellular LG V50 (I'm probably the only one with a V50 US Cellular woooo)
 

Yeison888

Member
Aug 20, 2022
8
0
ayuda tengo v50 sprint eliminé todas mis particiones incluyendo ftm ahora no tengo imei me dijo que mi teléfono está permanentemente bloqueado hice una copia de seguridad de ftm pero cuando restauro la partición me da imai pero no hay señal
 

Attachments

  • Screenshot_20220819-182934.png
    Screenshot_20220819-182934.png
    75.1 KB · Views: 11

Brando81

Member
Apr 13, 2011
27
1
OK, I think I read everything and not sure if I did something incorrectly.

Backedup my partitions and deleted the partitions as indicated. When I did part B 3.1, it took me to FastBoot w/ PowerOff or Restart Options. Somewhere else in the thread was talking about having to restore Download, but I'm not sure they were at the same point I was. LGUP shows no handset connected.

LM-G850UM
Secure Boot yes
Device State locked

Can anyone help with the next few steps?

Thanks in advance!
 

AsItLies

Senior Member
Nov 4, 2009
1,667
614
tucson
Samsung Galaxy S10
OK, I think I read everything and not sure if I did something incorrectly.

Backedup my partitions and deleted the partitions as indicated. When I did part B 3.1, it took me to FastBoot w/ PowerOff or Restart Options. Somewhere else in the thread was talking about having to restore Download, but I'm not sure they were at the same point I was. LGUP shows no handset connected.

LM-G850UM
Secure Boot yes
Device State locked

Can anyone help with the next few steps?

Thanks in advance!

So if you're trying to unlock the boot loader, then at that fastboot screen just type in 'fastboot oem unlock'.

If you want to restore download mode, you just need to flash back the backed up laf partition.

It's a little confusing because there are 2 ways to get fastboot, one is the obvious flashing of the engineering abl. The other is to delete the laf partition, and instead of getting lgup / download mode when going to lgup, you get a 'watered down' version of fastboot.

cheers
 
  • Like
Reactions: netmsm

Brando81

Member
Apr 13, 2011
27
1
Thanks for the comments!

I don't think I need to unlock my bootloader. I have AT&T model on TMO network which just became useless due to no VOLTE. I'm trying to update this for the model/IMEI to hopefully work and add VOLTE (Here https://forum.xda-developers.com/t/...ther-qualcomm-powered-lg-devices-too.4343655/)

I have flashed other models in the past, but this is my first time messing with the G8X.

I don't think I deleted the laf partition, but that seems more likely than flashing abl. I was following this:

1. Make a backup of and erase these 7 partitions: FTM, Modem_A, Modem_B, SID_A, SID_B, OP_A, OP_B.
1.1. You have to left-click on a partition then right-click on it and select "Manage Partition Data".
1.2. In the pop-up window, you have 4 choices: I. Erase (to erase data on the partition), II. Read Data (to dump or back up the partition), III. Load Image (to restore the partition), IV. Close (to close the window).
1.3. First dump/back up the partition by choosing "Read Data" then Erase it.
2. Close the "Partition Manager" window.
3. Wait for 5 seconds then press Vol- and Power until it restart.
3.1. Immediately after rebooting, Release the Vol- and Power buttons and press Vol+ to get into Download Mode.
Note: Do not let the phone to begin to boot! If it begins to boot, it may regenerate the SID and FTM partitions data and so you need to redo the whole step B.

And at 3.1 is where I went into fastboot instead of download.

So it sounds like I need to flash laf first. I imagine I do that going into QFIL and restoring my saved partition?

(Can I just Restart to get out of FastBoot?)
 

adieygdiey

Member
Jul 8, 2018
6
0
Thanks for the comments!

I don't think I need to unlock my bootloader. I have AT&T model on TMO network which just became useless due to no VOLTE. I'm trying to update this for the model/IMEI to hopefully work and add VOLTE (Here https://forum.xda-developers.com/t/...ther-qualcomm-powered-lg-devices-too.4343655/)

I have flashed other models in the past, but this is my first time messing with the G8X.

I don't think I deleted the laf partition, but that seems more likely than flashing abl. I was following this:

1. Make a backup of and erase these 7 partitions: FTM, Modem_A, Modem_B, SID_A, SID_B, OP_A, OP_B.
1.1. You have to left-click on a partition then right-click on it and select "Manage Partition Data".
1.2. In the pop-up window, you have 4 choices: I. Erase (to erase data on the partition), II. Read Data (to dump or back up the partition), III. Load Image (to restore the partition), IV. Close (to close the window).
1.3. First dump/back up the partition by choosing "Read Data" then Erase it.
2. Close the "Partition Manager" window.
3. Wait for 5 seconds then press Vol- and Power until it restart.
3.1. Immediately after rebooting, Release the Vol- and Power buttons and press Vol+ to get into Download Mode.
Note: Do not let the phone to begin to boot! If it begins to boot, it may regenerate the SID and FTM partitions data and so you need to redo the whole step B.

And at 3.1 is where I went into fastboot instead of download.

So it sounds like I need to flash laf first. I imagine I do that going into QFIL and restoring my saved partition?

(Can I just Restart to get out of FastBoot?)
I got same problem last night..fastboot mode appear instead of download mode..i think g8x have different key for download mode..instead of volume up..i press volume down..in fastboot just select restart and hold vol-..just make sure dont boot your phone 1st..otherwise u need to do the step again..my device was lg850um sprint glashed to lg850ewm..only nt code issue but everything work fine
 

adieygdiey

Member
Jul 8, 2018
6
0
I'm on firmware g850ewm40a A12..flashed it from g850um sprint A10..do i need to follow the step again to downgrade android A12 to A11..i mean from A12 g850ewm40a rom to A11 g850ewm30g..my goal is to fixed volte on this device..just realised A12 cant do that
 

Brando81

Member
Apr 13, 2011
27
1
So I rebooted from Fastboot, but seems I'm stuck in a loop. Everything goes straight to Fastboot:

Volume +
Volume -
and doing nothing.

***Edit*** I kept restarting and trying volume +. Somehow it went into download and I could finish the other steps. It's reflashed, but it didn't ask about changing models so I have the same model listed but no AT&T Boot screen, so we will see if I can fix that. Just wanted to update in case anyone is reading this later in a similar situation.
 
Last edited:

deadly202

Member
Dec 20, 2016
5
0
Just want to say a big thanks to @netmsm your guide has saved me from replacing my LG g8x sprint version. I was stuck on android 10 and security updates from a year ago. Now on android 12 with a recent security update. This has given my phone another year of service before I'll replace it.

The guide was easy to follow and I didn't encounter any issues. Device is like new again.
Which kdz did you use to accomplish this? Send a link plz.
 

r33tom

Senior Member
Jan 9, 2018
60
15
Just finished, instructions seemed straightforward.
I didn't get a prompt to choose model also, I'm getting the "Check NT-Code" error on boot.
Yep I got that too. I read it does not cause any issues. You can remove the alert but your need root access. Have a search on the forum as there is a few threads on how you can fix this.
 
  • Like
Reactions: deadly202

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Heyyy
    Not much, thanks.
    Yeah I remember that, so how have you been.
    Great job, so we got Mediatek devices unlocked to be crossflashed. Nice.
    LG Stylo 6 and LG K71 have minor differences, maybe this is the reason that it had been bricked.
    I've never worked on Mediatek devices, but if we can create a full backup then it makes us able to use the backup file and unbrick the phone like what we do on Qualcomm devices.

    I'll mention your guide and pin this post to the first page for those who are willing to crossflash their Mediatek devices if you find it good and have no problem with that.
    Yeah I'm fine with having my guidee be on the first post.
    1
    First of all, Thanks for the awesome guide man! I do have two questions;
    1) Now, what I wanted to ask was that I have an LG G8x 901LG(Japan Softbank Variant) and would I be able to flash to Open_CA or some other kdz because this has A TON, and I mean, A TON of bloat. The reason is that I've not seen someone discuss these variants of lg G8 or G8x on this thread.
    2) Would this also unlock the network as the phone is network locked by softbank and I can'r get in unlocked as I am not in japan. (I got the phone for really really cheap here). I did see some guy mention here that LG fixed that but I've seen some jap phones network unlocked by crossflashing that's why I was asking.

    Thanks in advance for any help my dude!
    You're welcome =)
    1. Yes you can crossflash regardless of phone's variant but do not crossflash without creating backup.
    2. No it won't be unlocked by crossflashing.
    1
    And LUN5 will brick it if I crossflash to another device? Is there anypoint in backing that up?
    And can I do the crossflash LUN0-4 even if the receiving device has a different stock ROM (such as AT&T LUNs to a TMobile phone)?
    I've already explained it! LUN5 can be restored on the same original phone not other similar phones and it does not relate to bricking a phone. LUN5 contains identity information of the device which are dynamically encoded by the board number and then hence are not readable on other devices.
    Yes you should make backup of LUN5 and FTM at first step.
    Crossflash and flash are performed automatically on LUN0, LUN1, LUN2 and LUN4 only (in LGUP).
    When we use the phrase "crossflash" it means exactly what you are questioning (att to tmobile) or in general, flashing from any variant source to any different variant destination; using LGUP or Qfil, using flashing methods or backup-restore methods.
    1
    Compile these tutorials, make these codes, and answer our questions 😂 .
    In our culture one who knows about something is obligated and concomitantly obliging to share it with those who don't know.
    1
    Mate good day im one of you follower i have question about using qfil partition because i want to downgrade may v50s from a12 to a11 i already made your tutorial about opid mismatching but when i use qfil it show an error like this "switch to edl mode fail failed to switch to emeegency download mode" can you help me thanks
    Your phone is not detected by the computer. Make sure you're in EDL mode, drivers are installed and connection is correctly established.
  • 45
    Hi there ;)
    Thanks to all other guys here who have made helpful development to tame this beautiful =)

    To crossflash other models than LG G8 please read post 3.

    LG has made things difficult in flashing custom and even stock roms by this new OPID thing! It prevents us from crossflashing but we have been able to use TWRP and change the system and some other partitions to have a different rom. We had to make some changes into OP partition using HxD editor.
    But now, through this tutorial, we're able to flash any rom without the need to change OPID in OP partition. Also, there is no need to root or unlock boot-loader.
    I was successful to do this on some G8 (LMG820UM) but I AM NOT RESPONSIBLE FOR ANY HARM TO YOUR PHONE!

    By continuing to read the following instructions you are actually accepting the risk.


    IMPORTANT!
    first, MAKE A FULL BACKUP OF ALL PARTITIONS; and I mean it!!!
    at least, for your sake, make a backup of "modemst1, modemst2, fsg, fsc, ftm" partitions, for emergency.


    Requirements
    QPST and Qualcomm USB Driver (get)
    LGE SM8150 Firehose (get)
    LGUP 1.16.0.3 (get)
    LGUP_Common.dll (get)
    UI_Config.lgl (get)
    LG Mobile Driver 4.4.2 (get)


    Preparation
    1. Install QPST and Qualcomm USB Driver.
    2. Install LGUP.
    3. Find the folder named "model" in the installation directory of LGUP, then Create a folder named "common" in the "model" folder.
    4. Move "LGUP_Common.dll" and "UI_Config.lgl" into "common" folder. Change the attribute of "UI_Config.lgl" to read only.
    5. Install LG Mobile Driver 4.4.2.


    Steps
    A)
    1. Open QFIL.
    2. Change "Storage Type" to UFS.
    3. Select "Flat Build".
    4. Browse for "LGE SM8150 Firehose" and pick it.
    5. Now, connect the phone to PC and boot into EDL mode.
    6. Open "Select Port" and select the phone, press OK.
    7. In "Tools" open the "Partition Manager".

    B)
    !!!BE CAREFUL TO DO EXACTLY AS THE INSTRUCTIONS SAY OR YOU WILL BRICK THE PHONE!!!
    1. Make a backup of and erase these 7 partitions: FTM, Modem_A, Modem_B, SID_A, SID_B, OP_A, OP_B.
    1.1. You have to left-click on a partition then right-click on it and select "Manage Partition Data".
    1.2. In the pop-up window, you have 4 choices: I. Erase (to erase data on the partition), II. Read Data (to dump or back up the partition), III. Load Image (to restore the partition), IV. Close (to close the window).
    1.3. First dump/back up the partition by choosing "Read Data" then Erase it.
    2. Close the "Partition Manager" window.
    3. Wait for 5 seconds then press Vol- and Power until it restart.
    3.1. Immediately after rebooting, Release the Vol- and Power buttons and press Vol+ to get into Download Mode.
    Note: Do not let the phone to begin to boot! If it begins to boot, it may regenerate the SID and FTM partitions data and so you need to redo the whole step B.

    C)
    1. Open LGUP.
    2. Pick your favorite KDZ.
    3. Select "PARTITION DL".
    4. Press Start. And a pop-up window will appear. In this window you can select which partitions to be flashed.
    5. Here, uncheck these partitions: SID_A and SID_B. It will make it able to bypass the OPID Mismatched Error.
    6. If you are in Sprint or other platforms you will get the message whether to change the model or not. Of course you know what to do =)

    after completing the process it will boot up in some minutes and before starting the customization it will do one restart. just be patient.


    ERRORS, QUESTIONS, TROUBLESHOOTING
    1. Can I crossflash V50, V60, G8X or other LG devices using this method?
    I did it on V50. Maybe it'll work on your devices maybe won't. There's one way to find out; make backup and give it a try.
    2. SN is gone, zero, etc.
    Restore your original FTM.
    3. I can't get into recovery.
    Restore the original FTM.
    4. I got NT-Code error.
    It's been discussed many time in the thread and some solutions have been presented (such as this one, thanks to @animo214). However, you can ignore it if the phone got network.
    5. IMEI is lost, zero, null etc.
    Restore LUN5 partitions. If you have no backup it should be repaired using Octopus box.
    6. I got "permanently locked" error.
    This is because of IMPL lock and you have to restore LUN5 partitions. In case of having no backup you should use Octopus box.
    7. All partitions are deleted accidentally.
    Follow this instructions.
    8. I need to get into PDM mode.
    Unzip and restore the attached PDM to FTM partition. Remember, you need to restore your FTM to get into OS.
    9. Can I use another phone's LUN5 backup?
    NO.
    10. Can I use another phone's FTM backup?
    Yes. All partitions can be restored from another phone's backup except LUN5 partitions.
    11. My phone is stuck in boot-loop.
    Restore the original FTM and if it doesn't help redo the whole crossflash process and use a different KDZ this time.
    12. Which KDZ is the best (for any matter of use)?
    I do not know.
    13. Can I crossflash from any source variant to Korean variant or vice versa?
    Yes it is possible but you may get error on opening stock camera application because of hardware differences. There are some methods to solve the issue which you can search and find them. It is out of topic here.
    14. Can I downgrade using this method?
    Yes.
    5
    Hey good for you, so the Open a11 must be the Kor version right? Either way, could u do a big favor and try to get to recovery? Of course don't erase anything, but just verify you can get to the recovery screen?

    thnx!

    So, we just got this sorted. Thanks to SGMarkus as he mentioned it's the ftm partition that controls recovery access and fastboot access. So, with the newly flashed kdz, as it is, you can't even get to fasboot although u flashed the eng abl to it.

    But! Restore your old ftm, after flashing, and then you'll get access to both recovery and ability to get to fastboot after flashing eng abl.

    cheers!
    3
    Some pictures of flashing my LMG820UM, unlocked from Sprint, into OPEN_CA 20j. In normal mode you cannot flash SPR_US to OPEN_CA which is shown in the pictures. But using this thread instruction it allows to flash, even it asks to change the model from SPR_US to OPEN_CA :D
    Until performing the instructions, it shows the "id: 2(SPR_US)" on the Download Mode screen, but after that it cannot recognize the phone model id and shows "id: 0()" :D
    Have fun ^_^
    3
    Thank you vary much @netmsm and @AsltLies , you are life savers =)

    I don't know how and what's wrong before, but by following the steps again I can flash with Open Canada firmware now.

    Here's my Screen Shots.

    Great, very cool. Suggestions though, u might want to mod that pic with your imei in it, people do actually try to steal those sometimes :(

    Also, like me, you lost your s/n. Easy to fix that with a hex editor, assuming you have the s/n recorded somewhere. Extract the current ftm partition and at offset 12000 is where you start putting in the s/n. Flash it back and it will show up again.

    cheers
    3
    alright, G8x Sprint succesfully crossflashed to OPEN CA :cowboy: