• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[Tutorial] Crossflash, Bypass OPID Mismatched Error

Search This thread

AsItLies

Senior Member
Nov 4, 2009
1,356
527
tucson
Google Pixel 3
Hi. I have got a G8 AT&T version and now stuck at QFIL - Tool - Partition Manage as "sahara error". Any your recommendations are highly appreciated!

A sahara error could be caused by many things (qfil is older software), but it's usually either an unsigned driver (it will tell you that when u install the driver - but u have to pay attention).

Or it's because you aren't using a usb 2.0 port. Older software, wasn't designed to work at usb 3 speeds. Also, try a diff usb cable (a data one, not a charge only one).

cheers
 
  • Like
Reactions: DeislerX

Tangook

New member
Sep 11, 2021
1
0
T-Mobile LG G6
Xperia XZ2
Thanks very much for this instruction, I tried and succeed the third time (Fail before with LGUP has only 3 option so decided to flash anyway and got a boot loop so I start over again).

Mine is G8 Sprint (Refurbished) it's stuck on A9 and 2019 security patch when I got it. Search all over Internet for the way to get it updated the month before, nearly pay for the unlock service guy for this.

Now on Open CA A10 and hope to receive OTA A11 when come out. (Even if still not get OTA now I can use the procedure to get it)
 
Last edited:

AsItLies

Senior Member
Nov 4, 2009
1,356
527
tucson
Google Pixel 3
we still cannot flash a modified OP partition on locked BL right? Just wondering because i'd like to get volte working by a modified op
Not sure what u mean by a 'modified' OP partition, I'm guessing a changed totc file? Then, no, it won't work.

but this guide points to a way to accomplish what u want without having to modify OP totc file. And it will get volte working if the xflashed kdz has it working within it's OP partition normally (without mods).

cheers
 

asusm930

Senior Member
Oct 10, 2009
496
282
FROGGSVILE SWAMP
Not sure what u mean by a 'modified' OP partition, I'm guessing a changed totc file? Then, no, it won't work.

but this guide points to a way to accomplish what u want without having to modify OP totc file. And it will get volte working if the xflashed kdz has it working within it's OP partition normally (without mods).

cheers
yeah basically i want to edit the config files for volte (missing from any variant unfortunately) in OP and flash it back while BL is locked. Guess thats not possible.
 

sasindu

Member
Oct 10, 2012
34
2
Thanks man. Successfully changed my LM G820n (Lg G8) from sk telecom to open korea firmware.
Lets say i want to again flash a us firmware version, should i again follow this from the beginning or can i just flash from lg up?
And does anyone have an idea why my g8 doesnt have fastboot mode?
Thanks
 

netmsm

Senior Member
Oct 3, 2010
153
78
Esfahan
Thanks man. Successfully changed my LM G820n (Lg G8) from sk telecom to open korea firmware.
Lets say i want to again flash a us firmware version, should i again follow this from the beginning or can i just flash from lg up?
And does anyone have an idea why my g8 doesnt have fastboot mode?
Thanks
Yeah you should do them all.
Fastboot is not accessible by default until a serious problem occurs and prevents phone from normal boot. However, you can access Fastboot with the help of abl, xbl engineering files.
 
  • Like
Reactions: sasindu

sasindu

Member
Oct 10, 2012
34
2
Yeah you should do them all.
Fastboot is not accessible by default until a serious problem occurs and prevents phone from normal boot. However, you can access Fastboot with the help of abl, xbl engineering files.
Thanks netmsm.
Can u please give me a small guide on how to access fastboot using abl and xbl engineering files. Although i achieved this step i dont know much about this. Highly appreciate if u can help. Thanks.
 

netmsm

Senior Member
Oct 3, 2010
153
78
Esfahan
Can u please give me a small guide on how to access fastboot using abl and xbl engineering files. Although i achieved this step i dont know much about this. Highly appreciate if u can help. Thanks.
Using QFIL, create a backup of abl, xbl and xbl_config of both a and b sides and then flash attached files. abl_eng to abl, xbl_eng to xbl and xbl_config_eng to xbl_config. Like backing up, flash both sides (a and b).
Restart phone while it is connected to USB port and you are holding Vol-. It will get into Fastboot.
When you are finished with Fastboot, use the backup files and flash them back using Fastboot commands. Fastboot flash abl_a abl_a_bak.bin and...
 

Attachments

  • abl_eng.img
    1 MB · Views: 10
  • xbl_eng.img
    3.1 MB · Views: 4
  • xbl_config_eng.img
    124 KB · Views: 7
  • Like
Reactions: sasindu

sasindu

Member
Oct 10, 2012
34
2
Using QFIL, create a backup of abl, xbl and xbl_config of both a and b sides and then flash attached files. abl_eng to abl, xbl_eng to xbl and xbl_config_eng to xbl_config. Like backing up, flash both sides (a and b).
Restart phone while it is connected to USB port and you are holding Vol-. It will get into Fastboot.
When you are finished with Fastboot, use the backup files and flash them back using Fastboot commands. Fastboot flash abl_a abl_a_bak.bin and...
Thank you very much netmsm. Ill try this guide.
 
  • Like
Reactions: netmsm

sasindu

Member
Oct 10, 2012
34
2
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
AsltLies, can you please give me a small guide on how to proceed with this. Specially how you edit with the hex editor. Seems i also have lost my serial number. Luckily i have it on my phone's back sticker.
Thanks
 

AsItLies

Senior Member
Nov 4, 2009
1,356
527
tucson
Google Pixel 3
AsltLies, can you please give me a small guide on how to proceed with this. Specially how you edit with the hex editor. Seems i also have lost my serial number. Luckily i have it on my phone's back sticker.
Thanks

Well different hex editors behave somewhat differently. I use hexedit under linux. It's a basic hex editor but does what I need. If u don't have linux I'd suggest to search google for a simple one for windows.

essentially, you need to get to specific offset, 12000, and at that point is the first character of your s/n. Continue to enter it in, as far as the s/n goes. Then save it and flash it back.

Before doing any of these though, make backups! Backup what's there (untouched). And, if u have the original ftm, before having done anything, u could flash that back, as it will have the s/n in it already.

cheers
 
  • Like
Reactions: sasindu

sasindu

Member
Oct 10, 2012
34
2
Well different hex editors behave somewhat differently. I use hexedit under linux. It's a basic hex editor but does what I need. If u don't have linux I'd suggest to search google for a simple one for windows.

essentially, you need to get to specific offset, 12000, and at that point is the first character of your s/n. Continue to enter it in, as far as the s/n goes. Then save it and flash it back.

Before doing any of these though, make backups! Backup what's there (untouched). And, if u have the original ftm, before having done anything, u could flash that back, as it will have the s/n in it already.

cheers
Thank you AsltLies, well i do have the backed up ftm during the above process. In fact i do have all of them, but i cant identify which is ftm. I have attached a screenshot here. Is there anyway u could identify it among the files.
Thanks.
Screenshot (2).png
 

AsItLies

Senior Member
Nov 4, 2009
1,356
527
tucson
Google Pixel 3
Thank you AsltLies, well i do have the backed up ftm during the above process. In fact i do have all of them, but i cant identify which is ftm. I have attached a screenshot here. Is there anyway u could identify it among the files.
Thanks.View attachment 5440523
The ftm backup I have for my G8 is about 35 meg in size. If u have one about that size u could try flashing it. But remember, back up what's there now.

And, it would be a very good idea, when u do a back up of any partition, go to that directory and re-name it to what it actually is :)

Also, I've read that in the header info of those files, the actual partition name is in there, but u would need a hex editor to look at it.

cheers
 
  • Like
Reactions: sasindu

asusm930

Senior Member
Oct 10, 2009
496
282
FROGGSVILE SWAMP
Thank you AsltLies, well i do have the backed up ftm during the above process. In fact i do have all of them, but i cant identify which is ftm. I have attached a screenshot here. Is there anyway u could identify it among the files.
Thanks.View attachment 5440523
hook up your phone to PC and get into qfil partition manager, and get the name of the backup there. it will match with the backups you did
 
  • Like
Reactions: sasindu

sasindu

Member
Oct 10, 2012
34
2
The ftm backup I have for my G8 is about 35 meg in size. If u have one about that size u could try flashing it. But remember, back up what's there now.

And, it would be a very good idea, when u do a back up of any partition, go to that directory and re-name it to what it actually is :)

Also, I've read that in the header info of those files, the actual partition name is in there, but u would need a hex editor to look at it.

cheers
Thanks man. Ill search for one with that size. I forgot the renaming part. My bad.
Will try this. Thanks
 

slashduff

New member
Oct 24, 2021
2
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 ^_^
Hi, I was trying to follow these instructions with a Sprint G820UM (locked BL, no fastboot) so I can get Wi-Fi Calling on Freedom Mobile here in Canada. However, LGUP 1.16.0.3 threw an 0x5319 error (SPR_US -> OPEN_CA) even when I unchecked SID_1 and SID_2. I don't know what I'm doing wrong.

  • I deleted the correct partitions in QFIL. (I know this because the phone ended up bootlooping, and I was able to fully restore it with the backup partitions I made.)
  • I made sure UI_Config.lgl was read-only.
  • I have all the correct drivers, to my knowledge. In EDL mode, the phone is recognized as COM15.

The only things I can think of are, maybe the current ROM on my phone isn't 20j, or I got the wrong 20j ROM (I got it from HalabTech instead of lg-firmwares, since the former hosts on Google Drive).

In any case, I finally got the lg-firmwares OPEN_CA 20j ROM on my PC late last night, but I'm nervous trying again in case I get another bootloop. Please let me know if you have any questions or if you'd like to see any screenshots. Thank you.
 

netmsm

Senior Member
Oct 3, 2010
153
78
Esfahan
In any case, I finally got the lg-firmwares OPEN_CA 20j ROM on my PC late last night, but I'm nervous trying again in case I get another bootloop. Please let me know if you have any questions or if you'd like to see any screenshots. Thank you.
Hi =)
Please give me screenshot from "Download Mode" before and after performing "part B" instructions.
 
  • Like
Reactions: slashduff

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    I followed all the steps but was impossible for me to get to the menu in lgup with all the options
    Please follow the preparation and change the attribute of "UI_Config.lgl" to read only.
    it flash the lg logo and then disappear for a while... no way to stop it.
    I've experienced that going from a firmware to another faces such issue. I don't know why, but you may better try a different firmware to make phone boot properly. Then go back and try the desired firmware.
    2
    Does anyone have a good source for and OPEN_US firmware for the LG LM850UM?
    I cross-flashed to OPEN_CAN and my IMEI got zeroed.
    All I can find are CAN and MEX NDZ's for this phone.

    This is the link for the US Open kdz. It's a little difficult to find as they are listed under g8 820QM and not 820UM.

    cheers
    1
    "Current version is not available for user. Can't find matched carrier. Check NT-Code: FFFFFF : 62"

    Getting this error message on startup. But device is working as intended. Just want to know if there's a way to get rid of this message
    1
    Didn't know what u were trying to do. Unfortunately at&t mvno's have to follow the at&t rules, and last I read they don't allow phones on their network to use volte and vowifi unless it's a phone with their imei (an at&t phone) and it is running an at&t rom.

    The G8 is certainly capable of volte, but if the carrier is actually checking the imei, don't think there's any way around that. I use mint mobile (t-mo) and it works perfectly with a US OP partition on a Sprint G8.

    cheers
    Thank you again. I called Cricket and got it working, for now at least. You've been an absolute lifesaver.
    1
    Strongly advise NOT to flash any partition indicating 'data overflow'. Doing that will almost certainly (semi) brick the device as you'll overwrite nearby partition information.

    What's happened is you crossflashed to a rom that has a smaller partition size for the OP. You'll need the partition table for what u originally had, or xflash to a rom that has a bigger OP partition.

    edit: Look at netmsm's guide re fixing hardbrick. He has gpt tables for at&t in there and how to revert to them.

    Also, why are u doing this? Do u just want to sell or is something not working?
    Thanks, I was able to revert the partition table using edl bkerler.

    I made the mistake of crossflashing before I put in the network unlock code. So I needed to revert back to the AT&T version, put in the network unlock code, then I'll crossflash it again. At least that's the plan 🤞
  • 13
    Hi there ;)
    Thanks to all other guys here who has 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.
    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 Spring 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.
    3
    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!
    2
    I would like to know the following:
    (1) first, MAKE A FULL BACKUP OF ALL PARTITIONS; and I mean it!!! How, exactly, does one make this full backup? How does it get restored if needed?
    (2) 1. Make a backup of and erase these 5 partitions: FTM, Modem_A, Modem_B, SID_A, SID_B, OP_A, OP_B. What does this mean, exactly? What tool is being used for this?
    (3)If you are in Spring or other platforms you will get the message whether to change the model or not. Of course you know what to do =). I do not know what to do. It is not helpful to write such a vague, obtuse instruction.

    I don't speak for netmsm, and he's more than capable of doing that himself.

    But, for myself, I just wanted to say I think your comments are very unfair. 1st) The guide does say exactly how to back up those partitions, you, obviously, just don't recognize that, and probably thus have no idea what the utilities mentioned in the guide do. (hint: see where qualcomm and qfil are mentioned - just before 'make a backup'.

    2nd) If u don't understand something in the guide, read the comments others have made, because it's possible someone else has already asked that question. Re the 'Of course u know what to do', you'll find others have said they got that pop-up, and others didn't. From that u can deduce, it's not **critical**. And, if anything, u realize it's kind of a joke... as in 'who want's a sprint phone anyway?' Get it?

    There's no reason to be disparaging because u can't follow a guide without having to do any thinking at all. Sometimes, a guide can be 'over our head'. I.E. u just don't have enough experience in this area. Remember, a guide writer faces a dilemma; how to get the information across, succinctly, without becoming too verbose. Too verbose and the guide becomes a book, and most of us that write guides have no desire to spend the time it takes to write a book.

    If u don't understand, ask questions, but don't be disparaging. We should all be thankful netmsm even bothered to take the time to write this!

    cheers
    2
    me too
    they solved it?
    You can solve it, reading the comments. When u only get a few options it's because u didn't follow the original post. That UI file has to be 'read only' or it won't work properly.

    cheers
    2
    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 ^_^
    Idk when i opened lgup it's only have 3 option refurbished, upgrade n fota update