[SHARE] lgup tool

CXZa

Senior Member
Apr 9, 2013
561
182
73
cxzstuff.blogspot.com
Thanks ive done it before on 1.14 with IDA but i get a ton of errors in IDA when i try to decompile 1.16
Okay, here is LGUP_UI-fixer.bat that might do the trick. No guarantees etc...
It will make UI_Config.lgl undeletable and patches it too.
Tested with win7 using virtualbox. Win10 not tested.

Download: https://yadi.sk/d/Lw7dtokwfgjI9w
 

taronhov

Member
Feb 11, 2014
21
9
0
"UI_Config.lgl" file for V40

Hello All,

Please find attached an archive containing the "UI_Config.lgl" file for V40 retrieved and modified based on instructions from @CXZa ( @CXZa, thanks a lot for the great job done!).
Instructions:
***
1. Copy the "UI_Config.lgl" file into "*\LGUP\Common" folder
2. Change the file's properties and make it "Read-only" (should already be there)
3. Ignore the "can't open new file" warning by LGUP 1.16
***

Hope this help!
 

Attachments

Last edited:

CXZa

Senior Member
Apr 9, 2013
561
182
73
cxzstuff.blogspot.com
Okay, here is LGUP_UI-fixer.bat that might do the trick. No guarantees etc...
It will make UI_Config.lgl undeletable and patches it too.
Tested with win7 using virtualbox. Win10 not tested.

Download: https://yadi.sk/d/Lw7dtokwfgjI9w
LGUP_UI-fixer.bat updated so it will replace all "SUPPORT strUser" values. Not just "Dev".
The download address is the same...
 
  • Like
Reactions: Inerent

CXZa

Senior Member
Apr 9, 2013
561
182
73
cxzstuff.blogspot.com

taronhov

Member
Feb 11, 2014
21
9
0
Success with cross-flashing V40 on Androind 9 Pie!

Here's a noobs question :
Why don't you cross flash pie firmwares with LG-UP 1.15 cmd line?
Hi Friend,
Thanks for the hint: that indeed worked! I have been able to cross-flash my Verizon LG V40 V405UA (on Pie software, 20b version) to V405QA USA open/unlocked firmware (Pie, 20a version) using LGUP 1.15, CMD version (LGUP_Cmd.exe). Please find the log file attached.
At first I tried the LGUP 1.16 + DLL 1.40 bundle but that failed with "Can't crossflash VZV_US->USA_OPEN" error.
But then the CMD version of LGUP 1.15 worked perfectly: no errors or whatsoever!
 

Attachments

Last edited:

taronhov

Member
Feb 11, 2014
21
9
0

CXZa

Senior Member
Apr 9, 2013
561
182
73
cxzstuff.blogspot.com
LGUP_UI-fixer.bat updated so it will replace all "SUPPORT strUser" values. Not just "Dev".
The download address is the same...
Again, LGUP_UI-fixer.bat fixed. Now supports also v.1.14 (as long as both are run as Admin), or dlls that are not scrambled....

Seems that there are still some options hidden from the users.
But maybe they are best left as they are... ???
Edit: Added another batch file to the package to unhide those options ...
Edit2: Now fixes the "Can't open new file" error message too

The download address is the same...
https://yadi.sk/d/Lw7dtokwfgjI9w

:cowboy:
 
Last edited:

CXZa

Senior Member
Apr 9, 2013
561
182
73
cxzstuff.blogspot.com
I am trying to extract some Android 10 apps from the kdz, but I can not make it happen.
G820N90f_00_OPEN_KR_OP_0823.kdz
Seems to be using Zstandard instead of zlib or whatever was used earlier.
Should not be that difficult to change some python scrips out there.
If the system img are still build as before, that is... probably so..
Laf unpacked nicely so it's standard Zstandard ..
 

maxmotos

Senior Member
Mar 30, 2016
175
52
0
Washington DC
Normal way. See the folder properties and the security tab.
Take the ownership if needed and change the permissions.
Deny deleting from the admins.

This is the first search result that I found for now.
https://www.windowscentral.com/how-take-ownership-files-and-folders-windows-10

My edited UI_Config.lgl. Might be different than the one meant for your device.
Just unzip it to the common folder to use.
https://yadi.sk/d/IwxVPGRkGHfMYw
Hi Friend,
Thanks for the hint: that indeed worked! I have been able to cross-flash my Verizon LG V40 V405UA (on Pie software, 20b version) to V405QA USA open/unlocked firmware (Pie, 20a version) using LGUP 1.15, CMD version (LGUP_Cmd.exe). Please find the log file attached.
At first I tried the LGUP 1.16 + DLL 1.40 bundle but that failed with "Can't crossflash VZV_US->USA_OPEN" error.
But then the CMD version of LGUP 1.15 worked perfectly: no errors or whatsoever!

what dll did you use?
 

maxmotos

Senior Member
Mar 30, 2016
175
52
0
Washington DC
C:\Program Files (x86)\LG Electronics\LGUP>LGUP_Cmd.exe COM11 ".\model\Common\LG
UP_Common.dll" ".\LMQ720XXX-00-V10c-NAO-XX-JUL-28-2019-ARB00+0.kdz"
Selected Port : COM0
DLL Path : .\model\Common\LGUP_Common.dll

Subject Name: LG Electronics Inc.
The file "???????????????" is signed and the signature was verified.

Subject Name: LG Electronics Inc.
The file "???????????????????????????e" is signed and the signature was verified
.

Subject Name: LG Electronics Inc.
The file "???????????????????????????e" is signed and the signature was verified
.
START LAF Download.
Initializing
1%
2%
3%
4%
USB Connection Established
_prepareAfterDload download
Anti Rollback Status = E.

Anti Rollback Check PASS.

0x5319, OPID mismatch. SPR_US to NAO_US. ID Unlock first. [ERR : 0x2]
Error! Click here to continue.
0x5319, OPID mismatch. SPR_US to NAO_US. ID Unlock first. [ERR : 0x2]
 

asialove2013

Senior Member
Sep 6, 2013
580
390
0
C:\Program Files (x86)\LG Electronics\LGUP>LGUP_Cmd.exe COM11 ".\model\Common\LG


Anti Rollback Check PASS.

0x5319, OPID mismatch. SPR_US to NAO_US. ID Unlock first. [ERR : 0x2]
Error! Click here to continue.
0x5319, OPID mismatch. SPR_US to NAO_US. ID Unlock first. [ERR : 0x2]
Did you try the "chip erase" first with LGUP 1.16 for Developer?
where is the OPID stored? In CPU?
or is it possible to find the OPID in a kdz firmware?
 

maxmotos

Senior Member
Mar 30, 2016
175
52
0
Washington DC
Did you try the "chip erase" first with LGUP 1.16 for Developer?
where is the OPID stored? In CPU?
or is it possible to find the OPID in a kdz firmware?

LGUP says the following;

"Error: 0x5319, Not allow to change device. (SPR_US>NAO_US)"

THE ID IS IN THE FIRMWARE but since new firmwares are signed by LG we cant just edit via hex because it wont flash it tried and this is the error I get.

Selected Port : COM0
DLL Path : .\model\Common\LGUP_Common.dll

Subject Name: LG Electronics Inc.
The file "???????????????" is signed and the signature was verified.

Subject Name: LG Electronics Inc.
The file "???????????????????????????e" is signed and the signature was verified
.

Subject Name: LG Electronics Inc.
The file "???????????????????????????e" is signed and the signature was verified
.
START LAF Download.
Initializing
1%
2%
3%
4%
USB Connection Established
_prepareAfterDload download
0xD, not support diagEnable for laf mode
Error! Click here to continue.
0xD, not support diagEnable for laf mode
 
Last edited:

awireless

Senior Member
Apr 9, 2018
347
96
0
Did you try the "chip erase" first with LGUP 1.16 for Developer?
where is the OPID stored? In CPU?
or is it possible to find the OPID in a kdz firmware?
chip erase will erase imei bluetooth wifi and adb connections ive done it few times no fix

also i bet when the Qloaders are out for these new phones we can just change the the carrier to think its nao -> nao for example. Even then we can just straight up flash the kdz from 9008 mode without the check im assuming.
 
Last edited:

CXZa

Senior Member
Apr 9, 2013
561
182
73
cxzstuff.blogspot.com
G820N90f_00_OPEN_KR_OP_0823.kdz
Seems to be using Zstandard instead of zlib or whatever was used earlier.
Should not be that difficult to change some python scrips out there.
If the system img are still build as before, that is... probably so..
Laf unpacked nicely so it's standard Zstandard ..
Edit: For the new format. (And nobody bothered to tell it here...)
Doesn't it work or what is the problem?
https://forum.xda-developers.com/lg-v30/development/util-kdz-extractor-format-kdzs-g7-v40-t3879370
 
  • Like
Reactions: Inerent

asialove2013

Senior Member
Sep 6, 2013
580
390
0
LGUP says the following;

"Error: 0x5319, Not allow to change device. (SPR_US>NAO_US)"

THE ID IS IN THE FIRMWARE but since new firmwares are signed by LG we cant just edit via hex because it wont flash it tried and this is the error I get.

Selected Port : COM0
DLL Path : .\model\Common\LGUP_Common.dll

Subject Name: LG Electronics Inc.
The file "???????????????" is signed and the signature was verified.

Subject Name: LG Electronics Inc.
The file "???????????????????????????e" is signed and the signature was verified
.

Subject Name: LG Electronics Inc.
The file "???????????????????????????e" is signed and the signature was verified
.
START LAF Download.
Initializing
1%
2%
3%
4%
USB Connection Established
_prepareAfterDload download
0xD, not support diagEnable for laf mode
Error! Click here to continue.
0xD, not support diagEnable for laf mode
Thanks a lot for your information, Do you think we can just sideload the system.img from NAO_US firmware?