yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] X_BlackBurn_X:
error at flashing TWRP:

Flashing... this will take a while.

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 401, in try_hello

data = comm.read(0x20, timeout=HELLO_READ_TIMEOUT)

File "/home/android/programs/lglafsploit/lglaf.py", line 240, in read

buff = self._read(need, timeout=timeout)

File "/home/android/programs/lglafsploit/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 5] Input/Output Error

Dumping lafbak for hash check...

Traceback (most recent call last):

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

main()

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

with laf_open_disk(comm) as disk_fd:

File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__

return next(self.gen)

File "./partitions.py", line 62, in laf_open_disk

lglaf.challenge_response(comm, 2)

File "/home/android/programs/lglafsploit/lglaf.py", line 373, in challenge_response

kilo_header, kilo_response = comm.call(request_kilo)

File "/home/android/programs/lglafsploit/lglaf.py", line 260, in call

header = self.read(0x20)

File "/home/android/programs/lglafsploit/lglaf.py", line 240, in read

buff = self._read(need, timeout=timeout)

File "/home/android/programs/lglafsploit/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 5] Input/Output Error

Trimming trailing zeros

sha256sum: test.img: No such file or directory

Checking hash...

TWRP hash: S260cb44d98c67f5ad11fb4512577b6ad4754d9fc8173802ae15d7f5c3aa39e3c

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

kindly give solution.
[LG V20 Guides, News, & Discussion] memnon79:
Moved files?

For some reason all fails on this command: git checkout h918-miscwrte. Did the files move?
[LG V20 Guides, News, & Discussion] Anonyax:
stuck on step 4

hi , i am am currently on this step

INSIDE THAT, DOUBLE CLICK ON LGLAF(RUNNINGNAK3D) ICON WHICH WILL OPEN A TERMINAL

ENTER THE BELOW COMMANDS

git pull

git checkout h918-miscwrte

./step1.sh

i have done everything right . whenever i put command git pull in linux it says Already up to date

please help
[LG V20 Guides, News, & Discussion] KEYofR:
The git command just updates your copy of the files in that directory with the latest version from the source. If the source has not had any updates or changes since the zip was made, then the source is still the same as your copy, and so there is nothing to update, and git just says "nothing to do here", ie, "already up to date".

It's not an error.

--

bkw
[LG V20 Guides, News, & Discussion] gavilan2010:
I just did one of my h918 root work good no problems at all.
[LG V20 Guides, News, & Discussion] jmichael2497:
what recovery and rom are you running now? i've tried official twrp-3.4.0-1-h918, Phoenix591 twrp-3.3.1-1-h918--2019-10-25, and LOS Q 20200813 and 20200917 recovery and rom, but...

rtc resets to build date on every reboot or power down, and i need to connect to the network to correct the clock date time info, now also missing camera and device sensors like rotation.

i don't see other people mentioning this bug, so i don't know if people just don't care enough about it to complain, considering all the other issues trying to make this device ready from stock to non-stock.
[LG V20 Guides, News, & Discussion] blairmc99:
Loading custom rom

First, THANK YOU for the n00b steps, I bricked my first phone, but got this one working, except the last part of loading the custom rom.

I have TWRP and Magisk installed. When I go into TWRP, it asks me for a password to decrypt data. I'm not sure what to type here, when I click cancel, I of course can't mount any of the partitions.

Can you let me know the next steps to load a custom rom?

Thanks!
[LG V20 Guides, News, & Discussion] BROKEN1981:
At password-cancle-wipe-format data.
[LG V20 Guides, News, & Discussion] blairmc99:
Thank you for that. I formatted it, then loaded the latest lineage rom, and after rebooting, it blinks the back light on and off and doesn't boot up. I can still get back into TWRP. What did I do wrong?
[LG V20 Guides, News, & Discussion] scorpio76r:
Sounds like a bad flash. Probably need to try another lineage zip
[LG V20 Guides, News, & Discussion] blairmc99:
Thanks, I tried the next two in the list and got the same result. :(

I also tried loading it onto an SD card as well as pushing them to the internal /sdcard folder and load from there with no luck.

Attached is what I see when it finishes and claims it is successful. There are two red lines, but I'm not sure what produced them.

Thanks again for your help!
[LG V20 Guides, News, & Discussion] scorpio76r:
No problem, from the looks of things it looks like there may be a issue with twrp
[LG V20 Guides, News, & Discussion] blairmc99:
:(

Any suggestions?
[LG V20 Guides, News, & Discussion] scorpio76r:
Probably need another twrp. Maybe some one can chime in and help you with the proper way to do that. I don't want to give any bad advice as I am still getting bad shasum matches lol
[LG V20 Guides, News, & Discussion] me2151:
Your twrp is outdated. Those log errors have nothing to do with the flash though.
[LG V20 Guides, News, & Discussion] scorpio76r:
Are you able to help me out with my issue? I have been trying for days to get a shasum match.
[LG V20 Guides, News, & Discussion] me2151:
Download from stable channel. not nightly. might be a bad upload.
[LG V20 Guides, News, & Discussion] scorpio76r:
Can you send me the exact link you used for FWUL? I would appreciate and, donate for your help.
[LG V20 Guides, News, & Discussion] blairmc99:
I found this exact link based on what was in the OP. FWUL_v2.6_x86_64_15GB.zip

https://androidfilehost.com/?fid=746010030569959782

On this page:

https://androidfilehost.com/?w=files&flid=174356
[LG V20 Guides, News, & Discussion] scorpio76r:
I appreciate that.
[LG V20 Guides, News, & Discussion] Libraplum:
Thank you so much. ?
[LG V20 Guides, News, & Discussion] scorpio76r:
Can someone please let me know if what I put is correct?
[LG V20 Guides, News, & Discussion] kish9046:
Yes... it is correct...
[LG V20 Guides, News, & Discussion] blairmc99:
Can someone help me with flashing a ROM? I get the successful message, but the ROM never boots up. Thanks in advance!
[LG V20 Guides, News, & Discussion] cnjax:
You probably need to flash lineage 15.1
[LG V20 Guides, News, & Discussion] blairmc99:
Lineage only has 14.1 for the H918.

https://download.lineageos.org/h918
[LG V20 Guides, News, & Discussion] hellboyborn:
Superb guide. Downgrade from 20h to 10p, unlocked rooted without any problem. Not even single error occurred anywhere and everything went smoothly. Thanks kish9046 and other guys whosoever involved for making it so easy and putting out steps so clean.
[LG V20 Guides, News, & Discussion] Pheckphul:
No, I'm not a necrophiliac. I ran into the same problem when using this guide today, and I solved it by replacing the Magisk v16 with v20.4 and editing step2.sh to point to the correct file.
[LG V20 Guides, News, & Discussion] Pheckphul:
Use LGUP?

Using this guide I ended up with an H918 with download mode replaced by TWRP. Does this mean I can't use LGUP to install a KDZ file now? If I can't, how can I restore download mode?
[LG V20 Guides, News, & Discussion] CXZa:
Probably you figured out this by now but just in case...

Yes.

There is a laf_restore.zip in this other thread. Maybe it helps?

https://xdaforums.com/t/root-lafspl...-and-including-20h-now-n00b-friendly.3773443/
[LG V20 Guides, News, & Discussion] TheMighyLoki:
I have a new phone but I would like to still use the V20 for music, but I would like to root and go to a better OS. I got upercut up and running but I am getting this "error: 0x2000 h918p_00_0717.kdz file does NOT support "Refurbish" process". What am I doing wrong? Never mind I got my head out of my rear end. Click the correct button and all is well.
[LG V20 Guides, News, & Discussion] TheMighyLoki:
Okay so I am down to part 3 and can not get the usb pen drive to load FWUL all the way it just stalls. So I tried to to just use adb I get errors. Need help.

This is what I am getting in CMD

C:\Users\******\Desktop\V20 Root\platform-tools>fastboot flash recovery "C:\Users\******\Desktop\V20 Root\platform-tools\big_twrp.img"

Sending 'recovery' (23536 KB) OKAY [ 0.621s]

Writing 'recovery' FAILED (remote: 'unknown command')

fastboot: error: Command failled.

12-19-2020. Still can not get anything to work. Tried the instructions to use dirty cow and I get down to

"adb push recowvery-app_process64" and to stops at --------beinnging main.

I am using Windows 10Pro and the V20 is on H918p? Any help would be great.
[LG V20 Guides, News, & Discussion] megamorphg:
Sadly I got the dreaded encrypted error at the end when booting. Everything else worked fine.

After the encrypted error though I formatted and flashed LineageOS 17.1 and then magisk and still keep getting error 1. Even tried Lineage recovery and still same. I think maybe a problem with Magisk 16.

EDIT: I used the latest Magisk 21 and it worked!
[LG V20 Guides, News, & Discussion] TheMighyLoki:
HELP SEE ABOVE
[LG V20 Guides, News, & Discussion] frohro:
Help please!

I followed the instructions here, and got to the place where I was updating things. I updated TWRP using the app, picking the correct TWRP for the h918, and then I updated Magisk too using Magisk and the recommended way of installing. It flashed Magisk and I said it could reboot, and now it is in a bootloop. I can't get into recovery, download, or the regular OS. It will go into fastboot mode, but that is it. Does anyone have any ideas?

Thanks,

Rob
[LG V20 Guides, News, & Discussion] WE#GO#:
@frohro Have you solved your issue?
[LG V20 Guides, News, & Discussion] FeNo2:
@kish9046 Could you elaborate a little more about the Advance Format (WIPE)?

When I select Advance WIPE in TWRP, it gives me a list of partitions, none of them are selected by default.

I've tried Data, Cache, Dalvik, and Internal Storage. Did not choose System.

Anyway, after choosing the ones I've mentioned above, and flashing the zip for Magisk, I still have the same encryption error.

Also confused about

Isn't TWRP already flashed? That's where I just did the Advance Wipe from correct?

Thanks!
[LG V20 Guides, News, & Discussion] FeNo2:
Ok, I cleared up some of the confusion myself.

On the main TWRP menu, there is Advanced, that is not what to choose.

From the main menu choose WIPE, then you will see 2 buttons:

Advanced

Format Data (Choose THIS), THEN type 'yes'.

Then back at the main menu I selected INSTALL and installed Magisk-v16.0.zip.

This fixed the Encryption error. I did not need to install TWRP, it still works.
[LG V20 Guides, News, & Discussion] zeroderp:
double post.

maybe curb my enthusiasm a little....
[LG V20 Guides, News, & Discussion] zeroderp:
edit
[LG V20 Guides, News, & Discussion] FeNo2:
Are you using RUFUS to write the image file to your USB jump drive?

From the original thread, the OP says this:

It's possible to use your own Linux install, but not recommended. The bootable jump drive image has safeguards built in, AND it downloads additional files. You're much better off using it.
[LG V20 Guides, News, & Discussion] zeroderp:
so, one thing i just realized was the zip image was not a flash image,,like lineage17.zip,

it is a zip file that needs to be unzipped,,THEN it is a .img file that can be installed on a jumb drive

i derped out pretty hard on that.

you mentioned this fwul downloads aditional files????

PLEAS tell me the PC does not need to be connected to the internet while i am flashing the phone.....

am rebooting the programmer pc with fwul now....*scary music*
[LG V20 Guides, News, & Discussion] FeNo2:
Sorry, it needs to be connected to the internet. It grabs a file from github. The flashing to your phone during that part is very quick. I don't recall what it's doing, but it's not anything large. I just did this last week, but I've kind of forgotten exactly what happens.
[LG V20 Guides, News, & Discussion] zeroderp:
i am very much in a less then 3rd world country circumstance. connecting to the internet is almost impossible as it is under excellent circumstances. for me to reboot into a Live os, and then set up a full NIC config before the Live freezes, glitches out or other wise kicks me in the face is almost impossible.

i am guna try to make an install. drag copy everything from the install to my os. this arch distro is built super similar to parrot os, so i might be able to make something work.

time will tell.
[LG V20 Guides, News, & Discussion] zeroderp:
so far i have a failed atempt at this point

--------------------------------------------------------------------------------------------------------------------------------

stink@ier:/home/lglaf$ cd lglaf

bash: cd: lglaf: No such file or directory

stink@ier:/home/lglaf$ sudo git checkout h918-miscwrte #for the TMO V20

error: pathspec 'h918-miscwrte' did not match any file(s) known to git

--------------------------------------------------------------------------------------------------------------------------------

the lafsploit is not able to "get" from the hub. looks like files have been removed?

now how do i get what i need?

took me an hour and a half to run less than 10 cmd lines.

not to mention thes fails are forcing me to unplug a phone while in download mode.

this is not fun.
[LG V20 Guides, News, & Discussion] zeroderp:
any one know where i can download the file "h918-miscwrte"

looks like it is no longer on github

stinker@dump:/home/lglaf# git pull

Already up to date.

root@stinker:/home/lglaf# git checkout h918-miscwrte

error: pathspec 'h918-miscwrte' did not match any file(s) known to git

hard thing waiting.
[LG V20 Guides, News, & Discussion] Beansie:
@zeroderp: Did you ever find a way to resolve the "pathspec 'h918-miscwrte' did not match any file(s) known to git" issue? I encountered the same problem following the method in Part 4 of this thread: [https://xdaforums.com/t/step-by-ste...locking-downgrading-rooting-and-twrp.3808258/] and so far my search for a solution or for another method to root my H918 LG V20 hasn't been successful. I currently have an H918 with firmware version H91810p and an unlocked bootloader but no path forward to achieve root.
[LG V20 Guides, News, & Discussion] FeNo2:
@runningnak3d moved over to gitlab when microsoft took over github. I can't find his repository there, maybe he'll see this and reply.

I found this, maybe it'll help:

https://gitlab.com/raslin777/lglaf/-/branches

UPDATE:

I recently needed to do this again myself and located the file here:

h918-miscwrte_step1.sh
[LG V20 Guides, News, & Discussion] memnon79:
@runningnak3d I did this and then installed LineageOS 18.1. Turns out LineageOS is not ideal as can't connects to hidden wifi and runs sluggish. I am looking to put my 918 back to Oreo. Any suggestions for how to do this? I am on TWRP 3.5 on my recovery partition. Need new kernels, modem files, etc? I tried to install a 918v20h image from here and it installed, but stuck in logo bootloop and the message to lock bootloader.

Thanks.
[LG V20 Guides, News, & Discussion] DerkWehler:
My software version is H91820H. Can I still use this? Any help appreciated, thanks in advance.
[LG V20 Guides, News, & Discussion] systemdlessvirgin:
I need help! help with dirtysanta on v20?

elsa:/ $ id

uid=10258(u0_a258) gid=10258(u0_a258) groups=10258(u0_a258),3003(inet),9997(everybody),50258(all_a258) context=u:r:untrusted_app:s0:c512,c768

2|elsa:/ $ applypatch /system/bin/atd /storage/emulated/0/dirtysanta

usage: applypatch [-b <bonus-file>] <src-file> <tgt-file> <tgt-sha1> <tgt-size> [<src-sha1>:<patch> ...]

or applypatch -c <file> [<sha1> ...]

or applypatch -s <bytes>

or applypatch -l

Filenames may be of the form

MTD:<partition>:<len_1>:<sha1_1>:<len_2>:<sha1_2>:...

to specify reading from or writing to an MTD partition.

2|elsa:/ $

i cant seem to get the command 'applypatch /system/bin/atd /storage/emulated/0/dirtysanta' command to work, any help?
[LG V20 Guides, News, & Discussion] imrankhan500:
Hi, How are you doing? I have installed TWRP, using this method, but, when updating the TWRP, to the latest 3.5.2. It always reverts back to 3.2.1. Why? Please Help Me Out.
[LG V20 Guides, News, & Discussion] imrankhan500:
No, you can't use this. You will have to downgrade to h91810p. That is the version, where you can install TWRP.
[LG V20 Guides, News, & Discussion] Aethera:
Please note that prior to running 'git pull' for lafsploit on either the mAID or FWUL system you first have to run 'git init'
[LG V20 Guides, News, & Discussion] Aethera:
Get LGUP and flash the lastest stock KDZ. I use LGUP 1.16 with this patch.
[LG V20 Guides, News, & Discussion] Aethera:
Prior to running 'git pull' you first have to run 'git init'
[LG V20 Guides, News, & Discussion] Aethera:
You can flash laf restore .zip. Sorry I don't have a link for it.
[LG V20 Guides, News, & Discussion] Aethera:
The USB live system needs to be connected to Internet if you're using lafsploit in order to download from git repo.
[LG V20 Guides, News, & Discussion] ITAdmin:
Hello all!

It's been a while since I visited, but knew this was the place for the right answers...

Trying t setup a LG V20 but it needs VOLTE and this doesn't have it. Can I root this thing and install a custom ROM that has that capability?

It is

Android V8.0.0

Security patch level: October 1, 2018. This phone has not been on the air for a few years.

Build #: OPR1.170623.032

Software Version: VS99520d

If there's any other info needed to determine if this is rootable and a ROM is available to provide VOLTE, please let me know and I will provide it.

Thanks VERY much for any help!

ITAdmin
[LG V20 Guides, News, & Discussion] dextructor:
As far as I know any non LG ROM

don't have VoLTE enabled

because of how LG baked the blobs required to make it functional on custom ROM's. So if you really need VoLTE you are stuck with LG ROM's.

In my case with H990DS even with stock ROM's it wasn't compatible with VoLTE in Brazil with 3 carriers that I tested, and it's not mandatory like it's now on the USA, so I don't care/don't need right now.

About root you can if you follow the instructions available on this forum or the YouTube video that was useful to make clear some parts of the tutorial.

With root you may have more options/configs available (I'm not 100% sure about that, so don't quote me on this). But you have a ton of fun and possible tweaks to play at least.
[LG V20 Guides, News, & Discussion] ITAdmin:
Thank you dextructor!

Some of the links for the required files are not working, like the SuperSU on both google Play store links, but I found it elsewhere. I think I have everything I need, so I need to study these instructions and give it a shot. Thank you again!
[LG V20 Guides, News, & Discussion] dextructor:
That's the problem with the internet in general... We get used to think that because something it's on the internet, it will be there for all of the eternity, but it requires some maintenance from us, right?

Good luck

Probably the video has more recent files, and I used some files from the video and others from the forum and whatever was broken I searched the rest as you did.

Like I said, my V20 it's a different model, but in your case the video and the written guide should cover all of your bases.
[LG V20 Guides, News, & Discussion] Christian Braun:
Hello all,

I successfully unlocked, downgraded to Android 7.0, rooted, had a functional TWRP so I installed LOS 20 on my

Gerätename LG V20

Modell LG-H918

LineageOS-Version 20-20231103-NIGHTLY-h918

Androidversion 13

following https://xdaforums.com/t/step-by-ste...locking-downgrading-rooting-and-twrp.3808258/

Thanks for this workaround.

Unfortunately I thougt, that i can flash an newer Magisk directly after LOS20.

The installation didn't come to a propper end, flashing Magisk stopped with 2 or 3 red lines. It was too fast, i wasn't able to read the output.

The first start of LOS didn't come to an end, unless the battery was empty.

The second start booted LOS correct.

I checked TWRP. It started to the blue startscreen and... went off. No Version was showed, it just stopped.

No DL-mode, no root and no recovery any more.

What I did so far: fastboot works

I am in D:\Minimal ADB and Fastboot>

fastboot flash boot boot.img

Warning: skip copying boot image avb footer (boot partition size: 0, boot image size: 19968000)

fastboot flash laf twrp-3.7.0_9-0-h918.img

Warning: skip copying laf image avb footer (laf partition size: 0, laf image size: 25546752)

fastboot flash recovery \twrp-3.7.0_9-0-h918.img

Warning: skip copying recovery image avb footer (recovery partition size: 0, recovery image size: 25546752).

~ $ df

Filesystem 1K-blocks Used Available Use% Mounted on

/dev/block/platform/soc/624000.ufshc/by-name/system

5636208 1916904 3702920 35% /

tmpfs 1886880 1688 1885192 1% /dev

tmpfs 1886880 0 1886880 0% /mnt

tmpfs 1886880 8 1886872 1% /apex

/dev/block/bootdevice/by-name/cache 1222008 2536 1203088 1% /cache

/dev/block/bootdevice/by-name/userdata 53789164 845548 52927232 2% /data

/dev/fuse 53789164 845548 52927232 2% /storage/emulated

/dev/fuse 31149568 10928 31138640 1% /storage/CA7A-74A4

~ $

How can I get back boot and recovery? Flashing LOS (lineage-20.0-20231103-nightly-h918-signed.zip) again?

Do I have other options without root?

Thanks for help.
[LG V20 Guides, News, & Discussion] cnjax:
There's a unofficial lineage on this forum
[LG V20 Guides, News, & Discussion] blairmc99:
I just flashed the CMRemix rom, and have the same result.

https://xdaforums.com/v20/development/rom-cmremix-rom-v1-xx-t3529287

Can someone tell me how to reload TWRP, or update it without bricking again?

Thanks!
[LG V20 Guides, News, & Discussion] cnjax:
Dude if you don't know how to use twrp, doing backups and restores then you shouldn't be flashing stuff on your phone and why are you flashing a long abandoned rom from 2016
[LG V20 Guides, News, & Discussion] scorpio76r:
I updated mine via flashify from the playstore. Just find the latest twrp for the device, go in the download folder once you are in flashify and the rest is curtains. I just did this yesterday.
[LG V20 Guides, News, & Discussion] blairmc99:
Unfortunately, I don't see a newer version on the TWRP site for the H918

https://twrp.me/Devices/

The one I have, I downloaded from the OP in this thread.
[LG V20 Guides, News, & Discussion] scorpio76r:
https://androidfilehost.com/?fid=673956719939832947, here you go bro