yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] kaidenjames:
Hey all. I asked a question about my TWRP a couple pages ago. So I have root, but I think I skipped a step (highly possible as I was doing this late at night and not 100% sober lol). Basically I have root, but when I boot to TWRP it reads 0mb on my sdcard. I tried flashing through the official TWRP app and it said successful, but still reads 0mb when in TWRP. Should I flash through ADB instead? What exact version of TWRP should I flash?

Thanks in advance everyone. Phone is nice a tweaked now and running awesome. I missed my root.
[LG V20 Guides, News, & Discussion] BatPhone:
Hmm. LGUP is downloaded and in program files, load into download mode on my phone but it can't detect my device. Any ideas?
[LG V20 Guides, News, & Discussion] SJMarty:
What version of TWRP are you running?

---------- Post added at 15:39 ---------- Previous post was at 15:38 ----------

Does Windows see your phone?
[LG V20 Guides, News, & Discussion] SJMarty:
See post #559.
[LG V20 Guides, News, & Discussion] kaidenjames:
Well i've tried flashing through TWRP app and ADB and neither seem to be doing anything. Still end up with 3.0.2-1 with 0mb reading.
[LG V20 Guides, News, & Discussion] Nathan4923:
I flashed this twrp.img thru 3.0.2-1 and that fixed my error

This thread

https://xdaforums.com/v20/development/recovery-twrp-3-2-1-0-t3720239
[LG V20 Guides, News, & Discussion] kaidenjames:
I tried that TWRP and same thing. I tried using the TWRP app. When I'm in TWRP recovery it's not reading my sdcard so I can't flash through TWRP. I feel like I need to wipe, mount, flash recovery again then root? Also I seem to be missing my s/n. As I've stated, I know I must have skipped a step or two and I apologize about that, but I really appreciate all your guys' help.
[LG V20 Guides, News, & Discussion] Nathan4923:
I'm missing my s/n but no problems so far

I'm actually running los 15.1 and its stable
[LG V20 Guides, News, & Discussion] whojabacod:
Does anyone know of a way to use lgup w/out windows? Yes including virtual or dual boot or boot from usb
[LG V20 Guides, News, & Discussion] SJMarty:
I actually I flashed 3.2.1-1 in recovery (TWRP itself).

If your SD card is formatted exFAT, reformat it as FAT32, put the 3.2.1-1 recovery .IMG file on it, and then try it again.
[LG V20 Guides, News, & Discussion] Nathan4923:
Do you mean like booting windows from USB ?
[LG V20 Guides, News, & Discussion] Art908:
Looking for someone in Los Angeles to root an H91010S

Need someone in los angeles to root a T-Mobile H91810S
[LG V20 Guides, News, & Discussion] SJMarty:
Kept the stock kernel and did a wipe and reflash of everything.

Screen rotation is working now but some other odd issues here and here.

Does the mk2000 kernel for the H918 work? I'm a little hesitant to use a beta kernel.
[LG V20 Guides, News, & Discussion] cnjax:
There are stable releases of the mk2000 kernel
[LG V20 Guides, News, & Discussion] BatPhone:
Yep, recognized by Windows
[LG V20 Guides, News, & Discussion] whojabacod:
I mean like not using Windows at all

Can SALT do this yet?
[LG V20 Guides, News, & Discussion] SJMarty:
What error are you getting? There is no handset connected?
[LG V20 Guides, News, & Discussion] BatPhone:
Yep, exactly that. I boot into download mode, get the firmware update message (Do not unplug the USB connection until the process is complete), fire up LG UP from Programs x86 then get the "No Handset Connected" message. Maybe I'm missing a step? I've been looking for the guide as I haven't done this in a while but I can't seem to find it.
[LG V20 Guides, News, & Discussion] SJMarty:
Is this your full path...?

"C:\Program Files (x86)\LG Electronics\LGUP\LGUP.exe"
[LG V20 Guides, News, & Discussion] BatPhone:
Yeah that's it
[LG V20 Guides, News, & Discussion] Nathan4923:
Do you have the drivers installed?
[LG V20 Guides, News, & Discussion] BatPhone:
I did this with H910, would the drivers for the H918 be different?
[LG V20 Guides, News, & Discussion] Nathan4923:
To my knowledge yes but I could be wrong

---------- Post added at 04:15 AM ---------- Previous post was at 04:13 AM ----------

I had to flash stock again with lg up so then I let it boot and set it up real quick and then went to root and twrp again but after I type

(lsof)

I get all the stuff but I don't get the last like with blk

I know my number is 39 but does that last like have to show the 39 along with blk for the !COPY command to work ?
[LG V20 Guides, News, & Discussion] ITasteTerrible:
Yes you have to be in download mode until part two where it should have been replaced by twrp if you did everything correct.

Edit: Decided to snip the output
[LG V20 Guides, News, & Discussion] dudeawsome:
Yes it does
[LG V20 Guides, News, & Discussion] BatPhone:
Yep, hindsight it was kind of obvious but I follow directions almost to a fault and didn't see anything specifying download mode (even though that's the basis of the whole thing...probably should've inferred that). Everything working great now, overall really easy method to root with, much better than the H910 method imo.
[LG V20 Guides, News, & Discussion] Nathan4923:
Yea its actually pretty easy.

When I looked up to see if the phone finally had root I didnt believe my eyes when I saw this but I rooted flashed a updated twrp to my recovery partition and restored download mode on laf and then flashed lineageos 15.1 And have been running it for a day now and its amazing tbh not having the second screen doesnt bother me overall its a great rom and to finally have aosp on this phone is great
[LG V20 Guides, News, & Discussion] BatPhone:
Anyone know the default TWRP password for 3.0.2-1? Or could point where to look it up?

---------- Post added at 05:40 PM ---------- Previous post was at 05:37 PM ----------

Yep, next step is to flash SuperV20/GAPPS and see if I get NetHunter working on it as well. If so, it's gonna make my weekend. Thanks for the assistance my man!
[LG V20 Guides, News, & Discussion] Nathan4923:
You have to format the data
[LG V20 Guides, News, & Discussion] BatPhone:
Wiped the data, still asking for a password in TWRP? It's not default password and I've never set a password on this phone.

Also, can I update TWRP after going through this rooting method or will that cause issues?
[LG V20 Guides, News, & Discussion] Masta Of Evil:
If you update to TWRP 3.2.1 it will most likely fix the password issue from what I've read in here.
[LG V20 Guides, News, & Discussion] toastyp:
You have to format the data. Under special option in wipe. You have to actually type 'yes' into the dialogue box that pops up. That will remove encryption. Just wiping data will do nothing
[LG V20 Guides, News, & Discussion] BatPhone:
Yep, just wiped several times and that seemed to do the trick. Took more than few though! Thanks for the help.
[LG V20 Guides, News, & Discussion] iversenshotrods:
Hey I am at the last command of getting twrp flashed with COPY 38,91270,24670208,6 and I get Help, I am LAF Nice to meet you.#

All commands up to this point worked properly up to this point. Ive tried multiple times and rebooting phone and starting over from step 1. Any ideas? This is a V20 T-Mobile H91810q
[LG V20 Guides, News, & Discussion] ITasteTerrible:
It seems like you are not adding the "!" To the beginning of the command. So it is "!COPY FD,91270,24670208,6". If you missed this then you most likely also missed the "!OPEN" command. Make sure you do the commands correctly or will not get the right output when you use the "lsof" command.
[LG V20 Guides, News, & Discussion] thestalkingocelot:
Restore stock?

Is there a way to restore download mode after you do this?

I need to flash back to stock for reasons.
[LG V20 Guides, News, & Discussion] Nathan4923:
First flash a 3.2.1-1 twrp from XDA for are device https://xdaforums.com/v20/development/recovery-twrp-3-2-1-0-t3720239

and then flash super V20 ROM and that should flash everything stock expect for recovery and the ROM is a customized better stock ROM then you can go into download mode but you atleast have to boot the os once
[LG V20 Guides, News, & Discussion] hibby50:
I get the following error when running ./partitions.py --restoremisc h918-twrp.img lafbak

Traceback (most recent call last):

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

main()

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

write_misc_partition(comm, disk_fd, args.restoremisc, part_offset, part_size, False)

File "./partitions.py", line 341, in write_misc_partition

disk_fd, written, part_size, curr_progress, write_offset, write_offset_bs, end_offset, part_offset, write_mode)

NameError: name 'disk_fd' is not defined

anyone know whats up?

EDIT: also git pull shows up to date

---------- Post added at 09:54 PM ---------- Previous post was at 09:20 PM ----------

I was able to get it work by reverting the progress bar commit https://github.com/runningnak3d/lgl...eda2a16#diff-f863730f6725d27bd6da1095efc65f3c

WOW! awesome!

EDIT: I am not associated with the original developer and claim no responsibility for messing up
[LG V20 Guides, News, & Discussion] LOCO88:
First Lg

#I'm pretty much stuck where I have to flash kdz from a 10s version to 10p (what tool do I need). I really need root but it seems I'm missing thd flow of how to get root with out screwing up if anyone could please help
[LG V20 Guides, News, & Discussion] whojabacod:
:good:
[LG V20 Guides, News, & Discussion] krayziebone99:
how exactly do you do that? I'm a noob
[LG V20 Guides, News, & Discussion] cnjax:
I believe you need to use LG Up to flash the 10p kdz
[LG V20 Guides, News, & Discussion] hibby50:
I just opened the file and deleted the lines that were added in that commit
[LG V20 Guides, News, & Discussion] Avenal:
This error pops out when I run "./partition.py --restoremisc h918-twrp.img lafbak"

Traceback (most recent call last):

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

main()

File "./partitions.py", line 422, 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

What can i do with it?
[LG V20 Guides, News, & Discussion] cnjax:
Try a different USB cable and or port
[LG V20 Guides, News, & Discussion] SJMarty:
Or in my case, I had to use a completely different machine to get rid of the timeouts...
[LG V20 Guides, News, & Discussion] iversenshotrods:
What should I do about this error?

[android@fwul lglaf]$ ./partitions.py --restoremisc h918-twrp.img lafbak

Traceback (most recent call last):

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

main()

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

write_misc_partition(comm, disk_fd, args.restoremisc, part_offset, part_size, False)

File "./partitions.py", line 341, in write_misc_partition

disk_fd, written, part_size, curr_progress, write_offset, write_offset_bs, end_offset, part_offset, write_mode)

NameError: name 'disk_fd' is not defined
[LG V20 Guides, News, & Discussion] katastyle971:
./partitions.py --restoremisc h918-twrp.img lafbak

Traceback (most recent call last):

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

main()

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

write_misc_partition(comm, disk_fd, args.restoremisc, part_offset, part_size, False)

File "./partitions.py", line 341, in write_misc_partition

disk_fd, written, part_size, curr_progress, write_offset, write_offset_bs, end_offset, part_offset, write_mode)

NameError: name 'disk_fd' is not defined

Solution please !

Thank you in advance !
[LG V20 Guides, News, & Discussion] thompatry:
Look back a few posts. He talks about reverting a commit.
[LG V20 Guides, News, & Discussion] Flymn:
so i got the FWUL working in virtualbox now how do i get fastboot? im thinking its either oem unlock with usb degubbing enabled or something i need adb for, just want to confirm.

edit: also running the fwul from a flashed usb in the vm like this guide suggest

edit 2: figured out fast boot, took me a few variations of googleing phone and model with different wordings of fastboot, oem fastboot, adb fastboot. stuff like that.
[LG V20 Guides, News, & Discussion] LOCO88:
Need to flash 10p kdz I'm currently h91810t can someone send link as what tool to use to accomplish this
[LG V20 Guides, News, & Discussion] Avenal:
Try that already, didn't work

---------- Post added at 03:36 AM ---------- Previous post was at 03:33 AM ----------

https://www.dropbox.com/s/1wuzjp5vr0s2cw3/LGUP.rar?dl=0

There you are
[LG V20 Guides, News, & Discussion] Flymn:
new problem now, ive gotten to the 4th line of the first set of terminal, and trying idle, fastboot, and download mode, ive only gotten

PS: I only edit when im not getting any answers/ would think im wasting time making a new reply.

[android@fwul lglaf]$ ./partitions.py --dump misc.img misc

2018-04-25 04:13:21,865 LGLAF.py: WARNING: Failed to set configuration, has a kernel driver claimed the interface?

Traceback (most recent call last):

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

main()

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

comm = lglaf.autodetect_device()

File "/home/android/lglaf/lglaf.py", line 441, in autodetect_device

return USBCommunication()

File "/home/android/lglaf/lglaf.py", line 319, in __init__

raise e

File "/home/android/lglaf/lglaf.py", line 315, in __init__

cfg.set()

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

self.device.set_configuration(self.bConfigurationValue)

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

self._ctx.managed_set_configuration(self, configuration)

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

return f(self, *args, **kwargs)

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

self.backend.set_configuration(self.handle, cfg.bConfigurationValue)

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

_check(self.lib.libusb_set_configuration(dev_handle.handle, config_value))

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 16] Resource busy

tried searching and couldn't understand what i had found before asking here.

edit: for some reason this time i got [Errno 110] Operation timed out

edit 2: ive tried all the ports and a different cable with all ports on main computer and still getting timed out, so im going to try on a different computer and see where i get

EDIT 3: reading through the thread im now confused being on 10t, because the wording of the guide says

If you are on 10p or 10q you are good to go. If you are on 10r or later,

then

you need to flash the ENTIRE KDZ

If

something goes wrong, and you lose download mode, you can very easily get it back by taking the OTA update.

Grab the H918 10p KDZ:

so this makes me think it wasnt required unless i went wrong somewhere.

PS: I only edit when im not getting any answers/ would think im wasting time making a new reply.

EDIT 4: ive gotten my phone down to h91810p now and tried again with same method as above (all usb ports and dif cables) and am back to: [Errno 110] Operation timed out
[LG V20 Guides, News, & Discussion] Avenal:
Problem solved now, I just reverted the commits and EVERYTHING WORKS!!!

Appreciate your work man.
[LG V20 Guides, News, & Discussion] cbissa18:
Thanks for your hard work!

###################################

first of all thank you for all of you and your teams hard work!

two questions

1) when running command ./partitions.py --restoremisc h918-twrp.img lafbak i get what seems like a error at the end of the processed command

"NameError: name 'disk_fd' is not defined" not sure if this has anything to do with the hash not matching up for the custom recovery.

[android@fwul lglaf]$ sha256sum twrptestout.img

6767a45dd68dd38343bbceef7fe744207edae52b19231fea80f46267bd4a2fc5 twrptestout.img

[android@fwul lglaf]$

[android@fwul lglaf]$ sha256sum h918-twrp.img

69c86b92f0a4f8099d33ed3b392a4c3d48da8155d441d11735156aa51e818ee0 h918-twrp.img

Ive tried over 30 times to get them to match and to no sucess have they matched. i tried to reinstall H91810p and i even followed that by H91810q. any solution or ideas would be great. im running ubuntu so id have to reinstall windows to reflash H91810p. But this process was done with FWUL live usb 30gig. i followed every step to the "T". note first step misc hash matched with no problem.

[android@fwul lglaf]$ ./partitions.py --restoremisc h918-twrp.img lafbak

Traceback (most recent call last):

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

main()

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

write_misc_partition(comm, disk_fd, args.restoremisc, part_offset, part_size, False)

File "./partitions.py", line 341, in write_misc_partition

disk_fd, written, part_size, curr_progress, write_offset, write_offset_bs, end_offset, part_offset, write_mode)

NameError: name 'disk_fd' is not defined

[android@fwul lglaf]$ ./partitions.py --dump twrptest.img lafbak

[ 100 % ] 2018-04-25 05:17:56,712 partitions: INFO: Wrote 50331648 bytes to twrptest.img

[android@fwul lglaf]$ dd if=twrptest.img of=twrptestout.img bs=1024 count=24092

24092+0 records in

24092+0 records out

24670208 bytes (25 MB, 24 MiB) copied, 1.24881 s, 19.8 MB/s

[android@fwul lglaf]$ sha256sum twrptestout.img

6767a45dd68dd38343bbceef7fe744207edae52b19231fea80f46267bd4a2fc5 twrptestout.img

[android@fwul lglaf]$

[android@fwul lglaf]$ sha256sum h918-twrp.img

69c86b92f0a4f8099d33ed3b392a4c3d48da8155d441d11735156aa51e818ee0 h918-twrp.img

[android@fwul lglaf]$

---------- Post added at 08:03 AM ---------- Previous post was at 07:39 AM ----------

Hi, i tried his modification to no sucess...

i tried to git clone "his link" but it asked for a pw.... so i copied the whole this over to Vim and saved it and did a overwrite and still have the same error

NameError: name 'disk_fd' is not defined

any idea? post was on page 64 i think.

---------- Post added at 08:18 AM ---------- Previous post was at 08:03 AM ----------

Hi, i made the change using VIM but i still get the same error as before. i tried to git clone "URL" but i need a user name and pw.... how can i get past this point so that my twrp hash matches?

thanks in advance,
[LG V20 Guides, News, & Discussion] cnjax:
Hi, i tried his modification to no sucess...

i tried to git clone "his link" but it asked for a pw.... so i copied the whole this over to Vim and saved it and did a overwrite and still have the same error

NameError: name 'disk_fd' is not defined

any idea? post was on page 64 i think.[/QUOTE]

Dude, wtf don't quote the entire OP
[LG V20 Guides, News, & Discussion] cbissa18:
Dude, wtf don't quote the entire OP

dont be rude, im new to the forum and i'd rather those who made the post tell me how to go about requests or what not to do!

thanks for your un-needed response! :laugh:
[LG V20 Guides, News, & Discussion] cbissa18:
solution!

open up partitions.py and copy the whole thing, then open up leafpad application and past it in there. then find

curr_progress = int(written / part_size * 100)

+ _logger.debug("disk_fd: %i, written: %i, part_size: %i , curr_progress: %i, write_offset: %i, write_offset_bs: %i, end_offset: %i, part_offset: %i, write_mode: 0x%x",

+ disk_fd, written, part_size, curr_progress, write_offset, write_offset_bs, end_offset, part_offset, write_mode)

+

+ if written <= part_size:

+ _logger.debug("%i <= %i", written, part_size)

+ old_pos = curr_progress

+ if not batch:

+ print_human_progress(curr_progress, written, part_size)

+ else:

+ print_progress(curr_progress, written, part_size)

and delete it all, leave no space between the prior command and the command after "print_progress(curr_progress, written, part_size)" then save as partitions.py

now run ./partitions.py --restoremisc h918-twrp.img lafbak again and sit back because it takes about 5mins to finish!

Good Luck!

Chris,
[LG V20 Guides, News, & Discussion] runningnak3d:
[MENTION=9113978]cbissa18[/MENTION] It is actually in the forum rules that you should avoid quoting entire posts like that...

With that said, it appears I had an error in one of my scripts that handles merges between my branches. This branch should not have been touched, but it had an unfinished, partial commit pushed.

I wish someone would have sent me a PM and said "Hey, you broke the h918 branch!".

Anyway, as soon as I get to work I will fix this. The instructions in the first post are valid, but you will have to do a git pull again after I revert that commit.

If you can't wait - from inside the lglaf directory:

git revert HEAD

Then you shouldn't have any problems.

EDIT: and I guess *I* should read the entire thread before just hitting reply ;)

Glad you fixed it, but I will still fix the branch.

-- Brian
[LG V20 Guides, News, & Discussion] cbissa18:
Appreciate the response!

Thank you so much Brian for the response! and yeah i am really sorry i broke a rule in my first ever post lol "noob"

the first few times i attemped to fix the partitions.py i was still getting the same error but it was because i used VIM to paste and save into. so i said the heck with it and just opened it up in leafpad and deleted line 338-350 i believe and saved it and re-ran command!

But man we all really appreciate you guys and you hard work. the fun part is still to come..... getting to to push through and up to at the momment H91810T or even by then Oreo when it arrives.
[LG V20 Guides, News, & Discussion] awest1981:
Im actually trying to flash the h901 but im receiving an error and this thread is nnote active than the h901 thread so im posting here as well. Error occurs when i try to flash recovery..

Traceback (most recent call last):

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

main()

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

part = find_partition(diskinfo, args.partition)

File "./partitions.py", line 50, in find_partition

Partno = int(query) if query.isdigit() else None

AttributeError: 'NoneType' object has no attribute 'isdigit'
[LG V20 Guides, News, & Discussion] cbissa18:
you could have just went into your system bios and set usb to boot first and loaded live FWUL that way and you wouldnt need any drivers. and you will need leafpad to edit partitions.py in order to get the full process to work.

look on page 65 for my response on how to get around a error code in terminal.

Edit### post #651

---------- Post added at 07:43 PM ---------- Previous post was at 07:34 PM ----------

Did you fix this? and are you moving the phone around while this command is running? or maybe pulled to soon due to long idle? and if you edited partitions.py prior to the Error make sure it was edited correctly. just do another git clone "URL" and confirm its for your model then open up leafpad and redo your edit in partitions.py and try again. i made a response about it on comment line #651
[LG V20 Guides, News, & Discussion] awest1981:
I got it to say its flashing but I don't think it actually is. I can not get into two after trying to boot into recovery and i tried to flash lad with tarp and that didn't work either. Ill try what you said and see if it works.
[LG V20 Guides, News, & Discussion] victor0888:
I hope someone can help, when I try to flash the super v20, I install the prerequisites, then the super rom, but when I restart it is in bootloop, I have already tried wipes and nothing works, any solution or idea?