yashsingh1/xdaforums huggingface dataset:
[G4 General] terryowen:
With Proteus I did get chcon errors. After a quick search, but no in-depth reading, I gathered I needed a newer Linux thanks to the selinux. I had used Red Hat in the past and just figured that CentOS would do but the basic live cd I downloaded had practically nothing installed and the package installer wouldn't connect. The Fedora actually ran the autoroot script without errors but after the boot loops and another search, I guess chcon was there but labelled something incorrectly? (I didn't bother mounting the image and running the commands to confirm it but am guessing that's what happened, since it was also Fedora that an earlier poster had problems with.)

I rarely use Linux anymore other than as a rescue utility, so I wanted a live usb drive that just worked without configuration or troubleshooting. I don't really like Ubuntu but I would have downloaded it first if I had known it would just work. :)
[G4 General] Leavard:
I had the same experience with Fedora. Still never figured out why it didn't work. Ended up switching to Ubuntu and it worked first time, like yours.
[G4 General] prot-:
Does this work on marshmallow? If not please change the title
[G4 General] divineBliss:
Did you bother to read the OP?

What would you suggest changing the title to?
[G4 General] prot-:
Erm ANY is not true so how about ANY LP
[G4 General] DoughMucker:
ANY is referring to the variant (H812, H818, etc) and not the OS version. As long as LP can be put on the variant, then the variant can be rooted. LP can be put on any variant, therefore any variant can be rooted. The title is still accurate even though MM can't be rooted yet.
[G4 General] echelon64:
Can't seem to get this to work for whatever reason. Can't backup the system image to the root of my phone. The whole Send_Command.exe is pretty much where I'm stuck, after typing verifying the COM port and everything I only get the '#' but the image isn't backed up for whatever reason after entering the appropriate command. The command is sent but then I get a blinking cursor on the next line and nothing, zip, nada. I'm on H815 SEA variant if that is of any help and using Windows 10.
[G4 General] mehdi.shah:
Bro i also have h815 sea everything worked for me you should try on windows 8.1 and double check your drivers and also make sure you have enough space available on your phones internal memory
[G4 General] divineBliss:
I used Windows 10, so that should not be an issue.
[G4 General] echelon64:
So this is what I get in my device manager when the phone is in Download mode.
[G4 General] AdventL:
If I've previously flashed my rooted V10c and I now want to flash the new v10f

Do I

1) just repeat step 3

2) go back to stock and start from step 3

Thanks!
[G4 General] Phat7:
Great guide, thanks OP! Some say it is good to keep the system.img on the SD card as a backup. Can I keep it on the external SD? It is 4 GB in size and takes up precious internal memory space. If anything happens, will it be possible to flash it from the external SD in download mode? Thanks for any advice!
[G4 General] woozzy101:
Keep the image on your phones internal memory. You can't flash from the SD card and until you actually need the space, worth keeping it on your phone :)
[G4 General] AdventL:
Anyone? O:
[G4 General] dadrumgod:
OK I went to flash a rooted system img. Again but this time when I'm typing the "Id" command I get "id" is not recognized as an internal or external command, operable program or batch file.... Anyone know what I'm missing
[G4 General] foxguard:
Hi, i have the 815, what can i do?
[G4 General] nostromo76:
Worked fine on H815 TWN on V10g. I do followed the steps one-by-one, everything went as expected and described, thank you very much to the post's author!!!
[G4 General] Jzaether:
Canadian H812 20E

Canadian H81220E

Fails when trying to backup on the first step....
[G4 General] FunkyMuse:
Hey guys, how to root the h815 v20c ?

I can't seem to find any guide around
[G4 General] jasonzarko:
There isn't. Marshmallow isn't able to be rooted without unlocking the bootloader.
[G4 General] FunkyMuse:
Any hope that we'll get root ? :(
[G4 General] jasonzarko:
If your phone supports bootloader unlock then you should be able to root.
[G4 General] FunkyMuse:
It gives some singapore error
[G4 General] jasonzarko:
So it doesn't support bootloader unlock then?
[G4 General] Randomsanity:
Scratch that, just needed to update SU. All OK! Thanks folks.
[G4 General] jagg0:
Fantastic!!

Work Great on H815P Telcel V10a Android 5.1 :good:
[G4 General] pepo930:
Can I downgrade from MM to LP using this method (aka by flashing the LP image)?
[G4 General] divineBliss:
This method is about rooting using the system image already on your phone.

I would suggest you use LGUP tool to downgrade to LP first using the LP KDZ file for your phone. Then use the OP method to root your LP image.
[G4 General] Crash27:
Hi, I have the G4 H812 Canadian version running MM 20e, Could someone please let me know what steps I have to use to downgrade to LP and then root. I downloaded the LGUP and the H81210H_00.KDZ image which I think is the right one. I just don't know what the steps are to use them.
[G4 General] milan187:
Look in the Canadian thread but what I did was load 10n with LGUP. Then do the root. I rooted with pre rooted 10n image. You can also use root injection. Read through the Canadian thread. All the info has been written many times.

Sent from my LG G4
[G4 General] fingertrouble:
I have a TWN LG G4 H815 (yeah I was thinking I'd get the Europe/International variant, Venture Direct sent me a Taiwanese phone! Shady. Not happy.) and I get to the first part and get FAIL from Send_Command? That's after I put in: dd if=/dev/block/mmcblk0 bs=8192 skip=55296 count=529920 of=/data/media/0/system.img

I'm using Win 7, the drivers are installed, etc.

Sadly when it was Chinese I think the software updated... so it's on V20b-TWN-XX. It was all in Chinese so I try to click close and it was the wrong one :(

Tempted to just sell it and buy a new UK phone from a reputable buyer. This has been weeks late and so much faff already. Depressing since it's a new phone...
[G4 General] shadavis08:
Sell it lol
[G4 General] Gold_Phenix:
Sorry if I write on wrong topic. On polish forum someone user find this site https://www.search4roots.com/how-to-root-lg-g4/ magic app to root g4 ? or fake?

Sorry for my bad English [emoji85] .

Wysłane z mojego LG-H815 przy użyciu Tapatalka
[G4 General] shadavis08:
I don't believe it
[G4 General] kouzelnik3:
It wants to be tried by someone...
[G4 General] layvin1:
Its been far too long since I have been on XDA.

I used to have an Verizon LG G3 that was rooted with TWRP and running CM. Loved it! Then I jumped to the G4, life got busy,changed jobs,moved etc and haven't had the time to really do what I want with this phone.

In the last couple days after finally getting back into wanting to root and customize this phone I have been doing the research.

I hate what I have learned. I wish I would have never left the G3. Verizon is a bunch of dicks. I'm currently on MM and from what I have read I have to rollback to LP to be able to root, but without an unlocked bootloader it means no TWRP....and well...I hate that. I do want to root for obvious reasons..but no custom recovery just scares the **** out of me.

Has anyone tried the Oneclickroot app in the link above?...LOL....last time it was that simple for me was when I was rocking a Moto X2 I think....damn....hahaha
[G4 General] goal80:
I have the Canadian H812n with Videotron.

Can I use this inject root method ?
[G4 General] aafenlared:
Root H815P Claro, Guatemala

English:

This method worked for me in a LG G4 H815P V10a from Claro in Guatemala. It is the only method that I found to trust. You just need to be very sure that you understand every little part of the method. It works.

Spanish:

Este método funcionó para mi en un LG G4 H815P de Claro Guatemala. Es el único método que encontré en el que podía confiar. Sólo necesitas estar bien seguro de que entiendes cada parte del método. Funciona.
[G4 General] Azraelalpha:
Also worked on H815P Telcel Mexico after upgrading the system image to V10e.
[G4 General] Spaceboy60:
If I've already got a rootedsystem.img from a previous h815 I owned, can i flash the same image to a new H815 replacement I've received? Or would I need to do all the steps again?
[G4 General] cagdas:
Sorry for the noob question, I try to read as much as I can but did not see what I was looking for. I have the MM v20c-SEA-XX, when I try the 1st step I got a massage saying FAILED, am I doing something wrong or is this because of MM and v20c. Sorry again for a possible redundant question.
[G4 General] Ramres:
Yes. This method works only on LP (v10x). MM (v20x) must be rooted by flashing SuperSU.zip with a custom recovery. H815 SEA variant device doesn't have custom recovery because the bootloader is locked (and unavailable to unlock at the moment).
[G4 General] cagdas:
So is it possibly to downgrade to LP (possiply with LG up and kdz files) and use this method? Or am I just cursed.
[G4 General] Spaceboy60:
Ok. Gone through all the steps, but it won't boot. Stuck at the LG Logo, with blue light flashing. Any ideas?

---------- Post added at 04:11 PM ---------- Previous post was at 03:38 PM ----------

Ok, managed to get it to boot, but says sdcard unsupported file system. Anyone else had this problem?
[G4 General] Ramres:
Yep. LGUP works to downgrade to LP. Then that use this method.
[G4 General] LexxLooter:
Would it work on the following LG G4 type

Model number: LG-H818

Android version: 5.1

Build number: LMY47D

Software version: V10c-HKG-XX

IMEI:

Network provider/carrier: MetroPCS

It is an lg g4 unlocked duel sim.

Please let me know ifthis method will root this phone otherwiseplease advise on how to root this.
[G4 General] shadavis08:
I would erase your imei # dude
[G4 General] rpsweb:
So this doesnt work with Marshmallow? I thought G4 came with Marshmallow? , can I downgrade to KitKat? thanks
[G4 General] shadavis08:
You can downgrade to lollipop but not kitkat
[G4 General] anhood:
LG G Pad X8.3 - Will it work?

Any input if this process will work for the Verizon LG G Pad X8.3! There is the OTA method for update, but a root install should allow removal of the bloat wear and other sluggish software. Anyone have experience with this specific hardware?
[G4 General] hodgestl:
You are asking in the wrong forum. You are asking in the LG G4 forum which is a phone, not a tablet. Please look at the top of the XDA screen and input your device type by name or model. It will take you to the forum you are looking for. Good luck.
[G4 General] player911:
In my rooting thread on the X8.3, I stated that root was going away with the newest release and to not take the OTA if you wanted root.

LG has blocked the injection method on newer updates on all devices. With the X8.3, you can try going back to lollipop and rerooting. Root on MM is a mofo.
[G4 General] sandman5969:
so if i downgrade to lolipop and inject root, will i be able to go back to mm and retain the ROOT?

does the OTA even work after that? will it break the ROOT?
[G4 General] lept_2014:
If you are root, the OTA doesn't work.

And if you flash KDZ MM, you will lose root.
[G4 General] Antidote03:
My device came wi 5th pre loaded MM i have no root and its not unlockable can i downgrade it to lp and root it
[G4 General] shadavis08:
Yes you can.
[G4 General] hasanu88:
Awesome custom firmware by a russian developer for all lg g4 variants including dual variants .... Take a look ppl its worth it.

Clear instructions for custom firmware with all utilites and download links.

http://xdaforums.com/showthread.php?p=66921654
[G4 General] pakitos:
It took me 2 days to finally root my phone.

At first it was Windows 10 but after installing Windows 7 I was able to backup my system. Then Ubuntun wasnt injecting the autoroot and then I wasnt able to copy from the Ubuntu VirtualMachine to Windows but got it in the end!

Thank you!
[G4 General] Jwtiyar:
half hour done with g4 815P :)
[G4 General] reemar:
with it, we can install cm13 using flashfire or it wont work?
[G4 General] pakitos:
No, you need full unlocked bootloader and TWRP to flash CM13
[G4 General] farkit76:
[MENTION=3238737]Jwtiyar[/MENTION]

Which version did you flash to and from? I just bought an 815p and ota brought it to V20a. I would rather have root on lollipop. Also, were you able to get the bootloader unlocked?

---------- Post added at 01:27 PM ---------- Previous post was at 01:23 PM ----------

Which version did you flash to and from? I just bought an 815p and ota brought it to V20a. I would rather have root on lollipop. Also, were you able to get the bootloader unlocked?
[G4 General] farkit76:
Goran, i dont understand your response. Are you saying flashing this rom will unlock the bootloader?
[G4 General] goran_oh:
Bootloader unlock lg alow only on h815 euro version model and h811 us model.
[G4 General] Jwtiyar:
no problem any version i think was 10b , just pull the system from and then root it with ubuntu then flash it again .
[G4 General] optimus_rony:
Successfully rooted 10f H815 SEA version following the instructions. Thanks OP for this nice tutorial.

PS: I have tried to root 20h MM. But the system img was not extracted by the send command. I think bs, seek and count values are different for MarsMallow. Has someone tried to root MM with proper values, Please share your result and enlighten Us.
[G4 General] Sea-Wolf:
Unfortunately this method doesn't work for Marshmallow. You need to have an unlocked bootloader to root Marshmallow and it's not possible to do that with the G4 unless you have a particular European type of the G4.
[G4 General] mrgold2505:
Normaly how long the first step takes? sorry just tried second time and took only about 30 second??? I checked in internal memory and the image file is there 4.04 GB
[G4 General] niftium:
Yep, that's about as fast as my second attempt went. Looks like about the right size too.
[G4 General] DsturbD:
gonna try this with the new 10N update for the H811

the H811 is unlocked out of the box, just have to enable OEM unlock in Dev Options
[G4 General] niftium:
Finally got back to this tonight. Nailed it. Directions are perfect. Big thanks to everybody who has had a hand in this!

(H810 10G version)
[G4 General] tyfoxx:
Just what I've been looking for!
[G4 General] chroust:
Thank you!! No need to download any img files etc. Just a good old DIY!
[G4 General] DsturbD:
worked great with the new 81110n firmware for tmo, went back to stock with 10n then rooted with this, stock root, exactly what i wanted!
[G4 General] bebeleme:
Perfect instructions,worked great with H815TR.

LG-H815 cihazımdan Tapatalk kullanılarak gönderildi
[G4 General] nussie:
Two questions. Can I use my original system.img to unroot my phone. I'm having severe touch screen issues, and a new firmware version 10e is out for my device, which is currently on 10a. I'm hoping the touchscreen mis taps might be resolved, or at least better with 10e.

Otherwise can I download the 10e version via the about phone - update centre - software update and continue with the install over my rooted firmware?

There is no stock KDZ available for my device H815P.
[G4 General] antus:
Yes flash your original system.img to unroot, take the OTA update, It sounds like this is likely to fix touch issues. Then try this method to root 10e. Please confirm once you've tried it that send_command backdoor is still open for 10e.
[G4 General] zurih:
Just one note... you can use any Linux OS, not just Ubuntu.

I've done it with CentOS.
[G4 General] InTents:
Hi Nussie,

Do you have a backup of your stock image?

If so, would you mind sharing it with me as I also would like to unroot my phone.

Thank you.
[G4 General] nussie:
Hey, I'm currently in the process of changing internet service providers, and only have a 50Gb capped LTE account for the next two weeks. Once I'm back on uncapped, I'll share my system.img file with you ;)
[G4 General] InTents:
Thanks so much!
[G4 General] nussie:
I flashed my own system.img back as in step 3 of the op, and it went perfectly and I'm unrooted again. Now on v10e, and initial touch seems better, at least no accidental clicks instead of swipes in facebook. Still testing the double tap to wake, so far so good...If double tap to wake works flawlessly, then I won't root again for some time, otherwise I'll take the phone back under warranty.
[G4 General] DsturbD:
the file system you put the inject_root folder on is read only. extract it to your home folder in linux
[G4 General] mfck:
Used this method to root V10a-208-10 and V10d-208-10 and all work like a charm.

The most hard part was to create a virtual Ubuntu machine (searching and download all necessary files).

Thanks a lot hackarchive !!
[G4 General] mutuz:
Thank you!! It worked perfectly!! H815P here

I had more trouble trying to share my Inject folder on virtual box than the proccess itself!
[G4 General] prazvt:
Is that all we have to do to unroot? Just flash the original system.img? I want to unroot to take the OTA update on my 815 as well.

Thanks.
[G4 General] raptorddd:
am having problems on step2.

i used SLAX 7.08 but on the second command for root, it says command not known..then guy says to try other if you get error, i get same thing.?
[G4 General] lept_2014:
Both command are the same (more or less).

'sh' is a standard command interpreter in linux. And .sh files are their files.
[G4 General] raptorddd:
I know nothing about commands.. i followed the guide, and in second command it dont work...

then i tried wifislax now on wifislax it gave me alot of errors. like 15 lines of errors... so i gave up.

thers already a rooted image from someone that i use.. somehow clicking the wifi onced ticked it FC.

i cant use LOCK in gallery. and gods know why. my googleservices is 448 (4=android 5.1- 4= arm64- 8= 480dpi.)

it updates itself once updated. i try to move update and integrate update to system. all work okey playstore ect... but google play services when i do that it dissapears. and i think my google plays services chages to 240 not 448..

thats why i want to try my own.. i dont know if that syste, image has bugs...

or must i download ubuntu.? its a big download...

UPDATE... ive uploaded error.... in attachemnt.

***UPDATE***

downloaded ubuntu and it worked.. so to be sure just use ubuntu..
[G4 General] NoobiestN00b:
how did you do this for the h815p ?

How did you root your h815p ? This method isnt working for my h815p and i dont know why .

I wanted to backup the system.img but it just says that in the cmd window

"#

FAIL

#"
[G4 General] Strayce:
THANKS

I logged in purely to thank you for this. Worked perfectly on H815T and Ubuntu 16.04.
[G4 General] Dicky91:
When i send command it said " directory name is invalid "

How to fix it ?
[G4 General] Amirzoo:
Big Like

Dude ! You are F@king Awesome.. I wanna thank you so hard :laugh::D:good::good::good::good:
[G4 General] vishal91:
Any Alterlate to unlock bootloader for SEA :(
[G4 General] PalmCentro:
Downgrade to Lollipop and you can then root it with low effort.
[G4 General] nseaton:
This is probably a stupid question, but please bear with me, as I'm in a bit of a sticky situation.

I need to run a file recovery for a very important recently deleted photo. I'd like to use photorec with a raw image of my data partition, on my PC.

This rooting method seems to be the only one that will work with my device - US99111a on Lollipop. But this method also writes a ton of data to internal storage, and I'm worried about overwriting the data I need to recover.

Is there any way to flash from somewhere other than the data partition?

Long shot alternative: with the LG drivers and send command in the first part of this guide, I notice it's writing to the data partition when using dd - is there a possibility that I can dd the data partition to an image on the sd card? I'd try it, but I really would like to have as much info as I can before mucking with the phone more than necessary - again, to maximize chances at recovery.

Less long shot alternative: I’m a dumbass that doesn’t understand android partitions or permissions. But I’m willing to learn, so any insight would be greatly appreciated.
[G4 General] DroidMau5:
Has anyone used this method with the US991(11a) rentacenter variant and was successful? I've searched and searched for months but no dice.. I've nearly given up hope.
[G4 General] PalmCentro:
I made one for the 10A

Is 11A Marshmallow?..
[G4 General] DroidMau5:
No, it is stuck on 5.1 and there are no updates avaliable
[G4 General] PalmCentro:
You can create your own rooted system image it's very easy, you can upload your system img and I'll inject root for you.

The OP guide is very easy to follow.
[G4 General] DroidMau5:
I followed the steps and I'm currently uploading the system img to dropbox. Should I just post it here when finished?(not sure if system images keep personal data so i logged out of everything and moved media to my sd card as a precaution)
[G4 General] PalmCentro:
I will be able to do it after the weekend.

PM me the link, it doesn't contain any personal information.
[G4 General] DroidMau5:
Alright! Thank you, I thought I was never going to be able to do anything with this device
[G4 General] ixrs:
I tried this method for the us991 10D, and now I lose exfat sd card compatibility. With the H815 this method works perfectly.

UPDATE: figured out why- the US991 us cell and US991 unlocked are completely different. they are not interchangeable.
[G4 General] cercelcremene:
I tried this on the lSAI VlVlD

I tried the method, thank you!

It did not work on the 10y firmware (latest OTA up to date), the phone got bricked.

After a while I managed to revert to version 10o, and I tried it again. It worked (with 10o).

Nevertheless, the phone is quite unstable, it blocks and reboots every once in a while.
[G4 General] Awology:
I have a question I'm hoping someone can help me with.

I am running a 815P which was previously rooted with this method and had Xposed installed, but due to the mother board crashing on the phone, it was sent back to LG who replaced the motherboard and installed a fresh version of unrooted MM.

I still have the old rooted IMG file and I am wondering if i can just flash this over, or do I need to go about following some kind of downgrade procedure?

Thanks very much for any advise.
[G4 General] raptorddd:
you must be sure if you can downgrade... you cant root MM. you need twrp for that..

you need to know if you can safely downgrade to LP..some phones brick after download.. example h811 20o MM its antirollback V3 and 20i MM- 10n LP are V2... once i go to 20o am stuck there... so you find out if your phone can be downgraded..
[G4 General] Awology:
Well I'm on V20d-ZAF - Android security patch level 2016-01-01

Is this downloadgradeble and is the old IMG file that i have for the same phone still useful?
[G4 General] android404:
You need to make sure there's no anti rollback thing in your current rom. You can try this code: *#*#244773825625#*#*

When I found out that there's no an to rollback on my new motherboard, I simply pushed twrp and flashed superuser on my mm rom instead of downgrading and pushing a rooted image. I got an international h815
[G4 General] Awology:
I just dialed the number you gave and scrolled down to the bottom and it says

Anti rollback Version 0

What exactly does that mean ?
[G4 General] android404:
It means that there's no anti rollback. You can use lgup to downgrade to lollipop. But I dropped all of that on my h815 and simply pushed twrp and flashed supersu after unlocking my bootloader.
[G4 General] Awology:
Thanks for that information. I guess that is good news being that lollipop is the only way to get root and Xposed back.

What I was hoping to do, since I still have my injected root.img fiile from last time, is just flash it on with command line using Cmd

I don't have the Kdz file used to flash in Lgup, I only kept the injected root image and was hoping that would be enough, Also unfortunately given that i have the H815p variant, there is no unlocked bootloader, so no Twrp.
[G4 General] raptorddd:
i think its better to download KDZ go back to stock and then use systemroot.ima file..