yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] rezajune:
thank you waylo, really appreciate the response. I was all stressed out about nothing.

So I guess I need to root and add TWRP and then reflash 20f.

I come from rooted custom rom Galaxy S5 and tweaking S5 looks like a breeze compared to h830, but this is what makes life more fun.

Thank you once again, I was super bummed I messed up my phone but now on to rooting.

:):):):):):):)
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
No problem. There're some odd system settings that get stuck and will cause those issues you mentioned if you don't factory reset after switching /system versions.

The old-school Samsungs were nice, easy, and hard to brick. Not so with LG! At least they leave the bootloaders 'unlocked.' Sort of.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] farhan76242:
Please share Mirror Link for codefire not opening in my Domain. Fortigate firewall blocking
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] HKSpeed:
does anyone get a malware/trojan warning when using Uppercut? Windows Defender prompted me.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Double0EK:
I need a mirror. Everytime I try to download it errors out.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
Turn off your ad blocker?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] sublim3style3:
LGUP refurbish

Hi I tried to use the LGUP uppercut version but I can't use the refurbish option. It says the kdz file will not work with LGUP. So I can only do the upgrade option and its giving me a bug ridden stock rom. I've refurbished before but I get this error 4% in. Anyone else have this issue where you can't refurbish with LGUP?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
Yes, I had this where refurbish would not work and only upgrade worked. You'll need to do a factory reset afterwards, as the pre-existing /data settings really screw up the ROM workings. In the end, that's the same as doing a refurbish flash.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] awais52:
i was able to successfully downgrade an H830 from 20i to 20a using kdz and the method explained in OP

I've an h830 in hand, the SW version is H830 20K.... Security Software version MDF v2.0 Release 4 (Android security patch level 1 July 2017)

I can put the phone in download mode, whenever I try to run LGUP, it gives error that "LGUP can't load the model"... There exists a folder "H830" in Program Files containing LGUP. and there is a dll of h830 in there.

I have tried fresh install on another PC but same result.

What could be wrong?

Please help

EDIT:

Problem solved and I was able to use LGUP.

I had to install LGUP_Common_DLL_Ver_1_0_28_5.msi from this link (Common LG G5 dll)

https://www.mylgphones.com/download-lg-up-software
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] speters04:
Is the download link for the kdz messed up? I have downloaded to around 90% 5 times now for it to pause then fail. It's really being a pain.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Mikeyy233:
when i flash the zip in twrp and reboot it puts me back into twrp
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
There's a TWRP shell command to type in that will resolve the TWRP loop. On mobile so I can't find it right now, but search for "TWRP bootloop" for a thread on this forum.

Edit: the command is this:

dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc

But definitely look at the proper thread for that. Type it in wrong and it won't be good!
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] afr33sl4ve:
If I want to flash the stock ROM back on using TWRP, I use LG-H83020a-Flashable.COMPLETE-ARB01.zip?

Also, would that cause me to lose TWRP and/or my unlocked bootloader?

EDIT: Figured it out by reading the thread. :D Thanks to everyone who did read my post!
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] ggh95:
how to downgrade?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] kiripo7:
My phone is on 20L 100% stock. So I need to flash the kdz through LGUP (phone should be in fastboot mode right?) And it will revert to 20a so that i can root and flash twrp after that.

Sorry for noob Q. This is my 1st LG device ..
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
Yes, that is correct.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] kiripo7:
Okay I have downloaded all the necessary files for downgrading my 20l device to 20a. I run UPPERCUT which automatically opens up LGUP i can see my device there COM 22.. And selected kdz file in BIN choose refurbished Press start then at 4% it gets stuck & fc.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] kiripo7:
This happens everytime I press start. I have tried Refurbish and Upgrade also did close the app an re open but no help. Running Windows 10 64bit.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
Change to UPGRADE instead of refurbish. For some reason, refurbish doesn't work well. You'll need to do a factory reset when it boots back up because the old user /data settings will not behave with the new /system you just installed. You will get a lot of system app crashing until you wipe/reset.

i.e.

UPGRADE keeps the /data partition intact.

REFURBISH erases the /data partition.

EDIT: If uppercut still force closes, try turning off all antivirus. Many of them don't like how uppercut is structured.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] kiripo7:
Yes i did the UPGRADE one too. And antivirus is turned off. UPPERCUT doesnt force close its the LGUP which fc at 4%. Even tried on other PC with Win 10.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
How exactly are you loading LGUP?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] kiripo7:
Through UPPERCUT. Also LGUP version is 1.14 and it fails to start up directly..

Running UPPERCUT loads up LGUP automatically isn't?

Save me waylo
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
I'm out of ideas for now, sorry. Post on the uppercut thread and see if someone there can assist.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] redhonker:
Hi,

I tried to use the refurbish mode. But LGUP complains this rom does not support this mode. Where can I get a version that support such mode?

Thanks
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
Did you try using the UPGRADE mode?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Jamalama:
Hi sorry to bother you but I'm not very good at understanding logs, is this a sim unlocked firmware? Cause if my phone comes with a lower firmware I will immediately flash this one then do modding(also can I downgrade easily to this firmware or is there a specific order?). Will I have to restore my IEMI? Or is this like a factory OTA update like 'adb sideload update.zip'. Or does it have a separate partition that is left alone or updated with the same value as the old one for the sim unlock? I'm more experienced with MTK flash tool and miracle box so this is a bit new to me, thanks.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] NextDroid:
Oh. My. Goodness.

You are a lifesaver, [MENTION=2684188]autoprime[/MENTION]. I was playing around with my device, flashing ROMs, and I went to restore a NANDroid to get my old system back, and I could not sign in with my PIN. My volume buttons did not work (and still don't), so I was unable to get into the recovery. I decided after being without a phone for a week to use the Android Device Manager (Google) to "wipe" my device, which I hoped would send me to the recovery to wipe the device. I thought the wiping wouldn't work since I had TWRP installed instead of the stock recovery. It sent me to TWRP. It still wiped my device, though...

I used the opportunity to try and flash a build of Lineage, whenever I tried to boot the newly-flashed system, it sent me back to TWRP. Each time, with every ROM I had. I figured that something was "incomplete," and that I needed the stock recovery to continue. I flashed the COMPLETE 20A .zip, and hoped for the best. Sent back to TWRP. Tried it again. Sent back to TWRP.

I was lucky to find that you had a 20A recovery.img on Codefire. Gleefully, I tried flashing it through fastboot. Sent back to TWRP. I then tried flashing the recovery.img through TWRP itself. Sent back again to TWRP (why?) I finally decided to use DD and write the image directly to the partition by ADB from TWRP. Success.

There was a huge sigh of relief when the classic T-Mobile ring sounded from my G5. Thank you.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] attacker1:
I have the same experience,but I wonder why,who can answer me? Thx

---------- Post added at 06:56 AM ---------- Previous post was at 06:51 AM ----------

Wanna know why I flash the complete.zip can get a stock recovery but flash other zips such as lineageos can't get the same effect
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] NextDroid:
Concerning why it wouldn't let me boot LineageOS, I really don't know. Maybe there's some kind of "switch" that's activated in the bootloader when a factory reset is initiated that tells it to redirect to the recovery, and maybe it's deactivated when the reset is complete. That's all I can think of, considering that I needed the stock recovery to fix the issue.

Concerning why I couldn't flash TWRP in fastboot, I think the issue is that T-Mobile disabled all flashing in the bootloader. All you can do is unlock it (the bootloader).
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Iams1002:
H83020d

Hello, can i use this method to downgrade a H83020d version?. also i have antirollback 1, will that be a problem and what does it mean? :)
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] PlsLordHelpMe:
edit: I redownload the file and now its working.

anyone know why this happen ?

edit: I am stuck on the update screen.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] elwhiteboy01:
Need a lil advice. Okay so I downgraded my h830m to h830a using autoprimes uppercut. Finally got twrp functional with recowvery. Flashed no verity zip, formatted data and tried to install lineage. It fails every time unknown command. So I had to pull my external SD card and put the h83020a flashable zip on it. Select mount in twrp to get twrp to read the external SD card again. Flashed it successfully and tried to install lineage again and it fails. Can someone please tell me what modification I need to make in twrp to flash a custom ROM?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] trivoldus28:
Check MD5 before flashing...

I had this exact same problem (Error: 0x2BC, Invalid command response code = 0x80000202). Took two hours for me to figure, after trying so many other methods, that the file I downloaded from Codefire was corrupted. I know that from checking the MD5 hash of the file against the one provided in the OP (MD5 (H83020a_00_1107.kdz) = b41221137bc292d6e811a4052ea765fc), and they were not the same. I downloaded from Codefire again for the second time and it has a yet different MD5. I then downloaded the file from another website and it works perfectly. So guys, please don't waste time and check the MD5 hash before flashing. You can use a program like "HashTab" to quickly check the MD5 of the downloaded file.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Pureanger7:
Hey guys just got a replacement g5 and it came with (H83020o) 7.0 / N. I just want to verify i can flash from 20o to the 20a through lg up so i can proceed with root.

From what i have read so far it looks like its not a problem i just want to make sure since i hard-bricked my v20 because of the stupid arb0/1 stuff i hadn't heard about at the time. Thank you guys!!
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
Yes, this can be flashed back to 20A. They haven't changed the bootloader version since 10D I think.

(In other words, if you can even find a 10A, don't flash it!).
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Pureanger7:
Thank you Sir!! :victory:
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Pureanger7:
Is this the correct boot.img I need to flash when switching to Magisk from Supersu (LG-H83020a-Flashable.Boot.zip)? Or is it safe to run Magisk and Supersu together it just wont pass safety net? Thanks guys
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
If you are on 20a, yes this is the right boot.img. It's a bit unpredictable on what would happen if you combine magisk and SuperSU as there have been a lot of changes in the past year. I don't know if SuperSU is still supported by magisk.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Pureanger7:
Ok thank you. Ill plan on just doing a good old fashion supersu uninstall, flash stock boot.img and flash Magisk.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
That should work fine. If you're concerned about passing SafetyNet, I'm unsure if a standard supersu uninstall will remove *everything* that Safetynet looks for though.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Pureanger7:
Thanks Waylo. I didn't care to much about safetynet. So, I chose the switch to another supersu option in the supersu app. (Everywhere I saw said to choose the full permanent unroot option, but it wanted to flash stock recovery.img and I wasnt going to deal with that cr*p.) Then I rebooted to recovery flashed stock boot.img and then Magisk right after. Booted system and everything is working perfectly. I havent checked any apps that require safety net, but Magisk does say I pass it and am good to go.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
Fantastic! Enjoy!
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] shimulx:
If I downgrade the mobile this will cause sim lock ??????
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
Only if you initially have an G5 with the altered stock ROM sold on ebay by some seller. Somehow they were able to get flashed an altered stock ROM so that there's a software SIM unlock. Any change to that firmware version (they don't have any updates) will result in a SIM lock.

Now, if you have a regular SIM unlocked G5, downgrading won't affect the SIM lock. That's on a separate partition that is not typically editable by users.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] bertino:
Hi. I got this TMO LG G5 from a thrift shop/backyard sale kind of place and it has frp enabled, and I think it's updated to oreo so I wanted to downgrade to an older version which has the exploits to disable frp. Should this work? I have no experience with LG phones.

Also, the link to the kdz in op downloads at 50kb/s, is there any mirror available?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] RuWoytsek:
Does anyone know if you can rollback still with Oreo? I'm guessing it may be a negative, but I just want to know because I really need root right now.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Mattzees:
I just got a used G5. My goal is to install TWRP and then flash Lineage OS.

Before I realized what was going on, the phone updated itself to Oreo, and now I can't install TWRP. I'm getting the dreaded "FAILED (remote: unknown command)" when I try to flash TWRP.

I have followed the instructions in this thread, but they don't appear to be working. After using LGUP and UpperCut etc., I'm still getting the same results.

Is there any way to return this phone back to a flashable state so I can install TWRP & Lineage, or am I screwed?

Thanks.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
You're a bit lost. You cannot directly flash TWRP because LG disabled the normal commands.

Before you try anything with TWRP, you have to get back to 20A.

So, you have to get LGUP or Uppercut working to flash back to 20A. There is some work to be done getting the right .dll files installed. Start there first.

Once you have 20A, find the recowvery thread and follow the instructions there to get TWRP installed. Then you can flash the COMPLETE ZIP to the firmware you want. In this case, it sounds like you want Lineage.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Mattzees:
Yes, I'm trying to get back to 20a so I can flash whatever I want from there. Thanks for pointing out the DLL files. I didn't see those mentioned in the instructions anywhere at the start of this thread, so I didn't do that step.

This morning I downloaded and installed LGH830_DLL.msi on my Windows 10 laptop, and tried the entire process over again. I got the same result.

Can you point me to the correct thread or resource to troubleshoot? I see other people asking this same question, and the answer seems to be that it should work, but then there's no follow up after that.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
I'm guessing you have seen the Uppercut thread here:

https://xdaforums.com/lg-g5/development/uppercut-lgup-loader-g5-variants-t3511295

It does require having LGUP installed as well.

It's been a long time, but I have used it successfully without having to do too much of anything outside what is in the first post of the Uppercut thread. Sometimes people have had to change computers to get it to work... not sure if it's a Win OS thing or not.

Oh, and you're sure it's a H830 G5 right?
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Mattzees:
It's definitely a H830. And it get weirder... It actually is rolled back to 20a, but I still can't flash anything.

This thread describes the problem:

https://xdaforums.com/tmobile-lg-g5/development/problems-installing-twrp-root-20a-t3699913/page3

I just commented on it because their solution is not working for me.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] waylo:
Well you're making progress. Almost there.

But again, FORGET the fastboot commands! It don't work.

You now need to use recowvery to flash TWRP. This exploit is pretty easy to do.

https://xdaforums.com/v20/development/h918-recowvery-unlock-v20-root-shell-t3490594
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Mattzees:
THAT was it! Thank you!
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] TuhinPtt:
If I downgrade my H830 30c to 20a would I face country lock issue??
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] NinjaNerdBGM:
It's a soft brick. I had to reflash the 20A KDZ after it failed at 11%.

Rebooting after it fails at 11% just brings me back to download mode.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Barsky:
Has anti-rollback been updated on H83020a? I went back to stock and took the H83020a OTA. Apparently, one must still go back to 10D to install the tot file with twrp and then upgrade from there.

I don't want to brick myself :)

Thanks
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] autoprime:
LG forces it that way so that LGUP finishes what it started by completing a KDZ/TOT flash. Technically the phone is fine.

I'm gonna have a new UPPERCUT to test for flashing M KDZ/TOT in less than 30min. will update this post when done

*EDIT*

UPPERCUT thread updated with new test ver for M KDZ/TOT - http://xdaforums.com/lg-g5/development/uppercut-lgup-loader-g5-variants-t3511295

it also could be something not liking the custom TOT... vs an official M KDZ.

this should sort itself out over the next few days as more testing comes in.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] NinjaNerdBGM:
Thanks autoprime!
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] z28james:
I was also curious and I'm on 20a so I checked. ARB is still 01 so in that regard we should still be good to go back to 10d once autoprime exercises the demons. Next time you are curious you can slap this into your dialer: *#*#244773825625#*#*
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Barsky:
Yes, I just learned that from autoprime. Never knew what the arb meant. heheh.

Thanks
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] NinjaNerdBGM:
I get a 403 forbidden when trying to download 1.0.0.1
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] autoprime:
if flashing M KDZ/TOT youd want 1.0.0.0. 1.0.0.1 is for N KDZ.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] NinjaNerdBGM:
Aha, thanks again!
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] eminem5055:
Just tested and flashing the m kdz from 20a didn't work with uppercut 1.0.0.0 or 1.0.0.1.

I was able to get back to 20a by flashing the n kdz from uppercut 1.0.0.1 however.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] autoprime:
thanks. can you try uninstalling LGUP 1.14... then install LGUP 1.11 + H830 DLL MSI and see if flashing M KDZ works?

Also please specify which M KDZ is being used.. just in case people are getting different results down the road.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] z28james:
(1.0.0.0) I tried using this to flash H83010d_00_0523.kdz. It hung up at 10% (PrimaryGPT step). This ultimately resulted in a soft brick.

(1.0.0.1) This version allowed me to "UPGRADE" but not "REFURBISH" using H83020a_00_1107.kdz. My encrypted data partition needed to be erased but my phone is no longer soft bricked.

EDIT: I just saw the considerations made above. I'll try those as well.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] eminem5055:
I tried it with LGUP 1.11 and 10d rooted with TWRP and it still failed at 11%.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] z28james:
Using 1.11 + "old" DLL resulted in the same hangup at 10%.

Here is the error message I get from LGUP:

Error: Error Code = 0x2BC

Invalid command respose

code = 0x80000121
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] autoprime:
It seems there has been a change in download mode on N... and the updates required for it dont seem to work with M. hmm.. will have to look over some things. this is not a matter of rollback fuse blocking... if root/twrp was possible.. flashing 10D and 20A COMPLETE zips would be fine.

I wouldnt be surprised if TOT/KDZ signing was now required by the 20A download mode... but official M KDZ's should be fine (and yet they aren't... ugh).

hmm...

there should be some path from 20A to official M KDZ... to TWRP TOT flash... just need to find it.

also.. there are a total of 4 UPPERCUT EXEs in the mix.. 3 in the LGUP folder + the temp one in this post.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] z28james:
The test build also fails at the same place. It's also worth mentioning that I'm using refurbish vs upgrade in my 10d tests.

---------- Post added at 10:56 PM ---------- Previous post was at 10:34 PM ----------

Did you end up re-locking your bootloader for android pay? If so would you be willing to see if you can still bootloader unlock for science? :D
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] Barsky:
Same thing here. I tried 10D and 10J kdz and 10D tot. Always fails. Then I flash the 20a kdz and that works.

---------- Post added at 04:39 PM ---------- Previous post was at 04:36 PM ----------

I had re-locked the bootloader for 20a. Figured since I didn't have root I'd use Android Pay until root stuff came about. Today I unlocked the bootloader and am still unable to flash anything MM.

I have a feeling the only solution to this will be a new nougat based, pre-twrp'd tot file to replace the old 83010d tot file.

---------- Post added at 05:34 PM ---------- Previous post was at 04:39 PM ----------

I tried every combination of LGUP versions and dlls, covering your suggestions. While anti-rollback may not be preventing downgrading, something sure is :)
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] texas83:
Same problem for me. Attempts to install twrp with fastboot end up with failed remote command unknown error. Confirmed bootloader still unlocked though.
[T-Mobile LG G5 ROMs, Kernels, Recoveries, & Other ] z28james:
It would probably be cool if someone could do what autoprime has suggested and try deleting recovery-from-boot.p from the root of system while you still have TWRP to see if that lands people in a good spot before this is figured out.