yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] blairmc99:
Thanks for that!

Unfortunately it didn't like that.

fastboot flash recovery "D:\Download\Phones\LG V20\recovery-twrp-h918-2018-04-06.img"

target reported max download size of 536870912 bytes

sending 'recovery' (24464 KB)...

OKAY [ 0.699s]

writing 'recovery'...

FAILED (remote: unknown command)

finished. total time: 0.731s

fastboot devices

LGH918d32e9bb1 fastboot

fastboot oem unlock

...

(bootloader) Device already : unlocked!

OKAY [ 0.031s]

finished. total time: 0.031s
[LG V20 Guides, News, & Discussion] kish9046:
flash the latest twrp img by Phoenix...... i personally use his latest version and there isn't any problem in flashing roms as fas as i know

Flash through flashify
[LG V20 Guides, News, & Discussion] scorpio76r:
You used fastboot, I didn't. That's why I used flashify in the playstore. It worked like a charm that way.
[LG V20 Guides, News, & Discussion] blairmc99:
Unfortunately, I can't boot to anything at this point to load anything from the store.
[LG V20 Guides, News, & Discussion] scorpio76r:
Seeing your post made Libraplum76 and I, wonder if during flashing twrp/rooting we messed up or corrupted the partioned. I can boot a rom, I'm on Alpha. I just can't mount internal storage or delvic. Basically I'm saying that our problems may be related. Could you go into twrp and, see if you can repair delvic or if it throws you a red error?
[LG V20 Guides, News, & Discussion] kish9046:
R u on the latest version of twrp?..... I remember few people does had this problem and had it covered by updating their twrp to the latest version....
[LG V20 Guides, News, & Discussion] scorpio76r:
Yes, the one by Phoenix
[LG V20 Guides, News, & Discussion] kish9046:
Even im on alpha and the latest twrp...... im able to mount system though....

Did you try full format within twrp and re flash the rom again.....

and did you backed up the 10p rom after the rooting process? if yes, i would try doing a twrp restore of the full stock 10p..... and then proceed from there
[LG V20 Guides, News, & Discussion] scorpio76r:
I will try the full restore later. As far as format, I may have missed something as I was working on two of these at the time . So you can mount internal storage as well?
[LG V20 Guides, News, & Discussion] blairmc99:
Is that the Advanced -> Fix Contents section? I have no issues when I do wipe data, cache and dalvik before loading a ROM.

Attached is the output of df-h, if it helps.
[LG V20 Guides, News, & Discussion] scorpio76r:
Thanks, I can admit that was something that I didn't do. Anyway to fix the partition without starting from scratch? I'm guessing if I do have to start from scratch that's just going to require the lg up tool and, the 10u kdz right? Forgive me for the lame questions, I'm new to this device and, way of root. I come from the G3 days when things were a little simpler, lol
[LG V20 Guides, News, & Discussion] blairmc99:
Mine worked perfectly, according to the instructions in the OP, I just can't boot a rom!

My other one that was bricked, that's a different story. Does anyone know if I can send the unit back to LG and pay to have it repaired?
[LG V20 Guides, News, & Discussion] scorpio76r:
I had that issue too, I put the alpha rom on an external sd card via another phone. Right before the phone rebooted I pulled the battery and, put it back in and, turned it on manually. Waited like 15 minutes, wasn't sure if I was in a boot loop, I just waited. Right before I was going to try something else it booted.
[LG V20 Guides, News, & Discussion] blairmc99:
Can you clarify exactly what you mean by this? I've never let it sit that long, but I can certainly try it.
[LG V20 Guides, News, & Discussion] cnjax:
It's typical when you flash a custom rom for it to take 15 to 20 minutes for it to boot to the setup
[LG V20 Guides, News, & Discussion] scorpio76r:
True but I let him know that because of the method that was involved that made me able to have a rom. Are you able to offer any assistance or was what you said the only assistance, lol?
[LG V20 Guides, News, & Discussion] blairmc99:
I left both turned on for about 20 minutes and they both just got hot.
[LG V20 Guides, News, & Discussion] scorpio76r:
Did you try loading the rom via external sd card? Mine was a little hot while doing it also but, not hot enough for me to really worry.
[LG V20 Guides, News, & Discussion] blairmc99:
Yes, the rom was on an external SD card, and I can mount that, and install it from there with no problem, see attached.

When it boots up, it just flashes the backlight on and off.
[LG V20 Guides, News, & Discussion] scorpio76r:
Which rom?
[LG V20 Guides, News, & Discussion] cnjax:
I'm assuming you both have 918 and rooted via lafsploit is your twrp still on the laf partition? Or did you upgrade TWRP and flash it to the recovery partition? Your issues sound like a corrupt download you should probably re download the rom put it on the external sd card do a full wipe, format data, flash rom and then immediately flash your method of root, also if you're using magisk do some research on the version you should flash, there's reports of some versions causing problems.
[LG V20 Guides, News, & Discussion] blairmc99:
I've tried all of the H918 roms from Lineage, as well as CMRemix. All do the same thing.

---------- Post added at 12:35 AM ---------- Previous post was at 12:34 AM ----------

I had a bone stock H918 and followed the directions in the OP of this thread. Everything worked as expected, i can load roms, just can't boot to a rom.
[LG V20 Guides, News, & Discussion] kish9046:
Seems like a kernel issue to me..... try booting your mobile by covering the proximity sensor and when the second screen goes black just switch off and switch on...... this might help.... else i would recommend you flash the alpha rom and while flashing select mk2000 in the aroma installer and disable all the alpha add-ons....
[LG V20 Guides, News, & Discussion] blairmc99:
It just does the same thing when I cover the sensor. The main and second screen flash in unison. I'm not sure how to do the last part you mentioned.

" i would recommend you flash the alpha rom and while flashing select mk2000 in the aroma installer and disable all the alpha add-ons.."
[LG V20 Guides, News, & Discussion] scorpio76r:
I can't format data, it gives me a no partition error. I rooted via the laf exploit from runningnak3d. Had some help from Kish too. So I had the partition errors I thought that updating twrp would fix or add the missing partitions. That was a no go. Problem still exists. I'm up and running, but twrp is unable to make nanoids or store flashable zips.
[LG V20 Guides, News, & Discussion] kish9046:
Seems your partition is corrupted somewhere along and can you double check the twrp version again.... im on 3.2.1-3 by Phoenix and it works fine and am able to mount all partitions
[LG V20 Guides, News, & Discussion] cnjax:
I think your best bet is to flash a kdz via lg up if one is available for the 918, that should fix your partition problems
[LG V20 Guides, News, & Discussion] scorpio76r:
I believe you are right on that. Thank you, I appreciate the insight. It sucks to start all over though.
[LG V20 Guides, News, & Discussion] cnjax:
True that, been there before, I've not heard anyone who used the lafsploit wind up with corrupted partitions I suspect it was a bad rom download
[LG V20 Guides, News, & Discussion] scorpio76r:
Thanks again I will pass this info on to Libraplum76, I'm aware that she has this same issue as well. Back to the drawing board again, lol
[LG V20 Guides, News, & Discussion] Libraplum:
Hello guys, can someone send me a link to the Uppercut that worked for them? Thanks. I'd really appreciate it
[LG V20 Guides, News, & Discussion] kish9046:
here u go....

http://downloads.codefi.re/autoprime/LG/Flash_Tools/LGUP/
[LG V20 Guides, News, & Discussion] kish9046:
thnks for [MENTION=4201835]cnjax[/MENTION] and [MENTION=5631635]BROKEN1981[/MENTION] for your valuable assistance in assisting noobs like me in this thread
[LG V20 Guides, News, & Discussion] Libraplum:
Hello guys can someone help me. I am stuck after I get into Twrp. After i have hit cancel, entered the Twrp menu,, type yes and select format, then menu again select mount and check system. When I entered the following commands :

adb push Magisk-v16.0zip

adb push h918-twrp.img./sdcard

adb shell dd=if/sdcard/h918-twrp.img. Of=/dev/block/bootdevice/by-name/recovery

Nothing happens, what am I doing wrong?
[LG V20 Guides, News, & Discussion] kish9046:
Is that you are getting any errors in the terminal emulater after entering those commands?

are you able to see the magisk zip file after selecting 'install' option in twrp?
[LG V20 Guides, News, & Discussion] Libraplum:
Yes I am getting an error that says no directory or file found after I enter the commands. And I'm not seeing the Magisk zip in Twrp after I click install.

Am I suppose to be entering the commands in the Fwul terminal?
[LG V20 Guides, News, & Discussion] kish9046:
Yes.... As you are in twrp now, i would try flashing the magisk zip and latest twrp recovery manually..... just save the latest magisk zip and twrp image in a pen drive, connect to your mobile and flash within twrp....
[LG V20 Guides, News, & Discussion] kish9046:
Twrp latest by Phoenix https://androidfilehost.com/?fid=5862345805528047700
[LG V20 Guides, News, & Discussion] scorpio76r:
Hey guys, OK so I have restored to stock and, rooted multiple times. When I go into delvic or internal storage, I'm getting that error in the picture. I haven't been able to run the command lines from adb push Magisk-v16.0zip /sdcard all the way to bootdevice /by-name/recovery. Just curious, is this why I am having those storage issues? Is so how can I fix. Sorry, if this is a lame or dumb issue, I'm just trying to root properly.
[LG V20 Guides, News, & Discussion] kish9046:
that was very unfortunate after all those hard tries of yours.....can you try manually to flash magisk and the latest twrp image.... i did used this method successfully in 3 lg v20 devices.... never faced this problem..... did you fully formatted using advanced format option within twrp?

And is your twrp version the latest?
[LG V20 Guides, News, & Discussion] kish9046:
Just curious to know..... r u following the whole procedure as mentioned in the lafsploit correctly?

R u from stock 10p? and just wondering all this was due to a bad download of the kdz file to begin with? ....

Is there anyway can u download the 10p kdz again and start from the scratch..... i know its too much to ask but worth a try.....
[LG V20 Guides, News, & Discussion] cnjax:
As I have also tried to assist, something has messed up the partitions on his phone, either a mistake in the Laf exploit procedure or corrupt file download. I suggested that maybe restoring the laf partition and flashing a full kdz might fix the partition problem. But it's just a guess on my part. Probably need an expert to chime in on how to fix the partition issue.
[LG V20 Guides, News, & Discussion] runningnak3d:
First if a KDZ flashes, it isn't bad. It has SHA256 checks built in. If it was corrupt, it wouldn't pass the hash check done by laf.

Next, git also has hash checking built in. This is why I didn't bother to post hashes for anything.

With that said, you say that you have tried this 3 times. Have you reflashed the KDZ all 3 times? The partition tables get recreated by the KDZ, but ONLY if you do a refurbish or upgrade flash. If you use partition DL, then partition tables only get flashed if you cross flash, and with the H918 you aren't doing that.

-- Brian
[LG V20 Guides, News, & Discussion] kish9046:
Thanks a ton Brian for the assistance, glad you have checked on this thread and replied....
[MENTION=7200067]scorpio76r[/MENTION] could you double check if you have selected UPGRADE in lgup tool while flashing the kdz.... it seems that this couldn't happen due to a bad download....

Thanks again Brian for your amazing work in rooting our device and your valuable guidance........:good::good::good:
[LG V20 Guides, News, & Discussion] scorpio76r:
Good morning, Brian. I hope all is well. Yes, I did flash the KDZ all 3 times, 4th time earlier today. Can you further explain what you mean as far as the cross flashing and, also the use of partition DL, I appreciate the help. I was working on the k20 plus before recently moving to the H918. I definitely noob to this and, can't see where I'm messing up at. I follow instructions precise.

---------- Post added at 01:59 PM ---------- Previous post was at 01:52 PM ----------

Hey Kish, so try another kdz even if the uppercut flashes it successfully?
[LG V20 Guides, News, & Discussion] kish9046:
Not required.....as explained by Brian, it seems there isn't any problem with the kdz since it passed the hash check done by laf.......was the kdz flashing in LGUP went smoothly? or did you noticed anything not right?....
[LG V20 Guides, News, & Discussion] runningnak3d:
To elaborate, here is the list of things that can go wrong and the outcome. The only part of this procedure that can get messed up IF the hash checks match from sha256sum is the COPY command.

!COPY fd_num,src_offset,size,dst_offset

If you mess up the fd_num you lose download mode.

If you mess up the src_offset you lose download mode

If you mess up the size, and put in a SMALLER number, you lose download mode

If you mess up the size, and put in a LARGER number that is greater than 50megs, you will brick your phone since the laf partition is 50megs and you will overwrite firmware.

If you mess up size, and put in a LARGER number that is less than 50megs, you just have trailing data .. no biggie. TWRP will not be affected.

If you mess up size, and put in a SMALLER number, you lose download mode.

If you mess up the dst_offset, and put in a 0 to 5, you overwrite your GPT for sda and you have a brick.

If you mess up dst_offset and out in a 7 or higher, you have a brick since what is copied will overlap into firmware.

Those are literally the only places this procedure can be messed up and the outcomes.

If you have TWRP, then the laf part of the process worked and no mistakes were made. Something had to happen after the fact to corrupt your partition table.

-- Brian
[LG V20 Guides, News, & Discussion] Libraplum:
I'd really appreciate some help

Does anyone have specific details on what to do once in Twrp Recovery that does not mess up the partitions?

Thanks to everyone for the help and assistance. :)
[LG V20 Guides, News, & Discussion] scorpio76r:
Exactly!, Thanks runningnak3d, you have really did us a great favor. Thanks, Kish for further breaking it down for some of us H918 noobs, shout out to cnjax too, you are a great help Thanks to BROKEN1981 also Blairmc99 and, everyone else here who has made me realize that I did a good switch from the other device to this one . The issue that I having is once I boot into twrp, I follow the wipe, format, etc. Basically I followed the instructions here. I'm just thinking that something must be wrong when I mount system,go back to the twrp homescreen, go back and, system is mysteriously unchecked
[LG V20 Guides, News, & Discussion] kish9046:
It seems that there wasn't any problem with the lafsploit process and your partition is somewhat messed up and wouldn't clear even after multiple flashing.....Could this happen due to encryption done prior to all this??....

I read that changing your system partition from ext4 to exfat and again changing to ext4 might help.....but im not pretty sure how to do that.....

within twrp can you just try unchecking and rechecking the mount system partion-read only option.....
[LG V20 Guides, News, & Discussion] Libraplum:
So if it is checked already, unchecked it?
[LG V20 Guides, News, & Discussion] kish9046:
Just follow the whole process as mentioned in the first post.....this should work as it has worked for me and many others before....also check the original lafsploit thread by Brian for more insights..... :cowboy:
[LG V20 Guides, News, & Discussion] kish9046:
please uncheck
[LG V20 Guides, News, & Discussion] scorpio76r:
the phone wasn't encrypted. I did see a post earlier and, tried that still had issues with delvic and internal storage. Red invalid partition. I doubt that I am making the same mistake over again unless it has to do with the fact that inside FWUL I'm unable to adb magisk etc, those last steps after installing twrp.
[LG V20 Guides, News, & Discussion] kish9046:
Shouldn't it be unchecked already????
[LG V20 Guides, News, & Discussion] Libraplum:
Yes it is. Thanks for the input. Appreciate it.
[LG V20 Guides, News, & Discussion] runningnak3d:
If you can give me an hour I will push the latest TWRP and update the parameters for the COPY command. Maybe you will have better luck although it shouldn't matter. I have used 3.0.2 up until a few weeks ago, and that is the version this was developed with.

-- Brian
[LG V20 Guides, News, & Discussion] kish9046:
wow Brain excellent.... please could you also let me know if i need to change the commands in this thread once you update twrp version.... Thank you
[LG V20 Guides, News, & Discussion] scorpio76r:
I believe my problem is right here guys. Since it has I have been just pushing majisk on the device via an external sd card and, flashing it through twrp. I have stopped right here until I can hopefully hear what to do at this exact point so that I don't mess up the partitions again.
[LG V20 Guides, News, & Discussion] runningnak3d:
You need a space between the p of zip and /sdcard/
[LG V20 Guides, News, & Discussion] scorpio76r:
That gave no such file or directory error.
[LG V20 Guides, News, & Discussion] runningnak3d:
Look at the line from the first post again, you are ALSO missing a . before zip

adb push Magisk-v16.0.zip /sdcard/

Might I suggest a larger font?
[LG V20 Guides, News, & Discussion] scorpio76r:
OK, even after correcting that, no progress. Oh well, I won't keep bugging on this. I have root, a rom, just no storage in twrp. I will work around it. Thanks everyone for your help.
[LG V20 Guides, News, & Discussion] cnjax:
So internal storage shows up and is accessible in the rom?
[LG V20 Guides, News, & Discussion] scorpio76r:
When I'm in twrp. If I go to fix or repair, it, it says invalid partition. I can do a wipe only. I uploaded a picture early on that shows exactly what I see when going to delvic cache or internal storage. On the last part where it's stated that you adb push Magisk-v16.0zip-/sd card/

adb push h918-twrp.img.img /sdcard /

Do you think that because I was unable to adb push the twrp image is why I'm having this problem even though twrp was installed before this command?
[LG V20 Guides, News, & Discussion] cnjax:
My suggestion is to install twrp as directed by the laf exploit instructions. Once you complete the exploit. Boot into twrp, and flash the updated twrp version by flashing it as image to the recovery partition
[LG V20 Guides, News, & Discussion] scorpio76r:
So I found a solution. What I did was even though I was was on Phoenix latest twrp already and, running the alpha rom. I flashed the same twrp via flashify. I then rebooted into twrp, went to advanced and hit restore defaults a few times. Once was probably all that was needed though. I just did 4 times. Anyway, I went to check and, see if the red invalid partitions errors were in red again on the screen, they were. I went anyway to creating a nanoid both on internal SD and, external sd cards. They both worked! I'm good to play with this phone now, I can make nanoids. Thank you everyone for your help. I appreciate you all.
[LG V20 Guides, News, & Discussion] kish9046:
you are welcome...

cheers
[LG V20 Guides, News, & Discussion] Libraplum:
Yes this worked for me too.. Great work to everyone who contributed. Go Team:victory:
[LG V20 Guides, News, & Discussion] runningnak3d:
I have updated the lafsploit thread with n00b friendly code.

[MENTION=7941717]kish9046[/MENTION] You need to update your post. If someone follows those directions they will brick their phone since I have updated TWRP to 3.2.1-3 in the repo.

-- Brian
[LG V20 Guides, News, & Discussion] kish9046:
Bravo! :cowboy:

Thank you brain for the heads up, i have updated your code in the post. I believe this is what you were talking about when you mentioned you were working on a fully automated script for the entire process.....

Now that you have automated the entire process to a single script, anyone can easily root our device, thought of deleting this thread, but hey this might help some noobie with the prerequisites...so just leaving it....

Thanks again for your excellent works.... :good::good::good:

Cheers
[LG V20 Guides, News, & Discussion] tswb:
Hi i need help i got erorr when it tell me to put in download mode i got this. Is there anyway to fix it. I got no error but that
[LG V20 Guides, News, & Discussion] scorpio76r:
Yes, it can be fixed. That's the good part. You will even boot with data to the rom you were on before that ugly error. Trust me, it worried me the other day when I relocked the bootloader 2 days ago. I almost counted this phone as a lost until I attempted to fastboot it (up volume,USB cable, windows 10 pc) honestly, about 30 times, put the phone down for like 20 minutes, came back and phone fastbooted. I pulled battery. Manually turned the H918 on a it booted. I have been good every since. You phone CAN recover. Don't worry. Edit, I do have partition errors that are happening no matter what I do. Even if I go back to stock and reroot via Runningnak3d's new method and get Phoenix latest trwp, I can't mount internal storage. I even get invalid partition selection when I try to fix/repair. This has nothing to do with your issue you stated, but if you run into a fix, we are even lol
[LG V20 Guides, News, & Discussion] tswb:
i trying to root my phone and everything doing good until it ask me to put in download mode then i got the red ugly error and how to put in twrp i try (volume up and replug usb). and how to u boot to fastboot. i try (up volume then insert usb plug to the phone and i get same error. tell me please :(
[LG V20 Guides, News, & Discussion] scorpio76r:
Volume up and, connecting USB multiple times is what got me back up and, running. Try hitting the power button sometimes too before inserting the USB cord. It takes patience and, persistence.
[LG V20 Guides, News, & Discussion] runningnak3d:
You didn't unlock your bootloader, and now there is no way to unlock it.

You boot to fastboot by holding vol DOWN with the phone off and plug in the USB cable -- vol UP + USB is for download mode. Once in fastboot, you can try fastboot oem unlock.

If you followed this entire procedure, then you have modified laf, boot and recovery. If you can't unlock your bootloader in fastboot -- there is no way to fix your phone. To unlock, you would have had to enabled OEM unlock in developer options. If you didn't, fastboot oem unlock will fail.

-- Brian
[LG V20 Guides, News, & Discussion] scorpio76r:
Hello Brian, I hope all is well. I was just wondering if you may be had a solution or could point me in the right direction as far as fixing the internal sd partitions. I know that this is off topic for you as you have provided root for us but, I'm also aware of your intelligence in Android and, know that you would be a great person to ask regarding this. Thank you for any assistance.
[LG V20 Guides, News, & Discussion] runningnak3d:
What makes you think that your partition tables are messed up? There are 7 block devices /dev/block/sd[a-g]. If the partition table is messed up on pretty much any of those, then your phone would be a brick.

With that said, the easiest way to redo the partition tables is to flash a KDZ in upgrade or refurbish mode. In either of those modes, the primary and backup GPTs are flashed for each block device. If you have flashed a KDZ using one of those modes, and you are still having some problem, then it isn't a partition issue.

Lastly, if you are feeling brave, then you can extract the GPTs from a KDZ and restore them from an adb shell while booted into TWRP...

I am not going to post that procedure unless you ask for it, because going that route is extremely dangerous.

-- Brian