yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] pyrorob:
ok, so flashing succesful, I have twrp woot! now, there is one thing I've noticed and if anyone could check as well, if you go to settings/about phone/hardware info/ does your serial number (s/n) show up anymore?

I've gone over the misc.img backup I made and compared it to one I made from another h918, and the new backup is blank up to offset 00000440, while the old one has data... I know for a fact that your serial number, wifi and Bluetooth mac address and imei are all kept in misc, those are all present in mine, just the empty space at the beginning is the difference.
[LG V20 Guides, News, & Discussion] BROKEN1981:
Is that why LG Uppercut and LG Bridge can see my device in DL mode while nothing else will?

---------- Post added at 01:59 AM ---------- Previous post was at 01:56 AM ----------

You can tell the program if you want to keep DL mode. I think having TWRP in place of DL mode would be better. If only for the "worst case scenario".
[LG V20 Guides, News, & Discussion] runningnak3d:
That is why misc is dumped before flashing starts. Misc is used as temp space and then it is restored when complete. You are saying yours didn't restore properly? Unfortunately there is no way to hash check a dump since I have nothing to compare it to.

-- Brian
[LG V20 Guides, News, & Discussion] runningnak3d:
I guess I could dump misc twice, and compare the hashes. If they don't match, then dump it two more times and compare, repeat X number of times and then fail if they don't match.

This is why this is still extremely alpha........

-- Brian
[LG V20 Guides, News, & Discussion] pyrorob:
that is why I'm asking others to check, on my previous h918, my misc got messed up and mac address were random and s/n was gone, restoring a backup I had fixed that, on this one my mac address are there and not random, but no s/n, I'm wondering if the dump command in the python script you set up, assumes the beginning of the partition is padding and therefore doesn't dump it?
[LG V20 Guides, News, & Discussion] SJMarty:
I'm hoping for some help with how to proceed with mine - not sure if I'm screwed or not.

I have only run the root-h918.sh portion so far but I did check and my serial number field is also now blank.
[LG V20 Guides, News, & Discussion] runningnak3d:
Nope. The dump command gets the start LBA of a partition, and writes till the ending LBA.

I would check mine, but my misc partition is still blank .. I haven't restored the dump yet.

-- Brian
[LG V20 Guides, News, & Discussion] runningnak3d:
DOH! That is why there is a MISC READ. The misc partition is unusual. Apparently, you can't use normal READ on the misc partition.

I had no idea. I am going to pull the VM till I can change the way misc is dumped.

The good news is that your misc partition can be fixed. I will post details as soon as I can.

-- Brian
[LG V20 Guides, News, & Discussion] Zacharee1:
No S/N here either.
[LG V20 Guides, News, & Discussion] karmacoma7:
Is there chance it will work for other devices ?

I mean, we're just replacing the LAF with TWRP ? that could be done with any phone, no ?
[LG V20 Guides, News, & Discussion] caitsith810:
This is as far as I've gotten on my laptop. A computed checksum apparently does not match.
[LG V20 Guides, News, & Discussion] runningnak3d:
You can keep trying, but if it doesn't succeed, DO NOT reboot your phone.

Flash laf back with LG UP.

-- Brian
[LG V20 Guides, News, & Discussion] SMTB1963:
Same here. Is there a log we can access that might shed some light on this?

(Obviously, my phone is back from the brick graveyard. Somehow I was able to get back into download mode so I flashed the 10p kdz with LGUP and the phone then was able to boot into Android setup. YAY! Then tried the sploit using FWUP and ran into HASH FAILED!)
[LG V20 Guides, News, & Discussion] runningnak3d:
The hash is failing because there is noise on your USB bus. Lafd has no error correction. The only thing you can do is try another machine, another cable, or flash laf back with LG UP.

The check works by dumping what was flashed and comparing it to what you tried to flash, if the hash doesn't match, it was a bad flash.

There is nothing that can be done software wise.

This just prevents you from losing download mode.

A normal flash from LG UP sends the hash to lafd. If the hash doesn't match, then LG UP doesn't flush the RAM buffer.

We don't have that luxury using MISC WRTE.

-- Brian
[LG V20 Guides, News, & Discussion] pyrorob:
ok so I fixed my serial number, I hex edited my backup to include the missing top part, from my older backup from another h918, and discovered that the adb push method of restoring the backup wasn't doing it for me, so I did "dd if" and that properly wrote my edited misc and original laf back with no issues
[LG V20 Guides, News, & Discussion] yurais:
I don't really need to improve my grammar, did you understand what I meant? That's enough ...

About the request, there are guys out there who sells propietary loaders , how they get it is non of my business or concern , but they have it , and sometimes they sell it, and many of them are right here , in this forum ...

So, if you don't have it, it doesn't mean others can't have it.

I just asked, and if that person exist and want to sell it, for sure will PM me , some day....

Enviado desde mi SM-G975U1 mediante Tapatalk
[LG V20 Guides, News, & Discussion] Thedude2020:
Black Screen after flash

Hi, when I restart my phone into download mode after flashing TWRP to laf I get a black screen. When I touch the middle of my black screen my phone vibrates. I'm wondering if the TWRP menu is there, but for some reason it's not showing. I'm able to restore my laf partition, but Everytime I try to flash TWRP to laf I get a black screen that vibrates when I touch the middle of the screen.
[LG V20 Guides, News, & Discussion] Thedude2020:
Update - When in download mode I am able to communicate with my phone with adb, so I think TWRP is running on my laf partition, but not displaying on my screen. Is it possible to flash the recovery partition with adb?
[LG V20 Guides, News, & Discussion] Nwananka:
I lost twrp and now have lineage recovery but i want twrp back. Is this what i use?. Fastboot as we know doesn't write to h918 device.

update: so because i used this method to install twrp few years ago, i went to download mode and twrp loaded then i flashed the latest ver image to my recovery partition. I now have twrp back instead of lineage recovery
[LG V20 Guides, News, & Discussion] 75th:
I've done everything as in OP, am writing this from FWUL, 10P via KDZ, etc... I even hooked up internet access with FWUL (which isn't mentioned in the OP, but is it necessary to pull from gitlab?)

but "git pull" is only resulting in:

"fatal: not a git repository (or any of the parent directories): .git

What is going wrong and any suggestions? This is SO frustrating.
[LG V20 Guides, News, & Discussion] 75th:
Update: I was able to install TWRP using the OP's fix in FWUL with these instead:

git clone https://gitlab.com/runningnak3d/lglaf -b h918-miscwrte

cd lglaf

./step1.sh

I should now try: ./step2.sh, which might root my phone with magisk (bc I can't seem to get magisk to work -ETA: I FINALLY DID thru TWRP, flashing the renamed Magisk22.apk to Magisk22.zip and then updating the installed Magisk app "in-app"). RootChecker verified root/su after this.

Quote from OP: "

OPTIONAL

If you would like to restore download mode onto your laf partition AFTER you have installed TWRP onto recovery:

Boot to TWRP that is on recovery

Flash this zip: laf_restore.zip

This can be done at any time after you are rooted. About the only reason you would want to flash laf back is if you use LG Backup."

Question:

How do you flash TWRP into the recovery partition from TWRP in the laf partition (since we can't install TWRP from fastboot on the H918 & TWRP also won't flash .img files)? Also, does anyone have a link to an old H91810_ zip file that I can keep as a fresh stock ROM thru TWRP? My only sources are .kdz files for LGUP-use.
[LG V20 Guides, News, & Discussion] 75th:
ETA: I a

ETA: I successfully installed a 2nd TWRP onto the Recovery partition using the TWRP app (apk) from within Android OS by choosing "TWRP Flash" button, choosing a downloaded twrp.img file, then choosing the "Flash To Recovery" button!

I now have TWRP in both the laf/Download Mode partition and a working (possibly different version) TWRP in the (previously empty) Recovery partition!

I hope this helps somebody.
[LG V20 Guides, News, & Discussion] thejaredhuang:
Thanks a million, i was stuck for like 30 minutes trying to follow OP. Also for anyone looking at this in later years, you need to make sure you boot FWUP as a non-uefi USB.
[LG V20 Guides, News, & Discussion] A.Whit:
20H is android 8

10H is android 7
[LG V20 Guides, News, & Discussion] waletogo:
Please how to fix. fatal: not a gif repository (or any of the parent directotiesm) : .git
[LG V20 Guides, News, & Discussion] DonChino:
*** UPDATE ***

Well, look at that. It tries 5 times and reports an error; but when I scrolled back up thru the output, I can see that it actually passed the Hash check and copied after the 1st attempt.

I reflashed Stock and ran this again for giggles and it happened again, so it appears there is a "bug" and even though it succeeds after a retry it continues with retries and reports a failure at the end.

So for anyone else running this so many years later, remember to check the output or just unplug and reboot into download mode. You will see TWRP load up and now I can continue with getting my phone back.

I used VirtualBox with USB 3.0 and it all worked although it reports failure.

Thanks...

*** UPDATE ***

Well, it is 2024 and this did not work for me; but I am also on Windows 11 and using Virtual Box to run the FWUL 2.7 - forgetful.iso with my LG V20 on H91810p

Everything connects. Everything registers. It just seems this Hash Check is failing and I am wondering if it is because I used to have LineageOS and then flashed back down to Stock ROM?

Now I am trying to ROOT and TWRP; but is it possible that my LAF is not the right version? I am also using VirtualBox; which I switched between USB 3.0 and USB 2.0 in case it was a USB problem.

I guess next attempt will be with a Physical Machine; but can someone reupload the LAF_Restore.zip?
[LG V20 Guides, News, & Discussion] PhantomGamers:
Has anyone tested this on Q without flashing back to P? Just wondering because I'm running Q currently, no big deal either way.
[LG V20 Guides, News, & Discussion] theonlycow:
trouble with ROM

I managed to make this work but i had an issue going into recovery. It reset my phone to stock.

The laf stayed TWRP however. I used this TWRP on the laf partition to flash some rom with root and Magisk I found. This bootlooped.

I went back and flashed TWRP to my recovery partition as well. From there I flashed another rom I thought might work. This also wouldn't boot. I'm not very familiar with the rooting scene right now. Is there a rom I should try?

Did I mess something up by flashing a rom with the LAF-TWRP when the recovery image was stock?
[LG V20 Guides, News, & Discussion] runningnak3d:
What ROM are you trying to flash? You can only use ROMs that are for 10p or greater firmware.

WETA and NATF will not work with 10p or greater firmware.

-- Brian
[LG V20 Guides, News, & Discussion] pyrorob:
don't forget that the rom will restore stock recovery unless you delete/rename recovery-from-boot.p under /system/ and by default encryption is enabled so, that means a format of data to remove encryption, also older versions of magisk don't handle encryption of the data partition so you need the latest (16.0)
[LG V20 Guides, News, & Discussion] SJMarty:
Sorry for being pushy...just a lot of activity and I'm not certain where some of the responses are directed.

I posted my terminal output a few pages back. A bunch of timeouts there. The phone rebooted but not into download mode after the first shell command. If I try and enter download mode now (VOLDWN and plug in cable), I get a brief flash where I can see the download mode page but then it just goes back to the bootloader warning screen, then the LG screen, and then boots up to the OS.

Am I doing something wrong? I just want to see if my download mode is gone for good or if there is a means to recover. At this point I'm not clear if whatever happened - whether it was me forgetting to authorize USB debugging or bad transfers - has killed my download mode for good. I'm still confused how without USB debugging authorized, how anything even wrote but that's probably just my lack of understanding the process.
[LG V20 Guides, News, & Discussion] runningnak3d:
I know why the hash check is failing, but I can't fix it tonight.

It will fail even if you have a good flash right now.

-- Brian
[LG V20 Guides, News, & Discussion] caitsith810:
Weirdly enough, I ended up getting recovery on LAF and recovery. My S/N is blank as well.
[LG V20 Guides, News, & Discussion] theonlycow:
Does anyone have a ROM suggestion? I want to try to boot this phone but cant find one that is 10p or later
[LG V20 Guides, News, & Discussion] runningnak3d:
Super v20
[LG V20 Guides, News, & Discussion] SMTB1963:
Or you could try the stock H918 roms from this thread.

---------- Post added at 10:16 PM ---------- Previous post was at 09:56 PM ----------

mmm...I think you want to press VOLUP and plug in cable...
[LG V20 Guides, News, & Discussion] bigcletus:
Would a AOSP rom like LOS work?
[LG V20 Guides, News, & Discussion] theonlycow:
Looks like super v20 would have worked great. it booted up but apparently I forgot to erase system. It said I had to format and reboot me to recovery. Now I'm twrp looping.

The steps here are not helping:

https://xdaforums.com/v20/help/phone-boots-to-twrp-ls997-t3529633 is not helping.

Wiping everything I can and reflashing the rom is not fixing the issue.

Also the links on the stock rom page are dead.

any ideas?

Edit: I did a "factory reset" (vol down+power -> let up the power and press again) which brought me back to TWRP. I shut it down and restarted and it booted Super V20.
[LG V20 Guides, News, & Discussion] KAsp3rd:
8 0 43014 51205 82ACC91F-357C-4A68-9C8F-689E1B1A23A1 Unknown
70D94FB1-DAAF-F483-0AA8-0BCA65D2BC78 misc

Haven't had a chance to compile twrp for the g6 yet though
[LG V20 Guides, News, & Discussion] rafe83:
Just bought a v20 h91810r without doing research on root for this device. With this method will it root my device? I'm not trying to troll or anything but just want to make sure. Been reading tons of threads and posts. Really crossing my fingers here. I'm not going to sell my note 5 if I cant.
[LG V20 Guides, News, & Discussion] Zacharee1:
Yes. You'll need to flash back to 10p, but it will let you root. You should wait for it to be a bit more stable though.
[LG V20 Guides, News, & Discussion] runningnak3d:
[MENTION=3505796]KAsp3rd[/MENTION] That is what I needed. I will make a branch for the H872 later today once I commit the fixes for issues that have been discovered so far to make the process a little more safe, and fix backing up of the misc partition.

This will *never* be completely safe because the misc partition isn't big enough to write all of TWRP.

Hopefully the carrier partition is. On the V20 it is unused, so if it will hold TWRP, I can write to carrier first, dump carrier, hash check it against what was flashed, and if it matches -- THEN copy it to laf.

That will make this pretty much completely safe. At that point about the only way someone could mess up their phone is if they flashed a bad copy of TWRP.

-- Brian
[LG V20 Guides, News, & Discussion] SJMarty:
Sorry, that's what I meant...if I plug in the cable while pressing VOLUP, I get the bootloader warning then a brief screen showing download mode but instead of booting to download mode, after a few seconds, it goes back to the bootloader warning, then the LG screen, and then boots to the OS.

I can get to fastboot mode. Not sure if this gives me any options.

Also, if I try to reboot to recovery via ADB (adb reboot recovery), I get the dead robot and "No Command" screen. However, I can press PWR and VOLUP from there and get to the recovery menu (the stock one - not TWRP).

Not sure if I can do anything to put things back together from either of these modes...
[LG V20 Guides, News, & Discussion] SMTB1963:
[MENTION=4193208]SJMarty[/MENTION] - I was in a similar situation except I was trwp bootlooping and would get the "No Command" dead robot when doing recovery keypress. And LG UP couldn't see my phone.

Try flashing the stock rom from the thread I posted earlier (links still dead). I flashed it and it somehow fixed my issues. (don't ask me how lol) :o

I uploaded the ROM to my Google Drive, you can find it here.

Good luck! :good:
[LG V20 Guides, News, & Discussion] runningnak3d:
You lost download mode due to a bad flash. With the new version that I am posting today, that won't be possible anymore.

But .. you need to fix your phone, and I have an idea. We need to find an update.zip that has laf in it. Recovery will flash from the SDcard using that menu.

So, I will look as well, but it has to be an update.zip from 10p or later, and it has to have laf. Since they pulled the COPY opcode from 10r (I think) and definitely 10s and 10t, that update.zip will definitely have laf.

If you can talk someone into flashing back to 10p, they will get the OTA and will have the update.zip.

Bottom line is, your phone, and anyone else that lost laf due to a bad flash can fix their phone.

My H918 has a lot of dev code on it, or I would do it for you right now. If no one else is willing to step up, I will dump my phone and do it this weekend.

Keep the faith man .. but most importantly, don't do anything drastic that would make it worse.

I am sorry that you and others got bit by this. I really did not foresee this being an issue. Glad it was fleshed out early, and I can prevent it from happening in the future.

EDIT: I hope you aren't on 10t. If so I will have to find a way to force the update, but if you are on something earlier, then it is a breeze.

TL;DR: Your phone is fixable :highfive:

-- Brian
[LG V20 Guides, News, & Discussion] SMTB1963:
I might be willing to try. It's just a matter of flashing the 10p kdz with LG UP, correct? Once I get the OTA, where will update.zip be located?
[LG V20 Guides, News, & Discussion] drawkwa:
What chances of unbricking H918 after bad flash using vm method on first post? I can access fastboot and download mode but locked bootloader means no fastboot commands work, while lgup can flash kdz but phone just bootloops back into fastboot everytime. Recovery is gone too.
[LG V20 Guides, News, & Discussion] runningnak3d:
You probably have a corrupt misc partition that is trying to boot to recovery that doesn't exist. I will have a fix for misc in a little bit.

What I would like to know is, how do you have download mode but not recovery. In order to wipe or do anything to recovery, you had to flash TWRP onto laf first. If you still have download mode, then I am at a loss.

Did you try to flash directly to recovery?

-- Brian
[LG V20 Guides, News, & Discussion] jimenezboy:
It's water under the bridge now but methinks [MENTION=3167089]runningnak3d[/MENTION] made it clear that the bootloader has to be unlocked prior to attempting the procedure. I sincerely hope that there's a way in which you can come out of the bootloop. People please, take your time to go through the instructions carefully, taking a few more minutes to make sure you have everything ready won't hurt.
[LG V20 Guides, News, & Discussion] TheLogicalGamer:
Any chance I could get the original instructions? I already have a Ubuntu 16.04 lts 64 bit Vm installed with Vmware for lineage after obtaining root.

It's my understanding that I would need to install & specifically use python 3 as 2 is used by default in linux distros.

Edit: if you decide to add the vmi back that's fine as well.

I can install Vbox for this process although I've had some bad luck with it in the past. Whatever you feel is most safe. :)
[LG V20 Guides, News, & Discussion] drawkwa:
Just like jimenezboy said i didn't read your bold highlighted warnings about unlocking bootloader because i got too excited and skimmed the first paragraph.

I came from official stock 10s, never rooted or had twrp, just forgot to unlock bootloader and ran root-h918.sh, thats how i got to this situation.

Will probably read from beginning of guides from now on haha. anyways thanks fr your work also i did try flash directly to recovery but no luck with LGUP.
[LG V20 Guides, News, & Discussion] SMTB1963:
Here you go

:)
[LG V20 Guides, News, & Discussion] runningnak3d:
It will be in /cache/fota

Once you flash back to 10p, you have to wait for the notification that an update is ready to be installed. That will be the upgrade from 10p to 10t, and then you can grab it.

-- Brian
[LG V20 Guides, News, & Discussion] SJMarty:
Don't worry, I've got the faith. You're a rockstar in my book. This whole process has been fascinating to watch unfold. I probably should have waited longer but no guts, no glory. :cowboy:

And of course I'm on 10t. I flashed the 10p LAF partition with LGUP before running the fist shell command. Am I still fixable?
[LG V20 Guides, News, & Discussion] shrimants:
So my backup finally happened. I could have made that a lot easier on myself by not backing up my music (its already on my NAS) but whatever.

Now i have unlocked my bootloader, which wiped the phone. So i'm just waiting on the new VM with any hash checks and checksum checks that are relevant.

You might want to include checksums for the .VDI and any other data transfers that we should validate. I've had .ISO files go screwy on me before because HTTP downloads arent automatically checksum verified like .torrent downloads are.
[LG V20 Guides, News, & Discussion] runningnak3d:
You should be. The OTA updater that runs in the OS won't flash an update if you are already updated, but by going into recovery directly, and using the menu to flash from SD, that should just flash it. I haven't seen anything in recovery that checks to see what version you are on. I guess they assume that if you are flashing an update from an SD card you know what you are doing -- which is how it should be for everything else.

Oh wait -- removing fastboot isn't about security, it is about control -- their control over you. Let me just throw my 2.5 year old phone in the garbage because I can't get updates anymore.

-- Brian
[LG V20 Guides, News, & Discussion] SMTB1963:
Well, I don't think I can get to that folder without root, can I? Right now, it doesn't show up in stock file manager or Solid Explorer. Is there another way to get to this file I'm unaware of?
[LG V20 Guides, News, & Discussion] nima0003:
Congratulations, it's been a long journey!
[LG V20 Guides, News, & Discussion] runningnak3d:
Sorry, I should have specified that. Yes, you will have to root again, so make sure your bootloader is unlocked or it will obviously wipe out the update if you have to unlock it :)

-- Brian
[LG V20 Guides, News, & Discussion] ki11aprime:
OK so i got back download mode i was on 10p i took the system update which took me 10q and got download more
[LG V20 Guides, News, & Discussion] SMTB1963:
Well, I've been waiting for your hash check fix before trying to root again...has your vm been updated?
[LG V20 Guides, News, & Discussion] TheDannemand:
Could we not simply use cache, or even data partition for the temporary write? We know there is plenty of space; it would eliminate concerns about losing something that might turn out to be critical (like misc); and we wouldn't need to back it up if we make it clear that this procedure wipes data -- which users should prepare for anyway. It would be one less thing that can go wrong in case of a bad flash or bad backup.

Or is there a technical reason that won't work, or something I am not understanding here?

Just asking, trying to be creative.