yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG V10 General] NYLimited:
Someone give that man a medal!

He said maybe the bootloader was locked even though I saw the unlocked message and warnings.

So, I decided to put it into fastboot mode and try an oem unlock. It SHOULD tell me the device was already unlocked and I could try locking and unlocking.. I dunno..

But it did NOT say it was unlocked. It UNLOCKED it.

I tried recovery and loaded the factory recovery (likely overwritten by boot-p during my many bot attempts)

Tried download mode and.. woops! There is TWRP.. What the...

So, the next silly question (not that it is vital).. can I push my saved laf.img back to the laf partition via TWRP?! :D

[ EDIT 1 ] famewolf's 30C zip file includes the laf partition if I remember correctly! If I flash his 30C followed by flashing TWRP again via Virtualbox I might just be back to "normal".. Hang on.....

[ EDIT 2 ] And, after flashing famewolf's version of 30C via TWRP the laf partition and download mode are back!

I've done dumber things in my life before.. :D

Not to mention that I elected to unlock first looking for the "already unlocked" message...

But, you were NOT wrong!

[ EDIT 3 ] And, the device that would not take things is now running TWRP from the /recovery partition.. download mode from the /laf partition.. has Magisk installed with Nougat 30C..

Thanks for ideas Brian and Rudi! I'm gonna have a beer myself now!!!
[T-Mobile LG V10 General] famewolf:
I see no reason to restore my laf and just put a 2nd copy of twrp there however to answer your question yes from twrp (in either place) you could do a dd if=laf.img of=/dev/block/mmcblk0p39 and have your download mode back.
[T-Mobile LG V10 General] NYLimited:
Thanks! I did it a different way with your 30C zip file - but it is all done now.

Yes, I may go that route. That is something I was looking at yesterday. For the moment I'll just sit back and take a few deep breaths.. :D
[T-Mobile LG V10 General] runningnak3d:
I can't emphasize that enough. Keep TWRP on both laf and recovery. You will never be in a situation where you go: "MAN I wish I had download mode, and all I have is TWRP".

There is nothing special about laf over recovery as far as booting and loading. If TWRP won't load from laf, then laf wouldn't have loaded either. Having two copies of TWRP is a LOT safer :)

EDIT: as a matter of fact, I just got a great idea. I will make a TWRP image that has an option to load lafd. Then if for whatever reason you really wanted old download mode, it can fire up lafd and LG UP, or any of the other LG tools that need download mode will work. All while having two copies of TWRP.

-- Brian
[T-Mobile LG V10 General] NYLimited:
Of course, you can.. I thought more about what you both said and flashed TWRP to laf as well. Hell, I could even have 2 different versions that way - one for testing and ..

Can a factory reset be done without stock recovery?? The Google FRP seems to need a factory reset to remove...

Nice! But my XDA thanks button is likely dead till tomorrow.. ;)

Hey, If you are gonna play with TWRP could you add 1 to the year it comes up with? :D
[T-Mobile LG V10 General] famewolf:
[MENTION=3167089]runningnak3d[/MENTION]

The version of twrp we have is calculating the year as 2017 instead of 2018. Previous versions were even more radically wrong. The builder theorized it could be due to an out of date busybox used to build it. I think a version of twrp that lets you to into lafd mode would be AWESOME.
[T-Mobile LG V10 General] runningnak3d:
It can, but it is a manual process. If you need to do a factory reset, just flash stock recovery back, do the reset, and then flash TWRP since you have a copy on laf -- see the advantage is already paying off :)

I will have to look into what all a factory reset actually does, and add it into TWRP.

As for the date, yea, that is easy to fix.

-- Brian
[T-Mobile LG V10 General] EmpiricalDepth:
[android@fwul ~]$ cd iglaf

bash: cd: lglaf: no such file or directory

so i'm not sure what to do.. I unlocked bootloader. did it again just to besure it said "already unlocked" got into download mode and now this is where i'm at.

i tried the USB options to tell it to detect my phone, as I had to do to get it unlocked too, and I am getting

[android@fwul ~]$ adb devices

List of devices attached

so basically not sure its even connecting

update: *daemon started this time doing adb devices

dir gives me Desktop Downloads programs (still no lglaf)
[T-Mobile LG V10 General] NYLimited:
[ Post has been moved

here

]
[T-Mobile LG V10 General] famewolf:
You are to busy running around trying everything. 1) it's LgLaf not an I 2) you have to do a git clone to build that dir before you cd to it. 3) adb and download mode have nothing to do with each other.

You need to follow the instructions step by step and not skip any.
[T-Mobile LG V10 General] EmpiricalDepth:
i didn't see any instruction for how to do a git clone. I have followed the OP exactly. I know its LGLAF i'm not sure where you got the "I". (sorry, i just noticed I had a typo in my reply)

How do I build a git clone?

UPDATE: after browsing the thread more, I found https://xdaforums.com/showpost.php?p=76134256&postcount=97

explaining prereqs for linux users. This is the only mention of the git clone. I have finished "./partitions.py --restoremisc ~/Downloads/twrp-for-the-h901.img recovery" now. The problem I was having was that i needed to use an alternative FWUL image in VB because the OP download link wouldnt finish without failing. I'm going to guess that one already has the git clone and is why it is not instructed.
[T-Mobile LG V10 General] famewolf:
Yes that's where I saw an i : [android@fwul ~]$ cd iglaf

If you are using the OLD fwul.zip that does not have the lglaf directory then a git clone must be done..you'd find that instruction in one of the posts that quotes runningnak3d's. He later added the lglaf directory directly to the fwul.zip (VDI) and changed the installation instructions but if you choose that route then you need to (re)download the NEW FWUL.ZIP.
[T-Mobile LG V10 General] EmpiricalDepth:
figured it out thank you for your help ;)
[T-Mobile LG V10 General] J Bee:
Big respect to [MENTION=3167089]runningnak3d[/MENTION] and thanks for his excellent work for our beloved v10. Now i have my phone rooted with twrp on both partitions, he boot normally but i can't access download mode neither recovery mode like the [MENTION=770489]NYLimited[/MENTION] phone issue.

This is my story, my v10 was on bootloop, i could'nt access the download mode, when i tried to enter to download mode he gave me the small box flashed on the screen and rebooted stuck on bootloop untill i apply the heat method on the cpu to revived it and with the new root method for the H901 i istalled the twrp recovery, flashed the boot with 4 cores and rooted it. The phone boot and work normally, my problem is after one day of use i attempted to enter the recovery mode the phone stuck on the lg logo sometimes it reboot on the android os, attempted to enter on download mode he gave me the small box like when it was on bootloop. When i aplply heat again on the cpu for 2 mins the recovery mode and download mode come back normally.

My idea is the phone keep using the 6 cores when on download and recovery mode. Can you make a twrp with big cores disabled like on the g4? Thanks:good:
[T-Mobile LG V10 General] runningnak3d:
For now, try the G4 TWRP. It should work on the V10.

Leave working recovery on laf and flash G4 TWRP on recovery .. that way you can test it with no risk.

If it doesn't work boot to TWRP on laf and flash H901 TWRP back to recovery.

-- Brian
[T-Mobile LG V10 General] J Bee:
I have the twrp_4cores_3.1.1-1-g4 can i flash it on the terminal emulator? I can't access the twrp on laf partition for now he stuck on the logo and reboot to os. The only way is by heating the cpu again but i'm affraid to do that.
[T-Mobile LG V10 General] runningnak3d:
If you you flashed Magisk:

adb push twrp_4cores_3.1.1-1-g4 /sdcard/

adb shell

su

cd /sdcard/

dd if=twrp_4cores_3.1.1-1-g4 of=/dev/block/bootdevice/by-name/recovery

-- Brian
[T-Mobile LG V10 General] J Bee:
All the process done, but when i try to enter the recovery mode he gave me the fastboot screen. I flashed back the v10 twrp he stuck on the logo a while and then reboot to os
[T-Mobile LG V10 General] NYLimited:
The content/details of my FRP post has been moved

here

.
[T-Mobile LG V10 General] mountainlionbrian:
I don't get past this point

While you are in TWRP, mount system read / write. Once mounted run:

Can you help explain this, is it a physical action i do on the phone or a command in the terminal?
[T-Mobile LG V10 General] pedrazamarcos:
H901 root success

I have followed this guide and done this process 5 times in two phones..I don't have TWRP where download is supposed to be.(I did the process and flashed back stock H90130c_00_0914.kdz with LGUP and then performed the process again).Here are some success pictures of my H901 with nougat rooted
[T-Mobile LG V10 General] pedrazamarcos:
I'm in the same boat as you.I just ignored this step to see what happens but so far after many reboots,TWRP and root are there
[T-Mobile LG V10 General] famewolf:
You should not ignore this as under certain conditions it WILL go away and the nougat root hack may no longer work at some point. Under twrp settings is an option to mount the system read/write I believe. You then run the command on the pc...you can verify by booting back into recovery and verifying if the file is still there (using twrp file manager or an adb shell)
[T-Mobile LG V10 General] pedrazamarcos:
I want to run the command and I tried,but the problem is that the isntructions for running the command in the last step are not clear.We need more precise instructions on how to run the last step.

As you can see in post #127 by mountainlionbrian ,we need more detailed instructions how to run this command
[T-Mobile LG V10 General] famewolf:
Put your phone into TWRP and then go into settings..find the option to mount system read/write and make sure it's enabled.

Plug the phone up to the pc. When you type "adb devices" on the command line you should see your device listed.

From the command line run the following:

adb shell ls /system/recovery-from-boot.p

If it shows you the file is present run the following command:

adb shell rm /system/recovery-from-boot.p

Run the shell ls command again and see if the file still shows as present. It should not.

If still present report here with details after making sure the TWRP system r/w option was enabled.

Go to Reboot in TWRP and choose "Recovery"...it should bounce you out of and then back into TWRP....now run the shell ls command a third time...the file should STILL be gone...if it's not then it's still not in read/write mode. In "read only" you can't delete anything.

Clear enough?
[T-Mobile LG V10 General] JerichoKru:
This is where I run into a problem. I only have a "Google Android" device while my TMobile V10 is in fastboot mode. Trying to use this causes a "USB device not found" in the utility.

The phone shows up under fastboot devices and responds to fastboot commands on both host and VM.

lsusb in the VM identifies it with the device ID as

Bus 001 Device 003: ID 18d1:d00d Google Inc.

Did LG do something different to my phone?
[T-Mobile LG V10 General] famewolf:
Fastboot mode is NOT download mode. Read and follow the instructions to put the phone into download mode.

https://xdaforums.com/showpost.php?p=76137842&postcount=2
[T-Mobile LG V10 General] JerichoKru:
Those instructions only put my phone into fastboot. That's why I assumed it was download mode. What's happening here?
[T-Mobile LG V10 General] famewolf:
I've replaced download mode on my device with a 2nd copy of TWRP so try these: http://www.android.gs/access-download-mode-lg-v10/
[T-Mobile LG V10 General] skywalker-live:
Download mode is, from powered off hold vol UP and plug-in USB.
[T-Mobile LG V10 General] NYLimited:
Are you entering download mode the way you are supposed to?

Make sure the V10 is off and no USB is plugged into it.

Press and hold the VOL-UP button

Plug in USB cable while holding VOL-UP

Beat me to it! :>
[T-Mobile LG V10 General] JerichoKru:
EDIT: Nevermind, I tried VOL UP and it worked.

Apparently, both instructions have VOL DOWN erroneously listed.
[T-Mobile LG V10 General] famewolf:
Looks like the directions I posted are backward...thats what I get for doing this from memory since the v10 isn't my primary device anymore (and not in front of me)...he said it was Vol UP and plug in cable.....I believe my instructions said vol down..so try what he said.

For those wanting to delete that recovery-from-boot.p file...in the new twrp under mount you just need to make sure system is checked and the option towards bottom of screen to mount read only is NOT set....you can then do a delete or if you prefer just rename the file. adb shell su -c "mv /system/recovery-from-boot.p /system/recovery-from-boot.bak"

I'm also going to be testing a new build of twrp that may fix the year being one behind...will report back.
[T-Mobile LG V10 General] NYLimited:
Vol-DOWN + POWER (have to release and press PWR again after initial logo) will put you into recovery..
[T-Mobile LG V10 General] pedrazamarcos:
Thank you so much for your help and the easy to follow and detailed instructions.

I followed the instructions and it appears that the file is NOT there.
[T-Mobile LG V10 General] famewolf:
Are you running the stock rom or did you install my v30c rom / [MENTION=3167089]runningnak3d[/MENTION]'s v30b rom?

If you are on normal stock it's odd it's gone but proceed as usual.
[T-Mobile LG V10 General] pedrazamarcos:
Stock H90130c_00_0914.kdz

1-Unlocked bootloader

2-flashed stock H90130c_00_0914.kdz with LGUP as UPGRADE option.

3-Let the phone boot,and tap Build # few times,activated developer options/usb debug

4-Downloaded Magisk 16 to phone

5-Then i perform the procedure in the original post #1.

6-Disconnect usb cable,remove battery,reboot into TWRP,made a Backup,then flash Magisk 16

Worked perfectly ,without any complications.

I can confirm the process works Perfectly. :good:
[T-Mobile LG V10 General] rasniker:
I got the error saying v10-miscwrite did not mach any files known to git?Any suggestion for this ?Thank you for your hard work.
[T-Mobile LG V10 General] runningnak3d:
It is wrte not write. So git checkout v10-miscwrte.

-- Brian
[T-Mobile LG V10 General] rasniker:
OMG you where right, now i got the usb error ....
[T-Mobile LG V10 General] famewolf:
It's possible the more recent versions of Magisk auto remove that file but still best for others to check for it to be sure.
[T-Mobile LG V10 General] rasniker:
Any suggestion for the USB error?
[T-Mobile LG V10 General] pedrazamarcos:
make sure you have installed LG usb drivers

when you open the virtual box then select FWUL click start then select Devices,LG usb smartphone.

open Firefox (inside virtual box,NOT in your pc browser),then go to THIS THREAD to the post #1

open the Terminal window (there should be one already open)

copy the commands on post #1 and paste into terminal window commands.

If you still have problems doing this procedure you may want to try a different usb cable or try on different computer.

perhaps you may want to do it the way i did it.Upgrade to H90130c_00_0914.kdz via LGUP,then do the guide.

I have done this guide many times and works perfectly.

---------- Post added at 09:31 AM ---------- Previous post was at 09:25 AM ----------

Now that the V10 is properly rooted all need is some customs roms.I wish V10 could have a MIUI rom.I love MIUI
[T-Mobile LG V10 General] rasniker:
cool will try this, thank you ;)
[T-Mobile LG V10 General] famewolf:
I wouldn't count on MIUI. It requires alot of custom framework stuff. Even just taking a V30 Rom and porting it to V10 does (according to an LG G4 author I inquired who had ported a V30 rom to the LG G4)...it's nothing I'm familiar with.

I debated coming out with an "already debloated" version of the stock rom but I'm not sure we actually gain anything since everything is systemless now. Before the freed up system space could be used for other apps..now you can use the magisk debloat module to "uninstall" anything you want and basically have the same end result. Since it's systemless you can also always "restore" an app you should not have removed that causes problems so it's safe to experiment. I don't care about the UI...I'd just like to see a more current nougat or as pie in the sky an oreo rom that we could run. (The v10 is my backup device.[I'm cell phone only so a backup is required] My primary device is on oreo and I've been pretty happy with it)
[T-Mobile LG V10 General] whskey:
Thanks very much to OP and everyone who contributed in this thread, finally i have been able to flash modified kernel from https://xdaforums.com/lg-v10/general/v10-bootloop-fix-lengthens-life-t3694064 to resurrect my bootlooped V10
[T-Mobile LG V10 General] snite14:
Hello I'm really new to here. I followed all the instructions left and spent hours trying to find another solution before I asked but in virtual box it "failed to attach USB device LG Electronics Inc. Android Phone [0310] to virtual machine FWUL". Any and all assistance would be greatly appreciated.

Updated: fixed it was a virtualbox issue
[T-Mobile LG V10 General] rasniker:
Did that, still the same this is what i'm getting-

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

main()

File "./partitions.py", line 410, 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
[T-Mobile LG V10 General] mountainlionbrian:
That happened to me too, a lot. I finally changed usb cables and it worked after. Just my 2 cents.
[T-Mobile LG V10 General] rasniker:
Strange, this is originao LG usb cable, will try with Samsung usb now.

Still the same
[T-Mobile LG V10 General] pedrazamarcos:
Make sure you downloaded "Download the VirtualBox extension pack" so you can select "USB 3 "in settings

i saw a few "time out" errors but i just kept pasting (copy and paste) the command.

try copy and paste the " ./partitions.py --restoremisc ~/Downloads/twrp-for-the-h901.img recovery " command few times,

most of the time i get "time out error" on first try,the second time i input the command went thru.

Try at least 3 times
[T-Mobile LG V10 General] rasniker:
Woohoo, it went through, tell me now retarted question how to enter twrp, holding volume down and power button?
[T-Mobile LG V10 General] rasniker:
found the solution, great, rooted again, thank you very much for your hard work!
[T-Mobile LG V10 General] pedrazamarcos:
I'm happy for you and for all of us that got our V10 on nougat rooted.

Now,after root on nougat it may get a little bored because:

There are NO custom roms for this device

(i don't think devices on nougat can flash nothing below android 7.0,not sure)

Xposed framework is not available for H901

Magisk does not have many modules (i havn't found 1 useful for me)

Sadly,once you root nougat,there is not much you can't do except remove bloatware.

I have a Xiaomi Mi Max and there are so many roms available you won't believe

I also have a LeEco Max 2 X820 and WOW! if you want custom roms this is what to get.

Just take a quick look for the roms available for the Le Max 2 https://xdaforums.com/le-max-2/development

Is a shame that the H901 does not have not even 1 stable custom rom
[T-Mobile LG V10 General] rasniker:
I know that, i was rooted before (on v10 i mean) but that bloatware removal means sooo much, all those t mobile trash, facebook and amazon....did that and phone is faster now.It is a pitty because this phone is great, but what can we do.I know for Xiaomi there is a lot of good roms , my brother is using a A1 and there is a Franco kernel for it, good stuff.
[T-Mobile LG V10 General] skywalker-live:
There is a magisk module that is of useful significance for you... Xposed is in the magisk repo, use the correct API 24 and the Xposed installer linked in the download description and you will have Xposed on your rooted nougat h901.

As for custom roms the unreleased source code for the second screen and poor source code for the rest of the phone has made it near impossible to make any custom rom that is functional enough for daily use.
[T-Mobile LG V10 General] famewolf:
Run it again..and again after making sure the phone is in download mode and not fastboot.

---------- Post added at 09:13 PM ---------- Previous post was at 09:10 PM ----------

Realistically with magisk and xposed you can do just about anything you'd want to see in a "custom rom" without the instability. Personally the LeEco Le Pro 3 for $169 at amazon was the deal for me but the V10 is still my backup. The SOC821 allowed the use of the main google camera versions. As previously mentioned Xposed IS there and I don't know what you consider useful but I have about 4 PAGES of magisk modules installed not including custom fixes I've implemented myself via a skeleton magisk module for build.prop changes, boot animations, adding sounds etc.
[T-Mobile LG V10 General] pedrazamarcos:
Every time I install Xposed module with Magisk on H901 wit Android 7.0, i get bootloop.

It doesn't matter if I install systemless with magisk installer or if i install regular with TWRP.The phone always ends in bootloop,

The phone stays on T-Mobile splash screen for 10 minutes,then I give up,remove battery,boot on TWRP and restore from saved backup.

I am using SDK (API) 24 for Nougat 7.0. What Am I doing wrong??
[T-Mobile LG V10 General] rasniker:
Any recommendation for using xposed on noughat ? What modules on magisk are you using?Thank you for you help.
[T-Mobile LG V10 General] skywalker-live:
Did you install the Xposed installer app first? I have had the splash screen last for awhilek (which is not really a bootloop), Xposed has to rebuild the dalvik cache. You should only have to flash the Xposed uninstaller to get out of a bootloop, not restore a backup to remove Xposed. The Xposed magisk module thread is where you'll find the best help. I'm running the latest Xposed magisk module on my v10 with no problems. (Although I'm still on MM, but have read of your situation on other devices and Android versions, usually the correct order of steps wasn't taken, not a problem with their device.

Reading the appropriate threads should solve all your questionsand problems.
[T-Mobile LG V10 General] WonDerDaVe:
After several attempts and following instructions I was finally able to get rooted. The key for me was to use USB1 to get past the timeouts. My PC has no USB3 only ten USB2 ports. Per instructions was setting VM up to use USB2 but kept getting timeouts on final step. Setting up VM to use USB1 worked and the final step took less than 5 minutes.
[T-Mobile LG V10 General] famewolf:
I don't use xposed anymore because I use android pay and xposed causes safetynet to fail however I had no problem installed the sdk24 version and using a handful of modules prior to beginning of January. I posted 4 screenshots in the flashable v30c thread I started where I showed all the modules I was running at the time. I've added more since but I'm not going to type all those in. The big ones are viper4android, debloat, magisk manager for recovery, app systemizer, DNSCrypt-Proxy2 (encrypted dns), ExSDCard Access Enabler, Greenify4magisk, init.d linker, RAM management fixes by crok, Sysconfig patcher (lets you greenify google play and others).....I've got custom ones as well but they won't do you any good so that will cover it.