Root & Install TWRP H830 (20A) (Nougat) LG G5. Hard Recowvery Method

Mo3bium

Member
Sep 13, 2015
24
3
0
thought that that those are for two different methods? the twrp.img is for adb and the recovery.img is for the root of the phone for if you are already rooted? right? that's what ive been reading and you cant use the recovery.img if you aren't rooted correct? Before I completely give up let me know if you would? I'm shipping ths baby back if I cant at least keep music on the sd card. so I'm trying again. just slowly and double verifying each file.
 

Mo3bium

Member
Sep 13, 2015
24
3
0
little confusd? you said to ask, so Im asking :)

You have to downgrade to 20a
:)

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

You have to downgrade to 20a
okay I got to 20 a from I after many,many hours. wait MANY HOURS. Rofl :D
anyway I'm searching the happy dirty cow deal and I saw you posted if
I have any questions ask. So..... :)

I'm just mixed up about the "file locations." I used my desktop location with the fastboot folder there. so it looks like
users\James F\desktop\fastboot>

this is how I unlocked my bootloader and where I keep my files when I'm using adb and fastboot
right there on the desktop.

the instructions say to do this:

$ cd /data/local/tmp
$ ./dirtycow /system/bin/run-as recowvery-run-as
$ run-as exec ./recowvery-applypatch boot
"<wait for it to flash your boot image this time>"

well... my question is - where the hell is that? I don't see any of these folders in my pc. and I'm not inexperienced- not that much.
anyways the locations through the walkthrough indicate files of this and that according to those locations right? so.... why are they all over the place?
I mean local\temp
dirtycow\system\bin

so... am I not using adb and the fastboot folder
or just adb? and if so don't I need to place "certain files" in the respective locations?
or are those folders in the phones directories?
anyways answer or don't, but I would appreciate one anyhow. Oh and I gave you a thumbs up- if that matters? :D
 
Last edited:

djerick3

Senior Member
Jan 25, 2015
409
156
0
Point Pleasant Boro
thought that that those are for two different methods? the twrp.img is for adb and the recovery.img is for the root of the phone for if you are already rooted? right? that's what ive been reading and you cant use the recovery.img if you aren't rooted correct? Before I completely give up let me know if you would? I'm shipping ths baby back if I cant at least keep music on the sd card. so I'm trying again. just slowly and double verifying each file.
Hello, I wouldn't send your device back just yet. I have an LG-H30 and am rooted running Fulmics ROM which is the most stable ROM I've every used besides stock ROM. When using the hard recovery method, you must always use rename twrp.img to recovery.img. Just follow directions exactly as they are written and you should be fine. I also have a 512gb sd card installed and dont experience any data loss. Could be the ROM you are using. Like I said, fulmics is a very stable rom.
 

Mo3bium

Member
Sep 13, 2015
24
3
0
you too? so Im not the only one? :D

You have to downgrade to 20a
I got this phone lg g 5 tmobile variant yesterday. I was on marshmallow rooted with Xposed Framework Flashed 7.0 thinking it was a rom. I lost root and lost custom recovery I'm trying to root on 7.0 via dirty cow but instructions r too complicated. Can anybody tell me what dirty cow files to download and were to put the folder pls
yeah, I'm reading the instructions and I'm like ...... what? your kidding right?
Sooooo did you figure out where those locations are? would be nice to finish this mad duck hunt.
I have my cow files and fastboot folder set and my bootloader unlocked but I'm lost on those instructions.
that $h*tt might as well be Greek without a deeper explanation. so cheers man. :)

---------- Post added at 06:08 PM ---------- Previous post was at 05:56 PM ----------

Hello, I wouldn't send your device back just yet. I have an LG-H30 and am rooted running Fulmics ROM which is the most stable ROM I've every used besides stock ROM. When using the hard recovery method, you must always use rename twrp.img to recovery.img. Just follow directions exactly as they are written and you should be fine. I also have a 512gb sd card installed and dont experience any data loss. Could be the ROM you are using. Like I said, fulmics is a very stable rom.
I'm giving it another chance. I grabbed the RR rom because I wanted to optimize for gaming(dolphin baby!)
but if you ay that one is the best send me a link and ill be sure to grab it. also I'm using 2 new sd cards, one new 32gb Evo and one 64gb SanDisk. both have failed a total of 9 times in just this week. 0_o
so I ordered a little 32gb brand new one from Amazon to guarantee it isn't fake to test if they're both bad. :)

anyways I'm still confused on implementing happy cow. jk I'm delirious- no sleep.
I made another post to you somewhere here in the threads? about the file loc's for all of it.
the what, where when how. I have all the files my fastboot set up on my desktop
but the adb instructions don't make any sense as far as where folder locations like

ex:
adb push dirtycow /data/local/tmp
adb push recowvery-applypatch /data/local/tmp
adb push recowvery-app_process64 /data/local/tmp
adb push recowvery-run-as /data/local/tmp

do I place files in those folders? or are those folder locations in the phone?
not very specific. and I really don't want to be a PITA. - but I'm sure I'm getting there ;)

if this doesn't work I'm gonna break down and get a oneplus3. with a 128gb so f- that SD card.
 

djerick3

Senior Member
Jan 25, 2015
409
156
0
Point Pleasant Boro
yeah, I'm reading the instructions and I'm like ...... what? your kidding right?
Sooooo did you figure out where those locations are? would be nice to finish this mad duck hunt.
I have my cow files and fastboot folder set and my bootloader unlocked but I'm lost on those instructions.
that $h*tt might as well be Greek without a deeper explanation. so cheers man. :)

---------- Post added at 06:08 PM ---------- Previous post was at 05:56 PM ----------



I'm giving it another chance. I grabbed the RR rom because I wanted to optimize for gaming(dolphin baby!)
but if you ay that one is the best send me a link and ill be sure to grab it. also I'm using 2 new sd cards, one new 32gb Evo and one 64gb SanDisk. both have failed a total of 9 times in just this week. 0_o
so I ordered a little 32gb brand new one from Amazon to guarantee it isn't fake to test if they're both bad. :)

anyways I'm still confused on implementing happy cow. jk I'm delirious- no sleep.
I made another post to you somewhere here in the threads? about the file loc's for all of it.
the what, where when how. I have all the files my fastboot set up on my desktop
but the adb instructions don't make any sense as far as where folder locations like

ex:
adb push dirtycow /data/local/tmp
adb push recowvery-applypatch /data/local/tmp
adb push recowvery-app_process64 /data/local/tmp
adb push recowvery-run-as /data/local/tmp

do I place files in those folders? or are those folder locations in the phone?
not very specific. and I really don't want to be a PITA. - but I'm sure I'm getting there ;)

if this doesn't work I'm gonna break down and get a oneplus3. with a 128gb so f- that SD card.

All you have to do is put the necessary files on your devices internal storage then run the auto recowvery script. Don't do it through adb. Just use the script.
 
  • Like
Reactions: Mo3bium

Mo3bium

Member
Sep 13, 2015
24
3
0
cool.

All you have to do is put the necessary files on your devices internal storage then run the auto recowvery script. Don't do it through adb. Just use the script.
so in fastboot, copy and paste all of it into my command prompt right?
or piece by piece as needed? I assume section by section correct?
 
Last edited:

Mo3bium

Member
Sep 13, 2015
24
3
0
okay got everything but.....

No plug your device in through usb debugging. Load the recovery.img and no-verity file onto your devices internal storage from windows then run the script.
yeah got it that's good to know.

EDIT:
ok this headache is finally coming to an end. I ended up at GitHub grabbing the "raw" un-compiled files. <good grief.
so this wont give me the boot loop will it? I already had one of those this week.

I also noticed your avatar. It just so happens that I have a video short that I made in my graphic's class you would love to appropriate. I'm serious you've got to see it.
 
Last edited:
  • Like
Reactions: djerick3

da_reeseboy

Senior Member
Oct 30, 2008
1,296
535
133
Atlanta, GA
Mo3bium, I just want to clarify to make sure you're on the right track - running recowvery against your phone needs to be done with the phone booted into android and usb debugging on. It sounds like you might be trying this with the phone booted into fastboot which will not work... all of the commands to flash recovery in fastboot were removed from fastboot on the G5.

I could be misunderstanding you, but I wanted to make sure you weren't making that little mistake.

With all of that said, this is the tutorial I used, which sounds like the one you've been working with too:
https://forum.xda-developers.com/tmobile-lg-g5/development/root-h830-20a-nougat-lg-g5-hard-t3542496

It took me a few tries personally.
 
Last edited:
  • Like
Reactions: djerick3

bbqpanda

New member
May 31, 2012
4
1
0
confirm working

Hi Just want say thank you.

I downgrade to 20a, then follow your guide flash:
  1. TWRP-3.2.1-0-h830
  2. lineage-14.1-20180102-nightly-h830-signed
  3. open_gapps-arm64-7.1-micro-20180118

Everything works great!
You have a nice day!:eek:
 
  • Like
Reactions: djerick3

humnar

Member
Feb 17, 2017
12
2
0
I had a problem where I ran everything fine and it all worked except the reboot in to recovery would just reboot the system and I had no recovery console after that. after days of trying I found right when your supposed to type adb reboot recovery I instead just pulled the battery and used the buttons to enter the recovery console and there was twrp.

Something to try if you have the same problem i did.
 
  • Like
Reactions: Jolest

HonorCode

Member
Oct 7, 2016
12
1
3
Thanks,
Easy Recowvery didn't work for me either. I used your manual guide with all the files that came with Easy Recowvery. It worked. I installed TWRP 3.0.2-1, and I'm now running LineageOS.

Just one part that was a little confusing:
$ run-as su

(You need to rename the twrp img to "twrp.img" and put in the root of your internal storage, OR you can use this adb push command. The next two steps wont be neccessary if already done so.)

adb push twrp-3.0.2-x-xxxx.img /sdcard/twrp.img
adb shell

run-as exec dd if=/sdcard/twrp.img of=/dev/block/bootdevice/by-name/recovery
"<wait for it to complete>"
$ reboot recovery
The part where you do the adb push needs to be done before you "adb shell". Since I was just following this guide linearly, I just opened another command window and pushed there so I didn't have to exit the shell.

All in all, Great guide.
 
Last edited:

rocketrazr1999

Senior Member
Feb 17, 2014
82
19
28
Dennisport
Finally!!! A working method!

After 2 days of hell, I tried this and finally got my phone working.Took forever to find out that you DONT go into Download Mode to run LGUP as every tutorial states. At ;east when youre going from H83020k back to 20a. Anyway, this was a nice breather after that nightmare, and before the drivers mess with rooting after. Thank you so much! All I did was copy/paste this whole tutorial and it went perfectly. And you wont lose TWRP with rebooting if you reboot by ADB, so dont worry.
 

maxwintrobe

Senior Member
Apr 29, 2011
84
58
0
Same here, got phone off eBay on 20h, used Uppercut with stock KDZ to get back to 20a, tried EasyRecowvery script (about 10+ times) with no success, then followed OP instruction and it worked.
 

jaredmac11

Member
Aug 26, 2013
11
0
0
For the uninitiated and dense (me)... please help.

I pulled up some old threads and dove headfirst into rooting. I attempted to run a rooted 10D TOT and got an error. My device was newer, yadda yadda, no worky.

I found a new old 20A kdz so Im back to square 0. If I want to get to Lineage 15.1, which I believe is Oreo, from my 20a kdz, which I believe is nougat... where exactly do I need to go? What is the name of the appropriate rooted Oreo kdz or TOT to update my phone to? And I apologize if my terminology is way off...
 

hendriansyah

New member
Feb 24, 2015
3
1
0
will the custom recovery survive an upgrade via LGUP??

hi guys, i managed to flawlessly done the procedure with desired result (downgrade from 30c (oreo) to 20a (nougat) with anti-rollback v1 in it, and flashed the recovery with the twrp). thanks a bunch for the OP.

Then one question popped up. will the custom recovery survive if, let's say i'm going back to oreo (30c) via LGUP?


thanks again :eek:
 
Last edited:
  • Like
Reactions: FrancoLamar