yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] TheLogicalGamer:
I suspected it wouldn't be due to arb, but found a post about it not being compatible with boot loaders after 10J. I haven't seen anything about using a aosp twrp in the v20 lineage thread, or in roms & development. So I'm currently stumped. I'll ask in that thread I don't wanna clutter this one up. As it's an unrelated topic now that I have confirm arb isn't the culprit. However if someone is able to get it working I would appreciate the heads up. :)
[LG V20 Guides, News, & Discussion] Zacharee1:
I actually don't have Windows. I haven't since November.
[LG V20 Guides, News, & Discussion] BROKEN1981:
you know what? I bet thats what it is.
[LG V20 Guides, News, & Discussion] SMTB1963:
You must have missed my (even earlier) post as well -

[MENTION=4193208]SJMarty[/MENTION] - You can try flashing that zip but If I were you, I would flash the entire 10p kdz using LGUP and then try again using runningnak3d's new instructions. That, or wait for runningnak3d's super-duper safe method that he'll post after returning from his vacation. That's what I'll be doing lol.
[LG V20 Guides, News, & Discussion] Enismirdal:
Ah, that doesn't sound too bad. I can definitely use a hex editor as needed, and I've still got the serial from the OEM data sticker. Many thanks.
[LG V20 Guides, News, & Discussion] SJMarty:
Yes, I missed both posts...my bad.

I can't use LGUP right now. I lost download mode with a bad flash so LGUP does not see my phone. I actually need the update.zip from the OTA that you get with when running 10p. After I read your post, I thought you were able to recover using the built-in recovery and the 10t full .ZIP you uploaded. Since that's not how you did it, I don't think I want to chance it at this point.

[MENTION=3167089]runningnak3d[/MENTION] offered to roll his H918 back and get the file but I don't want to bother him and pull him away from working on the "bullet-proof version" of the H918 package. I was hoping someone else would be able to do it.
[LG V20 Guides, News, & Discussion] runningnak3d:
[MENTION=4193208]SJMarty[/MENTION] Yea, I didn't bother because someone posted they were doing it. You are not going to be left in the wind.

-- Brian
[LG V20 Guides, News, & Discussion] bigcletus:
I bought this phone six months ago with the intent of being able to root and install custom roms as I had on my G3 for the last three years until it died. Now thanks to Brian, I can finally use my phone the way I want. Donation coming your way for all of your work. :)

I do have a question though, TWRP asked for a password for decrypt initially on the first boot. I formatted the data per the instructions, pushed magisk and flashed no problem. Now, when I return to recovery, it still is asking for a password. I never setup encryption before.

Also, I wanted to make a backup in TWRP before flashing any thing else but it shows the data partition huge, like 58,888MB? Any ideas what that is all about?
[LG V20 Guides, News, & Discussion] shrimants:
i finished the whole thing. can confirm for that FD step you want to take that last entry that links to /dev/sda. the specific number doesnt matter as long as you have the FD number correct [MENTION=9075200]ITasteTerrible[/MENTION]. For me that was the very last entry.

so what i'd like to do now is verify that I have root and then verify that twrp is still installed on recovery.

Magisk manager is installed. I enabled debug mode, gave shell the root permission via magisk, and did 'adb shell' followed by 'su' to get root. I got the permissions, so im definitely rooted.

it shows im on h918 10q, android 7.0 right now.

I then did adb reboot recovery and it booted me into TWRP.

So my next step is to install a rom, and since I want second screen to keep working im thinking a modified stock rom. Anyone install superV20? I'm not sure what the preinstall junk is for superv20. And i'm assuming after installing and rebooting, you need to then boot into download mode and then reflash the LAF partition with something or the other?
[LG V20 Guides, News, & Discussion] TheLogicalGamer:
What version of twrp are you using?
[LG V20 Guides, News, & Discussion] bigcletus:
The version included in the vdi = 3.0.2. Maybe I need to update it?
[LG V20 Guides, News, & Discussion] anuragpv:
I'm having a similar issue, where the phone doesn't boot to the OS rather to the fastboot. I tried the LGLAF method without unlocking the bootloader :(. Have you been able to boot to the OS?

---------- Post added at 12:54 AM ---------- Previous post was at 12:52 AM ----------

Have you been able to resolve this issue?
[LG V20 Guides, News, & Discussion] TheLogicalGamer:
Magisk may not be able to stop dm verity if that's still a thing. It's been a while since I've messed with these newer models. I'm currently trying to find a stock 10p boot image or figure out how to extract one from a the kdz I'm downloading. I have to restore to stock as I have no os on my v20 from trying to boot lineage 14.1. As soon I can get back to stock I'll reroot and update you. I seem to recall having this issue myself. Edit may be a couple of days since I have to reinstall my linux drive.
[LG V20 Guides, News, & Discussion] bigcletus:
I just flashed the latest TWRP 3.2.1 and that fixed the password problem and the huge file size issue. Making a first backup now before messing with anything else :)
[LG V20 Guides, News, & Discussion] runningnak3d:
To the ones that flashed without unlocking their bootloaders, but can still get to download mode, you can try this:

./partitions.py --dump misc.img misc

./partitions.py --dump persistent.img persistent

./partitions.py --dump persist.img persist

./partitions.py --wipe misc

./partitions.py --wipe persist

./partitions.py --wipe persistent

If that doesn't make it so you can at least boot your phone and unlock it, then there is no hope. In the future, read the very first warning -- unlock your bootloader.

If it does work, and you can at least boot. Do NOT restore those backups. I will need new dumps, and need to look at them and modify them for you. Not something I can just talk you through.

-- Brian
[LG V20 Guides, News, & Discussion] Zacharee1:
When you're met with that prompt, you need to select the Factory Reset option. Just wiping /data doesn't work. Factory Reset will wipe all of Internal Storage, so back stuff up.
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Hey runningnak3d can you help me figure out which is my fd?

https://pastebin.com/rFEJR4rL
[LG V20 Guides, News, & Discussion] SMTB1963:
Oh yeah, right...I'd forgotten where you were. Actually, flashing that H91810t.zip might fix your issue, as I believe that would end up flashing the laf partition. But you're right, it's almost certainly best to wait until someone can get you an update.zip and you can use method recommended by runningnak3d.

I did, but I can't say for sure how I did it. Download mode magically re-appeared and I immediately flashed 10p with LGUP.
[LG V20 Guides, News, & Discussion] runningnak3d:
You didn't run !OPEN because /dev/block/sda isn't in that list of open file -- lsof -- list open files.

-- Brian
[LG V20 Guides, News, & Discussion] runningnak3d:
I fixed the new quick instructions and reordered the TWRP post flash instructions so that things don't get wiped out from the wipe. Mah bad!

However, anyone that has rooted / used TWRP before should have known how to handle that. If you are rooting, you really need to know some basics. ;)

-- Brian
[LG V20 Guides, News, & Discussion] SMTB1963:
Well, that's probably true. But in my case, the only phone I've ever rooted was my last - a Moto X Pure that was ridiculously easy to root. I don't recall TWRP asking for passwords or requiring a wipe when I rooted that phone. But that was some time ago and my memory isn't so good.

In any event, your willingness to help those of us lacking in expertise attain root is very admirable - THANK YOU! :good:
[LG V20 Guides, News, & Discussion] SJMarty:
I know...I was just hoping someone that had rooted already had the time to do it. I heard you had a few other things on your plate. :D
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Thanks you I finished and i'm just checking to see if I have root atm.

Edit: ok I have root.
[LG V20 Guides, News, & Discussion] shrimants:
Did you find the .p file in /system? or was it called .bak instead like what I had? I deleted the .bak, figuring it was pretty much the same thing. Definitely still have TWRP upon reboot to recovery (did an adb reboot recovery).

So now i guess its ROM time.

---------- Post added at 11:32 PM ---------- Previous post was at 11:28 PM ----------

Since superV20 overwrites the LAF partition, do we just use the .KDZ file and LGUP to do a single-partition download (in download mode) to overwrite the LAF partition with the 10p KDZ stuff? Or is it some other thing?

Also, do we need to run the preinstaller for superV20?
[LG V20 Guides, News, & Discussion] ITasteTerrible:
For me it was .p instead of the .bak you had. I think he may have updated it as I saw that he changed his how to when I refreshed that page.
[LG V20 Guides, News, & Discussion] runningnak3d:
Don't flash the laf partition back -- leave TWRP on it.

-- Brian
[LG V20 Guides, News, & Discussion] shrimants:
but doesnt flashing the superV20 rom wipe the LAF partition and thus TWRP? so we shouldnt go back in and flash TWRP to the laf partition?
[LG V20 Guides, News, & Discussion] Josh McGrath:
I still can't figure out why someone would flash or do anything without unlocking the boot

But, with that being said, you guys shouldn't get too discouraged. Until a remedy is found, you have hope cause I'm sure LG will patch this hole and in a few months will have a new laf update.

Also, if someone can manage to find a msm899x firehose file and the xml partition table (the easy part), then you can restore to stock with QFIL and/or manipulate via "firehorse" if we are lucky

Edit: has to be the firehose for the specific device
[LG V20 Guides, News, & Discussion] nickland:
[/COLOR [MENTION=3167089]runningnak3d[/MENTION]

Was wondering why we can only run the Weta, stock, and Super v20 Roms. I was also curious if something like RR or Emotive roms that are no longer maintained could be adapted for us (Im looking to do that work myself, just need to know what it is that needs to be modified ). I appreciate any help from anyone. All I can find is how to compile a rom from scratch and not update an existing one.
[LG V20 Guides, News, & Discussion] shrimants:
AFAIK you CANNOT run weta. Our phones have an Anti Roll Back "flag". Its basically a counter that can only count up, not down. New roms must have a number equal to or greater than the counter's current value.

Old roms were ARB0. New roms are ARB1. The only roms that will work are stock roms or SuperV20 because those are ARB1 roms. WETA is an ARB0 rom afaik. Someone correct me if i'm wrong, but im like 90% sure we cant use WETA or NATF.

you should be able to use Lineage if you're ok with the bugs.

---------- Post added at 02:04 AM ---------- Previous post was at 02:03 AM ----------

As for people flashing without unlocking the bootloader.....It is definitely a monumentally stupid mistake to make but I almost made it myself. Its been so long since i did ANYTHING with an android phone (galaxy phone after galaxy phone, never actually got roms working good enough to bother rooting) so when it came time to do it to this device i just completely forgot about that step. Remembered at the last minute when i went back to reread the instructions just to make sure.
[LG V20 Guides, News, & Discussion] nickland:
[MENTION=3711114]shrimants[/MENTION] ok, so its ARB. So now I just need to find a resource on how to change an existing Rom to later firmware/arb. Sorry for the off topic business. If anyone knows a resource on updating roms could they PM me.
[LG V20 Guides, News, & Discussion] runningnak3d:
It is ARB indirectly. You can't run ROMs that are based on 10j or earlier because they simply won't boot with the new firmware, and you can't install 10j or older firmware to make them boot.

-- Brian
[LG V20 Guides, News, & Discussion] BROKEN1981:
few questions. i think if i get a better understanding i can do this. i gave up on vm due to the fact it will never detect my usb driver. this will be my last hope. if this cant detect my usb driver then im done. last time we rooted we got to use cmd prompt or the adb window.

so, when i am to be in user directory, cd C:\Users\YOURUSERNAME\, i assume there is nothing beyond the \?

also what does cd mean?

3.CD into the newly-created lglaf folder and prepare it:

i have a screen shot and i hope you can shed some light on it.

i have been using google but i have no such luck.
[LG V20 Guides, News, & Discussion] runningnak3d:
[MENTION=5631635]BROKEN1981[/MENTION] Save yourself the headache and burn FWUL to a USB stick. Not the VDI in the first post, but actual FWUL. Follow the instructions here: https://xdaforums.com/android/software-hacking/live-iso-adb-fastboot-driver-issues-t3526755

The only difference is that it won't have the lglaf repo yet, so you will need to do these two extra commands once you boot from USB:

* login

* open terminal

* git clone https://github.com/runningnak3d/lglaf

* git checkout h918-miscwrte

Follow the rest of the instructions from there. You should have zero problems doing it that way. As a matter of fact when I get back from vacation, I am moving my repos over to [MENTION=5545101]steadfasterX[/MENTION]'s so that we have one repo, and one tool.

He also has SALT (does not work on the V20 yet) which is a really slick frontend for the current implementation of lglaf. The end goal here is to have a unified tool that will work on any LG phone, and is a complete replacement for LG UP and LG Bridge.

-- Brian
[LG V20 Guides, News, & Discussion] BROKEN1981:
I guess I have no choice but to give up. I don't own a usb stick. I do appreciate the help and what you did for us. I really wish I could donate some money to you.

---------- Post added at 11:23 AM ---------- Previous post was at 11:14 AM ----------

http://unetbootin.github.io

Would this work? Like a dual boot? I tried that linux dual boot with this but it seemed a bit confusing.

I have 2 hard drives so space is not an issue.
[LG V20 Guides, News, & Discussion] runningnak3d:
Yes, unetbootin will work, and you don't have to have a blank hard drive since it uses an image file.

-- Brian
[LG V20 Guides, News, & Discussion] halomademeapc:
Just to be clear, when the thread title says "up to H91810t", that is inclusive of 10t, right? It doesn't mean everything preceding 10t but not 10t?
[LG V20 Guides, News, & Discussion] BROKEN1981:
Oh that is awesome!!!!

Yeah, that's how I installed linux. That version that you used on W10. It looked semi cool. I was just lost trying to use it. I was able to run the terminal, but it kept saying files were missing even though I ran sudo update and stuff like that.

It did remind me of Android, the UI.
[LG V20 Guides, News, & Discussion] runningnak3d:
Yes, that includes 10t. In the first post it says if you are on 10r, 10s, or 10t you need to flash the 10p or 10q KDZ :)

-- Brian
[LG V20 Guides, News, & Discussion] ki11aprime:
After many fail attempt I now have twrp installed:)
[LG V20 Guides, News, & Discussion] SMTB1963:
Just a friendly reminder for those readers waiting for runningnak3d's one-click/bullet-proof solution - TURN OFF AUTOMATIC SYSTEM UPDATES!!!

Sorry to shout, but I wouldn't put it past LG to run out a patch for this 'sploit on their next update.
[LG V20 Guides, News, & Discussion] offremike0887:
I'm trying to pass the first stumble of not being able to get my phone to be seen by my computer, in order for the VM to acknowledge that I'm connected to the computer, within download mode.

I have installed the LG Universal Drivers. I've installed Android Studio (to get any extra drivers and confirm my device can be seen through fastboot devices). I enable the Dev options on my phone. I make sure Enable OEM Unlock is on as well as unlocking it via fastboot. I revoke my USB debugging authorizations, Make sure USB debugging is on, connect to the computer and grant access (after installing Android Studio).

My software specs are as follows:

Android Version: 7.0

Android Security Patch Level: July 1, 2017

Baseband Version: MPSS.TH.2.0.1.c3-00045-M8996FAAAANAZM-1

Kernel Version: 3.18.31

Build Number: NRD90M

Software Version: H91810p

Security Software Version: MDF v2.0 Release 4

I'm able to use adb reboot fastboot (or whatever way it's executed) with no issues.

If I try to adb reboot download mode, my phone just restarts.

Whenever I go into Download Mode on my V10, the phone displays Download Mode for maybe 10-20 seconds while on my V20 it shows for maybe 1 second (not sure if that's normal for the V20)

Whenever I go into Device Manager, I can see my phone, but if I go into Download Mode, I hear the connection noise but I don't see it in Device Manager.

With my current situation, creating a dual boot of Ubuntu (or Single boot for that matter) is not an option, but I can easily do the VM/FWUL method.

What am I missing? Where am I going wrong?
[LG V20 Guides, News, & Discussion] mikewilzn:
Git Pull Error

When I run

git pull

I get the following error:

[android@fwul lglaf]$ git pull
remote: Counting objects: 33, done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 33 (delta 16), reused 28 (delta 11), pack-reused 0
Unpacking objects: 100% (33/33), done.
From https://github.com/runningnak3d/lglaf
335b885..d3fd6e3 h918-miscwrte -> origin/h918-miscwrte
* [new branch] h872-miscwrte -> origin/h872-miscwrte
* [new branch] v10-miscwrte -> origin/v10-miscwrte
Updating 335b885..d3fd6e3
error: The following untracked working tree files would be overwritten by merge:
h918-twrp.img
Please move or remove them before you merge.
Aborting
[LG V20 Guides, News, & Discussion] whojabacod:
Buhh.. still can't get past writing the twrp.img (3rd step) virtual box and native Linux both time out. Any suggestions?
[LG V20 Guides, News, & Discussion] runningnak3d:
rm h918-twrp.img

git pull

-- Brian
[LG V20 Guides, News, & Discussion] ki11aprime:
I had that issue try a different cable
[LG V20 Guides, News, & Discussion] mikewilzn:
Git Pull Error

Thank you that is what I was going to do but due to the multiple warnings to follow the instructions to the letter I didn't want to that risk.
[LG V20 Guides, News, & Discussion] whojabacod:
Already did lol
[LG V20 Guides, News, & Discussion] BROKEN1981:
go to page 35. Follow the directions and grab my link. I have not tried it yet. I will when I get home. Its completely safe.
[LG V20 Guides, News, & Discussion] KainXSS:
root and superv20 flashed worked like a charm, if you install super v20 make sure you edit the prerequisites to not flash laf and rezip it.
[LG V20 Guides, News, & Discussion] dudeawsome:
Ez way to flash twrp to recovery you can download flashify and then use it to flash to recovery

---------- Post added at 10:03 PM ---------- Previous post was at 10:03 PM ----------

Fixed it
[LG V20 Guides, News, & Discussion] Zacharee1:
Or use Recovery to flash to Recovery :p
[LG V20 Guides, News, & Discussion] dudeawsome:
No I am saying those who flashed my rom and pre installer and lost twrp they have root but now twrp so they could use that to flash twrp again
[LG V20 Guides, News, & Discussion] ki11aprime:
I flashed super v20 and I still have twrp
[LG V20 Guides, News, & Discussion] mikewilzn:
Ok I think I may have screwed myself here. I got everything rooted and all was working. Then I was uninstalling bloat with titanium backup, I must have uninstalled something important because a bunch of apps started crashed constantly. So I figured I would just format data again and go through the TWRP steps in this thread again. I did that and got to setup again but apps are still crashing, notably google play services, so I cannot get past the setup process. Then I thought I'd reflash the kdz file, however I now cannot get into download mode because it just boots to TWRP.
[LG V20 Guides, News, & Discussion] Josh McGrath:
Grab the kdz for your phone. Download kdz extractor and extract the kdz and then the dz, find the system.img file (its name varies per model sometimes) and just flash that via twrp and your issues will hopefully be gone. You will probably have to run magisk again after that
[LG V20 Guides, News, & Discussion] jcpowell:
Deleted
[LG V20 Guides, News, & Discussion] offremike0887:
Sorry but it just won't recognize my phone. I go to USB, click on LG, then I try to get onto Salt and it doesn't recognize my phone.
[LG V20 Guides, News, & Discussion] BROKEN1981:
Because you don't use salt. If you read page 35 you would have seen that. You need to put the VM on the drive.

Follow the OP instructions.

Unfortunately I can't get it to do anything for me because of no usb stick.

Not even the program I tried. I get panic kernal. So I just locked my BL and I'm done with this.

---------- Post added at 03:18 AM ---------- Previous post was at 03:16 AM ----------
[LG V20 Guides, News, & Discussion] KoutaPurcell:
Hey, I really don't want to waste anyone's time but I'm i have a question.

Whenever I enter in the terminal

sha256sum twrptestout.img

sha256sum h918-twrp.img

The hashes are always different. Everything else works without a hitch I'm just stuck on this part. Any help would be appreciated thank you.
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Re do the commands

Taken from the manual method instructions.

./partitions.py --restoremisc h918-twrp.img carrier

Notice that is carrier -- NOT laf, so no risk of blowing up your laf partition. carrier is blank on the H918

./partitions.py --dump twrptest.img carrier

dd if=twrptest.img of=twrptestout.img bs=1024 count=24092 # This strips the trailing whitespace so the dump is the same size as TWRP

sha256sum twrptestout.img

sha256sum h918-twrp.img

Compare the hashes. If they don't match, then you have a bad flash --STOP and try: ./partitions.py --restoremisc h918-twrp.img carrier again!

If you can't get a hash match, DO NOT continue. At this point your phone is completely safe. If you have a hash match, then carrier was flashed successfully, you can continue.

From there re do those two commandS again until the hash are the same.

---------- Post added at 05:16 AM ---------- Previous post was at 05:15 AM ----------

Do not go any further until the hashes are the same or you could end up with a brick.
[LG V20 Guides, News, & Discussion] KoutaPurcell:
Hey, thanks for the help but no matter how many times I redo the commands the hashes are never the same strange. Any other additional help will be greatly welcomed too. thanks!
[LG V20 Guides, News, & Discussion] SKRS:
I'm having the same issue, whenever I run:

./partitions.py --restoremisc h918-twrp.img carrier

it fails and gives me this error:

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" % (lenght, part_size))

RuntimeError: File size 42467328 is larger than partition size 41943040

****I just tried to run the commands again noticed this error when runnig

git pull

the error: The following untracked working tree files would be overwritten by merge:

h918-twrp.img

Please move or remove them before you merge.

could this be the reason why the hashes don't match?
[LG V20 Guides, News, & Discussion] thestalkingocelot:
Bootloop

I tried all the steps but now my phone doesn't boot after trying to flash lineage. My phone turns the backlight on and off repeatedly

I can access fastboot but download mode got nuked. I'm stuck like this until i can somehow unbrick this thing

UPDATE: After following the guide to reset the phone twrp booted. retrying lineage now.
[LG V20 Guides, News, & Discussion] SKRS:
Same thing happened to me before finding this guide, I might be completely wrong but I feel maybe Lineage does not support V20s that have ARB 1.
[LG V20 Guides, News, & Discussion] KoutaPurcell:
I just checked and it seems I also get the same error when i run "git pull"