yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G4] ckloiber:
My findings...

I think it's the selinux getting in the way. dd (and all the other toolbox commands) are not working, and they are set to: u:object_r:system_file:s0 according to the id command, root is: u:r:recovery:s0

I also can't locate/access the "setenforce" command to set it to "Permissive". sigh...

Do I understand correctly that you can't (successfully) KDZ flash back to 10h?

UPDATE2: I went the rootedsystem.img route, and dd worked for that. Could there be selinux controls of the partitions themselves?
[T-Mobile LG G4] sumasage:
Just wanted to add confirmation to this method does not work with preloaded 10N G4. I just got a replacement unit that came with 10N software. Thank for your hard work.
[T-Mobile LG G4] juanshop:
i got my g4 yesterday and the first thing i did was root it, and worked like a charm!!! thank you very much. but my phone does seem to have the touch problem, so, how can i go back to stock rom and recovery in case i decide to return the phone friday?

thank you!
[T-Mobile LG G4] bigz1981:
tried this on H811 G4 on 10N (I had flashed back to stock 10N using your other post to send my phone back to LG), but it's not working. It goes through the reboots, then goes into download mode, I let it set for a few mins, then unplugged & popped battery, but I still have stock restore. What could be the issue?

EDIT:

Changed this edit...I was able to get cmd on Win10, but manual mode still didn't work.

juanshop:

LG fixed my phone by replacing the touch chipset. I don't think they even looked at my phone. I got my phone back less than a week after sending it in. Here's the thread for the method I used to go back to stock on 10N:

http://xdaforums.com/tmobile-g4/development/rom-g4-h811-10n-stock-restore-t3191756
[T-Mobile LG G4] juanshop:
Thanks for the link! I think after flashing a rom and maybe the phone has settled? The phone feels better. Going to give it some extra time, but so far so good. Just missing the community the htc m8 has. So little stuff for the g4 lol
[T-Mobile LG G4] optimatic:
Am getting error in both Win 8.1 Pro and Win 7 Pro (Tried both just to make sure). Says Send_Command.exe "The Application was unable to start correctly (0xc000007b). Click Ok to close application. This happens after phone reboots the 1st time, then tries to push files. DOS window reads "Checking for LG serial port..", "Phone found at COM4!" (COM3 on the Win8.1 Pro box)... and "Rebooting into download mode.."

At which the phone does not actually reboot, and when I do the battery pull, then re-insert and re-plug USB and Hold Vol-Down+Power(Short release of power button on logo splash) It gives me the LG stock menu to wipe, I did so, and it just wiped and reloaded everything normally, no root.

What am I missing, where did I go wrong? So frustrating.
[T-Mobile LG G4] cameljockey1:
Step 7: WARNING, IF YOU GET THIS PART WRONG OR DON'T USE H811 YOU CAN BRICK!

*****Type Flash command only for H811:

dd if=/data/media/0/recovery.img bs=8192 seek=35840 count=5120 of=/dev/block/mmcblk0

I am not understanding this part. how do i flash it? I am typing "Flash command dd if=/data/media/0/recovery.img bs=8192 seek=35840 count=5120 of=/dev/block/mmcblk0" what am i doing wrong?
[T-Mobile LG G4] MicroMod777:
Did you try Steps 1-8? ... and if your on 10N software it won't work.
[T-Mobile LG G4] bigz1981:
And I'm on 10N...Well, now I know why I can't get it to work. I figured that might have been the reason it wouldn't work for me.

Cameljockey the flash command is to be typed into the command prompt starting from dd...do not type flash command before it.
[T-Mobile LG G4] MicroMod777:
Use the other thread for rooted system.img to flash.
[T-Mobile LG G4] BDestroyer8418:
Thanks for easy Root. Worked great had 10N phone was bought within first month. Flashed the Debloated rom as well. Now if I can get my Qi working again be great but I believe it's the phone. It stop working before I did any of this.
[T-Mobile LG G4] pmdied:
Question then; if I'm on 10n how do I root? Sorry for the newbie question..

Ive tried the steps in the OP but apparently this doesnt work with 10n or am I missing something...? Thanks in advance!
[T-Mobile LG G4] bigz1981:
This doesn't work for the 10N system. You will have to download the twrp zip from the twrp thread & flash with flashify.

10n root:

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

twrp thread:

http://xdaforums.com/showthread.php?t=3164874
[T-Mobile LG G4] vnixnj:
Sorry for the newbie question - but does this mean that as long as I'm on 10H, I can install TWRP and install a rooted ROM to achieve root?
[T-Mobile LG G4] evol4g:
its not flashing the TWRP recovery for me..
[T-Mobile LG G4] MountainX:
I don't understand this. Flashify requires root, right? (It says it is for root users only.)

I want to install TWRP so I can then obtain root access. So I don't understand how I can start with Flashify. Please explain. Thanks.
[T-Mobile LG G4] bigz1981:
This means that as long as you're on 10H, this method will work. If you updated to 10N, you will have to use the methods I outlined in my earlier post

You have to follow the instructions on the 10N thread I posted to flash the rooted 10N stock ROM on your phone. That is how you will acheive root. After that, you can use Flashify to flash the H811 TWRP zip.
[T-Mobile LG G4] MountainX:
Thanks for clarifying. BTW, I have not found a thread that gives instructions for rooting the H811 10N that will work for me. I don't have a Windows PC. That's why I was looking for other methods.
[T-Mobile LG G4] bigz1981:
Ouch...I don't know that there's another way to achieve root at this point...might have to borrow a friend's computer or use a windows simulator if you have a mac, windows tablet that has a full usb port is another option...the computer flashes the system partition, which you can't flash from the system, itself, of course...
[T-Mobile LG G4] darwinzp:
So after doing this, i sucesfully installed the rom, installed SuperSu.

Unfortunately i quit the OEM option from Developer Settings, my phone rebooted and im on a security error authentication failed #2.

Can i flash a 10h KDZ? What can i do?

---

Never mind i already did it. I haven't any problems.
[T-Mobile LG G4] Strike114:
Why did you enable that option? Nowhere in OP does it say to enable that, just usb debugging. I was able to root using this without even touching that.
[T-Mobile LG G4] Junioryoda:
never mind - just answered my own question.
[T-Mobile LG G4] tdashhoot:
got it first try. then i lost root adding what im thinking a stock marshmallow. now im stuck in smoreville. i can't factory reset i can't get this to work again nothing. i don't get it. i get the same error at top left as other dued.
[T-Mobile LG G4] christianstudebaker:
Just to clarify and my apologies if this has been addressed already, will this work on the h81120i update?
[T-Mobile LG G4] fishman0919:
No...

but, maybe look here - LINK
[T-Mobile LG G4] christianstudebaker:
My apologies. I used that method and got it too work. Thank you for the information
[T-Mobile LG G4] theuop:
upgraded to 6.0 tmobile

hello i tried it atleast 20 times wont work. i had upgraded to tmobile 6.0 rom from the phone now it really sucks... do i have to wait until a work around is offered? i have regular h811... please help.
[T-Mobile LG G4] mrewn:
same thing i was wondering if i can do this method on stock 6.0 or have to downgrade or something
[T-Mobile LG G4] jamesm113:
Thanks OP! I was able to get it to work on a preloaded 10n phone by using ftarules's instructions

Basically, swap out the recovery.img for one from the TWRP thread. I used 2.8.7.2

EDIT: add screenshots of version number & root
[T-Mobile LG G4] Villagers Odyssey:
Android M?

I was wondering, especially because I have android M now, could I still use this and what mode do I set my device in once it's connected?

My only options to select is:

Charge phone: Charge phone via USB

Media Device (MTP): Transfer images, music, videos, and documents

Send Images (PTP): Send images from phone (when MTP is unavailable)

MIDI Device: Make music with phone
[T-Mobile LG G4] Villagers Odyssey:
Just to add on to this. I do have partial root through a method i kind of halfassed put together for the h81120i. I get root permission through certain apps. Quick Boot works flawlessly, as does superupser apk, and root checker to confirm, but apps like gamecih and cheat engine are horribly broken and manually finding the process I want to cheat in cheat engine seems horribly crash my phone (black screen).

I cant get twrp to successfully flash with adb. When i enter the command it fails after it says writing 'recovery' in fastboot.

I've also tried using the "send_command" prompt but i can connect it to my device but typing 'id' or any other commands responds with "FAIL" and running cmd as admin doesnt help.

Since quick boot works i figured id try to boot to twrp from there but after reboot i get the android with a red hazard. I figured it may be like the htc where you need a certain button combination to bring up the menu but also to no avail.

Trying SU Update Fixer doesnt work either. Scripts seems to be ok as it reads but i still try to force an update and the app crashes during or just after 'remounting system as rw'.

I know i could just try booting into twrp via fastboot command on my pc using 'fastboot boot recovery.img' (recovery.img being what i renamed twrp to trying to have ease of access)

And try installing a different version or type of su binaries but maybe someone already has a fix that they could share.

Maybe a possible method to boot into twrp without my pc or maybe a possible method to rollback to android L to root.
[T-Mobile LG G4] zounduser:
Hey guys. I'm considering getting the tmobile G4. And selling my note 4. I can root yes? On lollipop.
[T-Mobile LG G4] Mohamadorabi:
Hello .. I have the canadian G4 version but i think my bootloader is unlocked since i have the unlock oem option in the developer options. I was wondering how i could install twrp and custom roms on the canadian variant as there is no guides for it yet. (I believe my bootloader is unlocked)

Any help would be greatly appreciated.
[T-Mobile LG G4] 2far:
Can I do this procedure to get twrp in 20i ??
[T-Mobile LG G4] 2far:
I am getting this symbol # as soon as I type in Send_Command.exe \\.\COM6 my actual port! I am running 20i will I be able to do this?
[T-Mobile LG G4] Waiting4MyAndroid:
Does not work on 20i. Go here,

http://xdaforums.com/showthread.php?t=3308227
[T-Mobile LG G4] 2far:
Thanks brother that worked like charm and I had to install "android drivers"! I am pretty sure everybodey is having the same relate problem when the phone boots pc adb fastboot won't pushed anything I solved the problem by installing this adb/fastboot!

http://xdaforums.com/show...8#post48915118

and installing the android drivers DRIVERS! so computer will recognize it while in bootloader! whatch this video!!

https://www.youtube.com/watch?v=nQjg6ePnGAc

---------- Post added at 10:01 PM ---------- Previous post was at 10:00 PM ----------

Any one this could help solve your problem!

by installing this adb/fastboot!

http://xdaforums.com/show...8#post48915118

and installing the "android DRIVERS!" so computer will recognize it while in bootloader! whatch this video!!

https://www.youtube.com/watch?v=nQjg6ePnGAc
[T-Mobile LG G4] SilentBangHD:
DOes this work on marshmallow?
[T-Mobile LG G4] Waiting4MyAndroid:
No. Go here

http://xdaforums.com/showthread.php?t=3308227
[T-Mobile LG G4] drtsarev:
Hi guys, will the one click method work on LG G4 H81110o (T-mobile)?

Thanks!
[T-Mobile LG G4] Ayywhy:
Work with 5.1.1?

Does this work with lg G4 h811 5.1.1?
[T-Mobile LG G4] Aemyiam:
im ON H811 10m CAN I TRY THIS METHOD ???
[T-Mobile LG G4] dxavinash:
did u try this method on 811 10m?
[T-Mobile LG G4] Aemyiam:
yes I was able to install TWRP on 10m using this method. What I did differently that I downloaded the latest h811 TWRP recovery img file and renamed it recovery.img and put in the folder for this script.Then it worked fine.I used Twrp 2.8.7.2.img
[T-Mobile LG G4] dxavinash:
I ll give a try. Did u root device as well? After that Did u update on MM? If yes which version u update.
[T-Mobile LG G4] Brandon9231:
You're better off just updating to the latest version and then following the steps to unlock the bootloader here: https://xdaforums.com/tmobile-g4/development/stock-guide-h811-20-o-bootloader-unlock-t3421589

Since you're still on stock you can take the OTA update (probably 20q) within the ROM or use LGUP to flash the latest KDZ (20r). Just flash the latest SuperSU zip once you flash TWRP for root
[T-Mobile LG G4] dxavinash:
No OTA update for h811 10m version. I already tried update manually 20i and bricked my g4.
[T-Mobile LG G4] Brandon9231:
What? You should have an update if you're on 10n....about a year's worth actually :confused:

What'd you do to brick the phone??
[T-Mobile LG G4] dxavinash:
Its not 10n its 10m thats y
[T-Mobile LG G4] Brandon9231:
Never heard about any 10m update :confused:

After a bit of research I only found 3 people who had 10m

You shouldn't have any issue upgrading with LGUP though, you just wont be able to downgrade to a firmware below 20i (or 20p....just stay within your rollback version (3) and you'll be fine to downgrade.) Mind posting a screenshot of your software info and explaining what you did to cause the hardbrick/what unlock methods you've tried?
[T-Mobile LG G4] dxavinash:
I post here my process http://xdaforums.com/tmobile-g4/help/q-how-to-upgrade-to-marshmallow-manually-t3476295/post69595138
[T-Mobile LG G4] Brandon9231:
Sorry man, no clue how to unlock your bootloader if you're on 20m

It looks like some kind of forked FrankenROM on foreign H811s. Not sure that's even an update from T-Mobile. If you bricked from using LGUP and it wasn't user error (accidentally unplug the phone, downgrade below your anti-rollbqck #) then I think you might just have some kind of knockoff H811 that'll only work on its own forked firmware and not official T-Mobile ones.

Sorry man, I'd just look through some of the other 10m threads to see if anyone actually managed to get a different firmware or flash TWRP using an already available method. :/
[T-Mobile LG G4] Aemyiam:
Yea first i made a nanroid backup then i flashed chainfire supersu zip file and rooted....no i haven't updated to MM yet cuz kdz files are huge n i have slow internet n i heard lp has better battery life
[T-Mobile LG G4] dxavinash:
How u take nandroid backup? Via twrp or any other app.
[T-Mobile LG G4] Aemyiam:
Via Twrp
[T-Mobile LG G4] dxavinash:
So is it possible to upgrade to mm
[T-Mobile LG G4] dxavinash:
i tried hand instaall twrp and got bootloop. now what to do? lguser support tool detect my lg g4 as LGVS986 and it shows "upgrade tool is preinstalled in your phone. please allow to install "Verizon wireless software update assistant when the phone is being connected to pc"
[T-Mobile LG G4] vishal91:
after reboot download mode nothing happening . please help
[T-Mobile LG G4] sridhar_kkin:
Hi,

I had H81110m Version,

is it works?
[T-Mobile LG G4] MicroMod777:
This is very old. Update to lastest OTA with LG Bridge, then follow Autoprimes thread to unlock and twrp.
[T-Mobile LG G4] sridhar_kkin:
Lg bridge is not detecting ,in spite all drivers installed. Same lg bridge is detracting my another phone h818p but not h811
[T-Mobile LG G4] MicroMod777:
Unimstall all LG driver and LG Bridge. Then reinstall LG Bridge. Make sure your on stock rom.
[T-Mobile LG G4] sridhar_kkin:
Thanks for reply,

My mobile is in stock rom only. Then also not detected by lg bridge, even one click twrp is also not working??
[T-Mobile LG G4] MicroMod777:
Something probaby not correct with your usb drivers. Get the latest from LG's support page.
[T-Mobile LG G4] sridhar_kkin:
Then how my h818p is updated??
[T-Mobile LG G4] MicroMod777:
Sorry this is for H811 only.
[T-Mobile LG G4] MicroMod777:
THIS IS OLD OUTDATED METHOD AND WILL HAVE NO SUPPORT.

SEE AUTOPRIMES THREAD FOR CURRENT METHOD.

https://xdaforums.com/showthread.php?t=3308227
[T-Mobile LG G4] Uncle Lizard:
Yes, and unplugged the usb cord.
[T-Mobile LG G4] MicroMod777:
Very odd. I tested this like 50x. Possibly drivers didn't fully install. Once it detects download mode it flashes TWRP.
[T-Mobile LG G4] Uncle Lizard:
Maybe I didn't let it sit long enough before I did the battery pull. It worked though. I'd just chalk it up to user error. Now off to disable stuff and hope I don't break anything.
[T-Mobile LG G4] tom1226:
Hmm I'm having the same issue (get through completely to the TWRP flashed, unplug and pull battery message), but when I go to boot into recovery (from power off hold vol- and power, release power for a second at the LG logo and then press again) it gives me the factory reset language and does the reset. Will keep trying and report back!

EDIT: Got it, tried a couple more times. Final time when I plugged the USB cable in I tapped MTP again to do the auto driver install on the PC, and when the options popped up I clicked the LG software. All it did was say it was fully installed, so may be a fluke, but after I did that my next attempt got TWRP to stick. Thanks Micro!
[T-Mobile LG G4] memtenn:
I found out that my bootloader unlock wasn't checked in dev options. I checked that and it worked. I don't know if this is the issue everyone else is having.
[T-Mobile LG G4] :
Just recieved my g4 today. Coming from Sansung s2:) So my box says H811lb. Its the leather back one but im guessing this should essentially work for me right?
[T-Mobile LG G4] Unseeablething:
I keep trying to get this to work, but it seems the correct driver doesn't load in time for the TWRP to flash correctly.

Tried deleting and reinstalling all Android based Drivers. Made sure OEM unlocked was on. No matter what I did, it seemed to not work.

Do I need to do a factory reset to get this to work? Going to try my home computer instead of this Windows 8.1 on my work computer. Also should I be running the script in Admin mode or User level? Seems to find it in Admin just fine and gets to the remove battery, but doesn't work.
[T-Mobile LG G4] InFaMouZz:
Micro, I hardly post on here, more a lurker but just wanted to says thanks on all the work so far on the T-Mobile variant. I haven't tried this since I rooted using the "low effort" method but glad you're around to keep things moving a bit!
[T-Mobile LG G4] Qverse:
MicroMod777

First Thank you ! :good::good: It's what I been waiting for , so far You are the LGG4 Best Baker

So this is what happen first i checked abd to make sure my H811 device was found and Yes it was.

Then I ran CLICK-HERE-LG-G4-H811-UNLOCK-TWRP.bat

i did its magic and ended with that TWRP installed {something liked ) anyway but for the life of me I cant remember what combo keys to get to TWRP? Is it power off hold vol- and power ? Also is this the supersu file? UPDATE-SuperSU-v2.46.zip . :cool:
[T-Mobile LG G4] buckless:
qverse , maybe we have the same problem digesting what we read because if you read the op it answers your questions,not trying to be an azz just read a little, the thread is only 3 pages
[T-Mobile LG G4] Qverse:
I know your not an Azz, and yes I have read every note and post ..What I should have asked was . Do i have to click on factory reset and it goes to TWRP ? I am doing this from someones else computer. and I dont want to loss anything before I do this. if it is going to wipe everything , I just want to save somethings on my computer before its done. that is my only problem.
[T-Mobile LG G4] ShermCraig:
Windows XP

Has anyone successfully done this with a Win XP machine? I cannot get past download mode.
[T-Mobile LG G4] buckless:
i believe you click on factory reset it will load twerp because that will be your new recovery (not factory) and no you won't lose data.and i meant the hold volume and power etc was talked about literally 3 0r 4 posts above yours, and i think it was in the op before just don't see it now. maybe in the original op by avicon
[T-Mobile LG G4] Joe USer:
I was not able to get the script to run, it seems to freeze on the last step while in download mode. I think it has to do with drivers not being ready when running the last send_command.

I was able to get it to work by manually entering download mode and manually executing the last send_command , pasting the installTWRP script into the send_command prompt.

I do not recommend that anyone do this unless they know exactly what they are doing.

UPDATE: Strange, I rebooted and TWRP was gone.
[T-Mobile LG G4] dspcap:
So is this basically unlocking the bootloader?
[T-Mobile LG G4] :
i gave up. lol. I plugged in phone with USB debugging on. .bat goes through the whole process to where i have to unplug and pull battery even though on my my phone i see a 0% which is weird. Held down power and volume down key and when LG logo comes up i let go of power key for one second and press again. This just takes me to the factory reset screen. i give.
[T-Mobile LG G4] Rydah:
How do I boot into TWRP without root? I tried the power + Vol down method and hit factory reset option and it literally did wipe my device.. Lol ?

Sent From My LG G4
[T-Mobile LG G4] DsturbD:
no, this installs twrp so you can either flash SuperSU for root or to flash a custom rom, this one comes to mind for some reason http://xdaforums.com/tmobile-g4/development/rom-g4-h811-xtreme-rom-v1-0-7-28-15-t3167667

the t-mobile phone has a very easy bootloader to unlock, go into developer options and check Enable OEM unlock

install Quick Boot from the play store and use that to boot into recovery

you dont need root to flash twrp, you need twrp to flash SuperSU to get root
[T-Mobile LG G4] MicroMod777:
Pull battery, put back in. Press and hold volume down/power. When LG Logo appears only let go power for a second and then press again till factory reset screen appears. Do factory reset to boot into TWRP. If you don't see TWRP run program again.

I'll post up manual mode for those who are failing the one-click.
[T-Mobile LG G4] Rydah:
Quick Boot requires root to boot into recovery though.

Sent From My LG G4
[T-Mobile LG G4] DsturbD:
DOH, so it does :o

guess since i did the low effort root as soon as it came out i forget what needs it and what doesnt since im already there LOL sorry, didnt mean to mislead anyone

so ive never done it this way but you're saying that with twrp installed if i say yes to do a factory reset it will actually load twrp? it doesnt actually do the factory reset?
[T-Mobile LG G4] Rydah:
TWRP might have just not flashed for me then... I'll do an ADB Reboot Recovery next time, don't feel like hitting the factory reset option. lol Once today is bad enough.
[T-Mobile LG G4] Joe USer:
Just a note, if you turn off the OEM unlock, you can't get back into recovery until you unlock it again.
[T-Mobile LG G4] MicroMod777:
MANUAL OR EXPERT MODE:

Step 1: Copy recovery.img to your internal storage.

Step 2: Pull battery, put back in. Press and hold Volume up and plug cable in. (Enter Download Mode)

Step 3: On your computer open up your Device Manager and look for:

**Ports (COM &LPT)

****LGE Mobile USB Serial Port (COM?)

Look for the port number in COM#! ?=#.

Example:LGE Mobile USB Serial Port (COM3). So mine is port 3.

Step 4: In your One-Click folder press Shift/Right-Click-Mouse and press "Open Command Window Here".

Step 5: Type Send_Command.exe \\.\COM? Make sure the ?=Port number from Step 2.

Example. Mine is Send_Command.exe \\.\COM3

Step 6: Type "id" without quotes and make sure this comes up: uid=0(root) gid=0(root) context=u:r:recovery:s0

Step 7: WARNING, IF YOU GET THIS PART WRONG OR DON'T USE H811 YOU CAN BRICK!

*****Type Flash command only for H811:

dd if=/data/media/0/recovery.img bs=8192 seek=35840 count=5120 of=/dev/block/mmcblk0

Step 8: Type: LEAVE

**Phone will reboot

DONE.....

Enter TWRP: Must be OEM Unlocked in Developer Options.

**Pull battery, put back in. Press and hold volume down/power. When LG Logo appears only let go power for a second and then press again till factory reset screen appears. Do factory reset to boot into TWRP. If you don't see TWRP run program again.
[T-Mobile LG G4] dspcap:
Just a comment. For me, after step 3, I had to turn my phone on and allow USB debugging.