[Tutorial] Crossflash, Bypass OPID Mismatched Error

Search This thread

Ratty696

Member
Oct 12, 2019
29
2
Samsung Galaxy S9
LG G8
Tell me the steps to fix

Tell me the steps to fix it
First I had to follow this guide to get it to boot into download mode again https://forum.xda-developers.com/t/tutorial-rescue-from-hard-brick.4351389/
For some reason had to flash the abl_a and abl_b with development abl file to get it to load in download mode then I was able to follow this guide to finally cross flash with CAD Open kdz. Make sure you follow the steps carefully and use the version of lg up that it says to use in this guide
 

rifay78

Member
Feb 28, 2022
35
1
First I had to follow this guide to get it to boot into download mode again https://forum.xda-developers.com/t/tutorial-rescue-from-hard-brick.4351389/
For some reason had to flash the abl_a and abl_b with development abl file to get it to load in download mode then I was able to follow this guide to finally cross flash with CAD Open kdz. Make sure you follow the steps carefully and use the version of lg up that it says to use in this guide
Thanks
 

Vitiok70

Member
Oct 12, 2017
42
0
Reino Unido, London
Si el dispositivo está rooteado, es bastante fácil corregir el error de código nt, pero en realidad no afecta nada, solo aparece en el momento del arranque.

No estoy seguro sobre el interruptor móvil de LG, no estoy familiarizado con eso.

Para obtener el 'dispositivo certificado', debe deshabilitar vbmeta, también necesita root para eso también. Pero también, nunca ha tenido un impacto negativo dejarlo como está, afaik.

salud
Thanks for the reply. I tried to fix the NT code issue with the "cust_path_mapping" archives but to no avail. I can't do anything with the QFIL method, because I don't have the NT code for Sprint's LG V50. Do you know any way to handle the problem of NT code and Googl certification? I have vbmeta disabled and the phone is rooted. Thank you
One more question; I flashed the phone to the latest European version 30c downloaded from the LG page. Maybe I needed another version that wouldn't bother me like that?
 
Last edited:

AsItLies

Senior Member
Nov 4, 2009
1,608
599
tucson
Samsung Galaxy S10
Thanks for the reply. I tried to fix the NT code issue with the "cust_path_mapping" archives but to no avail. I can't do anything with the QFIL method, because I don't have the NT code for Sprint's LG V50. Do you know any way to handle the problem of NT code and Googl certification? I have vbmeta disabled and the phone is rooted. Thank you
One more question; I flashed the phone to the latest European version 30c downloaded from the LG page. Maybe I needed another version that wouldn't bother me like that?

for the certification, you need vbmeta disabled with fastboot, did u use fastboot? Also, once disabled, you have to delete cache / data of google play app, then it will work.

the nt code error -- you simply need to put the correct code, it will tell you the one it's looking for when it boots up, in the error, it's that code that goes in cust path mapping.
 

ArmandBeta

New member
Feb 11, 2016
3
0
Cali
LG G8X ThinQ
Pudiste actualizar vía upgrade vía LGUP?
Hola, lograste actualizar por upgrade ?? por particion saca error, por otro lado no pude volver al modo emergencia EDL para hacer todo el proceso :(

Mod translation via GT: Hi, did you manage to upgrade? by partition it throws an error, on the other hand I couldn't go back to the EDL emergency mode to do the whole process :(
 
Last edited by a moderator:

Vitiok70

Member
Oct 12, 2017
42
0
Reino Unido, London
for the certification, you need vbmeta disabled with fastboot, did u use fastboot? Also, once disabled, you have to delete cache / data of google play app, then it will work.

the nt code error -- you simply need to put the correct code, it will tell you the one it's looking for when it boots up, in the error, it's that code that goes in cust path mapping.
As I commented in the previous message I vbmeta disabiltata and of course that by fastboot, in another way I do not even know. I removed the cache and data in Google Play, but now name it sees installed applications, worse than it was, and remained equally uncertified
 
Last edited:

Vitiok70

Member
Oct 12, 2017
42
0
Reino Unido, London
Hi, a question for sprint owners, who did you go to what version of stock did you go to? In your opinion, which version is the most stable and worth putting through crossflash? Thanks
 

mpena

Senior Member
Feb 11, 2015
126
23
Tecoman
Hola, lograste actualizar por upgrade ?? por particion saca error, por otro lado no pude volver al modo emergencia EDL para hacer todo el proceso :(

Mod translation via GT: Hi, did you manage to upgrade? by partition it throws an error, on the other hand I couldn't go back to the EDL emergency mode to do the whole process :(
I didn't try. I realized clean installation of new kdz
 

igorya79

Member
May 20, 2014
45
2
hi, i have LG G8 LM-G820 (Verizon)
what am I doing wrong? I get an error:
2022-05-08 17:08:29.287 ***** Working Folder:C:\Users\igor\AppData\Roaming\Qualcomm\QFIL\BHI
2022-05-08 17:08:29.293 Validating Application Configuration
2022-05-08 17:08:29.296 Load APP Configuration
2022-05-08 17:08:29.304 COM:28
2022-05-08 17:08:29.304 PBLDOWNLOADPROTOCOL:0
2022-05-08 17:08:29.304 PROGRAMMER:True
2022-05-08 17:08:29.304 PROGRAMMER:C:\Users\igor\Downloads\LGE SM8150 Firehose.elf
2022-05-08 17:08:29.304 RESETSAHARASTATEMACHINE:False
2022-05-08 17:08:29.304 SAHARAREADSERIALNO:False
2022-05-08 17:08:29.304 SEARCHPATH:C:\Users\igor\Downloads
2022-05-08 17:08:29.304 ACKRAWDATAEVERYNUMPACKETS:False
2022-05-08 17:08:29.304 ACKRAWDATAEVERYNUMPACKETS:100
2022-05-08 17:08:29.304 MAXPAYLOADSIZETOTARGETINBYTES:False
2022-05-08 17:08:29.304 MAXPAYLOADSIZETOTARGETINBYTES:49152
2022-05-08 17:08:29.304 ACTIVEBOOTPARTITION:False
2022-05-08 17:08:29.304 ACTIVEBOOTPARTITION:0
2022-05-08 17:08:29.304 PHYPARTITIONS:False
2022-05-08 17:08:29.304 PHYPARTITIONS:0,1,2,4,5
2022-05-08 17:08:29.304 DEVICETYPE:ufs
2022-05-08 17:08:29.304 PLATFORM:8x26
2022-05-08 17:08:29.304 VALIDATIONMODE:0
2022-05-08 17:08:29.304 RESETAFTERDOWNLOAD:False
2022-05-08 17:08:29.304 SWITCHTOFIREHOSETIMEOUT:30
2022-05-08 17:08:29.304 RESETTIMEOUT:200
2022-05-08 17:08:29.304 RESETDELAYTIME:2
2022-05-08 17:08:29.304 METABUILD:
2022-05-08 17:08:29.304 METABUILD:
2022-05-08 17:08:29.304 FLATBUILDPATH:C:\
2022-05-08 17:08:29.304 FLATBUILDFORCEOVERRIDE:True
2022-05-08 17:08:29.304 QCNPATH:C:\Temp\00000000.qcn
2022-05-08 17:08:29.304 QCNAUTOBACKUPRESTORE:False
2022-05-08 17:08:29.304 SPCCODE:000000
2022-05-08 17:08:29.304 ENABLEMULTISIM:False
2022-05-08 17:08:29.304 AUTOPRESERVEPARTITIONS:False
2022-05-08 17:08:29.304 PARTITIONPRESERVEMODE:0
2022-05-08 17:08:29.304 PRESERVEDPARTITIONS:0
2022-05-08 17:08:29.304 PRESERVEDPARTITIONS:
2022-05-08 17:08:29.304 ERASEALL:False
2022-05-08 17:08:29.304 Load ARG Configuration
2022-05-08 17:08:29.315 Validating Download Configuration
2022-05-08 17:08:29.315 Image Search Path: C:\Users\igor\Downloads
2022-05-08 17:08:29.317 Programmer Path:C:\Users\igor\Downloads\LGE SM8150 Firehose.elf
2022-05-08 17:08:29.421 Process Index:0
2022-05-08 17:08:29.428 Qualcomm Flash Image Loader (QFIL) 2.0.3.5
2022-05-08 17:09:05.210 Start Download
2022-05-08 17:09:05.211 Program Path:C:\Users\igor\Downloads\LGE SM8150 Firehose.elf
2022-05-08 17:09:05.212 ***** Working Folder:C:\Users\igor\AppData\Roaming\Qualcomm\QFIL\COMPORT_28
2022-05-08 17:10:35.231 Binary build date: Jun 25 2019 @ 03:16:15
2022-05-08 17:10:35.231 QSAHARASERVER CALLED LIKE THIS: 'C:\Program Files (x86)\Qualcomm\QPST\bin\QSaharaServer.ex'Current working dir: C:\Users\igor\AppData\Roaming\Qualcomm\QFIL\COMPORT_28
2022-05-08 17:10:35.235 Sahara mappings:
2022-05-08 17:10:35.235 2: amss.mbn
2022-05-08 17:10:35.235 6: apps.mbn
2022-05-08 17:10:35.236 8: dsp1.mbn
2022-05-08 17:10:35.236 10: dbl.mbn
2022-05-08 17:10:35.236 11: osbl.mbn
2022-05-08 17:10:35.236 12: dsp2.mbn
2022-05-08 17:10:35.237 16: efs1.mbn
2022-05-08 17:10:35.237 17: efs2.mbn
2022-05-08 17:10:35.237 20: efs3.mbn
2022-05-08 17:10:35.237 21: sbl1.mbn
2022-05-08 17:10:35.238 22: sbl2.mbn
2022-05-08 17:10:35.238 23: rpm.mbn
2022-05-08 17:10:35.238 25: tz.mbn
2022-05-08 17:10:35.238 28: dsp3.mbn
2022-05-08 17:10:35.239 29: acdb.mbn
2022-05-08 17:10:35.239 30: wdt.mbn
2022-05-08 17:10:35.239 31: mba.mbn
2022-05-08 17:10:35.239 13: C:\Users\igor\Downloads\LGE SM8150 Firehose.elf
2022-05-08 17:10:35.240
2022-05-08 17:10:35.240 17:10:35: ERROR: function: sahara_rx_data:276 Unable to read packet header. Only read 0 bytes.
2022-05-08 17:10:35.240
2022-05-08 17:10:35.241 17:10:35: ERROR: function: sahara_main:982 Sahara protocol error
2022-05-08 17:10:35.241
2022-05-08 17:10:35.241 17:10:35: ERROR: function: main:320 Uploading Image using Sahara protocol failed
2022-05-08 17:10:35.241
2022-05-08 17:10:35.242
2022-05-08 17:10:35.242 Download Fail:Sahara Fail:QSaharaServer Fail:process fail
2022-05-08 17:10:35.245 Finish Get GPT
 

AsItLies

Senior Member
Nov 4, 2009
1,608
599
tucson
Samsung Galaxy S10
hi, i have LG G8 LM-G820 (Verizon)
what am I doing wrong? I get an error:

A sahara error is quite common and can happen for many various reasons, unfortunately.

1) be sure to use a usb 2.0 port, not 3.x port
2) sometimes you have to change windows to allow 'unsigned' drivers to run
3) be sure when the device is in edl mode and connected that it's recognized properly in device manager. If not, load the appropriate driver for it
4) some have had luck just switching to a completely different computer

qfil is older software, but once you get it working, it's fine and very beneficial.
 

reachforthesky

Senior Member
Apr 28, 2012
61
24
Successfully flash a Sprint unlocked G850UM20P to G850QM30B (NAO version). I am on T mobile. I happen to have both versions of LG G8x.
I originally only tried to activate VoLTE on the G850UM20P. I did the minimum by uploading the modded abl_a .bin to both a and b locations. Success . The phone booted up with T-Mobile logo and configured volte, WiFi calling and video calling. The switches were grayed out however. Everything worked except I lost Download mode.
After a few days, I decided to cross flash to G850QM30b, just like the other phone I already have.
I first Qfil/upload the original abl_a and abl_b back and get the download mode back. Then I followed OP's instruction and crossed flash to G850QM30b. It worked except the NTcode error. There were multiple NTcode warnings. But after a couple of reboots, it was down to NTcode:0 error.
I tried the re-flash approachs but LGUP would not allow.
Then I compared SVC/MID info/NT code in both the cross-flashed and the unmodded . The cross flashed one has 0,fff,fff,ffffffff,ffffffff,ff vs 1,fff,fff,ffffffff,ffffffff,84 in the unmodded one.
Also FTMmodelname was blank vs QNA in the unmodded one. So I made two edit and the NTcode:0 warning is gone. Not sure if I needed to edit FTMmodelname.

Oh yes, the cross-flashed phone has volte and WiFi calling, but the switches were grayed out. I switched back to the the cross-flashed phone as my daily driver. Will see what happen when T-Mobile shut down 3G on May 30 when Volte is needed.


BTW, a big thank you to Netmsm for being so helpful to so many.
 
Last edited:

Saddique ahamed

New member
May 12, 2022
1
0
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 ^_^
Lm v450PM (v50) same process?
 

reachforthesky

Senior Member
Apr 28, 2012
61
24
I have 2 used unlocked LG V40 from eBay; V405UA20g and V405UA20e. I cross-flashed them to V405QA20e. There were no gain expected because the original 2 already have volte and wifi-calling on T-Mobile. The after-flashed "open" version have the same things. But I "lost" the serial numbers and "gained" fastboot no command error on both phones. I look up the saved ftm.bin and found no serial number (may be the seller had done something to the phone). Lesson: people should write down the serial number before flashing.
Q:
1. How can I "find" the serial number?
2. How to fix the fastboot no command problem?

Edit: I've cross flashed a LG G8x from G850UA A10 to G850QA A11 with serial number and fastboot function intact.
 
Last edited:
  • Like
Reactions: digiciber

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Might help someone with NT-Code problem
    (I'm not an expert or anything, just a dumdum who happened to fix his problem, hopefully yours too)
    I AM NOT RESPONSIBLE FOR ANY HARM TO YOUR PHONE!
    am also not sure if a tutorial like this already exists, or this is a common knowledge for everyone else
    I can't find something similar.. again.. just a dumdum :D

    **ROOT NEEDED**
    this is presuming you're already rooted (the app used needs root permission)
    you'll need Solid Explorer app, give it permission (I think you can use other root explorer but this is what worked for me)

    I experimented and just added a Line on
    cust_path_mapping.cfg

    FFFFFF,61=/product/OP
    ^
    this is the line I added (which worked for me)
    try rebooting after adding this line, and see if you still get the NT error, if not anymore.. then CONGRATULATIONS!
    if you're still getting error, then try replacing the number based on the error you're getting.


    again, I'm not an expert.. this may or may not help you on your error..
    sorry for my english, it's not my mother tongue.

    see attached pics for guide/reference and file path.
    2
    after that i can unroot and use my phone normally right ? another question how can i get rid of nt code error on boot ? thank you
    For NT-Code error read this.
    Yes you can unroot, but bootloader should remain unlocked.
    Remember, before modifying the phone you need to disable verity or else modification won't work.
    1
    From official sprint g850um to open ca g85030a to g850v40a.
    Ok nice thinking of moving to EMw a12 too from att um
    1
    I restored the FTM but no luck, what could be the next step? I don't mind going back to stock ROM as long the SIM works at least. I did backup for these partitions only FTM, Modem_A, Modem_B, SID_A, SID_B, OP_A, OP_B
    Your luck is as good as mine. A full backup is needed to restore to stock Sprint. Find someone who can give you a backup of all partitions. Here it is explained how to create a full backup and restore it.
    Otherwise, the phone should be unlocked using Octopus box.
    1
    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.
  • 41
    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.
    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: