yashsingh1/xdaforums huggingface dataset:
[LG G8 Guides, News, & Discussion] reachforthesky:
Netmsm, thanks for the help.

Turn out that either ADB devices or ADB get-serialno can retrieve the serial number.

I then use Qfil to put the serial number back in ftm.bin (offset 14000). One down, one to go.

Now have to find out why recovery/fastboot mode gives me a dead Android with "no command" error. The Power button and tap Volume+ combo won't do anything.

NT code was blank in ftm.bin as well as in SVC Menu/MID Info. A linkage to the recovery/fastboot error?
[LG G8 Guides, News, & Discussion] AsItLies:
Hate to tell ya, but pretty sure when the pwr button and vol + combo don't do anything, that's because you don't have the original ftm. My experience is the ftm controls that, and needs to be orig for it to work.
[LG G8 Guides, News, & Discussion] reachforthesky:
Yeah! I did not save the original ftm.bin as I was getting cocky after successfully cross-flashing a Sprint-unlocked G8x A10 to US_,open A11. Then fixed the NT code error.

Along the way, I mistakenly thought the extracted ftm.bin from stock firmware was blank, and it would be populated later at the initially boot up. So why save the ftm.bin when I move on to the LG V40 cross-flash? Illogical! Big mistake!

Look like I really have to learn what "data" are inside the ftm.bin after boot up.
[LG G8 Guides, News, & Discussion] AsItLies:
Yeah that is unfortunate. I learned some time ago, back up the entire rom, first thing, no excuses.

there are some python utilities that do that, look for bkerler edl utilities, you'll find his git pages. Those utilities can back up everything, and even create the xml to reload them, if desired. Not sure if there's anything you can do about not having original now, sadly.

good luck
[LG G8 Guides, News, & Discussion] dalponis:
EDIT 2022-05-24 17:05:

I'm trying to Cross Flash my LM-G820UM AT&T with G820UM30b_00_OPEN_CA_OP_1203.kdz (Android 11)

The LGUP utility didn't have "Partition DL" under Process.

I noticed the UI_Config.lgl file is being deleted from model\common when I launch LGUP.

I set ui_config.lgl to read only, and I got Partition DL mode.

I selected all partitions except sid_a and sid_b and was able to flash my LG device.

The flash is complete, I am on the G820UM30b_00_OPEN_CA_OP_1203.kdz firmware. My IMEI is currently, 0.

I am now reading/working on this post:

https://xdaforums.com/t/tutorial-cr...ismatched-error.4345963/page-10#post-85935583

Trying to get my IMEI back from 0.

I downloaded UltraISO and edited a back up copy of modem_a.bin and modem_b.bin and removed all imei* files under image. When I use QFIL to reload these bin files, QFIL errors because the file I am trying to flash has a space in the file name...

I just removed the space from the file name, and QFIL worked fine so far.

Unfortunately, I was unable to use tutty.exe to connect to my phone! No matter what, even enabling Port Check Test, tutty.exe wouldn't connect to the phone. I could only get a black screen that wouldn't respond on my computer.

Anyway, using *#546368#*820#, I was able to set my IMEI back to what it should have been! I did a factory reset on my phone and the IMEI even persisted! This is good!

I've followed the cross-flash guide and updated to G820UM30c_00_OPEN_CA_OP_0201.kdz. My IMEI is there.

Looking at this post for information about the Serial Number:

https://xdaforums.com/t/tutorial-crossflash-bypass-opid-mismatched-error.4345963/post-86922961

I can see a ftm.bin, I can upload that to my device using QFIL after taking a backup of ftm.bin After I upload ftm.bin, reboot phone, I get a blue screen with a 2 on it. Using tutty, I can connect to one of two of the COM ports listed. When I type in my IMEI that is already set via the at%imei=*****, I get an ERROR.

Only problem(s) I still have are:

. NT Code error on boot, unsure how to resolve

. SN for my phone is erased

. Went I insert a SIM card I get a screen telling me my phone is perma-locked, is this to due to the errors in the NT Code?

I found a guide and a post:

https://xdaforums.com/t/restoring-serial-number-sn.4095313/

https://xdaforums.com/t/tutorial-cr...mismatched-error.4345963/page-4#post-85825439

Is my serial number written inside my phone on a sticker? If I were to open the case, could I recover the serial number?
[LG G8 Guides, News, & Discussion] netmsm:
Flash Korean A11 KDZ and go to hidden menu then modify the NT Code. It'll solve the perm-locked issue. If you're on A11, give it a try and if it doesn't work then flash Korean A11.
[LG G8 Guides, News, & Discussion] surgemanx:
I tried this last night on a G8x with firmware version G850QM30b and it wouldn't let me modify the IMEI in the hidden menu.When I used ultra iso to edit the modem_a and modem_b I see 8 files with the IMEI names and I deleted all 8 in both modem bin files?Did I make a mistake on which IMEI files that needed to be deleted?I may grab the UM and EMW firmware,and see if there is some sort of difference.I did want to verify I was deleting the correct imei files in the modem_a and modem_b files?Thanks
[LG G8 Guides, News, & Discussion] dalponis:
Edit 20:15:

I'm assuming the hidden menu is *#546368#*820#.

I can't change my NT code in there with my CAN OPEN firmware. I'm trying to find the Korean A11 KDZ.

Once I find a Korean A11 KDZ, how do I know what a valid NT code is? Do I just turn the start of the code from "0" to "1"?

Are you suggesting I use a firmware for the LG-LMG820N?

KTZ Builds Such as: G820N30d_00_KT_KR_OP_1119.kdz or G820N30b_00_KT_KR_OP_0908.kdz

or

KOR Builds Such as: G820NO30b_00_OPEN_KR_OP_0908.kdz?

Do you have a recommended build to use?

And what exactly do I change my NT Code to?
[LG G8 Guides, News, & Discussion] dalponis:
I only found 8 IMEI* files (all of them) in my .bin file. So it sounds like you deleted them all.
[LG G8 Guides, News, & Discussion] surgemanx:
If you was able to edit the IMEI in the service menu,that means some where down the line you have changed the impl from 1 to 0.That's what I have been trying to figure out how to get around myself.I have yanked all partitions from LUNS 5 and hexed edited all of them and still no luck repairing the IMEI.Here's the Korean firmware Netmsm is speaking of for NT Code edit.Let me know how you pan out with it.

Edit:Almost forgot,if you change the NT Code and want to use the open Canada firmware use this NT Code.That will fix your error on restart/boot.

"1","FFF,FFF,FFFFFFFF,FFFFFFFF,82"

LG G820N(LMG820N) aka LG G8 ThinQ - LG-Firmwares.com

LG G820N download the firmware for free! Detailed installation instruction. Video review of the model and its features. User feedback and latest news.

lg-firmwares.com
[LG G8 Guides, News, & Discussion] dalponis:
Edit 22:22:

Sounds good. Is any Korean firmware good? Like G820N30b_00_KT_KR_OP_0908.kdz?

Let's try that.

It's nice that I can use English on the Korean KDZ.

Anyway, after flashing the Korean KDZ, *#546368#*820#. still won't let me change my NT code. There is a red Edit button, but after I edit the code and click okay, nothing changes.

Do I have to root or something first?

For some reason I can't get into fastboot to see if I'm using A or B for Magisk...

Could it be possible I killed by fastboot partition? I can't boot to fastboot.

fastboot getvar all doesn't work

but

adb shell /bin/getprop ro.boot.slot_suffix

worked.

I'm on A. I'll try rooting...

After rooting I still can't change the NT code.
[LG G8 Guides, News, & Discussion] netmsm:
I used this: G820NO30b_00_OPEN_KR_OP_0908.

Try this:

1. Create backup of LUN5 partitions (modemst1, modemst2, fsg, fsc) plus ftm on LUN0.

2. Erase LUN5 partitions.

3. Retry modifying NT Code via hidden menu.

4. If it works, then rewrite IMEI too.
[LG G8 Guides, News, & Discussion] dalponis:
My problem is after installing G820N30b_00_KT_KR_OP_0908.kdz I'm unable to Cross Flash my phone back to CAN Open
[LG G8 Guides, News, & Discussion] netmsm:
Make backup of and erase system, vendor, product and boot in addition to the mentioned partitions on both A and B sides then attempt to flash to CAN Open.
[LG G8 Guides, News, & Discussion] dalponis:
I Flashed my phone with the build you recommended.

I backed up LUN5 and then I erased all of my LUN5 partitions

Booting back into the phone, I see my IMEI is gone, a wrong NT code is there("0","FFF,FFF,FFFFFFFF,FFFFFFFF,FF"). Try to edit it, it won't let me save any changes. Did I miss a step?
[LG G8 Guides, News, & Discussion] dalponis:
I brought my AT&T 820UM back to CA Open, and now I put on Lineageos 18.1, no NT errors, but I want that stock OS for the wide angle camera.

I can't get the service menu on a rooted lineageos 18.1 LG G8.

A tried two different hiddenmenu.apk in Lineageos 18.1, both wouldn't install.
[LG G8 Guides, News, & Discussion] netmsm:
NO. You did right.

This is the last one come into my mind: Flashing vbmeta. So steps would be:

1. Flash the Korean KDZ I suggested.

2. Create backup of abl, xbl and xbl_config on both A and B sides.

3. Restore engineering files using Qfil. (attached)

4. Dump vbmeta_a or vbmeta_b and rename it as vbmeta.bin.

5. Go to Fastboot.

6. Flash vbmeta:

Spoiler content hidden.

7. Flash the original abl, xbl and xbl_config on both sides:

Spoiler content hidden.

8. Boot into OS.

9. Go to hidden menu and try editing NT Code.

They do not work on non stock Roms.

Don't worry about it.

I've changed mine to ("1","FFF,FFF,FFFFFFFF,FFFFFFFF,71").
[LG G8 Guides, News, & Discussion] Sufi101:
I live outside the us and havent been able to update my lg g8 from At&t. it is currently stuck at Android 9. so what are the odds of this method working? I'm quite desparate.
[LG G8 Guides, News, & Discussion] AsItLies:
The odds? That's a funny question, because virtually everyone who's tried it has gotten it to work.

so the odds are 100%

That doesn't mean you won't run into problems, read the threads, people have. But it certainly works. Are you going to be able to do it? I don't know. But I'd say this, backup your entire rom first, you're a lot more likely to be successful if you have a full back up.

cheers
[LG G8 Guides, News, & Discussion] surgemanx:
Yes it works very well.I have used this guide for a few other LG models besides my G8x.
[LG G8 Guides, News, & Discussion] arwindr79:
Hello, thanks a lot for the guide, was able to cross-flash my Sprint G820UM to OPEN CA G820UM30c without major problems. I normally wouldn't risk it, but it was either that or buying a new phone since the apps I need for work won't work on Android 10 starting from June.

Only issue I'm having right now is that I lost the ability to make NFC payments - does anyone know of a possible solution?

On the last phone I used (a Huawei) I had a similar problem after rooting, but was able to solve it by installing a magisk plugin. Is there a chance I can recover NFC if I root the phone?

Update: as usual, the best way to figure something out is by reading the thread)) Thanks to your guys' older posts I managed to restore NFC payments and google protect certification. In case anyone's confused, here's a rough outline of things I had to do:

1) Unlock bootloader and get magisk root following this guide (it says Android 10 required, worked flawlessly on CA OP A11);

2) Backup vbmeta images with QFIL

3) With QFIL, flash engineering abl (same way we did following the root guide) and reboot to fastboot

4) Flash vbmeta images with fastboot using the commands from this post

5) With fastboot, recover the original abl images we backed up when we were unlocking the bootloader

6) Reboot into system

7) Configure Magisk stuff (enable Zygisk, Enforce Denylist, check google apps in Denylist, also consider adding your banking apps to denylist)

8) Wipe all data for Play Store and Google Services.

While the store itself says that the device is Play Protect certified, and Google Pay seems to be working fine, some other apps (LG Mobile Switch) still claim that key attestation has been deleted. Hope I won't be having any additional issues with that.

Now all that's left is to figure out the NT Code error at boot, although it doesn't really bother me much...
[LG G8 Guides, News, & Discussion] dalponis:
I'm trying this.

When I go adb reboot fastboot or adb reboot bootloader, it just reboots into the Korean Open Android.

Can you remind me how to get to Fastboot mode?
[LG G8 Guides, News, & Discussion] nortnil:
This all seemed to work until reboot when I got "Current version is not available for user. Can't find matched carrier. Check NT-Code: FFFFFF : 84". My serial number is also missing now too. IMEI is intact. I have model LM-G820QM that I flashed with G820UM30b_00_VZW_US_OP_1123.kdz. It now shows model LM-G820UM.

Anyone have any pointers on how I get my serial number back and get rid of the Check NT-Code: FFFFFF : 84 to go away?
[LG G8 Guides, News, & Discussion] surgemanx:
This is what dalponis is working on is the NT Code change.The serial is still in tact,but will disappear with a crossflash using LGUP.

Edit:Oh by the way nortnil,you'll need this NT Code if you change it.Best of luck!

"1","311,480,FFFFFFFF,FFFFFFFF,FF"
[LG G8 Guides, News, & Discussion] netmsm:
We restore engineering fastboot files so that we can get into fastboot mode. So, follow the instructions step by step and you'll be able to enter fastboot. restart the phone and press vol+.
[LG G8 Guides, News, & Discussion] Ratty696:
I erased everything and loaded nessasary files but it wont boot to download mode jjust keeps booting to edl mode. how can i get my g8x to boot into download mode?
[LG G8 Guides, News, & Discussion] dalponis:
Sounds good, doing it.

When I get to the fast boot step:

fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.bin

fastboot: unknown option -- disable-verity

Fast boot says unknown option -- disable-verity

Do I need to Magisk my phone first?
[LG G8 Guides, News, & Discussion] netmsm:
Follow the instructions in this thread.
[LG G8 Guides, News, & Discussion] nortnil:
Thanks for the reply surgemanx. I read through the earlier replies to see if I could determine what I needed to do. My problem is I can't even get into the hidden menu anymore. Either It gives me a ussd code running message followed by invalid mmi code or it actually places a call and I get a message saying to contact support.

I also tried to follow this guide to change it with LGUP https://www.hovatek.com/forum/thread-38827-page-2.html but I get an error 0x5A03, Unknow Process Type. PDM.

Any other guidance you can provide?
[LG G8 Guides, News, & Discussion] netmsm:
Maybe it's because of the Fastboot you have. Use the attached one.
[LG G8 Guides, News, & Discussion] dalponis:
1. Flash the Korean KDZ I suggested.

Easy, did this.

2. Create backup of abl, xbl and xbl_config on both A and B sides.

4. Dump vbmeta_a or vbmeta_b and rename it as vbmeta.bin.

Done using QFIL.

3. Restore engineering files using Qfil. (attached)

Loaded_images with QFIL.

5. Go to Fastboot.

Done, fastboot works.

6. Flash vbmeta:

fastboot --disable-verity --disable-verification flash vbmeta_a vbmeta.bin

fastboot --disable-verity --disable-verification flash vbmeta_b vbmeta.bin

It worked with your modifed fastboot.exe.

7. Flash the original abl, xbl and xbl_config on both sides:

fastboot flash abl_a abl_a.bin

fastboot flash xbl_a xbl_a.bin

fastboot flash xbl_config_a xbl_config_a.bin

fastboot flash abl_b abl_b.bin

fastboot flash xbl_b xbl_b.bin

fastboot flash xbl_config_b xbl_config_b.bin

No problems here.

8. Boot into OS.

Done,

9. Go to hidden menu and try editing NT Code.

it still won't let me change anything

I've tried this twice, even erasing abl_a xbl_a and xbl_config_a before loading engineering files. Even erasing VBmeta_a and vbmeta_b with QFIL in EDL prior to reboot and fastboot --disable-verity.
[LG G8 Guides, News, & Discussion] netmsm:
I gave my all for this and I should say that's an example of a really weird case!

I remember that there was some talks about putting NT Code in a file in this thread. Maybe it's your last chance so search for all posts here containing the phrase "NT Code". However, as far as I know to make that method working flashing vbmeta is necessary.
[LG G8 Guides, News, & Discussion] dalponis:
I'll keep trying but I think this ATT phone is really locked to ATT
[LG G8 Guides, News, & Discussion] surgemanx:
It's IMPL locked at 1 is the biggest issue.I have been trying some of these suggestions that netmsm posted on my G8x,and it won't let me touch the NT Code either.With the V60's it can be changed in hex.
[LG G8 Guides, News, & Discussion] netmsm:
Maybe there's something in hidden partitions that prevents NT Code from getting changed. There's one way to make sure about this: You need to flash the phone in "chip erase" mode. But before chip erase

create backup

. After flashing is completed you need to flash it again to bypass the OPID error.

Then go for flashing vbmeta...

Do not restore ftm and LUN5 partitions until after editing NT Code.
[LG G8 Guides, News, & Discussion] surgemanx:
I'm working with it also netmsm,and seeing what I can get around on a test G8x I have.So far,I have re-tried the same methods he has,and it still shows it as IMPL 1 in the MID menu and won't let you edit anything.My biggest issue I have the Sprint variant,and I have a complete LUNS backup of that firmware,but none of the dialer codes work.I'm currently crossflashed to G85030bQM,and I'll make a LUNS of it and reflash it and skip LUNS 5 and try it.I need to be able to edit the NT Code as well because I have it cross flashed so it's good experience...lol...
[LG G8 Guides, News, & Discussion] netmsm:
Also my G8 is Sprint and if I remember it correctly it was showing IMPL=1 before erasing LUN5 and chip erase.

Don't forget to make backup of FTM and do not restore it until after editing NT Code.
[LG G8 Guides, News, & Discussion] Sufi101:
so when i click partition maneger this happens. this is the first time im doing something like this so if there are additional guidelines i should be ffollowing please let me know. do i need xml files? if so where do i get them? my phone is an lg g8 thinq from at&t
[LG G8 Guides, News, & Discussion] Sufi101:
did you manage to fix it? same issue here.
[LG G8 Guides, News, & Discussion] AsItLies:
Sahara errors are very common with qfil because it's older sftware.

1) only use a usb 2.0 port, not 3.x

2) be sure to use a usb data cable, not a charging cable

3) In some cases the problem is Windows, in that it won't let an 'unsigned' driver run. then you have to change windows configuration to allow them.

4) Some have had to try a completely different computer / OS version to get it to work.

good luck
[LG G8 Guides, News, & Discussion] Why So Serious:
Hi guys, first of all thank you for the tutorial, based on it I was able to cross flash my G8X from AT&T android 9 to Europe Android 11. Mane reason to try it was because I seem to have troubles with the Network and as AT&T are kind of excluding 2G decided that this could be causing issues as I wasn’t able to change the network type my only options were LTE/CDMA/USMT. I live in Bulgaria and my previous G6 didn’t have issue and was including also WCDMA/GSM etc, so decided to reflash.

Currently if enter the “hidden menus” I See more options, but can’t really keep it active and in normal setting I’m on GSM/LTE/WCDMA, which in theory I think it should be fine, but still the phone doesn’t ring every time, people get “phone is turned off or out of network” kind of message. Strange thing is sometimes it can ring 6 out of 6 times but other times might not ring. I always get message that someone tried to reach me immediately and can call back. Most times when I’m using the phone for browsing etc doesn’t have issues and it rings, so I’m thinking that it could be “putting the network to sleep” after some time(doubt it but not really knowledgeable in this sphere so trying to find some logic behind it :D )

Another thing I find strange is that during calls I’m losing all kind of internet 2G/3G/4G in my old phones LTE was dropping but 3G(H/H+) was still active.

Otherwise after crossflash don’t see many issues I get the error for NT-Codes, but overall network is working so not something I worry about. And the other strange thing is that my LG Health is not tracking movement but again nothing that I really care that much about.

So my question is does anyone else have similar issues or suggestions what could be causing it and how can I improve the “network” or anything of that sort.

Thank you :))
[LG G8 Guides, News, & Discussion] reachforthesky:
@Why So Serious

I am using a LG G8x flashed from UM to G850QM30b. (A11), runs on Tmobile. Also have 2 more G8x as spare.

From the pictures in your post, I learned 2 things. 1: you have a AT&T unlocked phone, from the first 6 digits in the IMEI, 2 when your phone was on A1 Bulgaria network, the WiFi calling and volte were not Provisioned . The only thing I can think of is that you may not have the right carrier MBN.

You can check the hidden menu for Current MCFG Status. Make sure it says A1 Bulgaria ( I don't know the code for A1, TMO is T-Mobile for myphone). If not, you need to "inject" the right MBN and activate it. Check Wish30's How to add Volte support ....

When I put Tmobile SIM card into the flashed QM30b, for some unknown reasons, TMO MBNwas not loaded. Instead my phone "selected" ROW_ATT as MBN. My T-Mobile phone service was working fine, so I never noticed the error until T-Mobile emailed to warn me that I haven't activated VoLTE on my phone. ( TMobile shut down older networks by May 31). I fixed it by loading a TMO MBN into my phone using Wish30's guide.
[LG G8 Guides, News, & Discussion] olaglam:
Thank you for this tutorial, i want to crossflash my Lg G8x ATT to open can, but before i start , i just want to get this statement by the OP right " 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. is he referring to the step in B 1 "1. Make a backup of and erase these 7 partitions: FTM, Modem_A, Modem_B, SID_A, SID_B, OP_A, OP_B." thanks
[LG G8 Guides, News, & Discussion] AsItLies:
No. Certain partitions serve certain purposes. The 'make a back up and erase' part is for the purpose of crossflashing.

The 'make a full backup or at least these partitions (etc)' serves a different purpose. Those partitions have vital information for your specific device in them, like imei etc. And, it's worth nothing, partitions like ftm are critical to have, as there are usually problems further down the process that can only be remedied by restoring the ORIGINAL ftm partition, that came with the device.

When someone says 'make a full backup', I'd say this, not doing it is at your own peril. There are things farther down the road you may not be aware of now, that you'll learn how important it would have been to have a full back up. The guide doesn't go to the trouble of explaining what all those possibilities are, it just says to make a full back up.

It would be wise to learn from their experience and do it. Or, you can not do it, and probably end up crying later.
[LG G8 Guides, News, & Discussion] olaglam:
Thanks for the reply, I am a complete begginer at this, that why my question sounds dumb, is this something I can do with the QFIL, or do I need another tool
[LG G8 Guides, News, & Discussion] AsItLies:
Not a dumb question, but learn from others, if they say full backup, just do it.

Follow this thread for a guide using qfil qhloader to backup a g8, should be much the same as a v40.

Another option would be to use bkerler edl utilities. Search google for that and you'll find his git page. On that page there's an iso you can flash and it will be a bootable linux with all the utilities installed.

Ea option is a bit daunting, but once completed, you'll have an entire backup of the device, and in the case with at&t, which doesn't make it's kdz available, it would be pretty much the only way you could get back to oem full stock safely.

cheers, good luck
[LG G8 Guides, News, & Discussion] olaglam:
Ok thanks will do this
[LG G8 Guides, News, & Discussion] olaglam:
thanks this works