yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G4] brossovitch:
I don't know who to tell about this issue.

I was in TWRP 3.0.2-0 on my G4 (h811) and i attempted to transfer a small 16mb file from my internal storage to my SD card.

I had gotten a message that said it failed and upon rebooting the device my entire 128gb card was wiped!

I lost my backups and all my Media (approximately 56gb)!

I replaced everything, but this could be an issue. I had also just wiped my system so I couldn't reinstall my ROM until getting to a PC first..

I have no logs..

-LG-H811 via XDA-Premium on CM13
[T-Mobile LG G4] shneor:
Me too. It should be possible to flash TWRP without root on the device, via adb. Flashify onl;y works if yu are already rooted.

Shneor

By the way, the link for "new method to root lg devices" is blocked by Malwarebytes as a malicious site.
[T-Mobile LG G4] raptorddd:
where can i get latest stable version.?
[T-Mobile LG G4] dtomlin:
https://dl.twrp.me/h811/
[T-Mobile LG G4] raptorddd:
thanks :good:
[T-Mobile LG G4] mikailmohammed:
People of this thread. I have now gotten this phone and want to know if i can use the 1 click root methods to root this phone and then install the twrp?
[T-Mobile LG G4] metropical:
depends on your OEM version. I think there is a 1 click for 20i, but not for 20o.

here are 2 links to read.

http://xdaforums.com/tmobile-g4/development/rom-mm-lg-g4-h811-20o-stock-debloated-t3412394

http://xdaforums.com/tmobile-g4/development/stock-h811-20i-images-kdz-flashable-t3308227
[T-Mobile LG G4] metropical:
since the dating of the TWRP b.u. is wrong, is there anyway to check the actual date or Firmware version of the b.u.?
[T-Mobile LG G4] metropical:
when I try to copy my TWRP b.u. to my computer, it fails to copy boot.emmc.win and stops.

ideas?
[T-Mobile LG G4] metropical:
Troubleshooting:

If TWRP isn't recognizing your b.u., write a new back-up. This creates the path TWRP wants to see. Copy your old b.u. into the new folder:

TWRP/BACKUPS/LGH811#########/2016-10-23--15-58-36_MRA58K

Rename the old b.u. the same as the new b.u. and toss the new one.

Reboot Recovery and you now should now able to to restore from the old b.u.
[T-Mobile LG G4] HavocX:
About the installation method.

Will the installation method work for all MM versions? I have the H81120p

Also, I have the latest twrp, will it stick and I would be able to install CM?

Tnx!
[T-Mobile LG G4] brossovitch:
From your pc while in fastboot with bootloader unlocked

fastboot boot twrp.img

After if boots TWRP install the twrp img from your sd card. Done. Reboot recovery and now its permanent
[T-Mobile LG G4] seanpr123:
I have a strange TWRP 3.0.2.0 issue.

Installed a ROM that came with SuperSU. I ran the full unroot from there but Safety Net still was failing, so I looked under my internal storage and I see a folder /supersu. On other devices I can delete stuff right through TRWP file manager, and here it looks like it completes but if I even just reboot back into recovery the folder and files appear again. I've selected mount system, and even tried delete the folder from the terminal but it always comes back. Or more likely it never actually goes away.

Any thoughts?
[T-Mobile LG G4] Exabyter:
After installing TWRP on my G4, I tried this.

It factory reset my device. :eek:
[T-Mobile LG G4] BIG_BADASS:
Can you use the same files and procedure for H815?

---------- Post added at 08:21 AM ---------- Previous post was at 08:19 AM ----------

So there is a difference between the H811 and H815 ?
[T-Mobile LG G4] steadfasterX:
This thread is outdated and superseeded by the official one https://xdaforums.com/g4/development/recovery-twrp-3-touch-recovery-t3442424

Consider to check http://twrp.me first when installing TWRP. Only those are official supported and you will also find the support thread linked there as well.

.
[T-Mobile LG G4] sulphar:
Error

It gives the error of 'No such file or directory' , Please help me out . I searched a lot on internet how to install recovery on LG G4 H811 but i got no success in installing twrp recovery in my LG G4.
[T-Mobile LG G4] steadfasterX:
This thread is

outdated

and superseeded by the official one https://xdaforums.com/g4/development/recovery-twrp-3-touch-recovery-t3442424

Consider to check http://twrp.me first before installing TWRP and when you have questions.

Open http://twrp.me

Search for your device (e.g. H811)

Find the official support thread and supported installation instructions.
[T-Mobile LG G4] lopezs8:
Sure
[T-Mobile LG G4] MicroMod777:
Thanks so much Unjustified Dev for posting this so quickly. Will try this tonight. I knew the h811 just needed root to get this flashed.
[T-Mobile LG G4] partylikeaninjastar:
Today is the greatest day for the G4.
[T-Mobile LG G4] bendsley:
Agreed, flashify is the easiest right now to install TWRP.

Edit spelling
[T-Mobile LG G4] lancemoreland:
When I start a backup I get an error even though the backup seems to run fine.

E:Find_File: Error opening '/sys/class/backlight'

Is anyone else seeing this?
[T-Mobile LG G4] MrSteelX:
I get the same error too.
[T-Mobile LG G4] smw6180:
Ignore it. I had it too when I was testing for UD. No ill effects.
[T-Mobile LG G4] lancemoreland:
Okay thanks. I also notice that the time is incorrect and am unable to correct with time zones.
[T-Mobile LG G4] smw6180:
Not having that problem myself.
[T-Mobile LG G4] aaronrw:
Ok please to clarify again. Once I select oem unlock in dev settings do I need to perform anything else for unlocked boot loader?

Also congrats to the OP first Thread in T-Mobile forums I believe?
[T-Mobile LG G4] lancemoreland:
TWRP shows the time 3 hours and 32 minutes fast. Strange. Just reflashed it and let it make it's change's to the bootloader this time and no change.
[T-Mobile LG G4] donnybright:
nope i just checked the box and then flashed it with flashify
[T-Mobile LG G4] ceroglu:
I am stuck on recovery mode. How do I get out of it?
[T-Mobile LG G4] Slicktune:
Does anyone know what in the world does this mean? Ive rooted samsung and htc phones...but ive never seen this before while trying to flash TWRP...can anyonr help me...? Thanks in advance... I mean i think i kind of understand...if i write to partition... Is it permanent? Meaning i can never unroot?? Thanks again
[T-Mobile LG G4] ceroglu:
Anyone?

I flashed with flashify and then backed up the system. I click on reboot and tried every option and it goes back to TWRP instead of Android OS.

Please help.
[T-Mobile LG G4] Snakecharmed:
From the 2.8.7.0 changelog in the OP of this thread:

It's a new TWRP feature. I allowed the system partition to be modified by TWRP. While autoprime posted instructions on how to prevent the G4 from accepting OTAs, I see enabling this TWRP feature as an extra measure to ensure that the phone cannot take an OTA that could in theory wipe out root or TWRP or brick it. If you allow TWRP to write to system, then a future OTA (assuming that you still haven't disabled the apps that auto-download them) will not install when it sees that the system partition has been modified by a third-party.

I know I'll never go back to stock, so swipe to allow modifications. No turning back for me.
[T-Mobile LG G4] lancemoreland:
Did you try a battery pull?
[T-Mobile LG G4] ceroglu:
Yep. Also restored the system. No matter what I do, it goes back to the TWRP.
[T-Mobile LG G4] lancemoreland:
If it were me, I would try to get into download mode and reflash codefires root.
[T-Mobile LG G4] ceroglu:
Tried and doesn't work.

I noticed when I do restore or back up I get E:Find_File Error opening ;/sys/class/backlight' error.

Update: I was able to flash the factory image successfully. I think somehow my TWRP flash went wrong. Anyone who gets in a bootloop of TWRP, try reflashing the the factory image from the main LG G4 thread.
[T-Mobile LG G4] Wrightperspective:
When booting into recovery mode, do I choose Yes under Factory data reset screen and then again on next screen or should it go to TWRP after making selection on first screen?
[T-Mobile LG G4] partylikeaninjastar:
Correct.

Or you could download an app like Quick Boot to boot directly into recovery.
[T-Mobile LG G4] aaronrw:
Was using flashify the culprit?
[T-Mobile LG G4] KiaAfzali:
Does anyone have a mirror link? I can't download.
[T-Mobile LG G4] lancemoreland:
hmmm. There is a load of mirrors to choose from on the download site. I just tested and it downloads fine.
[T-Mobile LG G4] KiaAfzali:
Can you give me some of them please?

I cannot connect to https://www.androidfilehost.com/?fid=24052804347780758
[T-Mobile LG G4] lancemoreland:
PM sent
[T-Mobile LG G4] KiaAfzali:
Thank you very much!
[T-Mobile LG G4] zPacKRat:
I got this during the initial backup, everything except cache.
[T-Mobile LG G4] KiaAfzali:
I am having this problem right now. I don't have a micro sd card right now and I have no flashable roms on my phone's internal storage. Does that mean I am stuck?
[T-Mobile LG G4] lancemoreland:
Does TWRP show the correct time for you?
[T-Mobile LG G4] Omegaclawe:
I get the same error, but it hasn't stopped anything. I just assumed it was due to CF.Lumen and the whole new driver install thing.
[T-Mobile LG G4] KiaAfzali:
Did you figure out a way around it?
[T-Mobile LG G4] lancemoreland:
There is also a time bug in this version. Time is wrong and my backups have a Feb 15th time stamp.
[T-Mobile LG G4] 888Plugin8.com:
I've download the .img file and flashed it via flashify, but it won't let me boot into recovery. Phone turns off like it's going to go into recovery, but then it just turns back on to home screen. Can someone let me know what I'm doing wrong

Edit: Sorry read the 1st page to get the problem fixed. Forgot to enable OEM unlock in developer options. [emoji3]
[T-Mobile LG G4] MicroMod777:
Try using quickboot to reboot into recovery. Works for me.
[T-Mobile LG G4] willjohnson:
Quote:

Originally Posted by 888Plugin8.com

I've download the .img file and flashed it via flashify, but it won't let me boot into recovery. Phone turns off like it's going to go into recovery, but then it just turns back on to home screen. Can someone let me know what I'm doing wrong

Try using quickboot to reboot into recovery. Works for me.

I use 3C Tuner app (Android Tuner was the old name) reboot options to boot into recovery. If you have never heard of or used that app it really is good. Its got pretty much everything a root user needs including a app backup that works as good as TIBU and in some ways i like better than TIBU. It also has battery calibration, CPU controls and profiler, etc... The free version is worth a try at least.
[T-Mobile LG G4] TecknoFreak:
The twrp app from play store works like a champ too
[T-Mobile LG G4] DeMiNe0:
When I try to OEM Unlock from the developer menu, I get a popup asking me to input a Pin. Where can I get this pin?
[T-Mobile LG G4] truckerdewd:
Do you have a pin set to unlock your phone? If so that may be what it's asking for. Mine did not ask for a pin when I did the OEM unlock.
[T-Mobile LG G4] thenewbigmack:
Noob question here.... never used flashify before, can I just "dd" it the same way I rooted the phone using the send command? Thanks in advanced!
[T-Mobile LG G4] FriGiN:
OK i think i'm screwed. someone correct me if im wrong.

Got a bootloader loop. tried a wipe including of my internal storage basically everything but my sd card. still looped.

so i'm not sure how i will be able to redo the flash of the root....
[T-Mobile LG G4] jaron7_11:
Quick Q... so would freezing the tmobile unlock app that somes on the phone have any affect?
[T-Mobile LG G4] DeMiNe0:
I'm a deeeeeeerrrrrppppppp. Yup. It was my lock pin.
[T-Mobile LG G4] truckerdewd:
Kewl. Glad to be of help.
[T-Mobile LG G4] lancemoreland:
Nevermind
[T-Mobile LG G4] Negan:
Ok so I'm confused how this is even possible to work cause from what i read here the bootloader technically isn't unlocked? Just enabling oem unlock in dev options made this work??? So my next question is if that's the case then would there be any reason that other variants that have the oem unlock option in developer options couldn't flash twrp as well once rooted?
[T-Mobile LG G4] DsturbD:
No the tmobile bootloader turned out to be different and is unlocked. That is why its important to not take any ota updates on the 811
[T-Mobile LG G4] CorruptionDee:
Maybe I'm doing something wrong, but I rooted, downloaded the TWRP img, enabled OEM unlock, and flashed with Flashify, and still nothing. When my phone reboots, it shows the tiny fastboot menu. I blocked the com. Tmobile. Pr. Adapt from having root access if that makes a difference. I'm stumped.
[T-Mobile LG G4] MicroMod777:
Use quickboot from play store.
[T-Mobile LG G4] CorruptionDee:
This is the problem I'm having. It appears that TWRP isn't flashing for me.
[T-Mobile LG G4] truckerdewd:
Can I ask the obvious? Did you go into developer settings and do the OEM unlock? Double check to make sure. I accidentally unlocked and relocked it the first time I tried. The other option is to download the TWRP .img again as you might have gotten a bad download
[T-Mobile LG G4] CorruptionDee:
Thanks. I did definitely unlock the bootloader. For some reason nothing was working, so I went to my computer and downloaded the TWRP img again, dropped it in my phones root directory, and tried again. Voila, it worked.

Thanks to these devs, we now have root and a custom recovery. I couldn't be happier. I can't wait to try all the upcoming tweaks for the camera and eventually get Xposed Framework up and running.
[T-Mobile LG G4] truckerdewd:
Kewl deal. Glad you got it working.
[T-Mobile LG G4] KiaAfzali:
Ok so I flashed this 2 times, and both times I got into a twrp bootloop. The first time I did it via flashify, and I had to restore my phone with LG Flashtool. Second time I did it with terminal, now I am stuck in this bootloop again. Is there any way to get out of TWRP? Or do I have to use LG Flashtool and go back to stock again? :(
[T-Mobile LG G4] tkdsl:
how did you use the TWRP manager app to install the recover, I cannot find the g4 in the list.

thank you
[T-Mobile LG G4] truckerdewd:
I think he means that it works as far as rebooting the phone into recovery
[T-Mobile LG G4] Bill Gamble:
Just performed my first backup...is this error message anything to worry about?
[T-Mobile LG G4] TecknoFreak:
Well I was quoting someone about the rebooting options that the twrp manager have these options.
[T-Mobile LG G4] davy917:
Thanks for this! Working great
[T-Mobile LG G4] Snakecharmed:
No. Many (if not all) of us have gotten that message. Doesn't appear to affect anything.
[T-Mobile LG G4] brusslesprouts:
is there a reason after installing my phone only boots into twrp?

---------- Post added at 08:25 PM ---------- Previous post was at 08:24 PM ----------

is it in the main g4 forum or the tmobile g4 forum i cant seem to find it. im having the same issue
[T-Mobile LG G4] joshualuna:
how do I root this damn thing
[T-Mobile LG G4] dgjenkins:
http://xdaforums.com/showthread.php?t=3164765

Link dumps you on the middle of the thread, but you get the idea....
[T-Mobile LG G4] TriBeard:
So do we even need root to flash twrp? It sort of sounds like we can just flash the recovery after checking "oem unlock" and then flash a rooted rom and be g2g with the tmobile version.
[T-Mobile LG G4] bikrame:
Flashify dont have TMo variant !! Does it ?
[T-Mobile LG G4] MicroMod777:
Would u guys like a "One click TWRP" from a Windows computer?
[T-Mobile LG G4] aaronrw:
Well hell yes sir!
[T-Mobile LG G4] MicroMod777:
When I get a chance I'll make one then. Spend all dang day upgrading my pc n laptop to Windows 10. Had to do clean clean install to Win 7 to get Win 10 free. Done being in front on the pc for today.
[T-Mobile LG G4] aaronrw:
I hear the Windows update is well worth the trouble however
[T-Mobile LG G4] MicroMod777:
Well so far its way better than horrible Windows 8. I stayed on Win 7 all these years.
[T-Mobile LG G4] Swizzle82:
My theory is yes, but don't think anyone has tried.
[T-Mobile LG G4] MicroMod777:
Yes and no. As it currently stands we need root for flashify or run the adb dd commands to flash twrp.

Possibly if we can figure out the correct dd commands in download mode to flash twrp to recovery it could be done without root.

I think we just need the correct #'s for bs, seek, and count for a recovery flash.

Below is for h811 system.img flash.

dd if=/data/media/0/system.rooted.H81110h.img bs=8192 seek=65536 count=548352 of=/dev/block/mmcblk0

I believe somebody posted on the root thread the formula to figure this out.

---------- Post added at 08:23 PM ---------- Previous post was at 08:07 PM ----------

This thread gives the formula. We need the h811 block numbers. Somebody want to figure this out?

http://xdaforums.com/showpost.php?p=62119795&postcount=1293
[T-Mobile LG G4] 2nd Sky:
[MENTION=2522637]MicroMod777[/MENTION] i hope u have answer for me:

Your TMO is not Locked by bl as INT G4 right?

so u only have to root and tick oem unlock then u can flash twrp. OK checked ;)

But when u now flash KDZ, what is with BL? is your phone in same situation as u bought it? (oem unlock NOT ticked and BL as u bought phone)

Thx for answer! :)
[T-Mobile LG G4] MicroMod777:
Kdz restores to factory state.
[T-Mobile LG G4] funkbuqet:
Thanks Unjustified Dev! Got this installed with no issues.

I am super glad I switched to T-Mobile when I got my G4 now. ;)
[T-Mobile LG G4] 2nd Sky:
Thank u very much!!

And what about drm? On Int we will lose some drm. Do u know anything about it on ur tmo? (yeah noob question but such question need an answer to come forward in unlocking procedd of other phones i hope...)
[T-Mobile LG G4] aaronrw:
I see this isn't as cut and dry to implement. Thanks for your diligence you seem pretty busy in the forums lol
[T-Mobile LG G4] MicroMod777:
Don't notice anything not working.

Thanks
[T-Mobile LG G4] MicroMod777:
Ok, I found a new method to unlock the H811 with just the twrp.img in download mode. Just doing some final testing, then I'll try make it a one click method. This way, in the future, people don't have to download a 1.5gb system.img with root, then has to still flash twrp. :D
[T-Mobile LG G4] aaronrw:
You just made me a very happy camper

In theory flash twrp then root.zip maybe?
[T-Mobile LG G4] MicroMod777:
Extactly, but for some reason I can't get the traditional one click method script for LG won't work on the G4. I get as far as download mode, but I can't get the commands to run to flash twrp. I'll still searching for way.
[T-Mobile LG G4] aaronrw:
Would the method to root and unlock from the international version thread be of use?
[T-Mobile LG G4] MicroMod777:
No, as its an auto script to flash twrp. I gave up for now.
[T-Mobile LG G4] blackknightavalon:
I used the dd method to flash this thing and everything's working fine.

Sent from my toaster
[T-Mobile LG G4] mawells787:
Hi, sorry for the noob question, but I'm new to LG. I'm getting my G4 tomorrow and doing some research. I just can't seem to figure out why after oem unlocking bootloader, we can't just fastboot flash recovery.img? What exactly are the block #s you are referencing in that thread?

Since we have the full stock rom and can restore from a soft brick, what is the worst that will happen if I oem unlock and then fastboot flash recovery? I know its not a Nexus, but it seems pretty straight forward.
[T-Mobile LG G4] MicroMod777:
We are already security disabled, which IMO is almost as good as OEM unlocked. But only H815 EU can do that.
[T-Mobile LG G4] Biker1:
Excellent!

Used Flashify, and TWRP installed without any issues.

Thank you :good:
[T-Mobile LG G4] dontbeweakvato:
When restoring a backup last weekend through twrp i got this -

E:createTarFork() process ended with ERROR=255

And this was after i wiped.

What was preventing the restore?
[T-Mobile LG G4] Rydah:
Any news on the time bug?

Sent From My LG G4
[T-Mobile LG G4] Biker1:
I found this answer from a couple of years ago. About a known issue in the recovery script. I'm not sure if this is accurate, but you can have a look:

http://androidforums.com/threads/verizon-wrong-time-on-twrp.689116/
[T-Mobile LG G4] scottspa74:
I'm more interested in this guys question. No info,?
[T-Mobile LG G4] lancemoreland:
I recently chatted with the guys at TWRP about this. They told me that Qualcom devices handle time differently and that they might fix it if they ever got a device but it was not a priority and not to count on it, They did tell me to contact the developer (the OP in this case) to see if he could fix it since they assumed that he had an LG G4. Unfortunately, he does not. In order to fix this bug we need a developer with an LG G4 to tackle this issue. They also told me that they could make the fixed version an official version. Right now there is no official version for the T-Mobile G4.
[T-Mobile LG G4] techboydino:
FIXED: Used manual method on OneClick post. Worked great, ADB Reboot Recovery took me right in. thanks.

TWRP install issue.

Still running H81110h and tried to flash TWRP via Flashify. Once rebooted I get "no command" screen with small Android robot logo. Verified MD5, that bootloader unlock was enabled, and that Flashify had root access. Any ideas? Thanks.
[T-Mobile LG G4] jagman96:
I have my TWRP backups saved to my ext sd card. I just tried to restore a nandroid backup but TWRP won't do it saying the system file is read only. How do I change the permission?

Edit: question moved to Q&A thread.
[T-Mobile LG G4] dontbeweakvato:
http://xdaforums.com/showpost.php?p=62699507&postcount=413 look at this [MENTION=4801340]jagman96[/MENTION]
[T-Mobile LG G4] bikrame:
I do have flashify but it doesnt show our phone option.
[T-Mobile LG G4] Bill Gamble:
That's ok, you won't be downloading it from there, you'll be using Flashify to apply the zip in the op.
[T-Mobile LG G4] xShadoWxDrifTx:
Hello, I tried using flashify to install the downloaded recovery img file and I think I may have soft bricked my phone. I accidentally (and stupidly) decided to flash boot.img with the recovery file and now it's stuck in a boot loop on the LG Logo with an error that says "Secure Boot error" Error 1003.

I don't know how to get into fastboot, I tried holding power + vol up but I can't get into fastboot for my device to be recognized.

Any advice? Thanks!
[T-Mobile LG G4] me myself and i:
flash kdz...
[T-Mobile LG G4] xShadoWxDrifTx:
Okay I think I found the thread.

http://xdaforums.com/g4/general/guide-lg-g4-stock-firmware-to-stock-kdz-t3107848

I'll try it out tonight, thanks!
[T-Mobile LG G4] sashokmc:
Hi! I Installed new twrp 2.8.7.1, he asked me, allow modification, what this?
[T-Mobile LG G4] Bill Gamble:
Where did you find 2.8.7.1 for the H811? It doesn't seem to be in this thread.
[T-Mobile LG G4] Unjustified Dev:
There isn't one not to my knowledge. I'm preparing to compile a new version now.
[T-Mobile LG G4] Unjustified Dev:
Alright, I have uploaded a new image which needs testing.

Download: https://www.androidfilehost.com/?fid=24052804347821086

Change log

* Fixed block size (should fix backup/restore issue)

* Fixed brightness warning

* Update kernel to h811 10N

NOTE: There is no official 2.8.7.1 , I bumped the version number myself due to changes made to device tree.
[T-Mobile LG G4] cajunflavoredbob:
Took a full backup and flashed a zip successfully. Seems ok to me.
[T-Mobile LG G4] Biker1:
Flashify'd TWRP 2.8.7.1 and made a nandroid without issue.
[T-Mobile LG G4] MicroMod777:
Sweet boss!!! I put it in a flashable zip for those who want to easily update. Put on OP if you want.

twrp-2.8.7.1-h811-FLASH.zip

https://www.androidfilehost.com/?fid=24052804347821710
[T-Mobile LG G4] hauhauhau7:
Hello, sorry if it is a stupid question, i have the H815 international version and in the Developer options i have the "Enable OEM unlock" option, is this the same thing as unlocking the bootloader via the official LG unlock tool? i know that it will void my warranty if i unlock it via LG unlock tool, i want to know if i can restore the phone exactly how it came the first time i opened the box. I know that this is the T-Mobile thread and there is another thread with TWRP recovery for the H815, but i thought to ask here too.

Thank you.
[T-Mobile LG G4] cajunflavoredbob:
No. This does not unlock your bootloader on the H815 model.