yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SkyPhone:
OK, I'm rooted, with TWRP and I've managed to soft brick it. I edited build.prop. Now it won't boot. I made copies of the unedited build.prop, so all I need to do is change the name of two files in /system to get back to booting.

I figured out how to boot into TWRP recovery, and there seem to be options for doing what I need to do. A shell, a file editor, an ADB link, any of those will do it, but I'm not familiar with TWRP (coming from CWM).

Any suggestions for changing filename of two files via TWRP? I'll read up on it, but it seems that there are some differences on the V20 so perhaps someone here can make some suggestions, if not to solve it, at least some links or possible approaches to do what I need to do.

BTW, the changes were to the model number so I could use my Gear VR,. To get into TWRP, follow the normal recovery mode instructs (hold vol down, power, release power 1 sec when logo appears, then repress pwr and continue holding both until factory reset option appears) and then tell it you want to do a factory wipe. It brings up TWRP.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] zabracks:
Can you do this from your desktop while you're in TWRP?

$ adb shell
$ su root
# mv /system/build.prop /system/new.build.prop.bak
# mv /system/old.build.prop.bak /system/build.prop
# exit
$ exit
$ adb shell reboot
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
If you can get into TWRP, just use ADB push to replace the files. You could also try the TWRP file manager under Advanced, if it's working on the V20. I haven't tested it yet.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SkyPhone:
So ADB should work while in TWRP? I haven't tried that yet, but if it will, that should easily solve my problem. Im off to test.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] zabracks:
Yep, TWRP enables ADB access out of the box.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] digitalart:
No Xposed for nougat yet
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bstollyy:
darn! oh well, It is only a matter of time!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SkyPhone:
I couldn't get adb access while in TWRP. I can try some reboots to do it again. Is there anything I need to turn on?

TWRP offers a file manager, a terminal and an ADB sideload under advanced. They look helpful, but I see no files under the first two.

Under the TWRP Mount option, I see that system is not mounted. Is it safe to mount it?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] zabracks:
That's odd. Worst case, you could use the TWRP terminal and run the same commands as in the above post.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SkyPhone:
The terminal doesn't see any files where I need access, I suspect because /System isn't mounted? The file manager also fails to see those files. It does see the ExtSD card files, which is mounted. I suppose I should just mount /System, but I thought I'd check to see if there was a reason it wasn't mounted.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] thatisandwas:
So what drivers did you end up using? The LG drivers pop up everytime i remove them from device manager and then plug the phone back in. I don't get a generic android fastboot driver. Does anyone have one we can download?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
From the TWRP main screen, ADB devices should show your phone. That is how I rooted, since I didn't want to format my data. I pushed SuperSU to /sdcard/ and then flashed it. Now because I didn't decrypt my data, I think TWRP used a temp directory to hold the SuperSU zip, but it still worked fine for me.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Kief_haring:
I did something stupid & I ended up with the "Encryption Unsuccesful" screen... Somehow I just fixed it. This phone is so f***king strange!!! For anybody that is hesitant on how to do this, don't be. If you follow the instructions it's really easy & for the most part fool proof.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rod1189:
This is how i fixed mines, I had the command prompt with the " adb reboot-recovery" command up on my computer and left my phone plugged in.

When the phone reboots is should go to TWRP for a quick second then it boots to the normal Encryption error screen.

In between the time that the phone is powering on I kept hitting the "adb reboot-recovery" command on the computer. I was pressing Up and enter to bring back the command until it gets to the official TWRP recovery screen

Hope this helps to whoever had this problem.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SkyPhone:
OK, I'm safely out of my soft brick. I didn't lose anything, and I was able to change the two files I was trying to change and was able to boot with them both changed.

First the problem:

I changed hosts (since AdAway won't work) I copied another hosts file created by AdAway on another machine manually into /etc. It worked fine to block ads.

I changed the build.prop file in /System. I changed the model (to an S7)and manufacturer (to Samsung) to spoof Oculus and run the Gear VR. It failed to boot. It hung on the LG logo. It turned out the problem was in being careful, I made several copies of the build.prop file and inadvertently left the permissions properties incorrect on the final build.prop.

Solution.

I booted into TWRP. I had to mount the System partition first under Mount. Then I used Terminal under Advanced to CP and MV the correct build.prop back into place. Then I used CHMOD 644 to fix the properties after checking with LS -L to see that was the problem. On the first reboot, it said the partition could not be decrypted and I had to restore to factory defaults. It booted into TWRP. I just did another system reboot and it was fine. Then I tested the build.prop change again, and was more careful with permission settings. It booted fine with the modified build.prop and new hosts files I haven't tested to see if I can run Gear VR yet, as I need to install Oculus drivers with Titanium. That's next.

Thanks to those who helped.

---------- Post added at 03:45 PM ---------- Previous post was at 03:35 PM ----------

It said ADB Testing Interface when I chose the driver, IIRC. I just checked and it says they are Google drivers.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Bubba Fett:
I think i read every post here and didnt see anything about this and no time to test ATM, but do you think a system backup and restore could be done with Flashfire?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rbox:
How did you boot to TWRP? I've seen various people saying various methods.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] thatisandwas:
Those just showed up for you? Or you downloaded them? Sorry for all the questions. I've been using adb and fastboot for years, I've NEVER had such weird issues with a phone.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SkyPhone:
Press and hold PWR and VOL-DWN.

When you see the LG logo release only PWR for one second.

Then Repress PWR and wait.

When you see the msg to factory default reset, accept it with YES.

When you see the msg that you will lose all your data, accept that, too. You won't lose data and you'll boot into recovery, TWRP.

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

It was on my system, first choice. I have disabled checking internet for driver updates.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Kief_haring:
The way I got my phone out of the "Encryption Unsuccessful" screen was to boot into the bootloader (plug in USB cable while holding volume down W/ restart). When you're in fastboot lock your bootloader. Restart the device (for me it said OS corrupt will not boot), after that pull the battery. Get back into the bootloader & unlock the bootloader again. Fastboot reboot & the phone started up like a brand new device... So weird.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] easyguy:
If you have any windows 7 machine, that worked for me, both my windows 10 gave me the same error.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] thatisandwas:
I don't have a windows 7 computer. Damn Nation. I wonder if I could do all this through Linux?

---------- Post added at 09:27 PM ---------- Previous post was at 09:26 PM ----------

I don't have a win 7 machine. I wonder if I can do all this through Linux?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] UniX1rm:
I have everything working on windows 10
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] turilo:
So no one here has the Canadian v20 yet?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] justthefacts:
Yap. That did the Magic for me too. This should definitely be in the tutorial
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Kief_haring:
This is the oddest phone I've ever tinkered with. Up is down, down is up...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] nelomen:
I tried removing all drivers including adb drivers then reinstalled LG drivers. Tried adb devices and it recognized the phone. But still does not do anything when try to unlock. I'm going to try my desktop PC.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] arcladarc1:
Using quick reboot from play store is an easy way to get to TWRP recovery
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] joeygee23:
Going to try this...are the "instructions" the "running" part of Readme?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] juanfernandez77:
This work for the sprint variant also?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
I'm not yet willing to attempt a restore, but Flashfire was able to successfully create a backup of my System and Data partitions.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lightninbug:
Try iiiiitttttt!!! Lol... Seriously though, I can see why you wouldn't want to.. but if it works youd be the greatest dude ever for testing for us!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] MicroMod777:
If you have TWRP installed, there might be a way to get a .kdz restore from LG Bridge. I did this on my LG G4.

With LG Bridge open, with v20 plugged in, check for software update. It should then say something to the effect up to date, or no update available. But there might be some message that says recovery error because you have TWRP installed. Go ahead and run this to fix your recovery and it will download the lastest version of a .kdz restore. Unplug your v20 and download will continue. Then go to your c: drive and search for a .kdz file.

Thats how I was able to get our LG G4 kdz. Maybe it will work on LG v20 too. Then maybe LGUP can be used to restore all your phones for emergencies.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Darriousx:
I think a way to restore this phone is essential. Restoring to stock is definitely something that will hopefully get figured out in the near future :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
I'll try this from the office today.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] thatisandwas:
This "waiting for any device" crap is gonna drive me insane. Two computers, no avail. Windows 10. I have tried everything suggested in this thread to get fastboot working to no avail. It's definitely something with the drivers, but what? I have tried uninstalling them, reinstalling them, rebooting, installing google nexus drivers, installing different version of adb/fastboot...NOTHING is working!

Does anyone have ANY other ideas?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] zabracks:
You could always run Linux in Virtualbox and pass the USB device through to the VM.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] czerdrill:
Are you using the generic google drivers?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tnick84:
Do you have oem unlock and usb debugging enabled in developer options?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] thatisandwas:
I've tried several different drivers. I don't know if by generic though you mean "android adb driver" that I've tried a few times. Is there one I can download?

---------- Post added at 11:11 AM ---------- Previous post was at 11:09 AM ----------

I'm trrrrying to avoid that If at all possible because I haven't ran Linux since netbooks were all the rage so I probably can't remember how to do an apt-get let alone install adb/fb drivers. Unless there's a real simple process to it. But you're right, that probably would indeed work.

---------- Post added at 11:13 AM ---------- Previous post was at 11:11 AM ----------

Yes I do. Sorry for the multiple replies guys. Just realized what I did.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] czerdrill:
http://xdaforums.com/showpost.php?p=69400364&postcount=43

Uninstall all drivers you have currently. Install the above. When you're in fastboot, check Device Manager to see if it's showing Kedacom for your device. If so select, Update driver and choose to select the driver from a list. From the list select the Google driver that you installed from the download above. It'll work.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Chainfire:
Ah, well good that TWRP now works. On one hand that means I wasted my evening yesterday, on the other, the process of getting it rooted is much simpler for you guys now. And it means I don't have to write a guide, an idea I wasn't particularly fond of anyway ;)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] wolfgart:
Grea Man .

Your hard work always made our world better !!!

You Rocks !!!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] maksover:
lg g5 H860 stopped at
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bezeek:
Proof I'm phone-icidal and that [MENTION=5672995]jcadduono[/MENTION] and [MENTION=631273]Chainfire[/MENTION] kept my V20 alive anyway. Fingerprints included, because ily XDA.

http://imgur.com/a/jsgab

Little did you know, I had a little SuperSU guide all ready to go by the time I found out my phone was sitting on the TWRP screen in the next room :D
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] poczynek:
Yum yum! Anyone tried xposed?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] yugendreams:
I feel like an idiot for this but I've been up literally all night trying to figure this out and I just can't get it. I tried following the guide line by line but the .c extension wasn't included in pushing the files so I pushed one with and one without. I can't get past "$ ./dirtycow /system/bin/applypatch recowvery-applypatch" on the shell.

If anyone could give me some really basic 1-2-3 steps I would appreciate this because I can't figure out what I'm doing wrong.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
10/10
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] yugendreams:
So, no help?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] wing_addict_usa:
Does titanium backup work?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shojus:
of course it does! :)

---------- Post added at 05:18 AM ---------- Previous post was at 05:16 AM ----------

Still having issues with adb? I found the problem after pulling all my hair out, so let me know if anyone is still having issues detecting the phone once in the bootloader, like I was... ( Once in FASTBOOT, sorry )
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] yugendreams:
-delete-
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] wolfgart:
LG V20 TMO and Pixel : first Nougat device TWRP'd an Rooted

[MENTION=631273]Chainfire[/MENTION]

[MENTION=5672995]jcadduono[/MENTION]

You Rocks !!!!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shojus:
I'm gonna be honest man, you need to watch some YouTube videos and read, read, read, and then read more. Cause you are about to make some mistakes if you cannot even get adb setup? Just do a little research in Google and type in EXACTLY what you are having trouble with and I can guarantee a million others had that same issue and then you can research from there, but unfortunately I don't even know where to start and I hate to start telling you things that are wrong and especially when you and me may not even be on the same page! I would love to tell you all of the right answers but you are probably gonna have to learn the hard way, that's how I learned... Good luck man!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bambam126:
I tried to flash it says failed so idk what to do if I if I still have to use dirty cow or what and if I do if I how to start i know how to flash and all but it says sending failed
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] yugendreams:
If there was anything to reference I would search it. I got a lot further but it stops here: https://i.sli.mg/Ie0s1W.png

I when i reboot to recover it says "no command" with a dead android.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] xDEMON87x:
man this seems complicated , any help ? i usually am able to follow the guides. but this time im super lost
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bambam126:
Yeah I can flash the recovery but it says failed do i need to do the dirty cow stuff first if so how do I do that
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] douger1957:
The OP's instructions are clear and straightforward. If you are having trouble understanding them, stop and do some independent study before you attempt this procedure. Simply put, you shouldn't be doing this if you don't understand the process.

This is not a Samsung. If you enter the wrong command you will be sending your phone in to get it unbricked.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bambam126:
I do understand its just the dirty cow
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shojus:
I'm sorry man, see I thought you were at a whole different part of the process and that you didn't even have the drivers installed yet... I'm sure there will be a nice little video/tutorial that will put this into a simpler method , or even a kit for the folks that want to do it with a few button presses. I know how many people around here LOVE those toolkits! LOL

BTW: I was not trying to belittle you in ANY way, just didn't know where u were having issues. Good luck
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SkyPhone:
[MENTION=2253764]thatisandwas[/MENTION]

I feel your pain. I know how frustrating it is. I started this on day 1 and couldn't figure out why I was getting all the errors. The last one I had to solve was fastboot, and when I checked back here I saw suggestions about timing of unplugging the USB (after the phone had displayed the fastboot message) and when to uninstall drivers. I didn't need to play with timing, as it just worked.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] othermark:
Those of you having trouble with windows device drivers need to use this:

http://www.nirsoft.net/utils/usb_devices_view.html

Carefully uninstall all the related adb / usb drivers associated with your phone or old phones (adb/android/google/samsung phone/etc). Reboot, then reinstall the LG drivers.

Try not to delete things that you don't know what they do (samsung external ssd usb driver for example).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] thatisandwas:
You sir, are THE MAN. THANKS!!! I'm gonna do this as soon as my phone recharges LOL
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
I ended up using this: http://xdaforums.com/showthread.php?p=48915118#post48915118 and the deleting drivers in device manager and unconnecting/reconnecting phone method mentioned earlier in this thread. I was frustrated also but just kept trying and it worked unexpectedly.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ZDeuce2:
No way to flash back to original firmware yet to my knowledge, so no, and yes on twrp.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] djnikkofb:
Put your fastboot and adb in a folder on your local C:/. So your folder would be. C:/adb

Do not run as administrator.

Make sure your device is in MTP (file transfer mode) NOT charge mode.

Force close windows defender.

Copy all fastboot/adb commands to notepad. Don't copy from the webpage.

Don't be impatient when copy/ pasting adb/fastboot commands.

Last option is to create a NEW user windows profile (offline profile). Start from a fresh user profile over again.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ZDeuce2:
And to all other models... THIS IS ONLY WORKING FOR T-MOBILE LG-H918 VERSION... DO NOT ATTEMPT THIS ON ANY OTHER MODEL!!!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bountyman334:
am going to try this now...i just got my 2nd v20 from tmobile today...last one i dropped in the toliet....i know...i was A.M. drunk(sleep walking not drinking) from sleeping
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] thatisandwas:
Oh and just to be clear guys, THIS worked for me. I didn't get a chance (thankfully) to try the other suggestions, but thanks to everyone who helped me get FB going. I'm gonna root it when i get a break today and i'll report back with results!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] watdafux:
I read in a few posts that some root apps are not working. My major concern is adaway and xposed. Has anyone gotten them to work?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] digitalart:
some root apps work (titanium, adaway with some fixing) but no xposed yet for nougat so this wont work.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] thatisandwas:
Theres far too many people that helped me during this thread to thank them all, but you know who you are!

THANKS GUYS!!!

I now have TWRP and ROOT on my v20 and i couldn't be happier :) all those driver issues were a real pain in the ass but once i got past those the process couldn't have been simpler honestly. I'm using LG Backup to restore everything now, then i'm gonna PM someone about changing out these ugly ass emojiis!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SkyPhone:
AdAway works for me with the Systemless option checked when using version 3.2 from here:

http://xdaforums.com/showthread.php?t=2190753

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

Would you post the emoji fix when you get it? I lost the links.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] thatisandwas:
Definitely will. You didn't have to do anything fancy with adaway? Like, changing around what type of phone it is or anything like that? Nothing that could potentially BRICK in other words? LOL. The last thing i want is a bootloop after spending 3 days to get root.

Side note : LG Backup works fantastically.

EDIT : The above linked AdAway from [MENTION=4947959]SkyPhone[/MENTION] works great
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SkyPhone:
For others - No, no tricks are needed, it just works.

I just got Google Assistant running. I'm so glad I have root and didn't need to return the V20. Google Assistant does need a trick. You need to edit build.prop. If anyone does that, make sure you don't change permissions (they should be 644) or it won't boot. I found out the hard way when making another change to build.prop.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NotATreoFan:
Chainfire just released a newer SR3 of SuperSU. Flashed without issue inside TWRP, it is supposed to resolve some issues apps have in obtaining root in the new dual partition devices. I have not tested any previously broken apps yet.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] thatisandwas:
Do you care to write a short guide on how the install Google Assistant? I know that something a lot of us are clamoring for!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SkyPhone:
Just put this in build.prop.

ro.product.model=Pixel XL
ro.opa.eligible_device=true

Comment out with # the previous ro.product.model and make sure the permissions don't change.

Then clear the Google App data and reboot.

Full details here:

http://xdaforums.com/android/software/guide-how-to-enable-google-assistant-t3477879
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tnick84:
Link

http://xdaforums.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133