yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G5 Guides, News, & Discussion] eremeya:
Thanks for letting us know.

For me (I just finished doing this again about 5 min. ago) after the script flashed TWRP my phone rebooted to the OS as though I didn't do anything. After it rebooted I switched the USB connection from MTP to PTP and my phone immediately rebooted to TWRP. Like musicims I had to install no-opt-encrypt and SuperSU from my SD card. Once these were installed I rebooted and updated the SuperSU binary and my phone now has root and works fine.
[T-Mobile LG G5 Guides, News, & Discussion] musicims:
Another probably should be obvious item not included in the guide is when anytime you have to change it to MTP (file transfer) or PTP (pic transfer) make sure you select always, not just once. It will make the script much happier on reboots. Thanks for the quick response eremeya!
[T-Mobile LG G5 Guides, News, & Discussion] ataris_kid:
Just wanted to add a few data points:

- I was able to successfully downgrade from V20J to V20A and get this to work.. Thank you!

- I had to use TWRP 3.0.2-1 (as opposed to 3.0.2-0, which would not work). I did not attempt this with TWRP 3.1.1-0 or TWRP 3.1.1-1.

- I enabled MTP "always" while troubleshooting my initial failed attempts.. Not sure if this had any bearing on the final successful attempt, but I wanted to note it regardless.
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
Thanks for sharing your experience.
[T-Mobile LG G5 Guides, News, & Discussion] paul8m3:
I seemingly had no problem unlocking my bootloader, but using the root method the 'easy recowvery' only recognizes my device up until the second recognition, where Ive been told at least 30 times that my phone is not an LG g5. One time went past that, the process failed anyways.

Heres what Im doing

-using mtp

-latest drivers

-attempted to unzip to usb, run and still no luck

-attempted to unzip to dell drivers folder still no luck.

Ive literally been working on this for ten hours today and Im all out of ideas.

Any help would be great.

---------- Post added at 05:34 AM ---------- Previous post was at 05:32 AM ----------

Also, I am using a G5 h830 downgraded to 20a from 20i.

I assume my bootloader worked because when I restart my phone, there is a warning screen right before the tmobile screen.
[T-Mobile LG G5 Guides, News, & Discussion] paul8m3:
I figured Id give this another try this morning. And to my utter suprise it got all the way to where it was supposed to boot into twrp, then stopped. Im gonna wait a few minutes and then pull my battery and try to manually boot into twrp. Whatever happens, I can always get back to 20a thank goodness.
[T-Mobile LG G5 Guides, News, & Discussion] paul8m3:
I tried to manually boot into twrp, but I guess it never took hold. Even though the box said 'congratulations twrp is installed', it wasnt.

This is becoming rather frustrating.
[T-Mobile LG G5 Guides, News, & Discussion] juan.15236:
How did you unlock the bootloader and downgrade from 20i?
[T-Mobile LG G5 Guides, News, & Discussion] paul8m3:
https://xdaforums.com/tmobile-lg-g5/development/stock-h830-20f-rom-flashable-zips-imgs-t3592855

Before you try this tutorial, you must downgrade.

You need to install LGUP http://downloads.codefi.re/autoprime/LG/LG_G5/LGUP/LGUP_Store_Frame_Ver_1_14_3.msi

And Uppercut http://downloads.codefi.re/autoprime/LG/LG_G5/LGUP/LGUP_Store_Frame_Ver_1_14_3.msi

Heres your stock 20a you will use. H83020a_00_1107.kdz http://downloads.codefi.re/autoprime/LG/LG_G5/H830/H83020f/H83020f_00_0103.kdz

You may have to disable your antivirus to install uppercut, I did.

Once you have these, you can always boot into download mode and re-install it. As long as your phone will boot into download mode, you will have a stock, "rootable", operating system. I put 'rootable" in quotes because I still cant get it to work. I will figure it out eventually.
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
If you are using, as you mentioned you're, "easyrecowvery" then you have to toggle "integrity verification during exploit" off, from " Extras and Advanced Tools" section by

Enter 5 --> then --> Enter 7

and the "integrity verification during exploit" will be shown as "(Currently disabled)". now without exiting the script perform process (because after restarting the script turns it back to enabled).

Also make sure you have copied TWRP for your device as "recovery.img" (without quotes) to your internal storage (on root, not in any folder). And turn anti-virus off because it may detect rooting script and remove it.

And tell me what happens then?
[T-Mobile LG G5 Guides, News, & Discussion] juan.15236:
Thanks
[T-Mobile LG G5 Guides, News, & Discussion] paul8m3:
No problem. We all have to work through this together:good:
[T-Mobile LG G5 Guides, News, & Discussion] paul8m3:
I have done all these things without luck. I've tried normal easyrecowvery and modified. No luck so far.

Though, now when I attempt it instead of roadblocking me immediately, it gets to where it says"twrp installed" then it will try to boot into recovery, only to fail. Ill be left with a little dead android guy on the screen and ill need to use LGUP install 20a yet again.

This is the fourth phone I've rooted\attempted to root. The other three worked and this will too, I'm just missing a small detail or two.
[T-Mobile LG G5 Guides, News, & Discussion] juan.15236:
I managed to downgrade my phone (Thanks), but I can't find how to unlock the bootloader. do you still know how to do it?
[T-Mobile LG G5 Guides, News, & Discussion] juan.15236:
nvm I got it to work. were you able to make it work?
[T-Mobile LG G5 Guides, News, & Discussion] paul8m3:
Page 1 of this thread. It worked for me and was super easy

---------- Post added at 11:31 PM ---------- Previous post was at 11:25 PM ----------

I'm just having trouble with getting rooted and twrp installed. I believe its something small like the version of twrp I'm using or possibly having adb fastboot installed while using the recovery tool. Sadly I work every day till Monday, so ill make no progress.
[T-Mobile LG G5 Guides, News, & Discussion] paul8m3:
Hey man, thank you for responding!!! Lemme fill you in a bit more....

I am primarily using the modified version where toggling the verification is not needed. However, I did try the 'normal' version with the exact same results.

My next attempts will be:

-using twrp 3.0.2-1 as someone else had success doing this

- deleting my adb-fastboot that I used to unlock to bootloader, since the was also mentioned.

Everything else I did was exactly to the letter of your tutorial.

---------- Post added at 04:45 AM ---------- Previous post was at 04:43 AM ----------

Sadly, I work between Wed and Sun, sometimes Mon too. Crazy 12hr days, so I wont have time to revisit my efforts until hopefully monday. I will keep the group informed with my attempts.
[T-Mobile LG G5 Guides, News, & Discussion] paul8m3:
Not yet. Ill try again. On Monday.
[T-Mobile LG G5 Guides, News, & Discussion] paul8m3:
So I got off work early tonight and was able to give it another try. I switched usb ports, deleted my phones internal and sd copies of super su, no verity, and twrp, and proceeding to copy twrp3.0.2-1 (from the twrp site) and the no verity and super su (same as in the "modified" folder), I had complete thru and thru success.

Now I am booted into twrp and will attempt to flash super su then no verity.

Lets see how this works......

---------- Post added at 05:40 AM ---------- Previous post was at 05:39 AM ----------

I am finding myself in a twrp bootloop.

---------- Post added at 05:56 AM ---------- Previous post was at 05:40 AM ----------

The no verity opt enctypt zip refuses to flash. No matter what I do before, it gets a red error message every time

---------- Post added at 06:07 AM ---------- Previous post was at 05:56 AM ----------

Since I have TWRP installed, are there any instructions I need to flash no verity and super su from twrp?? Or maybe how to flash a rooted unencryped rom??
[T-Mobile LG G5 Guides, News, & Discussion] paul8m3:
I FINALLY GOT ROOT!!!! HOORAY!!!!

This was by far, the most difficult root Ive ever done. Partly because the script tool (easyrecowvery.cmd) would only go so far. Once it booted me into TWRP, It no longer worked. It simply booted me back into an unrooted factory reset. After getting this result over 15times, I tried something different.

Instead of the exact zip files found in the "1" folder, which wed all assume should work without doubt, I used

SR3-SuperSU-v2.79-SR3-20170114223742

twrp-3.0.2-1-h830

no-verity-opt-encrypt-4.1

Why these files worked and the others didnt is anyones guess, but they worked and I am now rooted.

How I did it...

I followed the above tutorial instructions. Everything is the same, allow the scripts to run and do exactly what the above tutorial directs you to do.

UNTIL:

-When the easyrecowvery tool booted into TWRP recovery, I pulled the plug and did the rest manually. Here are the steps I took.

1. cancel first step. It asks for an encryption code I think, skip that.

2 Go to wipe, choose format, type yes and allow to format.

3 Right after it formats, perform a factory wipe from the same screen.

4 Go to Install and flash your no-verify-opt-encrypt

5 Wipe dalvik/cache

6 Still in Install, flash your Super SU

7 Wipe dalvik/cache

8 Reboot System.

Note. If you notice ANY red lettering in the TWRP scripts while you are formatting, wiping, or flashing, something went wrong. You probably did not format, which I think was my problem.

Hopefully this helps someone. It literally took me weeks to get this figured out and working properly.

One question left. Do I have to boot into recovery with the button pushing combo or is there a way to do it via app or menu??

Edit: There is an app in the play store called 'recovery reboot' that will take you into your TWRP recovery with literally two taps.

Thanks
[T-Mobile LG G5 Guides, News, & Discussion] mapleking1996:
when i press 2 and enter, the cmd window is off
[T-Mobile LG G5 Guides, News, & Discussion] jtatex:
With a little help, it works!

I tried all the above and no success. I have had luck with recowvery and modified recowvery before. Coming from an AOSP rom, I flashed 20a and started over. I ran mod recowvery from a usb stick, from the root of C:\ and from the desktop, no avail. I then copied regular old recowvery to my desktop and after the 2nd. try it worked like a charm. I guess Windows flags the command windows from where it is run from with limitation/flags/permissions. Sometimes it works the first time, sometimes it works the 50th. time. The point is, it works. Thank you so much for these valuable tools. XDA Developers FTW!!!! :good:
[T-Mobile LG G5 Guides, News, & Discussion] farhan76242:
I am trying to Bootlocker unlock my LG H83020a but When I am trying to Reboot in bootloader so My windows 7 Android driver asking. And every time faild to install driver. Whenever I installed latest version of LGMobileDriver_WHQL_Ver_4.2.0 & ADB Fastboot driver And I also changed my OS with oter PC. but still I am facing this problem Pleas eguide me that HOw Can i Solve this issue.

And Please tell me taht When I Turn on my LG G5 so Its says your device not check the software blup blupppp and please lock your bootloader .. Pleas eguide me that Is it my bootloader already unlocked ???
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
If your devices says so on startup, it means that bootloader is already unlocked. So skip this step and proceed toward TWRP installation.

As far as you said "Driver installation failed", how you knew that driver are not installed. Check in device manager when your phone is connected to make sure it is detected with installed drivers.
[T-Mobile LG G5 Guides, News, & Discussion] eekthecat:
Guys i need some help here with my H830 please :)

My LGUP stop at 83% (on PC and 99% on phone) when i try downgrade to 20a coming from 20i.

Bootloader unlocked, antivirus disabled, UPPERCUT_1.0.0.0 work fine, but i can only flash with "UPDADE" option.

I get this error: 0x2BC, Invalid command response code=0x80000202

Someone have any idea?

Thanks!
[T-Mobile LG G5 Guides, News, & Discussion] goran_oh:
Thank you!
[T-Mobile LG G5 Guides, News, & Discussion] awais52:
This is how I installed on h830

Downgraded 20i to 20a using LGUP and uppercut and flashing 20a kdz using upgrade option. Refurbish does not work,

I used autorecovery which failed. TWRP version 3.0.2-1 finally worked
[T-Mobile LG G5 Guides, News, & Discussion] musamaashraf:
It is saying files missing in Exploit directory now what to do .. ?

---------- Post added at 04:09 PM ---------- Previous post was at 04:02 PM ----------

I have checked the script there are no files missing.. all the files written in script are in the folder.. Now what to do .. ?
[T-Mobile LG G5 Guides, News, & Discussion] musamaashraf:
not working keep saying recovery is already modified while i have a stock recovery :(

---------- Post added at 10:56 PM ---------- Previous post was at 10:35 PM ----------

Error 1: Operation not permitted

Creating backup of recovery at /sdcard/stock_recovery.img... FAILED!

Boot and/or recovery partition already modified. Refusing to continue for safety.

If you insist, you can run the script again with integrity checking disabled... but just don't.

SOMETHING WENT WRONG! EXITING.

- - - Flashing no-verity-opt-encrypt - - -

Using D:\EasyRecowvery-1.3b3\zips\no-verity-opt-encrypt.zip

Press any key to continue . . .

Rebooting to recovery to flash no-verity-opt-encrypt.

If necessary, please exit the decryption screen when TWRP finishes booting, then continue.

after this it start reboot to stock recovery nothing else :(
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
If you're using Recowvery G5 modified then there is no need to disable integrity check, but as situation states, it's seems like integrity check is enabled, so you need to disable it.

Follow step 3 to disable it (You need to disable it everytime tool is started or use Recowvery G5 modifed and there won't be need to do that). Tell me what comes after that
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
Make sure your antivirus is disabled (because they detect and delete exploit files). If it still says so then download recowvery G5 modified (again, if you already got it) and do process with other PC.
[T-Mobile LG G5 Guides, News, & Discussion] musamaashraf:
Got it fixed.

Just followed this thread until step 5 after that i got the error

I copied the twrp recovery to sdcard and rename it to twrp.img then

So i got it fixed by disabling verity check and then using 5) -> 1)

and then ran the following comands

run-as exec dd if=/sdcard/twrp.img of=/dev/block/bootdevice/by-name/recovery

"<wait for it to complete>"

$ reboot recovery

after that i was in twrp and then followed the rest of the steps and just flashed the Fulmics Rom :)

Thanks for the thread.

And special thanks to GioAlvarez777

From his thread i Got this idea :)

The link to his thread : Root & Install TWRP H830 (20A) (Nougat) LG G5. Hard Recowvery Method

---------- Post added at 04:46 PM ---------- Previous post was at 04:42 PM ----------

This was the error because i was starting the easyrecowvery.cmd with administrator rights.

This error got fixed just by simply opening the script.

Thanks

---------- Post added at 04:48 PM ---------- Previous post was at 04:46 PM ----------

This also didn't worked what worked for me i have commented it above.
[T-Mobile LG G5 Guides, News, & Discussion] Tap_818:
Following this guide but at step 5 my phone boots into Fastboot mode instead of twrp. I've tried using 2 different recent versions of twrp and naming them recovery.img but its not working. Anyone know what the problem might be?
[T-Mobile LG G5 Guides, News, & Discussion] teknokill:
Lost Sim Lock

Lost SIM Unlock, now locked.

I followed the TWRP instructions and was able to root the phone, but now my SiM is locked. Does anybody know how to get my sim unlocked?

It was unlocked when I originally purchased it from BuySpree on Ebay, but after installing the the I version it is now locked.

---------- Post added at 03:23 AM ---------- Previous post was at 03:20 AM ----------

I ran into the same thing you did. Once I had TWRP installed. I manually flashed Rom and SuperUser. Unfortunately, my sim card is now locked with T-Mobile and I need to get it unlocked in order to use it on AT&T.
[T-Mobile LG G5 Guides, News, & Discussion] eremeya:
There was/is a seller on eBay selling hacked G5s that had a temporary sim unlock. Many seem to have been relocked when upgrading the software/firmware on the phones.
[T-Mobile LG G5 Guides, News, & Discussion] cheeze.keyk:
[MENTION=5594713]dksoni411[/MENTION]

Hi. I followed your instruction at first but I get stuck in flashing no-opt-encrypt, the phone boots to TWRP but it doesn't flash the encrypt file, what did I miss? It continues only after I reboot the device and that's the time also the autorecowvery flash the no-opt-encrypt but by the time its going to flash I lost the twrp.

---------- Post added at 02:43 PM ---------- Previous post was at 02:24 PM ----------

I have this same issue also. It doesn't flash the no-verity-opt-encrypt zip file. :confused:
[T-Mobile LG G5 Guides, News, & Discussion] musamaashraf:
When Your device boot to TWRP , connect it to Laptop and copy paste the no-verity-opt-encrypt.zip file to internal or external storage then install it manually. I also flashed it manually :)
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
As above post says you can copy the file to external storage and then flash it using TWRP.

In other case you can try disabling then enabling MTP and I think this will solve the problem. This is usually caused when you're using a TWRP version above 3.0.2 (In my experience). You can also try using TWRP 3.0.2 during rooting process after everything is done you update to latest version after that.

Tell me if any works for you.
[T-Mobile LG G5 Guides, News, & Discussion] cheeze.keyk:
I already achieved root and permanent TWRP after few tries. plug and unplug. I successfully flashed also SuperSU after wiping data. Im using Fulmics now. ?
[T-Mobile LG G5 Guides, News, & Discussion] FranziskaH:
There was a problem with the external SD card. When trying to flash TWRP, Autorecowvery always broke with a message that the file was not found. I have however reminded that with my Samsung always an internal SD card was displayed. So I installed the Total Commander for Android and searched in the directory tree for the SD card. There was actually an internal SD card. There I copied TWRP. Then the installation has worked! TWRP works.

(Originally H83020i_un, flashed to H83020a with LGUP and Uppercut.)

Thank you, dksoni411! Your tutorial and work was very useful to me!

Things have gotten worse. Now I have a brick. After problems with magisk and xposed framework, I have flashed Filmics 4.5. But it was only an update, not a new installation. It was much better: Full root access, Magisk and Xposed Framework worked normally. But I had the network lock of T-Mobile. Then I deleted the data partition, Cache and Dalvic and started again. At startup, the ROM said a factory reset is required. I tried that. Since then, it has been booting only in TWRP. All things already deleted, partitioned, Fulmics, then the old backup, later via adb sideload LineageOS installed, the terminal dd ... method tried. The device always boots only in TWRP. If I want to boot into the system, it always comes only to TWRP.
[T-Mobile LG G5 Guides, News, & Discussion] Number Two:
Hello all,

I'd like to first say thank you for this guide. I'm able to achieve Stock with TWRP + root. However, I find that after I flash a new ROM (factory reset only), my MAC address disappears completely, leaving me unable to connect to networks. There are fixes here, but they only maintain until the next flash. Stock w/ TWRP + root has MAC address, and no wifi problems.

Has anyone else encountered this?
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
Sorry for late reply, just saw your comment, due to some work stuff. Anyways, have you read FAQ section. In FAQ section, there is given a link to thread for bringing g5 back to stock (when lgup won't recognize device). In FAQ, see 4th question and FAQ is in 3rd post.
[T-Mobile LG G5 Guides, News, & Discussion] FranziskaH:
[MENTION=5594713]dksoni411[/MENTION]

Thank you for your answer. I tried it once after the back to live description. However, I could not uninstall all drivers before, because I'm not alone on this computer. Probably I have not set the correct driver on COM 41. Since then, I want to try it on another computer exactly as described, but I still have some preparations to make. I will post the result.
[T-Mobile LG G5 Guides, News, & Discussion] cheeze.keyk:
[MENTION=8023281]FranziskaH[/MENTION] you should follow those tutorial on FAQ Section. It works for me when i bricked my device when I was trying to revert to stock rom. :good:
[T-Mobile LG G5 Guides, News, & Discussion] Jolt151:
Thanks for this guide. Originally I tried to flash a rooted TOT file, which errored out and bricked my phone. After seeing this, i restored it with the 20a file and ran the program. The phone rebooted automatically, so I booted into TWRP and mounted my phone and transferred the no-opt-verity by USB and flashed it. From there I flashed Resurrection Remix, Gapps, and Magisk. Everything is working great!
[T-Mobile LG G5 Guides, News, & Discussion] ymmp:
After typing fastboot oem unlock, it's stuck on < waiting for any device >

What do I do now?

Edit: Restarted ADB and did Reboot Command

Will try again
[T-Mobile LG G5 Guides, News, & Discussion] ymmp:
I made it! Thanks to the OP for the Guide and ongoing support. It really is pretty straightforward, but there's always something that could mess it up. In my particular case, it was having trouble recognizing my phone every time it reconnected.

As a side note, LG Backup works quite well.

I think I would like to go up to L using LG UP and Autoprimes's repository.

Can I go straight to it or do I have to go through the other updates (C, F etc) first?

Will I need to Root again?
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
If you want to install newer firmware with roooted android, then you should read FAQ section first.
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
Have you installed driver for LG G5
[T-Mobile LG G5 Guides, News, & Discussion] ymmp:
Which Rom is Resurrection Remix? Is it Nougat? Can you direct me to more info on Magisk? Is it an alternative to SU?
[T-Mobile LG G5 Guides, News, & Discussion] ymmp:
Everything is working great, have root. The one thing I never did was format data in TWRP, if I boot into TWRP and format data will I lose root? (I want to install custom Rom)
[T-Mobile LG G5 Guides, News, & Discussion] Jolt151:
Yes, it's on nougat. And magisk is a systemless alternative to SuperSU that lets you install modules and bypass safetynet. Google them up.
[T-Mobile LG G5 Guides, News, & Discussion] gopinator:
This method worked for me I was able to roll back, unfortunately I had to go back to stock in order to unlock the sim (T Mobile). But will go back to V20a when I do that so I can flash a custom rom. Thank you for the images in your post they helped a lot!

Btw is this the only method to flashing TWRP? How come you can't flash it like you would flash a Nexus device with the "fastboot flash recovery twrp-3.1.x.x-xxx.img" command?
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
You can't flash using fastboot flash commands on H830 because they are disabled by T-Mobile (on unlockable H850 they do work). That's the reason. There is also a tot method too which is quite dificult and annoying.
[T-Mobile LG G5 Guides, News, & Discussion] KKatMe:
I get to the point "Selinus is ours! Rebooting" and I am stuck there. Phone at that point has rebooted normally.
[T-Mobile LG G5 Guides, News, & Discussion] dksoni411:
Does this shows blank screen after reboot with any mark on screen.