yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] dtv5018:
Another thing I noticed, which may not be surprising for the developers, is that after flashing SuperV20 rom, I lost TWRP in download mode.

To fix this, I took LAF back to 10p (since SuperV20 rom carries 10s), then reflash twrp.img. Just thought I'd post in case someone goes into a little panic attack like I did. I think TWRP in recovery is the way to go?
[LG V20 Guides, News, & Discussion] runningnak3d:
You don't need the base install. Make sure you install it in C:\Program Files (x86)\LG Electronics\LGUP just make the directory if it doesn't exist.

-- Brian
[LG V20 Guides, News, & Discussion] runningnak3d:
The new method flashes TWRP onto recovery for you, but yes, you should have it on recovery AND laf.

Kinda weird that the SuperV20 ROM includes laf.

-- Brian
[LG V20 Guides, News, & Discussion] BROKEN1981:
yeah, ive done all of that. i have no issue when the phone is not in dl mode. thats whats so odd about it. i even did adb device and it showed my device. i did adb reboot bootloader, that worked. i did adb reboot and it did.

so i am not sure whats going on in dl mode.
[LG V20 Guides, News, & Discussion] runningnak3d:
Can LG UP see it?

-- Brian
[LG V20 Guides, News, & Discussion] BROKEN1981:
only lg uppercut was able to flash 10p for me. the program you linked could not.

this is from the log

[18:59:32] Start Find Available USB Port

[18:59:32] Find 0 Communications Port (COM1)

[18:59:32] Find 1 LGE Mobile USB Serial Port (COM3)

[18:59:32] CBasicComControl::eek:pen, the port(COM 3) is constructed successfully => HANDLE : 0x458

[18:59:32] CPort::eek:penPort() Success. Port number is 3

[18:59:32] [T000003] 41 54 0D AT.

[18:59:34] CBasicCom::SendRecvPacket, PACKET_ERROR code = 1460 Msg => This operation returned because the timeout period expired.

[18:59:34] [T000005] EF 00 16 65 7E ...e.

[18:59:34] [R000007] EF 00 00 05 00 AD 7E .......

[18:59:34] [T000005] EF A0 1C C0 7E .....

[18:59:34] [R000150] EF A0 00 00 00 00 00 4C 47 2D 48 39 31 38 00 00 00 48 39 31 38 31 30 70 00 00 00 00 00 00 00 00 .......LG-H918...H91810p........

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 33 35 32 32 32 37 30 38 30 32 38 39 30 38 38 00 ................352227080289088.

00 00 00 00 56 1E 41 6E 64 72 6F 69 64 00 00 00 37 2E 30 00 00 00 00 00 00 00 31 37 31 38 37 37 ....V.Android...7.0.......171877

35 35 36 30 36 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 31 63 6F 6D 6D 55606......................1comm

6F 6E 00 00 00 54 4D 4F 30 00 00 00 00 00 00 00 00 00 00 C2 43 7E on...TMO0...........C.

[18:59:34] CComPort::ClosePort, Closed Port Successfully for COM 3

[18:59:34] CBasicComControl::Close, the port(COM3) is closed successfully

[18:59:34] ==> COM3 is detected

[18:59:34] ModelListManager is initialized

[18:59:34] LGUP can't load the model[C:\Program Files (x86)\LG Electronics\LGUP\model\common\LGUP_common.dll]

[18:59:45] CBasicComControl::IsConnected, the port(COM3) connection is not detected

under ports (COM & LPT) there is no error with LGE Mobile USB Serial Port (COM3)

This device is working properly

using LG Bridge to do a software update .

yep, go figure, it can see my phone in DL mode.......
[LG V20 Guides, News, & Discussion] ki11aprime:
Ok so this happened went through the process all done rebooting phone now I can't get back into download mode instead of stayin in dowload mode phone jus reboots
[LG V20 Guides, News, & Discussion] runningnak3d:
What happens when you try? Do you go to fastboot?

-- Brian
[LG V20 Guides, News, & Discussion] ki11aprime:
it boots into fastboot download mode appears for like a second its attempting to load something then it jus reboots like normal was attemptin to do a video but my trap phone cam is working lol
[LG V20 Guides, News, & Discussion] SJMarty:
OK, got that done and just ran root-h918.sh.

Lots of what looks like errors to me but I'm not sure. Here is the terminal output...

[android@fwul ~]$
[android@fwul ~]$ root-h918.sh
Backing up laf
Traceback (most recent call last):
File "./partitions.py", line 459, in <module>
main()
File "./partitions.py", line 409, in main
lglaf.try_hello(comm)
File "/home/android/lglaf/lglaf.py", line 401, in try_hello
data = comm.read(0x20, timeout=HELLO_READ_TIMEOUT)
File "/home/android/lglaf/lglaf.py", line 240, in read
buff = self._read(need, timeout=timeout)
File "/home/android/lglaf/lglaf.py", line 359, in _read
array = self.usbdev.read(self.ep_in, 2**14, timeout=timeout)
File "/usr/lib/python3.6/site-packages/usb/core.py", line 988, in read
self.__get_timeout(timeout))
File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 833, in bulk_read
timeout)
File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 936, in __read
_check(retval)
File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 595, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 110] Operation timed out
Backing up misc
[ 100 % ] 2018-04-05 23:16:29,394 partitions: INFO: Wrote 33554432 bytes to misc.img
Flashing TWRP to laf. This will take a few minutes.
When it is finished, your phone will reboot. Enter download mode again,
and you will have TWRP.
When the phone reboots, you will have to click on Devices / USB and
pick LG H918 so that the phone is reattached to VirtualBox
Once you are back in download mode, run ./post-root-h918.sh
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 331, in write_misc_partition
laf_misc_write(comm, chunksize, data)
File "./partitions.py", line 123, in laf_misc_write
comm.call(write_cmd)
File "/home/android/lglaf/lglaf.py", line 259, in call
self.write(payload)
File "/home/android/lglaf/lglaf.py", line 367, in write
self.usbdev.write(self.ep_out, data)
File "/usr/lib/python3.6/site-packages/usb/core.py", line 948, in write
self.__get_timeout(timeout)
File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 824, in bulk_write
timeout)
File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 920, in __write
_check(retval)
File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 595, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 110] Operation timed out
All done - rebooting the phone
[android@fwul ~]$

I think I found one problem. After I unlocked the bootloader and flashed LAF, I didn't reauthorize USB debugging (too damn excited). I had the message sitting up there asking for authorization after the reboot that was initiated by root-h918.sh.

Pausing right here before I do anything else...
[LG V20 Guides, News, & Discussion] nickland:
So in FWUL it says no use device but lgup sees my phone that I just full flashed to 10p. What am I missing here? I've tried Linux and Windows methods and both are not good. Stumped.
[LG V20 Guides, News, & Discussion] runningnak3d:
OK -- I just uploaded a new version that does hash checking. If the hash fails, you stay in download mode so you can try again, or use LG UP to flash laf back onto the phone.

I should have done this from the beginning, but that is why I am an engineer and not a programmer. *sigh*

-- Brian
[LG V20 Guides, News, & Discussion] ki11aprime:
Looking at the log I see a time out error so probably that messed things up if theres now way to get back download mode no big deal thanks for the hardwork.

Edit: is there any way to get back download mode? Or that's it?
[LG V20 Guides, News, & Discussion] Pheckphul:
May be n00b friendly, but it's not stupid tired n00b friendly.

I have a non-rooted h918 10j, and I've got a question. I've got TWRP installed into the download partition, and it starts up fine. Now I'd like to install TWRP into the recovery partition, but this how-to doesn't explain that. Is the TWRP on the download partition capable of installing TWRP onto the recovery partition? If so, how do I go about doing this?

My goal is to install TWRP onto both the download and recovery partitions, and then install Lineage.

Thanks for your help people.

Time to sleeeeeep....
[LG V20 Guides, News, & Discussion] cnjax:
Boot into your current twrp go to install choose flash image at the bottom, select the file and point it to the recovery partition
[LG V20 Guides, News, & Discussion] Pheckphul:
Thanks. I didn't know if TWRP would label the partitions correctly so that I could simply choose "recovery."

If I'm booted from the "download" partition, can I overwrite it with a newer version of TWRP, or must I start up from the "recovery" partition?
[LG V20 Guides, News, & Discussion] cnjax:
Just enter the twrp on the laf partition (download mode) and do the same thing except point it to the laf partition
[LG V20 Guides, News, & Discussion] anuragpv:
Hi [MENTION=3167089]runningnak3d[/MENTION] ! I'm one of the first members to try out your exploit method with a locked bootloader! :| I'm back after a few months at XDA to understand if there's a way to unbrick my phone. Read somewhere that you're readying a v2.0 of the exploit which can unbrick h918. May i know if there's any progress on v2.0?

---------- Post added at 01:04 PM ---------- Previous post was at 01:03 PM ----------

Hi [MENTION=3167089]runningnak3d[/MENTION] ! I'm one of the first members to try out your exploit method with a locked bootloader! :| I'm back after a few months at XDA to understand if there's a way to unbrick my phone. Read somewhere that you're readying a v2.0 of the exploit which can unbrick h918. May i know if there's any progress on v2.0?
[LG V20 Guides, News, & Discussion] snarfies:
This thread (https://xdaforums.com/v20/how-to/step-step-guide-lg-v20-h918-unlocking-t3808258) says I need to re-flash to 10p even if I'm already on 10p (which I am). Is that still the case if I use the methods in THIS thread?
[LG V20 Guides, News, & Discussion] cnjax:
Yes you still have to the steps from the OP thread
[LG V20 Guides, News, & Discussion] runningnak3d:
No, if you are on 10p, you can proceed without flashing 10p again.

-- Brian
[LG V20 Guides, News, & Discussion] snarfies:
Okay, thanks - anyone for a tiebreaker, since we have two directly contradictory responses?
[LG V20 Guides, News, & Discussion] cnjax:
Do what runningnak3d said apparently something changed from the original instructions
[LG V20 Guides, News, & Discussion] scorpio76r:
Agreed.
[LG V20 Guides, News, & Discussion] bpc4209:
Will this still work on H91820g?
[LG V20 Guides, News, & Discussion] KJOM:
Ok, I've given up on using a usb stick and tried the vbox method. The virtual machine detects my lg v20 but for some reason I keep getting this error after opening the lgafsploit and typing ./step1.sh:

Flashing TWRP to lafbak. Please wait...

Traceback (most recent call last):

File "./partitions.py", line 471, in <module>

main()

File "./partitions.py", line 421, in main

lglaf.try_hello(comm)

File "/home/android/programs/lglafsploit/lglaf.py", line 400, in try_hello

comm.write(hello_request)

File "/home/android/programs/lglafsploit/lglaf.py", line 367, in write

self.usbdev.write(self.ep_out, data)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 948, in write

self.__get_timeout(timeout)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 824, in bulk_write

timeout)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 920, in __write

_check(retval)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 595, in _check

raise USBError(_strerror(ret), ret, _libusb_errno[ret])

usb.core.USBError: [Errno 110] Operation timed out

Dumping lafbak for hash check...

Traceback (most recent call last):

File "./partitions.py", line 471, in <module>

main()

File "./partitions.py", line 421, in main

lglaf.try_hello(comm)

File "/home/android/programs/lglafsploit/lglaf.py", line 400, in try_hello

comm.write(hello_request)

File "/home/android/programs/lglafsploit/lglaf.py", line 367, in write

self.usbdev.write(self.ep_out, data)

File "/usr/lib/python3.6/site-packages/usb/core.py", line 948, in write

self.__get_timeout(timeout)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 824, in bulk_write

timeout)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 920, in __write

_check(retval)

File "/usr/lib/python3.6/site-packages/usb/backend/libusb1.py", line 595, in _check

raise USBError(_strerror(ret), ret, _libusb_errno[ret])

usb.core.USBError: [Errno 110] Operation timed out

Trimming trailing zeros

sha256sum: test.img: No such file or directory

Checking hash...

TWRP hash: S260cb44d98c67f5ad11fb4512577b6ad4754d9fc8173802ae 15d7f5c3aa39e3c

Test dump hash: S

Hash check failed! Retrying for 5 times.

rm: cannot remove 'h918-twrp-tmp.img': No such file or directory

rm: cannot remove 'test.img': No such file or directory

Hash check failed after 5 attempts - exiting

Can someone help me out?
[LG V20 Guides, News, & Discussion] compressorhead:
Why a virtual machine? Can't you boot from USB stick? It will be easier that way. From my experience you better 'talk' to your device on bare metal, there are a lot of things that could go wrong using USB passthrough VM implementation, whatever is.

VMware, Virtualbox, etc. They all do it in a different way. Sure your device show up, but it doesn't mean that all the underlying communication protocol is working flawless.

You better stick to the original guideline.

Good luck.
[LG V20 Guides, News, & Discussion] runningnak3d:
[MENTION=3106068]KJOM[/MENTION] did you install the extension pack and change your virtual USB ports to USB2 or 3? USB1.1 will not work....

-- Brian
[LG V20 Guides, News, & Discussion] KJOM:
For whatever reason, whenever I attempt to boot from a usb stick, I get stuck at a few lines... What I can remember is it saying failed to initiate pacman.....and it never actually does anything.. So I searched through various threads including this one and assumed that if I used VBox it would work...Guess not..

---------- Post added at 08:01 PM ---------- Previous post was at 07:59 PM ----------

Yes I have.
[LG V20 Guides, News, & Discussion] zevri:
Bummed a bit it didn't work for me, will just have to wait to see if something else pops up. (Kept getting Hash Check Failed)
[LG V20 Guides, News, & Discussion] zack4200:
does anyone have a working 10p download link? when I try to use dudeawesome's I get a message that the file doesn't exist
[LG V20 Guides, News, & Discussion] Phoenix591:
Try a different USB cable and/or different usb port (on a pc). One or both of those are acting up.
[LG V20 Guides, News, & Discussion] scorpio76r:
Do you have Firefox installed on your pc?
[LG V20 Guides, News, & Discussion] luis.manresa14:
Hello.

My problem is that Github is blocked for CUBA, So, How can I Mount VPN in FWUL??

Can anyone with knowledge about linux give me some steps how to use easy VPN here?

BR

Luis Manresa
[LG V20 Guides, News, & Discussion] luis.manresa14:
Need Help

Hello.

My problem is that Github is blocked for CUBA, So, How can I Mount VPN in FWUL??

Can anyone with knowledge about linux give me some steps how to use easy VPN here?

BR

Luis Manresa

---------- Post added at 08:48 PM ---------- Previous post was at 08:47 PM ----------

Need Help

Hello.

My problem is that Github is blocked for CUBA, So, How can I Mount VPN in FWUL??

Can anyone with knowledge about linux give me some steps how to use easy VPN here?

BR

Luis Manresa
[LG V20 Guides, News, & Discussion] runningnak3d:
What file sharing service isn't blocked?

I will make a zip file that you can download that has everything you need (it will be an archive of the gitlab repo).

You will have to download it and unzip it in FWUL (I will post the instructions) .. just let me know where to host it.

-- Brian
[LG V20 Guides, News, & Discussion] tha_wuabbit:
Re. Bootloader unlock/ARB/qfuse

Runningnak3d,

After reading your lafsploit instructions, I have a question regarding bootloader unlocking. (Not looking for any handholding, just a quick question I suspect you may know a definitive answer to ... :D )

The elephant in the room appears to be the current version of the h918s firmware. My understanding from other threads, is that beyond version 10p,

'fastboot oem unlock' will not be available

ARB will irreversibly prevent downgrading to 10p or below, by either 'not working' or worse, 'bricking' the device

ARB is associated with actually burning out qfuses, which cannot be reversed, circumvented

Yet some members, e.g. Kish9046, seem to suggest to simply 'downgrade' to 10p. (see:

https://xdaforums.com/v20/how-to/step-step-guide-lg-v20-h918-unlocking-t3808258

I would luv to be wrong on this ... could you comment on whether reversion to 10p is safely possible, and if so, how? (Again, I am not looking for any handholding, maybe a definitive answer and possibly, a link or keywords I could use to google my way to a viable solution ... :) )

Alternatively, is the s(h?)ituation any better with other models, e.g. the h910? I believe the US996 will remain user unlockable using lg's native tools for anybody claiming to be a developer? Thanks for reading my dribble ...

Cheers,

tha_wuabbit

(toonosy123@gmail.com)
[LG V20 Guides, News, & Discussion] luis.manresa14:
Hello.

Thanks Bro.

I Can USE, Google Drive, Dropbox, MEGA, ....

Only GitHub is Blocked...

....

I used VPN in other PC, Then I have Conected my PC to th PC that have VPN, all work good, it download some file, but after a while it stucks at 30%,,, I gues this is conection problen, due to VPN conection.

Thanks very much for HELP bro.
[LG V20 Guides, News, & Discussion] luis.manresa14:
I really need this bro,,, Just Help me as soon as you can.

Sorry my english.

Great Work.

BR
[LG V20 Guides, News, & Discussion] runningnak3d:
Download this zip: link

If you use Firefox in FWUL the file will be in the Downloads folder just like on Windows.

Open the runningnak3d prompt and type:

cd ~/Downloads
unzip lglaf.zip
./step1.sh

The rest of the post will be the same....

-- Brian
[LG V20 Guides, News, & Discussion] runningnak3d:
10p is when ARB was incremented -- so 10a to 10o = ARB 0. If you are on 10p you can't revert to 10o or lower.

-- Brian
[LG V20 Guides, News, & Discussion] luis.manresa14:
Hello.

Bro.

Thank u very Much

It worked like a charm.

Thanks again for hard work.

Br.

Luis Manresa
[LG V20 Guides, News, & Discussion] pump0666:
I thought I was the only one having this issue so, I was just being patient, going through all my connection settings & trying to look everywhere before asking for help on this issue, but I'm WAY GLAD someone asked!!! Thanks to you all, I'm on my way to root now!!! BTW Runningnak3d, your patience with this project is beyond admirable & a big THANKS for continuing it!
[LG V20 Guides, News, & Discussion] baba2012:
I have H91820g Oreo 8.0 And Need Root .

So Can I try This Solution on 20g or Need downgrade to version 10p ..

And Downgrade 20g to 10p Have Risk Or Safe ??
[LG V20 Guides, News, & Discussion] Michael-IDA:
USB device not found?

Hi Brian (@runningnak3d),

I’m getting a USB device not found error running at ‘./step1.sh’ on all 3 USB connectors on the laptop. The phone was set to bootloader unlocked on the same computer using adb and fastboot from the instructions at wiki.lineageos.org/devices/h918/install . I get the yellow message at phone boot and getvar unlocked showed unlocked. [1]

Since the LineageOS instructions are wrong (they don’t even attempt to address that fastboot flash recovery won’t work on the V20), I ended up here.

I admit I’m a noob, and lazy, and while I do know what, and how to use, a dd command, I’d really like a complete noob’s guide of ‘I just want LineageOS” to work ‘out of the box?’ To that end I donated $20 to you.

But back to the USB not found, I’m kinda baffled on what to check for next?

Is there a phone button combo to reset the phone to scratch? Maybe if I unlock it from the FWUL USB stick???

PC OS: FWUL USB stick

Phone LG V20

Battery 100%

Software version H91810p

No SIM card

No microSD card

Phone shows this after plugging in USB:

Firmware Update
Now Waiting For Any Connection...

633A B50

step1.sh gives this message

Flashing TWRP to lafbak. Please wait...
Traceback (most recent call last):
File "./partitions.py", line 471, in <module>
main()
File "./partitions.py", line 418, in main
comm = lglaf.autodetect_device()
File "/home/android/programs/lglafsploit/lglaf.py", line 441, in autodetect_device
return USBCommunication()
File "/home/android/programs/lglafsploit/lglaf.py", line 299, in __init__
raise RuntimeError("USB device not found")
RuntimeError: USB device not found

Edit:

I figured I'd try 'stuff' while on the USB stick like revoking USB auth's. When trying to connect to adb(GUI) everytime I plug the USB cable in I get the "Charging slowly" pop up. Complete guess?, this is blocking the legitimate USB connect message? If so, how do you turn off the charge slowly pop up?

Best,

Michael

[1] on Devuan ASCII (Debian 9 "stretch").
[LG V20 Guides, News, & Discussion] runningnak3d:
If you are getting the charging slowly message, something is either wrong with your USB cable, or USB port on your PC or phone.

Try another cable, and then try another PC.

-- Brian
[LG V20 Guides, News, & Discussion] Michael-IDA:
Thanks Brian,

Cable makes sense, it's a cheap after market Amazon stuck in the refurb box, so it going bad after a few uses wouldn't be unexpected.

Best!
[LG V20 Guides, News, & Discussion] baba2012:
Any one here

Please Answer my question
[LG V20 Guides, News, & Discussion] runningnak3d:
Probably no one has answered you because the answer is in the subject of this thread: "up to 20g"

Yes, it is safe to roll back to 10p from 20g.

-- Brian
[LG V20 Guides, News, & Discussion] cnjax:
Your question was answered in the post above yours. And you would use LG up
[LG V20 Guides, News, & Discussion] Michael-IDA:
After step1.sh?

Hi Brian (@runningnak3d),

Thanks for the tip on the cable, it was the problem.

"Once bitten, twice shy..." As the "fastboot flash recovery twrp-x.x.x-x-h918.img" method doesn't seem to work my confidence in wiki.lineageos.org/devices/h918/install#installing-lineageos-from-recovery is low, so I'm looking for "valid advice."

I'm trying to wrap my head around going from "finishing your script" to a day-to-day use of the phone under LineageOS. As such, would you please correct these instructions?

1) Follow your guide through "./step1.sh"

2) Boot into TWRP by putting your phone into download mode.

3) Use TWRP to "flash TWRP onto recovery"

4) Continue following "Installing LineageOS from recovery" from the above link

Okay, I'm pretty sure 2), and probably 3), are wrong? I'm also guessing my search skills are lacking, as "android boot into TWRP on LAF partition" doesn't return squat. I'm sure it exists somewhere, so...

Would you please point me at something, that you know works!, that shows what 2) and 3) should be? And a 30 second read of the Installing LineageOS section for additional errors to avoid?

Thanks,

Michael

PS1:

?? If it's doable to create a "./step2.sh" that "flashes TWRP onto recovery" consider adding a "Once I get $$ in Donations I'll build step2" type message? Although that does become tedious keeping track of what donations are for...

PS2:

Also, to help us complete noobs (and maybe save yourself some time repeating yourself?), if you'd add something like this at the end of your guide, say below the credits? And correct them if I've copy/pasted wrong. Also any other tidbits people ask over and over. I copy/pasted from the last page, but the LG UP needs a link you recommend (as I didn't find anything seemingly ‘official LG').

Notes / Reference:

You get "RuntimeError: USB device not found" or a "Charging slowly" pop up on your phone? Try another cable, and then try another PC.

You will need an SD Card to make a Backup within TWRP.

LAF: LG Advanced Flash

Use ‘LG UP' to do a roll back to 10p. Yes, it is safe to roll back to 10p from 20g.
[LG V20 Guides, News, & Discussion] Mongre:
[/COLOR]

Not sure if runningnak3d is able to do anything but the link to this file via the LAF folder is dead. The direct link is dead, as well.