yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] nickland:
[MENTION=3167089]runningnak3d[/MENTION] on 10p (did the full 10p flash just due to the original methods not working and wanted to see if that would eliminate the problems)

also did the updated instructions in your post with the cd lfag, git pull, root-h918 instructions. (after renaming the original twrp file)

Should I still jst reboot?
[LG V20 Guides, News, & Discussion] caitsith810:
That's actually what happened to me.

After the 5th time it failed the hash check after flashing testtwrp, I unplugged my phone, rebooted it into download mode, and voila, I had TWRP in download mode. Ended up installing TWRP 3.2 to recovery twice(first time it restored stock recovery, installed it again a 2nd time and TWRP 3.2 hasn't been removed since) and it's been good every since.

I'm definitely dropping some coins into your paypal once I get paid. Hard work deserves to be rewarded. Thanks a bunch.:good::good:
[LG V20 Guides, News, & Discussion] BadToThePhone:
I was wondering since we root with 10p will we be able to update and still have root? Thanks
[LG V20 Guides, News, & Discussion] nickland:
https://ibb.co/n9Jtmc

Shot of my post flash screen
[LG V20 Guides, News, & Discussion] runningnak3d:
[MENTION=4402493]BadToThePhone[/MENTION] yes

[MENTION=1389880]nickland[/MENTION] Pull your battery and USB cable. Put the battery back in and boot to download again, you have TWRP.

-- Brian
[LG V20 Guides, News, & Discussion] nickland:
[MENTION=3167089]runningnak3d[/MENTION] ok. Thanks. Should I run the post script in FWUL?
[LG V20 Guides, News, & Discussion] runningnak3d:
Yes. That will put your misc partition back.

Say no to flashing laf. Trust me, you want to keep TWRP on laf as well.

In the next version coming, that won't even be an option. If someone wants laf, they can flash it themselves :P

-- Brian
[LG V20 Guides, News, & Discussion] nickland:
Thanks again [MENTION=3167089]runningnak3d[/MENTION] Will send you some beer money as soon as I can. Finally can compare this to my G5, lol.
[LG V20 Guides, News, & Discussion] dudeawsome:
Will be changing it to TWRP
[LG V20 Guides, News, & Discussion] vishuxperia:
First of all great work.

All was going well when I accidentally rebooted my device and lost my download mode.

What should I do now. Any hope for me?
[LG V20 Guides, News, & Discussion] Zacharee1:
[MENTION=3167089]runningnak3d[/MENTION] sorry for the delay. Using dd brought my serial number back.
[LG V20 Guides, News, & Discussion] ki11aprime:
If you're not on the latest firmware do a system update it will bring it back that's how I got mines back
[LG V20 Guides, News, & Discussion] runningnak3d:
Yes. Even if you are on the latest firmware, an update.zip is coming that you can force flash from recovery. Anyone that lost download mode will get it back, and then can root safely.

I am not slow walking you guys, that is why the new version is taking a little bit extra .. I want it perfect.

Yea, [MENTION=4193208]SJMarty[/MENTION] sent me his misc partition and once I got to dig in, it may look like there is a lot of blank space at the beginning, but that is normal. Android uses that for scratch space, and laf wipes it when you run MISC WRTE, but it only wipes the scratch space. Well, abusing it like this, WE wipe the whole thing, that is why a backup is made. Anyone with a missing serial number just needs to flash that misc backup with dd.

Also, if you are on the latest firmware, an update.zip is coming that you can force flash.

-- Brian
[LG V20 Guides, News, & Discussion] vishuxperia:
@ ki11aprime I am on the latest version. :(

@ runningnak3d Waiting.......
[LG V20 Guides, News, & Discussion] ki11aprime:
Oh ok I always flash back to 10p in case something goes wrong that way I can always take the system update
[LG V20 Guides, News, & Discussion] SJMarty:
[MENTION=2854781]rivethead23[/MENTION]

Were you going to be able to do this? It looks like there are a couple of others (plus me) that need the update.zip file to get download mode back. It would be very cool if you still have the time to do it.
[LG V20 Guides, News, & Discussion] shrimants:
im just hoping it gets done today or early tomorrow because i havent set my phone back up since oem unlock wiped it. Figured it will get wiped again anyways when i install the rom and everything at the end of this so i didnt even bother signing into google or anything. But until them my phone is weirdly useless except in its purest form: phone calls, text messages, and search engine. I'm on 10t, using win10. Not sure if I can be of any help but let me know what I can do.

BTW, what rom are you guys planning on using? I know it has to be a >10p rom but the super V20 rom has me a little confused as to the instructions. And I dont think the second screen works on anything apart from modified stock roms.
[LG V20 Guides, News, & Discussion] xdamember143:
Where do i download the this vdi: [ALMOST HERE]?
[LG V20 Guides, News, & Discussion] SJMarty:
Not available yet. He is finalizing it and will update with the link when it's done and tested.
[LG V20 Guides, News, & Discussion] Green Ranger 54:
I have a v20 by t-mobile and I'm trying to get it rooted, is mine compatible? I'm on firmware version 7.0 10s
[LG V20 Guides, News, & Discussion] shrimants:
its compatible but wait till the VDI file is uploaded.
[LG V20 Guides, News, & Discussion] Green Ranger 54:
Do you know when it'll be uploaded?
[LG V20 Guides, News, & Discussion] xdamember143:
As soon as The op fixes some bugs
[LG V20 Guides, News, & Discussion] SMTB1963:
Not really bugs, per se. I think he's working on making things safer if a flash goes bad (fails hash check). Maybe other stuff too.

Waiting is hard, LOL. I don't think I've felt like this since I was a little kid waiting for Santa to arrive. V20 is such a great phone - it sooo deserves root.
[LG V20 Guides, News, & Discussion] shrimants:
honestly were it not for the bloat and almost nightly freezing, the v20 would be super fantastic. I havent felt this great about a phone since i had a nexus 6. Battery was terrible but man that phone was fantastic.

I'm still waiting for a phone that has more than 4gb ram or at the very least a 6" screen. LOVE the huge screen, since I use the phone to read and watch tv while working out and stuff.
[LG V20 Guides, News, & Discussion] SMTB1963:
Freezing? That's too bad. Haven't had anything like that. I love this phone for the removable battery and sd card. Big screen and good camera follow close behind. I was actually surprised at how much less bloat the TMO V20 came with compared to other phones I've had. Bottom line for me is that I've been super happy with this phone - even without root.

:):o:D

One Plus 5T/6T maybe?
[LG V20 Guides, News, & Discussion] Primitive1:
Stuck also

Just read through this thread, and I have a spare V20 to test things on. If you need anything done OP, please reach out.

I am not a coder/programmer but do work in the tech world (network/sysadmin with a security background) so am not totally tech stupid. I am also happy to set you up with access remotely to the phone/pc and can load what you need. LMK, and I look forward to what comes out this weekend!

BTW on H91810t, and saaaaaaaad.
[LG V20 Guides, News, & Discussion] SMTB1963:
Rejoice and be of good cheer! Our redemption is at hand! :angel:
[LG V20 Guides, News, & Discussion] popwar:
OnePlus 5T
[LG V20 Guides, News, & Discussion] BROKEN1981:
The Razer phone would be a better choice. Even the essential phone.
[LG V20 Guides, News, & Discussion] electroblood:
Soooo ready for this. Im glad I have been ignoring the annoying 'Update Notifications' and am still on p. My VirtualBox environment is already set up since I do development in it, so if you need a hand with anything drop me a line.
[LG V20 Guides, News, & Discussion] rivethead23:
Working on it now. The old lady ran me ragged yesterday, sorry for the delay.

I flashed .kdz back to 10p. Got the update but not seeing a directory /cache/fota in fact I don't see a cache dir at all.

Using file explorer pro, don't see on internal storage nor "phone".

What would the update file be called?

Edit:

Just found out I have to be rooted lol. This phone is the most locked down phone I've had. I've not rooted yet my phone is bone stock. Coming from a Nexus 6, Asus Zenfone, and Leeco Le Pro 3 (using it now) they have been much more straight forward. This is my last LG phone for sure.
[LG V20 Guides, News, & Discussion] nickland:
Hey, so what would the procedure to get my s/n and all that jazz back into my phone? Also, to reflash laf with recovery would i use lg up to put stock laf back in then flash twrp via fastboot or adb?
[LG V20 Guides, News, & Discussion] Zacharee1:
To restore misc:

adb push /path/to/misc.img /sdcard/
adb shell
su
dd if=/sdcard/misc.img /dev/block/bootdevice/by-name/misc

Don't restore the LAF partition without first flashing TWRP to Recovery.

adb push /path/to/twrp.img /sdcard/
adb push /path/to/laf.img /sdcard/
adb shell
su
dd if=/sdcard/twrp.img /dev/block/bootdevice/by-name/recovery
dd if=/sdcard/laf.img /dev/block/bootdevice/by-name/laf
[LG V20 Guides, News, & Discussion] SMTB1963:
Did you root when you flashed back to 10p? You won't see that dir unless you are rooted. File will be update.zip. :)
[LG V20 Guides, News, & Discussion] rivethead23:
Didnt root - runningnak3d pulled the file. I'll wait for the revised root. Sorry guys thought I could be helpful here for once lol.
[LG V20 Guides, News, & Discussion] popwar:
Any ETA on a simpler Windows based program to root?
[LG V20 Guides, News, & Discussion] bigcletus:
Just curious if the first method using linux has a higher success rate over the virtual box method?
[LG V20 Guides, News, & Discussion] Zacharee1:
Seeing as the VB method is just the a one-click version of the Linux method, there isn't much difference if you're careful and follow instructions.
[LG V20 Guides, News, & Discussion] nickland:
[MENTION=7055541]Zacharee1[/MENTION] thanks. Appreciate the info
[LG V20 Guides, News, & Discussion] shrimants:
honestly with the way the tech industry is going, im really surprised we dont have fastboot/adb/root methods in standalone docker containers just to take all the guesswork out of things.
[LG V20 Guides, News, & Discussion] BROKEN1981:
The VM method keeps saying failed to load USB driver for my h918.

Device manager can see my device. So now I know it's a problem with VM. ( I still have the file that was pulled)
[LG V20 Guides, News, & Discussion] ToshBoss:
So if we have a v20 above 10s I should flash the KDZ? (I'm currently on 10t) Can anyone walk me through that because I'm kinda a newbie LG UP. Also can we run the shell scripts through like the ubuntu subsystem for Windows?
[LG V20 Guides, News, & Discussion] runningnak3d:
I have decided not to cheese out and just add a hacky hash check solution. I am doing all the code updates that can:

1 - make this as safe as flashing with LG UP

2 - Add KDZ flashing support (complete replacement for LG UP with all the safety checks - for example, it won't be possible to flash an H915 KDZ onto an H910 by default. However, I am adding overrides for all the safety checks).

3- When complete, have it tested by a small group of users instead of just posting it publicly. Again, I am engineer not a programmer. Programming is an art, and I am not an artist. What I write is usually quick and dirty -- just to get the job done. I didn't understand why there is usually a closed beta program, now I do. It isn't to limit usage of a program, it is in case there are problems that are going to blow up your [insert device here - PC, Phone, Laptop, Router, etc], it will only affect a limited number of people.

First post updated with the complete manual procedure.

-- Brian
[LG V20 Guides, News, & Discussion] shrimants:
what do you mean when you say "make sure you are on 10p or 10q? Anyone with 10r/s/t should not attempt manual instructions?
[LG V20 Guides, News, & Discussion] runningnak3d:
Make sure you flash the entire 10p, or 10q KDZ if you are no 10r, 10s or 10t

-- Brian
[LG V20 Guides, News, & Discussion] nickland:
Is there something that could be preventing certain things to be persisting after revoots on my phone? Anything installed seems to stick but my default launcher keeps being lost, the sn i just pushed to my phone keeps disappearing, etc...
[LG V20 Guides, News, & Discussion] rivethead23:
Thanks for all the work Nak3d think patience might be warranted in my case. Keep up the good work
[LG V20 Guides, News, & Discussion] shrimants:
so for 10r/s/t you get the 10p kdz from the first post, then use LGUP in "upgrade" mode to flash the whole KDZ file on there, then you follow the manual instructions listed in your post, right?

The first post says "you dont need to flash the whole KDZ, use partition DL mode". So i'm assuming you need to just flash the entire KDZ file, is that right?
[LG V20 Guides, News, & Discussion] BROKEN1981:
I would suggest flashing the 10P KDZ then take the next update to 10Q.

Reason I say that is because I did not understand how to install LGup. So I rolled back to 10P. In download mode, my computer would not connect correctly to my device.

Took me a VERY long time to understand this as well as to understand how to properly set up LGup.

For LGup, you need to install LGup store frame. Then grab the patched LGup that the op linked.

After you install LGup store frame, right click, hit properties, file location. Delete everything and keep the window open.

Now unzip the patched LGup that the op linked. Go into the folder and and grab the 2 folders inside and drag over to the LGup store frame window.

Now you have a working LGup.

---------- Post added at 09:42 PM ---------- Previous post was at 09:30 PM ----------

For Noobs like me that are out there, you might want to link LGup store frame as well as the patched LGup. Then give directions on how to put the patched LGup files into store frame.

I would link my exe store frame file but the g/f ( common law wife lol) is using the PC.

Then link the TWRP you are using.

I only say this since that guy got a hard brick because he did not follow anything you said and just jumped the gun.

As for me I am pulling out whats left of my hair since the VM keeps saying it failed to load my LG usb drivers while device manager sees it correctly.

But hey, I learned how to setup LGup correctly! Seriously though that is so sad that I actually felt like to be a high achievement for myself. LMAO
[LG V20 Guides, News, & Discussion] runningnak3d:
No, DO NOT flash just laf. I am updating the first post now to make this very clear. Can you do it that way - yes, but it is MUCH safer to just flash the whole 10p or 10q KDZ.

-- Brian
[LG V20 Guides, News, & Discussion] shrimants:
So i flashed the full KDZ using upgrade mode. Initially i tried refurb mode but it threw an error and said the device doesnt support that. Upon rebooting, the device started upgrading automatically, i assumed it was a continuation of the previous operation. It then rebooted and continued updating again. When I check my firmware update thing, it says its on 10Q. i manually had to disable "automatic software update" to prevent it from automatically downloading tmobile OTA update.

I'm now on 10Q in download mode with the VM turned on. Unfortunately im getting the USB timeouts even though I've done the usb 3.0 thing in the Vm settings. I'll check and make sure im actually plugged into a usb 3.0 port though.
[LG V20 Guides, News, & Discussion] BROKEN1981:
You can change it to usb 2.0 if that's what you are plugged into.
[LG V20 Guides, News, & Discussion] shrimants:
im definitely plugged in to USB 3.0, but im getting the usb timeouts on the very first step. i can try changing it to usb 2.0 instead and seeing if it works...
[LG V20 Guides, News, & Discussion] nickland:
Anyone have any ideas of a permission or something i may be missing? Still cant get my phone to remember system font, my serial #, or my default launcher choice through rebooting. Cant seem to find anything outside of losing wifi passwords after a root so my google fu is failing...
[LG V20 Guides, News, & Discussion] runningnak3d:
[MENTION=1389880]nickland[/MENTION], that would have nothing to do with this process. I would suggest flashing back to stock and trying again. Some change you made after having root affected you.

-- Brian
[LG V20 Guides, News, & Discussion] nickland:
Ok. Thanks
[LG V20 Guides, News, & Discussion] ITasteTerrible:
I seem to get a runtime error when I try to run this command "./partitions.py --restoremisc h918-twrp.img carrier".

RuntimeError: File size 42467328 is larger than partition size 41943040
[LG V20 Guides, News, & Discussion] shrimants:
I got the USB errors to go away. I unplugged the phone and turned it completely off with a battery pull. In vmware, i made sure to add a filter for the LG phone in the usb settings. This way, it automatically immediately connects. The vm is on usb 3.0 mode, the device is connected with the factory USB cable to a usb 3.0 port on my PC. At this point I booted the phone into download mode and tried the misc dump, and both were successful with a matching hash.

Now i'm having issues running the TWRP step:

[android@fwul lglaf]$ ./partitions.py --restoremisc h918-twrp.img carrier
Traceback (most recent call last):
File "./partitions.py", line 459, in <module>
main()
File "./partitions.py", line 448, in main
write_misc_partition(comm, disk_fd, args.restoremisc, part_offset, part_size, False)
File "./partitions.py", line 314, in write_misc_partition
"size %d" % (length, part_size))
RuntimeError: File size 42467328 is larger than partition size 41943040
[LG V20 Guides, News, & Discussion] runningnak3d:
Did you do a git pull? One sec, let me fix the copy that is in the repo.

EDIT: I just checked, and the one in the repo is 24670208 bytes -- and correct.

Do a git pull inside the repo.

-- Brian
[LG V20 Guides, News, & Discussion] shrimants:
I did not do a git pull, it wasnt in your "instructions for the impatient" post lol
[LG V20 Guides, News, & Discussion] ITasteTerrible:
No. I'm following your manual instructions on page 28.
[LG V20 Guides, News, & Discussion] runningnak3d:
OK, well, I am not sure how that image got onto the VDI, but if you:

git pull

It will pull down the current repo.

-- Brian
[LG V20 Guides, News, & Discussion] ITasteTerrible:
ok it seems like it is working now after doing a git pull. Thanks.
[LG V20 Guides, News, & Discussion] Enismirdal:
Didn't realize that the lglaf python script silently assumes a target file for a partition dump is ok to overwrite, and completely forgot to copy my misc backup elsewhere before re-running the VM root script (before the .vdi was pulled) between VM config changes. Short version, might have accidentally overwritten the misc backup. No real problems so far, beyond the missing serial, and without an intact backup, nothing to be done. Just might be worth a thought.
[LG V20 Guides, News, & Discussion] runningnak3d:
Because I am only using the first 8k of the misc partition, you only lost your serial number. If you have it, I can tell you how to put it back if you know how to use a hex editor. If not, send me your misc partition and your serial number, and I will fix it for you. Obviously you will need to dump your misc partition again....

-- Brian
[LG V20 Guides, News, & Discussion] BROKEN1981:
any clue as to what i am doing wrong?
[LG V20 Guides, News, & Discussion] Zacharee1:
Space after ./partitions.py...
[LG V20 Guides, News, & Discussion] BROKEN1981:
I did not know what that. Thank you. can you take a look at this?
[LG V20 Guides, News, & Discussion] shrimants:
I used the last line for mine, the line that says "lsof 518 root 39u BLK 8,0 0t0 14665 /dev/block/sda". That line worked when i assumed that "39" was the correct number for that next command.

In your instructions, you say to copy over the magisk .zip but then you format the whole thing so magisk goes away. I had to go back into ADB, re-enable the USB device in the VM (it shows up as a different device in recovery adb mode as compared to download mode). Then I had to push the file back over.

Now the issue i'm running into is:

[android@fwul lglaf]$ adb shell rm /system/recovery-from-boot.p

rm: can't remove '/system/recovery-from-boot.p': No such file or directory

[android@fwul lglaf]$

You wrote ".p" but did you mean ".bak"?

[android@fwul lglaf]$ adb shell ls /system
app framework rfs
bin lib sounds
build.prop lib64 tts
etc lost+found usr
fake-libs media vendor
fake-libs64 priv-app xbin
fonts recovery-from-boot.bak
[LG V20 Guides, News, & Discussion] Zacharee1:
You still need the --
[LG V20 Guides, News, & Discussion] BROKEN1981:
ahh ok. thank you very much. sorry for being such a pain in the butt
[LG V20 Guides, News, & Discussion] Zacharee1:
I have apps on Google Play. I've gotten worse :p
[LG V20 Guides, News, & Discussion] ITasteTerrible:
if you are using virtual box you can just go to the drop down menu Devices, Shared clipboard, and then Host to guest. It should allow you to just copy the commands to the VM.
[LG V20 Guides, News, & Discussion] BROKEN1981:
ok, i hope someone can understand my issue. this is what happens when i start the VM.

VM is killing off my usb connection. it just drops.

ive tried usb 1.0, 2.0 and 3.0 in settings.
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Did you add it to your USB Device Filters in the settings? If so it is supposed to do that as the vm now has control of that usb device.

---------- Post added at 11:52 PM ---------- Previous post was at 11:50 PM ----------

Did you finish? I am waiting for confirmation before I move from the COPY FD command.
[LG V20 Guides, News, & Discussion] BROKEN1981:
While that makes sense, (even to me) i cant get past the part where VM needs to talk to my device.
[LG V20 Guides, News, & Discussion] ITasteTerrible:
I think something may still be using it in the host machine. Do you happen to have LG UP still open? If so exit LG UP and try to mount it from the device drop down menu

Edit: May not be the solution. Seems like there are many reasons why the usb device will fail to attach.
[LG V20 Guides, News, & Discussion] SJMarty:
[MENTION=7615249]SMTB1963[/MENTION]

Sorry, I missed this post of yours until just now. I'm downloading the .ZIP you uploaded now. Appears to be 10t?

If LGUP could not see your phone and the recovery keypress wasn't working, how did you flash the .ZIP?

I have the built-in recovery working still...would I just flash your .ZIP from there?
[LG V20 Guides, News, & Discussion] BROKEN1981:
i checked task manager, did not see LGup running. I uninstalled it as well just to make sure. at this point i am stumped.:confused:
[LG V20 Guides, News, & Discussion] TheLogicalGamer:
Has anyone had trouble flashing lineage os after doing using this method to root? I've tried 3 different sources of twrp. As well as two different zips from the Lineage os website as I don't have time to build. I've looked around, and haven't seen any other users with this problem. Could it perhaps be because of arb?
[LG V20 Guides, News, & Discussion] BROKEN1981:
ARB would have nothing to do with it. I think I read somewhere that you need an AOSP TWRP for LOS and such.
[LG V20 Guides, News, & Discussion] ITasteTerrible:
One thing I notice that may not be important is that I also have a LGE Mobile USB Serial Port driver. Other than that I would try another port or another cable if you haven't done that yet.

[IMG="device manager"]https://imgur.com/a/zkERc[/IMG]
[LG V20 Guides, News, & Discussion] BROKEN1981:
Since you are a windows user, would you possibly know why the USB driver would keep failing to load on the VM?

I had the same issue on W10. I reformatted and I am on W7 now.

I would follow your instructions for gitbash but it's a bit confusing for me. I am sure if I could use adb I would have root. Gitbash seems to kinda work the same way.

With the VM method, I doubt people would use your method so it's not like I can use YouTube skills FTW lol