yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG V10 General] NYLimited:
[MENTION=3167089]runningnak3d[/MENTION] [MENTION=320962]famewolf[/MENTION]

Thanks for the help and patience! I did a lot of little stuff tonight and found a few inconsistencies, some perhaps due to the fact that I had to improvise and grab another fwul version and such. My lack of linux background didn't help, of course.

Long story short, I got to the point of running the py script. It wrote 32796672 bytes but recovery did not load for me.

Pulling the image back from recovery via --dump yielded a consistent 41943040 bytes. Each time I flashed the img file the 32796672 bytes were consistent. So were the 41943040 bytes coming back. The computed hash sums differed from each other but the twrp image was always the same hash and the test dump from recovery was consistent with itself but different from twrp.

It almost seemed like I was writing to a place totally different than the place I was pulling data back from. Neither side ever changed from the previous version of itself but the two never matched each other. Recovery did not load, regardless.

Time to take a break (early day tomorrow) and will regroup again sometime tomorrow eve with hopefully fresh ideas.

This is the last flash and hash of the files. The numbers are consistent over multiple flashes:

[android@fwul lglaf]$ ./partitions.py --restoremisc ../Downloads/TWRP321.img recovery
2018-04-06 05:39:16,946 partitions: INFO: Done after writing 32796672 bytes from ../Downloads/TWRP321.img
[android@fwul lglaf]$ ./partitions.py --dump test.img recovery
[ 100 % ] 2018-04-06 05:40:49,401 partitions: INFO: Wrote 41943040 bytes to test.img
[android@fwul lglaf]$ sha256sum test.img
d78190b422733a84b2526558f36c5d8ab6915748096fd7569927ad84f509e6c1 test.img
[android@fwul lglaf]$ sha256sum ../Downloads/TWRP321.img
1a5667e8ac35784780d8cd7b5c3ad72a353889c39220d8002ac2498a92ff6f8e ../Downloads/TWRP321.img
[android@fwul lglaf]$ ./partitions.py --restoremisc ../Downloads/TWRP321.img recovery
2018-04-06 05:49:38,020 partitions: INFO: Done after writing 32796672 bytes from ../Downloads/TWRP321.img
[android@fwul lglaf]$ ./partitions.py --dump test.img recovery
[ 100 % ] 2018-04-06 05:51:12,507 partitions: INFO: Wrote 41943040 bytes to test.img
[android@fwul lglaf]$ sha256sum test.img
d78190b422733a84b2526558f36c5d8ab6915748096fd7569927ad84f509e6c1 test.img
[android@fwul lglaf]$
[T-Mobile LG V10 General] famewolf:
If your twrp is showing the following:

famewolf@hp810-135qe /workarea/android/v10 $ md5sum TWRP_3.2.1_H901.img

b89d341cd61da31a5348d8f6b3c75c97 TWRP_3.2.1_H901.img

then it's fine...as for the dump...I think empty space at the end would have to be stripped off for them to match. Will work with it more tomorrow..just drop me a line.
[T-Mobile LG V10 General] famewolf:
Win 7 works fine. The memory is irrelevant as long as a shell can be opened and the commands can be sent. You certainly don't need USB 3.0 and the last thing you want to do is copy/paste the whole batch of commands....what do you plan to do if one of them fails? Lines should be entered 1 by 1 and verified that they ran correctly. That way if you have to report an error you know exactly what caused the issue.
[T-Mobile LG V10 General] painterKDM:
Well I have bricked many Qualcomm in my time(unbrickable) and MTK (brickable) so it would not have been big problem to me BUT you Are correct. Just because it did not work on my system, does not mean it will not work on others. As for memory,while not expert on linux I do know that 1Gb is low for VM
[T-Mobile LG V10 General] famewolf:
I agree it's very low but possible especially if they use an ssd for swap space. Personally I would just boot up into a linux live cd but then again I run linux all the time except for my htpc ironically.
[T-Mobile LG V10 General] painterKDM:
Sorry it's getting to open Firefox,terminal,file manager All seem to freeze up on 1gb of memory on MY systems but I am am happy and thankful for your advice on how to root nougat
[T-Mobile LG V10 General] kpsad37:
Successfully root

I have rooted successfully. Thanks very much for that. But can I have any solutions for the bootloader unlock screen when restarting my phone. And It also asks to update TWRP, so I shouldn't do anything, should I? Sorry because my English isn't so good that I can understand all.
[T-Mobile LG V10 General] famewolf:
You will have to live with the bootloader screen. What is asking you to update twrp? That screen? Just ignore it. If you installed the TWRP from my thread it's the latest version.
[T-Mobile LG V10 General] kpsad37:
Thankss so much. Got it ! :good:
[T-Mobile LG V10 General] SparkyKitty:
I tried ones method that was to do each command one line at a time and it went through but when going to download mode it said "Your device is corrupted, it cannot be trusted, it will not boot." That is only for download mode not knowing what else to do I decided to just wait to find a way to fix the download mode.

---------- Post added at 05:56 PM ---------- Previous post was at 05:46 PM ----------

I have tried all night long to get it working, LG V10 H90130c

Phone is not bricked, it can go into the os just fine but when going into download mode, it just gives me that message, as well as fastboot commands just leads to "waiting for device". After I received the "Your device is corrupted" message, that is when I reached a dead end. OEM unlock is enabled and I did everything in the instructions but no luck. I got this phone because my Galaxy S8+ finally went into EDL mode (hard bricked). Who knows I may have bad luck with the V10 as well. I do appreciate if there is a solution to fix the download mode problem I have so I can try this method again to get TWRP on here.
[T-Mobile LG V10 General] ramyboy:
Hello Brian

You made my day. Thank you.

I confirm rooted.
[T-Mobile LG V10 General] runningnak3d:
Please see the highlighted text above...

You ALSO have to fastboot oem unlock in fastboot mode.

While in the OS, type adb reboot bootloader -- or with the phone off, hold vol DOWN and plug in the USB cable.

Then type fastboot oem unlock

-- Brian
[T-Mobile LG V10 General] SparkyKitty:
I did try fastboot oem unlock but it would not do anything except it saying "waiting for device". I'll try again when I have the chance today
[T-Mobile LG V10 General] runningnak3d:
Then you weren't in fastboot mode. I listed the two methods of getting into fastboot above.

-- Brian
[T-Mobile LG V10 General] SparkyKitty:
Good news is that after doing that, both bootloader unlock and fastboot unlock it worked well and went into TWRP successfully. I do apologize for that and I appreciate it so much =3:)
[T-Mobile LG V10 General] TheOccult:
FWUL wont boot: no such file or directory

Ignore, I enabled the virtualization in my BIOS and got the 64bit version working
[T-Mobile LG V10 General] Arctic Prodigy:
I see a lot of people want root for the phone, but not many are experienced enough to go this route, some try and get stuck if something goes wrong, their should be an easier way to do this, You know, follow step by step procedure, a no brainer, but some people may lack certain drivers or software on their computers or even maybe viruses and the such hindering proper rooting the step by step way, can someone get a one-click app for this?

I only say because of the few people who do attempt end up bricking or getting lost in the process and many aren't willing to root in fear of bricking.
[T-Mobile LG V10 General] famewolf:
This is the process if you want root. It took alot of work for runningnak3d to get this working. If you think a document more detailed than the instructions in the op needs to be available then you should feel free to write one and attach it to the wiki section of this thread. He was nice enough to provide this method even though he didn't have a v10 at the time.
[T-Mobile LG V10 General] Arctic Prodigy:
I know, it's already an easy step by step process, but I was just explaining why some people will have issues, and obviously trying to see if their was possible an easier way like an app to make this process easier for the novice, I appreciate the advice, but I couldn't begin to rewrite an already easy to follow guide.

Only thing I could think of is a large download package that would have all the needed programs in it, and after this package was installed, their would be an automation script to run and root the phone automatically, possibly oem unlocking as well, that is an idea but I know nothing about writing and programming everything to run it.
[T-Mobile LG V10 General] painterKDM:
To many phones

So since phone is rooted I have had great time with it.One of my family wants to buy Huawei P20 pro,which price is obscene to me.So if I factory reset how would phone be? This phone only cost me peanuts on aliexpress(very lucky phone was h901)
[T-Mobile LG V10 General] kpsad37:
I got a problem. After root, I lose second screen sometimes. Can anybody fix it?
[T-Mobile LG V10 General] .hack//:
Life Saver!

You sir are a life saver! I've waited over a year to have root again, after lg fixed my bootloop phone and put nougat on it. I always had hope that someone will figure it out, and you are that someone! kudos!!
[T-Mobile LG V10 General] Arr123:
I am getting this error when trying the "git pull" step in the VM:

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

h918-twrp.img

Please remove them before you merge.

Aborting

Any advice?

Edit: the firefox download is in the downloads folder. in the lglaf folder I suppose I will assume it completed successfully because I can see a bunch of files in there and the previous message says it completed 100%. I will have to do the actual flash a bit later but excited!
[T-Mobile LG V10 General] ascheis:
I am having difficulty executing the procedure, I could do and post a tutorial with passi at a step and photos to help me.
[T-Mobile LG V10 General] Eliminater74:
Just a quick stupid question, Since LG replaced my phone a bit ago, it came with N, so lost root from my previous device, anyhow I never worried about it and didn't care really,

Now I saw this, I wanted to try out root and see how things go, after burning the latest FWUL to USB stick and rebooted into that.. everything seems to go as plan, but getting into recovery was near impossible for me,

I do the button combo and all I get is the IEMI Display white screen each and every time........

Am I doing something wrong, or did LG change the way it's done? or did I just forget the whole process,

mine understanding its this:

Press Power and Vol Down, just before/or when LG logo pops up for a sec, release power and then hold VOL up and down and power at the same time. and then I get that IEMI Display screen?

I also saw someone say just hold VOL DOWN and POWER, then wait that sec and release power and hold power and VOL Down again....

So can someone steer me in the correct direction..

NVM, I got it.. just gota be quick with it all.. but got it........
[T-Mobile LG V10 General] Arr123:
Houston, I've got a problem:

[Black screen with big pink triangle symbol with exclaimation point inside and the following text displays after flashing the downloaded TWRP and booting to recovery, answering yes twice]

Your device is corrupt.

It cannot be trusted

and will not boot.

Visit this link on another device:

g.co/ABH

Your device will power off automatically after a while.

[Device powers off, reboots, and lo and behold all my settings etc are there. As if I never agreed to erase user data]

If it helps, I also usually get timeout errors when flashing despite downloading the extension and selecting USB 2.0 for the machine.
[T-Mobile LG V10 General] ascheis:
Someone for God's sake got a way to solve this "time out" issue I'm running into this error!
[T-Mobile LG V10 General] pedrazamarcos:
Tha't easy:

1-open Firefox on Virtual machine,navigate to this thread on original post with instructions,

2-highlight command " ./partitions.py --restoremisc ~/Downloads/twrp-for-the-h901.img recovery " and copy

3-keep pasting command on terminal window until it goes thru.

in my case it always goes thru the second or 3rd time i paste the command " ./partitions.py --restoremisc ~/Downloads/twrp-for-the-h901.img recovery "
[T-Mobile LG V10 General] ascheis:
Thank you, friend Pedrazamarcos.

First of all I apologize for some bad writing because I am from Brazil and I do not speak English and at the moment I am using the google translator to write this post.

You can confirm to me that when doing the procedure the screens are the same as here:

[IMG="Imagem da tela de comandos do terminal"]https://i.imgur.com/kqPnT6m.jpg[/IMG]

If the data on the image screen is correct the next command would be as below:

./partitions.py --restoremisc ~/Downloads/TWRP_3.2.1_H901.img recovery

this is because the file that I downloaded and this in the folder of downloads of firefox is exactly with this name as the image below:

[IMG="Imagem do nome do arquivo baixado na pasta de downloads do firefox"]https://i.imgur.com/RjDyZ7w.jpg[/IMG]

Thanks to the friend if you can help me with these questions, confirming that the inserted commands and the screens are correct so far.

I am desperate to do this root because I bought a LG V10 on aliexpress and it came with the lolipop android unlocked to use in my country. I did the nonsense to upgrade with the firmware of the LG H901 BK and now it's the only T-Mobile bootware in the US. Now I can not use telefoen in Brazil because the application "Device Unlock App" presents an error when I try to unlock the device. Obvious: The phone was not purchased in a T-Mobile store and yes I put their software on the device!.

By the way if anyone can give me any idea how I could solve this I would be very grateful.

Thank you for now.
[T-Mobile LG V10 General] jerryspring:
Why do all this when the bootloader is already unlockable? Can't we just fastboot oem unlock and flash twrp and SuperSU? H901 TMobile LG v10
[T-Mobile LG V10 General] NYLimited:
Perhaps you could try it and let us know....
[T-Mobile LG V10 General] jerryspring:
do you have any firmwares on your pc, or any links for them? in case something goes wrong..

i got my lg back from lg services with this new board.

software version h90130c

build number nrd90u

baseband mpss.bo.2.5.c10.1-00037

thanks!!

---------- Post added at 11:56 AM ---------- Previous post was at 11:07 AM ----------

I will...but do u have backup firmware by chance?

---------- Post added at 11:51 AM ---------- Previous post was at 10:56 AM ----------

will dirtycow work on build h90130c?
[T-Mobile LG V10 General] jerryspring:
How'd u do it? I'm in same situation
[T-Mobile LG V10 General] 17mm:
[android@fwul lglaf]$ ./partitions.py --restoremisc ~/Downloads/twrp-for-the-h901.img recovery

Traceback (most recent call last):

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

main()

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

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

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

with open_local_readable(local_path) as f:

File "./partitions.py", line 142, in open_local_readable

return open(path, "rb")

FileNotFoundError: [Errno 2] No such file or directory: '/home/android/Downloads/twrp-for-the-h901.img'

what am i missing? I already added the lge devices on 2.0 and the box is checked.

edit:nvm im so dumb

./partitions.py --restoremisc ~/Downloads/TWRP_3.2.1_H901.img recovery

its flashing now will update when its complete

on latest update btw the 30c

2nd edit:[android@fwul lglaf]$ ./partitions.py --restoremisc ~/Downloads/TWRP_3.2.1_H901.img recovery

2018-06-03 02:30:12,065 partitions: INFO: Done after writing 32796672 bytes from /home/android/Downloads/TWRP_3.2.1_H901.img

FNAL EDIT: yup all good now, manually booted into twrp, removed that file, flashed magisk now im looking at my home screen about to install some root apps and magisk mods great work :)
[T-Mobile LG V10 General] alexanderzhang:
Dear sir

i have a F600, but i made a mistake flash H900 firmware to the phone. Now my bootloader stay on Anti-Rollback 2. I can't use any firmware, always get error "boot has diff hash". Do you have any idea about unlock bootloader? And then I can boot F600's firmware.

thank u
[T-Mobile LG V10 General] jerryspring:
I didn't get the option with LG devices. I got generic hub and Google. This is why I didn't use the o.p
[T-Mobile LG V10 General] 17mm:
yeah your going to need to get lg bridge, the official one, and have it re flash the newest update which will reset you to square one then repeat the method that will work for your exact device. since you need to be in the os to check the allow oem unlock again
[T-Mobile LG V10 General] alexanderzhang:
Thank U for your reply

My phone is F600s, not a H901. So it can't unlock bootloader like H901.

Now I flash full H900 firmware. The phone become H900(F600S mainboard) and without signal.
[MENTION=3167089]runningnak3d[/MENTION] Could u help me?
[T-Mobile LG V10 General] skywalker-live:
This is the only way to root nougat on the h901 v10. KlicKit is for lollipop only and people that don't know how to use adb/fastboot. You've already stated you know fastboot so you wouldn't have needed KlicKit back when it was relevant.

A quick Google search would tell you that you can't run a 64 bit guest os on a 32 bit host os unless your processor is 64 bit. So just saying you have vista doesn't matter, the architecture of your processor does.

This is the proper thread for your rooting questions, the twrp thread is not.
[T-Mobile LG V10 General] psytr0nic:
hi,

im unable to use that tuto on windows , it's possible someone ahead me over a linux ( Ubuntu ) Tuto ?

I will appreciate if so ...
[T-Mobile LG V10 General] jerryspring:
Could I select the 32 bits then? That's what I was wondering
[T-Mobile LG V10 General] pedrazamarcos:
Some computers that do not see the Oracle Virtual Machine in 64bit need to go to control panel/programs/turn on/of windows features/and disable Hiper V.If you still don't see virtual box in 64bit after disabling Hyper V

you need to go into the Bios and ENABLE "Virtualization" feature.Anyways... see post #86

I have done this many times,works perfectly.
[T-Mobile LG V10 General] psytr0nic:
im unable to open FWUL on VM , so im using on a USB key . but am getting that error again .

what's wrong I did
[T-Mobile LG V10 General] psytr0nic:
am stuck on git pull

fatal : repository 'https://githubcom/runningnaked/lglaf/' not found
[T-Mobile LG V10 General] bittersweetlove:
have same problem

fatal : repository 'https://githubcom/runningnaked/lglaf/' not found

What i need to do?
[T-Mobile LG V10 General] otchere:
i have been trying but no luck for me.................. need this root badly please help me out with simple steps
[T-Mobile LG V10 General] psytr0nic:
what to do in that case ?

[IMG="Git pull error"]https://t.co/qlHJpM9V9b[/IMG]
[T-Mobile LG V10 General] famewolf:
Did you try just hitting enter or entering a random name? If worse comes to worse go to github.com and register an account..then give it your user/pass when/if asked.
[T-Mobile LG V10 General] :
Thread cleaned.

Either post and reply respectfully or don't post at all. There's this wonderful feature provided by xda called "ignore user".

I suggest some of you give it a try, instead of childish name calling.

:good:
[T-Mobile LG V10 General] jerryspring:
I get it...and understand..but there is no reason for that person's behavior. I'm not a child
[T-Mobile LG V10 General] psytr0nic:
I tried that but and getting error as repository isn’t avaible
[T-Mobile LG V10 General] famewolf:
Try going to the url in your browser (drop the whatever.git from the end). If the site won't load then the git pull won't work either. If it does load the site gives you an option to download a zip file which you can unzip on the linux vm...works the same as the dir built using git pull.
[T-Mobile LG V10 General] psytr0nic:
Error 404 when I copied and try directly in browser ....

I do search in github a found that https://github.com/Lekensteyn/lglaf .

it's possible I use that link to get missing things ?
[T-Mobile LG V10 General] williamklam:
For those who are getting repository github.com not found error :

Even when doing the git pull command, it started to ask for login and password.

You DO NOT need to open any new account at github.com. It should not need to. Even you sign up one, when proceed to do git pull after providing login and password, it will return:

fatal : repository 'https://github.com/runningnaked/lglaf/' not found

The above happens because that lglaf project/branch does not exist at github.com anymore.

From V20 forum, Brian (runningnak3d) has moved to gitlab.com

So instead of github.com, we have to use a new git repository that Brian created in gitlab.com.

cd
mv lglaf lglaf_BAK
git clone https://gitlab.com/runningnak3d/lglaf

cd lglaf
git pull
git checkout v10-miscwrte

From this point on, follow the rest of the guide.

Hope this helps!

-William

6/12/2018: Corrected a serious typo. Instead of "git v10-miscwrte", the correct command should be "git checkout v10-miscwrte".
[T-Mobile LG V10 General] BuildMineSurvive:
I'm going though the steps and I think you should recommend 2GB

IT WORKED! Thank you so much! You should put a donation link in your post tbh. This is great work. I do have a few tips for people/things you could edit your post for.

I tried using the VM on 1GB but it was quite hitchy when I tried to run it at about 1000x1000 with 2 tabs open, It slowed to a crawl. With 2GB, it runs like a champ.

ALSO I want to add I was having trouble getting the final command to work, but I went into Devices > USB > USB Settings and clicked the green plus, selected the LGE android phone, and after adding it, double clicking the new entry and setting remote to yes.

I don't know if it just happened to work after I changed that setting, but it wasn't before I did it. But if it was just luck and there's no way that did it, feel free to correct me.
[T-Mobile LG V10 General] gasto40:
There's no 64 bits Linux distribution for me when choosing the OS (just 32 bits), and this doesn't allow me to boot properly the VM, I get this error: "Loading boot/i686/vmlinuz... failed: No such file or directory"

Any workaround for this?

Thanks

edit: Sorry, hadn't read post #86, thanks a lot!
[T-Mobile LG V10 General] psytr0nic:
[MENTION=3587606]williamklam[/MENTION] thank I follow the process but im again stuck there git: 'v10-miscwrte' is not a git command. See 'git --help'.
[T-Mobile LG V10 General] williamklam:
Sorry my bad. It should have been:

git checkout v10-miscwrte

I apologize for the confusion.

-William
[T-Mobile LG V10 General] psytr0nic:
correct am fighting with last command ... am on Twrp now thank u all
[T-Mobile LG V10 General] ziphoy:
If anyone got use not found. I fix Got by deleting upperfilters in registery and rebooting the computer.
[T-Mobile LG V10 General] Aballamis:
getting timout error on all reads. - immediately

-regardless of 2.0 or 3.0???

ANY HELP THAT CAN BE OFFERED - THANX IN ADVANCE!

-attached screenshot
[T-Mobile LG V10 General] samiec575:
Hi there

I was getting the same error so what i did was, dowloaded that 15gb FWUL , boot it from usb and i finally got it going
[T-Mobile LG V10 General] cristianq27:
Thank you very much, it worked perfectly for me.

I wonder if some of the branches will work to root an LG K426, I can't degrade it to marshmallow and in Nougat there is no root.
[T-Mobile LG V10 General] donis:
Have the same issue, can you describe how to do it?