yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G5 Guides, News, & Discussion] KKatMe:
The phone reboots fully, no errors or messages. But the computer just continues to show the message "Selinux is ours! Rebooting".

Btw, thanks for this guide. I have used it on 3 phones already without any hiccups. This is the first one giving me an issue.
[T-Mobile LG G5 Guides, News, & Discussion] KKatMe:
- - - Making sure we're good to go - - -

Checking permissions in the EasyRecowvery directory...Checking that the exploit files exist...SUCCESS!

Locating adb.exe... SUCCESS!

Looking for ADB device... h1_tmo_us

This device doesn't look like a T-mobile V20. Proceed anyway? (DANGEROUS!)

(Y/N) Y

Checking unlock status... SUCCESS!

Using device with serial LGH8303559ba96

- - - Pushing exploit to /data/local/tmp/recowvery - - -

Copying files... SUCCESS!

- - - Launching Recowvery on device - - -

Exploiting /system/bin/applypatch... SUCCESS!

Exploiting /system/bin/app_process64... SUCCESS!

Waiting for selinux pwn... (timeout after 3 minutes)

- - - selinux is ours! Rebooting - - -

//This is the last message I get on the computer
[T-Mobile LG G5 Guides, News, & Discussion] KKatMe:
Finally Worked!!!

I am not sure why this worked. I removed the memory card and used another cable (before, I was using the white cable that came with the phone). Started over and everything went like a charm.

:good::good::good:
[T-Mobile LG G5 Guides, News, & Discussion] sublim3style3:
Little error that caused me a big problem: Make sure and disable lock screen security so that the phone boots into MTP instead of charging only. Also that the internal storage read 0mb and I had to flash no verity from external sd card.

Hope I can help ;)
[T-Mobile LG G5 Guides, News, & Discussion] dwcasey:
This is able to see my phone:

adb devices

This works to get my to Fastboot Mode

adb reboot bootloader

This is stuck on <waiting on device>

fastboot oem unlock

I have 4.2.0 of LG Mobile drivers installed...seems to be working enough that adb devices sees the phone...but in fastboot mode, maybe drivers for that are not installed or working? I only found where someone installed Android SDK and that might have fixed their problem? Going to try that now.

Update: Android SDK install did nothing. Also found a registry hack that worked for another device, did nothing for me. Tried same steps on a laptop I have...install LG drivers, run adb commands, worked without issues. FWIW, I tried *all* the USB ports on the front of my desktop, not any on the back. But, seems to be working fine on the laptop now. Proceeding through remaining steps. Thanks OP.
[T-Mobile LG G5 Guides, News, & Discussion] dwcasey:
re-lock bootloader?

Looks like I got it all done. Went much quicker on the laptop than my desktop.

I did have the script 'hang' a bit...and while I was poking around in TWRP, it started to act like it had a mind of it's own...selecting various options...then it rebooted and the script was done.

I now have Fulmics 5.1 installed and working.

Is it possible to re-lock the bootloader?

Is there such a thing as

> fastboot oem lock
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
Bootloader can be relocked using same command you mentioned. But make sure you're on stock firmware before relocking bootloader to avoid any problems.
[T-Mobile LG G5 Guides, News, & Discussion] dwcasey:
What I was wanting to try is get Fulmics installed, then somehow 'lock it down' so security software for work wouldn't get angry :)

I understand that Magisk could probably circumvent that the root side of things, but i prefer to not have anything that might cause problems.

So, I installed Fulmics, then tried to fastboot oem lock and on reboot, it was not happy, got a red color message that said it wanted to power my phone down and did not want to boot.

Thankfully, Uppercut was able to push the latest 20m KDZ back on to my phone...so I'm back to stock.
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
Yeah, If you want TWRP and custom roms then you need to keep bootloader unlocked. Off course you will have to be ready to face angry software security agents. And as your on 20m now you will have to roll back to 20a to root because autorecowvery won't work on this software.
[T-Mobile LG G5 Guides, News, & Discussion] Khalid Ghouri:
i have this msg
[T-Mobile LG G5 Guides, News, & Discussion] kisutbener:
Hii.. I want to ask, root & unlock bootloader can unlock sim to use with worldwide provider?

Because my phone is network lock.

I'm from indonesia. Thanks
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
Rooting and bootloader unlock is different from Sim Unlock. You will have to ask your carrier for unlock code to network unlock your phone, unlocking bootloader is not going to do anything in that case.
[T-Mobile LG G5 Guides, News, & Discussion] kisutbener:
Hhmm.. Ok thank you for your information. T-mobile is not support in indonesia. So, should i call T-mobile technical support to unlocking my network?
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
Where did you get your phone. Which network are you currently using. If you bought it from from local seller then there are chances that it would be unlocked already. There are also some website which provides unlock code for 5 dollars or more.
[T-Mobile LG G5 Guides, News, & Discussion] cheeze.keyk:
I got my device unlocked thru cellunlocker. :good:
[T-Mobile LG G5 Guides, News, & Discussion] xida1125:
Finally got it to work, switched cable, connected directly to laptop instead of USB hub, used 3.0.2-1 TWRP, disabled virus protection
[T-Mobile LG G5 Guides, News, & Discussion] fc3211:
Hi, I was successful with the guide until I got into TWRP and it gave me some error about failed to decrypt data so I did "format data" and after that I manually flashed the no-verity-opt thing (I forget the name) and also SU. I then booted into the system and I see that I have TWRP app and also SuperSU app. But when I try to boot into TWRP to flash the new 20n zip and magisk I am unable to.

None of the Quick Reboot apps in play store will reboot into recovery. Then I used your script here and selected to reboot into recovery but all it does is reboot my phone and it goes back to System.

It appears that I have lost TWRP completely. Please advise me what I need to do to get TWRP. Do I have to start all over from the very beginning? I tried to install TWRP using the play store app and it says that it did so successfully but when I try to boot to recovery nothing happens it just reboots my phone into system. I also tried using flashify to flash the -opt-no-verity (I forget the exact name, sorry) and after doing that I tried again to install TWRP using the play store app but even though it says successful I still dont see TWRP on my phone AT ALL. Please help me, somebody

It took me 4 hours just to get this far because the script would fail with different assortment of errors and FINALLY, FINALLY I have root but I am stuck on 20k and trying to upgrade to 20n on my H830

Please dont say I have to start all over because most likely the script will fail if I try to exploit again using Recowvery

And I turned off phone and pressed volume down + power to see if I can get into TWRP that way but it says factory reset yes or no? And I did not want to risk saying Yes because it may factory reset and wipe out all my hard work that I have accomplished so far with recowvery.

Please help me somebody, I am at my wits end
[T-Mobile LG G5 Guides, News, & Discussion] fc3211:
Waiting for selinux pwn... (timeout after 3 minutes)

- - - selinux is ours! Rebooting - - -

Exploiting /system/bin/run-as... SUCCESS!

- - - Rebooting to persist selinux permissive mode - - -

[B][COLOR="Red"]Error 1: Operation not permitted[/COLOR][/B]
Creating backup of recovery at /sdcard/stock_recovery.img... SUCCESS!
Creating backup of boot at /sdcard/stock_boot.img... SUCCESS!
Flashing recovery.img for fun and for profit... SUCCESS!

Now I keep getting that error when I try option 2 from the script. I have tried it on my Windows 10 Desktop and also on my laptop and dont know how to overcome that error.

Also i tried to factory reset thinking that i could run the script after that and maybe it would work. But even the factory reset failed and nothng happened.

EDIT: Doing a factory reset from the LG settings menu puts the phone into a bootloop (a very fast bootloop that shows the lg splash screen for 1 second then black for 1 second then lg splash for 1 second then black for 1 second and so forth. I was able to get out of that boot loop by holding down volume minus and power and then saying yes to the factory reset question (but it did not actually factory reset it just brought me back to System.

That really scared the sh1t out of me, I think im just going to go back to stock. i cant risk getting into a permanent bootloop because phone is out of warranty

UPDATE: THe issue is resolved thanks to good advice I got from autoPRIME. He told me since I am rooted to just use flashify to flash the twrp.img and then I rebooted into recovery with the adb reboot recovery command. Once inside TWRP I flashed 20n complete + Magisk (no need to wipe cache) and then booted back into System and its working splendid.

Thank you OP for this great tutorial, I am so happy to finally have root and be on the newest build. Will look forward to trying some custom roms in the future
[T-Mobile LG G5 Guides, News, & Discussion] scytalemk:
Hello. can someone tell me can I downgrade from H83020n to H83020a with LGUP and Uppercut? Anti-Rollback version is 1. Thanks.
[T-Mobile LG G5 Guides, News, & Discussion] eremeya:
It would be fine
[T-Mobile LG G5 Guides, News, & Discussion] Mechashiva:
Worked like a charm. After using recowvery to flash TWRP, I manually flashed Magisk and H83020N. Root and TWRP have stuck, no issues at all. Thanks for the great work!
[T-Mobile LG G5 Guides, News, & Discussion] Hậu_Đặng:
Help unlock bootloader not ok

Help unlock bootloader not ok

c:\adb>fastboot getvar unlocked

unlocked: no

finished. total time: 0.001s

c:\adb>fastboot oem unlock

...

(bootloader) Erasing userdata and cache

OKAY [ 1.769s]

finished. total time: 1.770s

c:\adb>fastboot getvar unlocked

unlocked: yes

finished. total time: 0.004s

c:\adb>fastboot reboot-bootloader

rebooting into bootloader...

OKAY [ 0.005s]

finished. total time: 0.005s

c:\adb>fastboot getvar unlocked

unlocked: no

finished. total time: 0.004s

H830 V20a reboot Auto RELOCK.
[T-Mobile LG G5 Guides, News, & Discussion] ramana.spencer:
Hey, I just got a refurb H830. It's still on MM 6.1

I hope it's alright if I ask a few newbie questions. It's been a while since I've rooted anything. The LG G3 was the last time and it was easy.

So, is it recommended that I don't root until I am on Nougat 20a, and then use this method? IS there an easier way to root Marshmallow 6.1? If I we're to just do that if possible, would I be on dated firmware and would that be problematic?

Thanks for any help

edit: "Senior member" haha!!! Like I said, haven't been on for a while! :)

[MENTION=5594713]dksoni411[/MENTION]
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
Rooting after updating to v20a is the easiest method and secure. Just download 20a kdz, flash it using lgup. Root using this guide. If anything wrong happens just mention me. There is also a back to life thread by me if you ever brick your phone. Link for that is in FAQ. Most question are answered in FAQ. Happy rooting
[T-Mobile LG G5 Guides, News, & Discussion] ramana.spencer:
deleted
[T-Mobile LG G5 Guides, News, & Discussion] ramana.spencer:
[MENTION=2206549]sadiqu[/MENTION]abad

It worked. The only confusion I had was it would reboot int system first which wasn't mentioned. And you have to press any key in Recowvery after to get it to boot up into TWRP after it reboots into system.

One more question: I formatted data. When I perform an action in TWRP it still shows encryption messages in red. Is that normal? I was able to flash though so I don't think it's actually blocking anything.
[T-Mobile LG G5 Guides, News, & Discussion] YellowFlasher:
"Checking permissions in the EasyRecowvery directory...FAILED!

We don't have permission to create log or backup files in

C:\Users\Lionel\Downloads\LG G5 ROOT\EasyRecowvery-1.3b3\!

Please extract EasyRecowvery to a different directory, then try again."

Anyone know how to fix this after I press 2?
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
Yes.

1st FAQ question. Check it out. 3rd Post
[T-Mobile LG G5 Guides, News, & Discussion] flowagan:
recowvery

neeed a link to download recowvery
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
You had enough time to quote whole guide and write this stuff. But you didn't want to waste time on reading the guide carefully.

Man! It's in attachment of 2nd post. Read . If you won't read with care how are you supposed to root successfully. You will end up asking questions that are already in FAQ but you won't notice it because you will not read exactly what each step says. Anyways happy rooting.

https://xdaforums.com/showpost.php?p=71618391&postcount=2
[T-Mobile LG G5 Guides, News, & Discussion] B6000man:
The processto root is not working for me with Recowvery_G5_Modified method it gets stuck at rebooting to OS on the cmd window after getting into twrp on the phone and I have already hit cancel and swipe for modifications. Only way past this is to manually reboot to OS from the twrp menu. When it is time to install supersu root when phone tries to load twrp I get "No command" error.

Then I try "EasyRecowvery-1.3b3" and it gets stuck at "press any key to continue..." after I have already hit cancel and swipe for modifications on the phone with twrp. Yes I already hit a key to continue on the cmd window and it just freezes there. I put either recowvery method in the root directory of my partition in windows. I just cannot get this finished...
[T-Mobile LG G5 Guides, News, & Discussion] bambam0070:
Hello. I've had a G6 awhile now and would like to follow this guide and root my old G5. The only issue I'm having is; I cannot seem to find a guide on how to downgrade my current Software version; "H83020o" to 3020a. I have already acquired 3020a from "downloads.codefi.re/autoprime/LG/LG_G5/H830/H83020a" etc; Bootloader is already unlocked; I just need a complete downgrade guide and I'll be good to go. Sorry if it was right in front of me and I missed it.

EDIT: Found it! https://xdaforums.com/lg-g5/development/uppercut-lgup-loader-g5-variants-t3511295

Good to go!

https://ibb.co/hkrfOc

https://ibb.co/b4oibx

about to root.

EDIT 2:

Success! I got that permissions error but; the process worked flawlessly via USB. Thank you!!
[T-Mobile LG G5 Guides, News, & Discussion] eenkiinkeenk:
Sir my H830 volume down is broken.. cant press it.. still lock bootloader.. my question is.. is this method unlock n rooting can work without any step to pressing vol down button??? Ty sir
[T-Mobile LG G5 Guides, News, & Discussion] PlsLordHelpMe:
can I sim unlock my lg g5 after rooting ?
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
Rooting isn't going to help you in sim-unlocking. You will need unlock code from your respective carrier.
[T-Mobile LG G5 Guides, News, & Discussion] berenjenas:
yes it works , and this is how it worked for me no buttons of the cell pressed

you need a pc with adb drivers and:

1-Unlock bootloader in developer options

2-Type "

adb reboot bootloader

" in system console(cmd in windows) then type "

fastboot oem unlock

" when your phone gets to a black screen *WARNING this will wipe all your data so back it up*

3- Follow the steps in this guide

---------- Post added at 02:42 PM ---------- Previous post was at 02:25 PM ----------

I had a few problems while using this method

If your recowvery is stucked at selinux as it happened to me unplug and replug the phone to the pc

if you do get to twrp but system erases it you need to copy the no-verity-opt-encrypt.zip inside recowvery folder to your phone start recowvery process again and flash it in twrp when it opens. Hope it helps someone!!
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
If you still aren't rooted can you try the new test version. Use the new automatic option. The last one which is launched through entering X. This will help you from Unlocking to installing TWRP and rooting phone with most security checks off. Share your experience if you can use that script

Can you test the new script which is supposed to remove problems that you faced and provide feedback so I can quickly fix any problems and make it stable release.

As I do not have my G5 any longer, I cannot test it myself.

Here is the link for test script
[T-Mobile LG G5 Guides, News, & Discussion] osguald:
Hi, i followed all the steps and strugle a little with the drivers but I got there, iam root now. I know this question must be repeated but can i update the phone without loosing it'? I am gonna pay some guy on ebay to remotely unnlock my g5 and it mmust be rooted, i tried all codes but it never pop up anything to put the code in, thanks
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
No you can't update through ota after rooting. Taking ota on rooted firmware will only get you toward a brick.

However, you can flash twrp flashable rom zips to install latest update. After that you can use magisk or supersu as per your choice to root. Last firmware zip I saw was of 20n. There can be latest, you need to find on tmobile specific g5 forum
[T-Mobile LG G5 Guides, News, & Discussion] Pendragonx315:
Aha... I think this is the confirmation I've been looking for... So I have 20a firmware, TWRP, (no root), LineageOS 14.1 running on my H830. I did a backup already. If I *only* flash the 20N bootloader and 20N modem firmware (from here https://xdaforums.com/tmobile-lg-g5/development/stock-h830-20n-zips-kdz-2017-12-01-t3732851)... that shouldn't cause a problem then, correct? No boot-errors, etc?

Many thanks for this tutorial, [MENTION=5594713]dksoni411[/MENTION], it's the reason I was confident enough to get my phone!
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
I am not much a developer. I still don't think flashing stock modems on AOSP rom is good practice. Maybe [MENTION=5132229]xpirt[/MENTION] or [MENTION=2684188]autoprime[/MENTION] can answer this in a more better way.
[T-Mobile LG G5 Guides, News, & Discussion] elwhiteboy01:
I have the h830 20m does anybody know if this works and how? I am stuck getting failed flashing twrp in my usb with both versions of easyrecowvery. Or do I just need to use autoprimes uppercut and lg up and downgrade. And I already unlocked my bootloader with adb. On the g5 modified version it says could not write to /data/local/tmp/.
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
Thread title clearly states H830 and V20a only which means you need to flash 20a firmware on your phone. The process is simple. Download H83020a kdz and flash it using uppercut lgup. After that try rooting (Bootloader can stay unlocked)
[T-Mobile LG G5 Guides, News, & Discussion] elwhiteboy01:
Yeah I was just hoping I'd get lucky and maybe somebody found another way by now. Either way, thanks for the quick response. Hey, my volume up button doesn't work and I tried adb reboot download and it just restarts the phone. Any suggestions so I can flash the 20a kdz for my h830.

Update... OK so I was able to install 20a through autoprimes lg uppercut. I got the twrp pasted to the phones internal memory. I ran the test zip on a USB. And it fails, says could not write to /data/local/tmp/. It says to check the directory permission and delete any files or folders name recowvery if needed. Can you please tell me what I'm missing or doing wrong? Thanks in advance!
[T-Mobile LG G5 Guides, News, & Discussion] elwhiteboy01:
I finally got it! Like others said, this is the most confusing, difficult twrp I ever installed. Nonetheless, greatly appreciate everyone involved for making this happen! And to the OP thanks for getting back. I flashed magisk, next lineage os.... Oh boy I can't wait! I'm doing a stock backup now, just case there's a hiccup installing lineage. I prefer to have the option of flashing something if something goes wrong. Anyways, thanks again and stay blessed to everyone reading this ✌
[T-Mobile LG G5 Guides, News, & Discussion] ppkf_h1:
I down grade to H830a & have it rooted. Questions:

1. it shows a screen saying "software cannot be checked... please lock bootloader.." - can I simply use adb to lock the bootloader again to get rid of the annoying screen and without losing root and superuser? If not, what is the right way to get rid of that screen wo affecting the rooting just achieved?

2. after rooting, can I use the normal to upgrade from H830a to say H830n (e.g. using online upgrade from T-mobile or to flash it using LGUP)?

Pls advice. Thanks.
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
1: No, You can't get rid of that screen. It will stay there as far as bootloader is unlocked. If you tried to lock bootloader while rooted then your phone will not boot until you flash kdz.

2: No, you can't take OTA or upgrade normally after rooting. You will have to flash twrp flashable firmware (Check in G5 T-Mobile forum) to stay updated.
[T-Mobile LG G5 Guides, News, & Discussion] cj chitwood:
elwhiteboy01, you say in the next post after this quote that you figured it out, but do you recall what it was that got you past the /data/local/tmp message? I can pull a directory listing via adb shell but it's empty so there's no deleting any cow files like the message says to do. How did you get past this?

Meanwhile, I'll keep trudging along. I've been awake not quite 24 hours so I'm starting to make those kind of mistakes that brick phones so I might just hang it up for the night but I'd greatly appreciate any advice...

Thanks!
[T-Mobile LG G5 Guides, News, & Discussion] elwhiteboy01:
Yeah after reading so many comments on the matter, I placed the recowvery file on a USB flash drive and made sure I had the twrp image on the phones internal memory. I followed the steps, I believe hitting 5 then 7 and then 0 and it finally worked from there.
[T-Mobile LG G5 Guides, News, & Discussion] Prabin Dhital:
I did each and everything and the furthest I could go is till this point. Anyone that has clue on what is wrong will be highly appreciated... Phone reboots after this step and after that nothing, I extracted recovery in USB, version of the software has been downgraded to 20a, the bootloader is unlocked as well. I just don't think I have missed any step so far and Don't know what I can do more to fix it. Spent more than 3 hours today, please help me

https://gyazo.com/18a63d4c0b0bc1859b4a1cdda47a70e3
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
Have you downloaded latest twrp to internal storage and named it as "recovery.img" (not recovery.img.img)
[T-Mobile LG G5 Guides, News, & Discussion] cj chitwood:
Thank you, elwhitebooy01. Try as I did, though, I wound up at one point only able to get to download mode and bootloader mode, unable to get the phone to flash a recovery (and yes, to answer the question I've seen asked of others, I followed every direction to the letter but that sometimes just doesn't work the same >shrugs<). I ended up finding a manual COW exploit post somewhere and that worked... Sometimes you just need to do things manually. I rarely ignore the man behind the curtain.
[T-Mobile LG G5 Guides, News, & Discussion] Faheem anjum:
any way to Root H83020C ?
[T-Mobile LG G5 Guides, News, & Discussion] mfeliu07:
Hello

I'm trying to root this phone, it had version v20l and degrade to 20a. Start to do the whole process and give this error that attached in image, which may be happening.

Thank you

mfeliu07

[IMG="H830 error root"]http://subirimagen.me/uploads/20180904131322.png[/IMG]
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
Very strange error. But as the error says that more than 1 device is connected. This script doesn't support more than 1 device. Kindly disconnect all other devices and connect just one device Else do process on some other computer.
[T-Mobile LG G5 Guides, News, & Discussion] mfeliu07:
Hello

Thanks for your advice, change to another PC and it turned out.

Thanks