yashsingh1/xdaforums huggingface dataset:
[LG V40 Guides, News, & Discussion] strk3r:
Dont waste your time

lgup_cmd COM5 "C:\Program Files (x86)\LG Electronics\LGUP\model\common\LGUP_Common.dll" "xxx.kdz"

and get error

0x81000302, Please use latest DLL

LAF Protocol version is not match DLL = 0x1000010 Device = 0x1000016
[LG V40 Guides, News, & Discussion] awireless:
I switch to a g7 and now get this error its still selecting com0

C:\Program Files (x86)\LG Electronics\LGUP>reg query HKLM\hardware\devicemap\SERIALCOMM

HKEY_LOCAL_MACHINE\hardware\devicemap\SERIALCOMM

\Device\LGANDNETMDM0 REG_SZ COM3250

\Device\LGANDNETDIAG1 REG_SZ COM3252

C:\Program Files (x86)\LG Electronics\LGUP>LGUP_Cmd.exe COM3252 "C:\Program Files (x86)\LG Electronics\LGUP\model\common\LGUP_common.dll" "C:\Users\PC\Desktop\[GFI]G710ULM10g_00_NAO_US_OP_0913.kdz"

Selected Port : COM0

DLL Path : C:\Program Files (x86)\LG Electronics\LGUP\model\common\LGUP_common.dll

Subject Name: LG Electronics Inc.

The file "???????????????????????????????????l??????9" is not signed.

DLL for is not installed properly.

Please, install DLL package(*.msi).Download Error
[LG V40 Guides, News, & Discussion] asialove2013:
It is the DLL version is not correct.

what is your phone model number?
[LG V40 Guides, News, & Discussion] asialove2013:
DId you see the model entries G710ulm in registry table?

[HKEY_CURRENT_USER\Software\LG Electronics\LGUP\Model\G710ulm]

"MODEL_NAME"="G710ulm"

"DLL_PATH"="C:\\Program Files (x86)\\LG Electronics\\LGUP\\Model\\common\\LGUP_common.dll"

@=""

[HKEY_CURRENT_USER\Software\LG Electronics\LGUP\Model\LMG710ulm]

"MODEL_NAME"="LMG710ulm"

"DLL_PATH"="C:\\Program Files (x86)\\LG Electronics\\LGUP\\Model\\common\\LGUP_common.dll"

@=""
[LG V40 Guides, News, & Discussion] strk3r:
Any "correct" version is getting msi not installed bla-bla-bla error.

v405ua\qa flashed
[LG V40 Guides, News, & Discussion] asialove2013:
I see, LG V40 use very very different LGUP DLL.

Did you try the DLL from LG G8? Ver 1.0.39.
[LG V40 Guides, News, & Discussion] asialove2013:
File	Version

comcat.dll	4.71.1460.1

mfc42.dll	6.0.8665.0

msvbvm60.dll	6.0.89.64

msvcp60.dll	6.0.8972.0

msvcrt.dll	6.0.8797.0

msxml3.dll	8.70.1104.0

msxml3r.dll	8.20.8730.1

msxml3a.dll	8.20.8730.1

olepro32.dll	5.0.4275.1

stdole2.tlb	2.40.4275.1

asycfilt.dll	2.40.4275.1

oleaut32.dll	2.40.4275.1

msxmlx.cat

msxmlx.inf

mdacxmlx.inf

In fact, ALL lgup_dll MSI installer install above files onto your computer,

please check if you have all files installed properly.

and is any safeguard software on your PC block the LGUP to "USE' these files.
[LG V40 Guides, News, & Discussion] strk3r:
download link please
[LG V40 Guides, News, & Discussion] vlad48:
Here it is patched.
[LG V40 Guides, News, & Discussion] awireless:
How are you running the commands as admin? i think thats the problem everything is fine with connecting phone the old lgup works fine i think im not running as admin correctly what im doing is opening cmd in the folder as admin then typing the commands is that correct?
[LG V40 Guides, News, & Discussion] strk3r:
same error, that we have when extract dll from kdz

The file is not signed.

DLL for is not installed properly.

Please, install DLL package(*.msi).Download Error
[LG V40 Guides, News, & Discussion] sas007:
No further forward being able to flash stock roms.? KDZ?

Want rid of Hong Kong firmware.
[LG V40 Guides, News, & Discussion] asialove2013:
Need to use IDA to decompile the DLL and LGUP exe, to check what is the error message "install DLL package(*.msi).Download Error", and why LGUP shows this ERROR message.
[LG V40 Guides, News, & Discussion] Xsavi:
Now that you mention it. I'm going to try to replace the Data1.cab file in the dll msi with the one from the LG V40 ThinQ. I'll see if that works.
[LG V40 Guides, News, & Discussion] asialove2013:
Use IDA to analyze the LGUP 1.14 original, You will see why there is a message " .msi not properly installed"

I am still trying to find out why.
[LG V40 Guides, News, & Discussion] 3597dxta:
Any v40 user here try the LG UP 1.14 patched together with LG v35 DLL file?
[LG V40 Guides, News, & Discussion] onslaught86:
Yes. The V35 DLL, version 1.0.36.10 (and one from the G7), will allow LGUP 1.14 to open, but it will error when attempting to flash. LAF protocol is not match DLL = 0x1000010 Device = 0x10000016

DLLs from V40 KDZs are too new and spit out the DLL for [your model] is invalid, please install valid DLL package *.msi for the model error as do older DLLs and the new one from the G8.

LGUP 1.15 - which can be downloaded here - is not patched to bypass the login, but the LGUP command line tool works. Unfortunately it also errors with the please install DLL package response.

The older LG flashtool can be used to identify DLL versions, but I don't think we're going to get much further with DLLs alone unless they can be patched. Good old Uppercut is no joy either.

Hopefully someone can locate/leak/modify LGUP 1.16, locate/leak the msi for V40, or modify LGUP 1.14/1.15 to bypass the checks. Or find some other way around this.
[LG V40 Guides, News, & Discussion] CXZa:
Weird this command line version. Or these.. They have all the resources of the GUI version in it.

Without the unneeded? resources the command line version is less than 500KB, with them it's over 10MB.

Why? Laziness? IDK. Anyway, what I have checked command line version doesn't differ that much from

a GUI version... The disassembled code I mean. Maybe that could be a hole needed for a proper hacker?

The 1.15 is protected and packed with themida. The command line version is not...
[LG V40 Guides, News, & Discussion] onslaught86:
Yeah I was surprised when the CMD LGUP 1.15 just...worked, without any login or barriers. Hasn't been since tinkering with Sony's Emma that I've come across a login-gated flash tool in the wild.

Turns out this is what has been used to successfully flash G7s with Korean Pie. There have been discussions of this tool in other threads too.

It's possible the lax security is because LGUP is primarily used by service centres and carriers who are just following instructions rather than having familiarity with command line tools but it's certainly odd, possible the CMD version is not usually distributed. There are clearly elements of signature checking for both DLL and KDZ, as using a variety of different DLLs has offered signature failure errors. If the CMD version can bypass the signature verification a modified V40 DLL without the 1.16 restriction may do the trick.

I don't mind manually flashing updates, it's just frustrating being locked out of the latest build for LM-V405EBW - the device I have on hand does not have a serial number and cannot receive OTAs or updates via LG Bridge. So close, but missing the final piece of the puzzle. Hopefully it will come in due course.
[LG V40 Guides, News, & Discussion] CXZa:
LGUP_Cmd.exe ver 1.14 if somebody else wants to do comparisons...

edit:

Found from LG updates available here (it's in the LGMST_SVC_TOOL.zip)

http://csmg.lgmobile.com:9002/client/app/live_update.jsp

(Oh yeah, some nice tools there, but the problem remains the same. They need to be cracked...)
[LG V40 Guides, News, & Discussion] awireless:
Hey when using the LGUP_Cmd.exe how do i flash say 2 phones at the same time like the GUI can? I tried doing comx,comy but didnt work it just did the first one or do i just open multiple instances of the command prompt and do it that way? Also what are the extra options i tried PARTITION_DL but didnt do anything?
[LG V40 Guides, News, & Discussion] 0x0null:
If we can have a patched lG UP 1.16, we can cross flash.
[LG V40 Guides, News, & Discussion] awireless:
is that a question?

What model are you talking about v40 can be crossflashed now by installing engineering bootloader and rooting + twrp to install .zip of model you want
[LG V40 Guides, News, & Discussion] 0x0null:
My head is off, dont mind me.

Please i have a sprint v40. Need to see if crossflashing solves sim unlock.
[LG V40 Guides, News, & Discussion] awireless:
No it doesnt sim unlock. From V35 and up flashing will not sim unlock anymore.
[LG V40 Guides, News, & Discussion] maxmotos:
I have 1.16 seems like LG has changed the way we flash devices making crossflash harder.

0x5319, OPID mismatch. MPCS_US to NAO_US. IMPL unlock first. [TZ Unlock : 0x2]
[LG V40 Guides, News, & Discussion] awireless:
Can you give us link to download please?

Also it looks like your trying to flash unlock firmware on metro pcs? If that is what your doing it wont work T-Mobile and Metro is different RSA signature.
[LG V40 Guides, News, & Discussion] twoxa:
Guys don't mess with cross flashing if you don't want to end up with a brick. Unlock boot loader, root US Pie and live happy.

There s no such thing as flashing/rooting this phone via lgup tool.
[LG V40 Guides, News, & Discussion] asialove2013:
In fact, Someone in Shenzhen China has already "cracked' the LGMST_SVC_TOOL.exe.

The LGMST_SVC_TOOL.exe allows you to download many useful tools & software.

I try to edit the LGMST_SVC_TOOL.exe, but found the "Shell" i can not decrypt.
[LG V40 Guides, News, & Discussion] CXZa:
> "cracked' the LGMST_SVC_TOOL

If you have it, please do share... Thanks!

In 1.14 command line (and in 1.15 aswell) there is all the resources of UI there. Why is that? Have been wondering if there is a possibility to bypass the cmd line into the UI, but I haven't had enought time (and skills perhaps) to check it out yet...
[LG V40 Guides, News, & Discussion] asialove2013:
I do not have..

I am trying to find a lgup 1.16.,..

Can not get it either.
[LG V40 Guides, News, & Discussion] Inerent:
Hello!

Is this DLL possible to work for LG V50? Idw a bricked device...:D
[LG V40 Guides, News, & Discussion] asialove2013:
Do not know, Need skills to bypass the LGUP Version Check.

But it is said the new KDZ of LG V40 or LG V50 use zstd compression.

It seems that LGUP 1.14 can not decompress the kdz file with zstd compression.

If we can extract partitions from a KDZ of ZSTD compression and build a TOT firmware, we may be able to flash the TOT with LGUP 1.14.
[LG V40 Guides, News, & Discussion] Inerent:
I was flashing and crossflashing for my G7 ThinQ with LG UP 1.15 and command line and everything was fine. But it seems that there is no LG Common dll for V40 and V50. Am I wrong? If for V40 exists, will it be ok to use it with my V50?
[LG V40 Guides, News, & Discussion] onslaught86:
The correct DLL has surfaced and works with LGUP_CMD 1.15. Commands are the same as G7 here.

Requires full wipe, unless someone knows the commands to prevent this.

Tested and confirmed with my V405EBW.

We can finally flash KDZs on V40.
[LG V40 Guides, News, & Discussion] asialove2013:
Hello, This is the DLL shared on mylgphones.com?
[LG V40 Guides, News, & Discussion] onslaught86:
Yes, all credit to you - thank you for posting it. Where did it come from?

Happy to remove from the post and link instead if you prefer - drive links can be a pain so a mirror seemed helpful.

I have a V40 unit without a serial number so it cannot be updated OTA or via LG Bridge, have been waiting for a public solution since the V405EBW launched - and especially since EBW Pie became available in July.

It was linked in the other thread in Q&A + posted on reddit but took some time for anyone here to notice, test, and confirm it works + the steps involved.
[LG V40 Guides, News, & Discussion] asialove2013:
Thanks, I thought you have a way to get LGUP too. I wish you have a way to get newer DLL. :(

This DLL posted on mylgphones.com was from an LG V40 owner in South Korea.
[LG V40 Guides, News, & Discussion] onslaught86:
I tried, but no luck getting 1.16 haha

1.15 CMD works well, just need to know the commands to prevent full wipe and regular manual updating will be easy as each new build becomes available.
[LG V40 Guides, News, & Discussion] asialove2013:
Here is what I heard from our tipster:

we can still use LGUP 1.14- The partionDL feature to load a single or multi-partition from an LG V40 TOT firmware.

We need to extract files from a KDZ and convert it into a TOT firmware

We can flash Pie KDZ with LGUP FLASH TOOL 2025 - Need someone to get it patched

COMMON_20190628_LGFLASHv216.dll - this is the DLL used for LG FLash Tool.
[LG V40 Guides, News, & Discussion] CXZa:
>COMMON_20190628_LGFLASHv216.dll

I think I have seen this file inside the latest LGMST_SVC_TOOL.zip

But isn't the correct dll included in the kdz file anymore?
[LG V40 Guides, News, & Discussion] Droidman61:
What about updating? :confused: Also is there something I am missing, I can't get into "Download mode" with the volume up-connect cable. it throws me into the fastboot with options of 1. Restart or 2. Shut Off. I am on a Sprint V40. (See Pic) Thanks for any help or suggestions.
[LG V40 Guides, News, & Discussion] Petepicket:
Lg UP version and patch?

Hello,

what version LG UP and what patch to install for this DLL (https://www.mylgphones.com/lgup-dll-for-lg-v40-thinq-version1-9-39-7.html). I have Lg V40 V405EBW

Thx
[LG V40 Guides, News, & Discussion] Inerent:
I'm tempted to try this with my V50...
[LG V40 Guides, News, & Discussion] Ainz_Ooal_Gown:
That's because you have to get the correct laf in the slot so that you get into download mode...there should be a thread by Xvsavi
[LG V40 Guides, News, & Discussion] asialove2013:
After the update, The LG LMQ850 dll extracted from the KDZ has a newer signature, I can not use it at all.

I test the DLL on LG V40, LG V50 and Q850, ALL DLL extracted from KDZ does not work.
[LG V40 Guides, News, & Discussion] asialove2013:
I just extract a new DLL from LG G8 android Q - which is lgup_common.dll Ver 1.0.40.9

Trying to find out if it works
[LG V40 Guides, News, & Discussion] Inerent:
Please try for v50 if you can! :good:
[LG V40 Guides, News, & Discussion] asialove2013:
Check LG G8 Android 10 kdz firmware here.
[LG V40 Guides, News, & Discussion] Inerent:
Sorry, but check for what? I have the V50.
[LG V40 Guides, News, & Discussion] asialove2013:
I am trying to extract some Android 10 apps from the kdz, but I can not make it happen.
[LG V40 Guides, News, & Discussion] Inerent:
Hello, Vlad! Any chance for a dll for my V50 Thinq?:D
[LG V40 Guides, News, & Discussion] awireless:
How do we convert the KDZ to TOT?
[LG V40 Guides, News, & Discussion] asialove2013:
I do not it either, SORRY,

Someone who can access https://gsfsplus-america.lge.com/nxui/index.html can download tot firmware

they even can covert (cross flash) models,

if you analyze the DLL extracted from the LG G8 Android 10 beta kdz wiht IDA, You can find many interesting features of new LGUP,

But we can not download the latest LGUP..

So, LET US Forget LG!
[LG V40 Guides, News, & Discussion] awireless:
What if i am able to read each partition individually in its raw form will that be able to be flashed in lgup?
[LG V40 Guides, News, & Discussion] CXZa:
In those dll files there is UI files for several devices and users. When I once tried to add "Build tot" to my Ui config file the result was just your device doesn't support this option or whatever...

For a moment Lgup extracts the Ui config having all? the options for the device. See here for more

https://xdaforums.com/lg-g5/how-to/unlocking-lgup-features-fun-profit-t3634650

See the page two for info or list of options available... Depends the device I guess... or LG really...

What I did, I just made that common dll folder writable but not deletetable. Thus the lgup was using the better config file###... At least dumping and writing partitions*** has worked okay... So, there was no need to patch the program nor the dll this way...

Edit: ***

Dumps from the device. Writing of the partitions from the kdz file.

Edit2: ###

Cannot remember did I edit the config file (UI_Config.lgl) like in the thread, most likely so, but I got it a bit easier this way without using the ida...
[LG V40 Guides, News, & Discussion] vlad48:
No way as laf protocol is higher. If you are BL unlocked and rooted you might try flashing lgup 1.14 compatible LAF.
[LG V40 Guides, News, & Discussion] asialove2013:
LG V40 New DLL + LGUP 1.14,

We can see the Main LGUP Screen, But can not upgrade/refurbish.

with the LG V40 DLL + LGUP 1.15 CMD.EXE, we can sideload kdz firmware onto LG V40

After patched the DLL- to skip the LGUP Version check - LGUP 1.14 can not load the DLL, and popup an error message, You need a Valid DLL .msi INSTALLER.

so, the LG V40 DLL has a security signature, if we change it, LGUP 1.14 Can not load it anymore.

If we can change the value in LG V40 DLL and keep the signature, maybe LGUP 1.14 can sideload LG V40 KDZ.
[LG V40 Guides, News, & Discussion] awireless:
Do you have the original dll and the patched version of that same dll?
[LG V40 Guides, News, & Discussion] CXZa:
Better to use tor or something like that if trying your luck with it. Years ago I managed log into some soc maker's dev site. (edit: name removed)

Just few attemps it needed and full rights and all.

I was like f-word. And not using any proxy or anything. I just tried for fun really. Browsed it for sure but didn't dare to dl anything in the end. Lots of nice tools and firmware resources there. Sigh..

Somebody should leak the user and password of that Lg site. After that downloading from it would be much easier. Then you would be just one of the boys...
[LG V40 Guides, News, & Discussion] ibnbazooka:
I thinke you already have it

;)

I think you have access to that website site;););)
[LG V40 Guides, News, & Discussion] asialove2013:
I have the Orignal LG V40 DLL..
[LG V40 Guides, News, & Discussion] awireless:
We need the one that was used to be patched because if you compare a random non patched dll with a similar patched one its completely different i was trying to learn to patch the dlls but couldnt find any that where original then patched.

Also i saw octoplus lg had update over a week ago they are able to flash v40 within there software so maybe they where the ones who patched it or maybe they got it from you lol if anyone has contacts there you should ask if they have anything to do with it.
[LG V40 Guides, News, & Discussion] joshua772:
How can i flash my AT&T V40 to Korean V40?

i dont have any atnt simcard to update my v40 i live far away from US
[LG V40 Guides, News, & Discussion] awireless:
This tool is supposed to be able to flash the Korean g8 and v50 to android 10 beta maybe the dll can be extracted from the tool? I played with it for a little but couldn't get anything usefull.

https://drive.google.com/drive/folders/1lGzjYGy_UFD9944_uNGbljg3bPDeMRX6
[LG V40 Guides, News, & Discussion] maxmotos:
Ill post the LG UP TOOL 1.16 today just heading back home at airport now.

if you wanna hit me up with a donation thats cool too :P
[LG V40 Guides, News, & Discussion] CXZa:
The dll vlad posted earlier was patched as mentioned here.

https://xdaforums.com/lg-g5/how-to/...fun-profit-t3634650/post72999318#post72999318

Nothing that complicated - if the bytes are found.

Here is a patcher for those old 1.14 dlls.

https://xdaforums.com/android/softw...-extractor-t3916444/post80228245#post80228245

Don't know about newer dlls, what is needed...
[LG V40 Guides, News, & Discussion] maxmotos:
Here ya guys go. Hopefully someone can take a crack at these.

please credit if reposted since its not available anywhere on the webz.

https://anonfile.com/B3xc685fn6/LGUP_Common_DLL_Ver_1_0_40_2_msi

https://anonfile.com/i5y16a59na/LGUP_Lab_Frame_Ver_1_16_0_3_msi
[LG V40 Guides, News, & Discussion] CXZa:
Seems to be working fine. No cracking was needed. :good:

LGUP_common gives an error about the modified UI file but use it anyway.
[LG V40 Guides, News, & Discussion] Inerent:
Did you manage to cross-flash?
[LG V40 Guides, News, & Discussion] CXZa:
No need to test such in my phone. Some at 4pda (and here) have flashed

m250n firmware into their m250?? phones using the 1.14 though.

As they wanted to test the oreo. Now we are stuck into it. No pie for us... yet.

But no rush. I still use nougat myself...
[LG V40 Guides, News, & Discussion] awireless:
I tried the v40 dll we use in 1.15 cmd and it doesnt have all the options available tried to use the dll patcher but then lgup said its not installed properly does this mean we need knew method of patching dll?
[LG V40 Guides, News, & Discussion] CXZa:
It most likely has. But these later dlls seem to be scrambled somehow.

And might be uneditable if there is that signature check and all...

What I did was that I made the common dir undeletable to the admins.

That way I got the UI_Config.lgl for my phone. Then I edited it by replacing

all the SUPPORT strUser ="Dev" strings to "LAB|Store|Dev|3rdParty".

Then just remember make it read only and the program uses it instead of the default.
[LG V40 Guides, News, & Discussion] maxmotos:
what DLL are you using?
[LG V40 Guides, News, & Discussion] CXZa:
See the pic. The one you provided with that installer. ;)

Weird is that there is dlls having the same version number

but are different. But maybe it's partly device based...
[LG V40 Guides, News, & Discussion] maxmotos:
any crossflash attempts might be blocked.

[IMG="LG"]https://i.imgur.com/Xb7OsDF.png[/IMG]
[LG V40 Guides, News, & Discussion] awireless:
What was your method to make it undeletable by the admins?
[LG V40 Guides, News, & Discussion] CXZa:
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
[LG V40 Guides, News, & Discussion] awireless:
I still cant get my UI to show up i have administrator set to read privilege thats all right? The name of the pc is set to owner with all privileges.
[LG V40 Guides, News, & Discussion] CXZa:
Go to advanced settings to change the special privileges.

Deny setting will exceed the other settings.

Setting rights can be a bit difficult at first. Inheriting and all...

But still a bit easier than to use IDA and breakpoints etc. IMO.

Tried to make a loop batch file that copies that file all the time.

By accident it managed to copy it the 3rd time I run the LGUP but not after that.

So, not really the best way but it might work...
[LG V40 Guides, News, & Discussion] awireless:
Can you show screenshot of what you did im having issues if i deny all admin then i cant access the folder at all.
[LG V40 Guides, News, & Discussion] CXZa:
Well, I'll try to figure something out. In the meanwhile just use mine. It might differ a bit from what your device supports but most of the options are most likely the same. Maxmotos tested it as seen in the pic... I myself don't even know what the heck all those options do. At least the DFT is a new one...
[LG V40 Guides, News, & Discussion] awireless:
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
[LG V40 Guides, News, & Discussion] maxmotos:
well good luck crossflashing seems like LG is getting better with protecting crossflashing attempts

maybe [MENTION=2684188]autoprime[/MENTION] can figure something out.

[IMG="RO: SPR"]https://i.imgur.com/S2vOIfT.jpg?1[/IMG]
[LG V40 Guides, News, & Discussion] awireless:
I cross flash V40 Sprint to factory unlocked firmware with partition dl on 1.16

View attachment 4819192
[LG V40 Guides, News, & Discussion] awireless:
Thanks for your UI_config it works with v40
[LG V40 Guides, News, & Discussion] maxmotos:
its it android 9 or older?
[LG V40 Guides, News, & Discussion] awireless:
I did 8.1.0 --> 8.1.0
[LG V40 Guides, News, & Discussion] maxmotos:
ah that explains it.

I guess we the newer devices its going to get hard.

glad you were able to get that unit crossflashed.
[LG V40 Guides, News, & Discussion] awireless:
Yeah seems like other people are having same issue as you https://www.mylgphones.com/lgup-1-16-can-not-crossflash-lg-g8-thinq.html

Looks like newer phones are impl locked needing access to lg servers to unlock it.