yashsingh1/xdaforums huggingface dataset:
[G4 General] zuixian:
Yes, just successfully Root-Injected to newly OTA updated V10f-TWN-xx

Cheers
[G4 General] Leavard:
Finally had some time to work on this today.

Unfortunately, Fedora 23 didn't work, had the same issues as before.

I pulled the context for all of the files referenced in autoroot.sh while in Sendcommand and mucked around for a bit with altering the script to just set the context rather than referencing it. This just gave me unknown context errors, which was nicer than failing with no errors but not useful.

I thought about trying to import the context file from G4 into Fedora, but that got really complicated really quickly.

In the end, I downloaded Ubuntu 14.10 and installed that to another usb and tried in that. Success first time!

Not sure what the issue was, Fedora should have better selinux support (in theory).

TL; DR If at first you don't succeed in Fedora, try Ubuntu instead.
[G4 General] smason:
I'm glad you have done the root procedure of yours smartphone.

Anyway from my Fedora 23 all seems ok:

[root@localhost Inject_Root_G4]#
[root@localhost Inject_Root_G4]# cat /etc/redhat-release
Fedora release 23 (Twenty Three)
[root@localhost Inject_Root_G4]#
[root@localhost Inject_Root_G4]# uname -a
Linux localhost.localdomain 4.3.3-300.fc23.x86_64 #1 SMP Tue Jan 5 23:31:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost Inject_Root_G4]#
[root@localhost Inject_Root_G4]# mount -t ext4 -o rw,loop system.img operatingtable
[root@localhost Inject_Root_G4]# ls -laZ operatingtable/bin/reboot
-rwxr-xr-x. 1 root 2000 u:object_r:system_file:s0 5600 Aug 17 11:20 operatingtable/bin/reboot
[root@localhost Inject_Root_G4]#
[root@localhost Inject_Root_G4]# umount operatingtable
[root@localhost Inject_Root_G4]#
[G4 General] stinka318:
Ok this is so hard to do I don't use lines on my laptop where it says download this and spacebar and right click dose nothing except turn it blue I am not very computer savy and to add issues also dyslexic so doing command prompt is a problem CAN'T it be like the lg gflex 2 way.......rant over just a little anyoed
[G4 General] woozzy101:
We've told you before, this is the only way if you want to install root :(

You do NOT need to make your own root image. You can download a rooted image already and save yourself a lot of steps if you want. Steps 1 and 2 are only if you want to create your own image. Step 3 is honestly not that bad, even if you are not computer savvy. Just read the entire directions, then do the whole thing in a dry run. And then when you are ready, complete every step, DOUBLE CHECKING every step to make sure you have it. Also make sure you have the LG Drivers installed and the LG root.

I have also seen a couple videos floating around that explain these steps. They might be for an older root version, but the steps are basically the same except for the file used and the DD command at the end.
[G4 General] stinka318:
That not the problem the problem is it don't work on my laptop I've followed every thing and where it fails is this system uses linex is on the laptop I don't have a good enough knowledge about laptops so for me it is to hard it means having a good enough knowledge about code I'm dyslexic I have problem with some letters and numbers.sorry it maybe piss ezy 4 you but 4 me it is quite hard.
[G4 General] woozzy101:
I know some people tried using Linux before to install root, but it was a mess and overly complicated. Unfortunately you need windows to actually install root easily. Not sure what to tell you, but might not be possible for you to install root unless you find a computer with windows :'(

What were you hoping to gain from using root? Can you live without it?
[G4 General] stinka318:
I have a window laptop when it tells me to hold space bar and right click in the box where injet root g4 it just highlights every thing and dose nothing

The reason I want to get root it ad blocker I'm sick of pop up when I looking up something and it tells me I need to scan for something or you have won a iPhone bull****.....and they won't stop you have to pull battery out so you can stop the problem. When on my laptop I can block them but on the phone I can't I've tried.
[G4 General] divineBliss:
The space bar part is to open a command prompt/DOS window in that directory, so just do that any other way you know and continue with the instructions :) .
[G4 General] stinka318:
I've been trying but the laptop won't do it. it is getting redickuless something that is simple and yet because of this dyslexic problem make it so hard....I have a LG gflex 2 AT&T which I put the pr 5.1.1 on to and got xposed module on but just want a g4 to work it is a pain......
[G4 General] dadrumgod:
If you're on Windows you need to hold shift and right click. First of all what Windows version do you have accessible and how did you install adb? All you need is the fast installer not the whole sdk deal, and very important is the right drivers for the phone and more importantly depending on your Windows version, the right updated media drivers. I just bout the first pc I owned in 15 years, a lil hp mini 110 netbook for 50 bux that was dirty as hell and I was amazed it worked lol. It had Windows 7 but had the Windows 10 update waiting to download. Well after updating I was going insane trying to get Windows to detect it correctly but wouldn't show up in file explorer as MTP media device and I tried every lg drivers possible, hundreds of weird fix it remedies, uninstalling and reinstalling and updating every damn drive not the pc ..even several full pc resets, then I stumbled across one random answered question somewhere buried in the chaos that is the interweb where Microsoft had to release a very small update for a very small group of people the happened to update to W10 on this one particular day where the media drivers were screwed up and I laughed and started to walk away...I stopped and said no f.ckin way tis will work...I installed the update and nearly sh.t myself and sqealed like a lil Girl when my phone fully connected as MTP device and I saw the lg phone as a drive in explorer, popped up a cmd window and was pushing the rooted img in minutes and damn near heading for a change of underpants I was so happy lol. Moral of the story? Drivers and Drivers..Phone AND WINDOWS MEDIA DRIVERS. Also there's only one main command line that you absolutely cannot mistype so study it and memorize at least it's pattern and double check the characters you type one by one 50 times, I'm severe adhd and have very similar issues so I understand. Find a way to make that command "familiar" to you, you know what I'm talking about lol good luck

Ps ,, That's to flash a rooted system img, injection is a good but more work and I would not recommend learning that stuff on a g4[emoji6]
[G4 General] stinka318:
Funky got it to open a command prompt but it tells me command not reconized in batch blah blah.......

Now more asswipe problems.
[G4 General] dadrumgod:
So try this, boot into download mode (hold vol up and plug in usb , while phone is off) keep holding the vol till you see flash firmare etc.. Opern a cmd prompt in the downliad folder that has your LG root files (or if you don't have them yet just download will work) Type "adb devices" without quotes and see if it reads your model
[G4 General] kenshinta:
Can the step 2 injection process be used to install other things aside from root?

like say xposed and your own custom apps you wish embedded into the rom?
[G4 General] adrs168:
Hi

This method applicable with LS991 ZV9?

I am succeed try with ZV6 and need to know with ZV9

Many thanks
[G4 General] okanb3:
H815TR MM - I can not backup my system.img. When i use proper dd command, it only says "FAILED". Is this because of MM? Or anything else?
[G4 General] Blobx:
A bit OT:

Is it possible to use your Send_Command.exe to edit/move some other files?

I changed dpi in build.prop and i'm stuck in bootloop. I have it backuped on the internal memory. I can see it using ls command but I can't move between directories with cd command, nor i can rename/move files with mv command. I need to overwrite /system/build.prop file with the one i have in the internal memory, or directly edit /system/build.prop dpi line, or delete /system/build.prop and rename /system/build.prop.bak to /system/build.prop. Is any of this possible?

Sorry for the OT :/
[G4 General] player911:
Honestly it was pretty easy for me. I threw a the root files on a USB drive. Loaded VMWare and a Ubuntu ISO. Booted it. Grabbed the files from the virtual USB drive to the desktop folder. Ran the script. Copied new rooted image back to my USB stick and shut it down. Copied the image to from my USB stick to phone.

In all honesty it is very complicated. Just take it step by step. The hardest part for me was the COM drivers for the sendcommand to work. VMWare and Ubuntu was pretty straight forward if you use a USB drive to copy files back and forth because you can enable and disable it in the VM environment to move files back and forth.

In all honesty 95% of people should not be doing this full process. For most people, just download the rerooted image that someone else has created and just flash that.

Steps are:

Download prerooted

Copy to Phone

Boot to download mode.

Sendcommand and flash image.
[G4 General] okanb3:
Well is there a prerooted image for h815tr ? Also is this method works on MM?
[G4 General] petalex99:
.................................................................................

I do it on my wife's LG G4 H815. Works perfect. But i'm wonder how can I apply this method on my LG V10 H961 dual sim. How can I know the commands to save the system.img and rootedsystem.img? Thanks in advance.
[G4 General] lept_2014:
The commands are the same. The point is, You need to know the partition table of your LG V10 H961. And with that you can to know what is the values for:

BS

SKIP

SEEK

COUNT
[G4 General] bornheim2:
V20d / Marshmallow?

Did anyone try this with V20d / Marshmallow yet?
[G4 General] s1conan:
i guess this method wont work on Korean G4 right? i own a F500K on Marshmallow 20p
[G4 General] sumedh123:
hey I got the phone rooted forgot about the Keeping the free space thanks man!!
[G4 General] itm:
I used this method successfully a few weeks ago to root my TWN 815 with v10e ROM. In the meantime I've upgraded to MM, decided that I didn't like it, so downgraded back to v10e by flashing a kdz using LGUP. I then tried to follow these instructions again to gain root, but the dd commands didn't appear to work - I was returned to the # prompt immediately. The LEAVE command also didn't reboot the phone (I had to remove the battery).

Any ideas??
[G4 General] mamoo.ma3:
Sim Unlock?

Does this method unlocks sim permanently ?

Curious to know!
[G4 General] goran_oh:
Nope.
[G4 General] BrunoSlivar:
This dont work with 6.0?
[G4 General] woozzy101:
Root in 6.0 only works with an unlocked bootloader right now :(
[G4 General] amdev0101:
On 6.0 you need to unlock the bootloader, then grab some kind of custom kernel and flash its boot.img via fastboot, then flash recovery, (best if you now flash the full kernel package) then superSU and ur done!
[G4 General] Gafanhotz:
H818P Marshmallow System Image Dump

https://drive.google.com/file/d/0B9W...ew?usp=sharing (7zipped on Ultra compression to reduce size for quick upload/download)

Edit: SELinux is Enforced, doesn't work.
[G4 General] itm:
Does the "right now" part of that sentence suggest that it may be possible to root 6.0 WITHOUT an unlocked bootloader at some point in the future?
[G4 General] woozzy101:
Development for unlocking the bootloader was ongoing according to a couple posts on the XDA forums and twitter, but its looking like unlocking the G4 bootloader is going to be a tough nut to crack. I have not seen an update on it for a while, but I haven't looked that hard for it.
[G4 General] itm:
So unlocking the bootloader is the ONLY way to enable rooting of 6.0 - i.e. there is no way that the method in this thread could be adapted to v6.0?
[G4 General] woozzy101:
Nope :'(
[G4 General] JamaicaNater:
I have v10f can I flash the kdz for v10c then use this method to root?
[G4 General] woozzy101:
You can use this method to root any LG G4 running lollipop. You do not have to downgrade your software to root.

You can either go through all the steps and make your own image and then inject root into it or find a rooted 10f image and then flash that.

Just remember, you can ONLY ever flash a rooted image for the SAME software version you are already using.
[G4 General] JamaicaNater:
I found a rooted image for 10f through I can find any English threads talking about it, do you think it would be safer to downgrade to 10c then root this method seems less safe
[G4 General] cashflow67:
It worked on my LG G4 H815TR (Türkiye G4). Thanks for everything :)
[G4 General] devilh:
I read through the last posts here, and couldn't understand clearly- is it possible to get my already mm G4 rooted?

Either by:

1. downgrading to LP, root, upgrade back to mm

Or

2. Just downgrade and root, and stay with LP

?
[G4 General] woozzy101:
It depends on what G4 you have. You can root any G4 on LP, but can ONLY root a G4 on MM with an UNLOCKED Bootloader :(
[G4 General] devilh:
So if I have a variant of G4 that it's not able to unlock the boot loader, there is no way to root? (Not even by downgrading?)
[G4 General] woozzy101:
If your G4 Variant has a locked bootloader, it is impossible to root on MM right now. :(
[G4 General] Sea-Wolf:
If you're able to successfully downgrade to LP then you'll be able to root that. There's threads on here that explain how to do it with software called LGUP. I haven't done it myself but it looks fairly easy.
[G4 General] player911:
I thought downgrades = brick?
[G4 General] cashflow67:
No. LGUP makes downgrade and upgrade easily and without any toruble. I upgraded and downgraded almost 10 times(due to noob information and wrong kdz flash :D ) I have locked bootloader and LGUP works like a charm :)
[G4 General] Sea-Wolf:
Nope, I haven't done it myself but there's lots of people talking about the success they've had here:

http://xdaforums.com/g4/help/lgup-install-kdz-mm-lp-t3249803
[G4 General] Uniquetx:
omg, i did it! thank you very much, although im a super noob and i dont understand anything about ubuntu/linux i could do it using virtualbox and everything is perfect, thanks thanks

---------- Post added at 12:40 AM ---------- Previous post was at 12:37 AM ----------

with lg up you can flash any lp/mm kdz you want as long as it is compatible with your device, mine is a sea locked forever bootloader, i was on mm found this thread, downgrade to lp and did it:highfive:
[G4 General] tommek82:
Hello everyone

I'm going to root my LG G4 device with this tutorial, which it looks very simple even for noob like me :)

Although I have a few questions:

1) Should I remove sdcard while doing root operation?

2) After root operation from this thread will my cellphone data be wiped (erased) ?

3) Assuming that I'll do root operation right what should be the first step to do? I mean my goal for doing root is that I want to have full access to sd card (and internal drive) and I want to install xposed (from this THREAD for G4 TweaksBox. So after positive rooting of my device should I install some applications like SD Fix or Root Check or something ??
[G4 General] kelavine:
I rooted my H815-10F-SEA yesterday and it worked fine.

1) I did not, but might be safer or at least back up

2) No

3) Get Root Check and confirm
[G4 General] Al0n:
Confirmed working with model H815L (Israel model) [version: v10k]

Thanks!
[G4 General] tommek82:
I can confirm that root operation was succesfull (H815 EU). Thanks for this tutorial.

Maybe stupid question but can I delete

rootedsystem.img file from internal drive after root operation?? [emoji1]
[G4 General] falle21:
Yes you can

Enviado desde mi LG-H815 mediante Tapatalk
[G4 General] woozzy101:
You can delete, but it is HIGHLY recommended you keep it for at least a while. In case you freeze/delete something important accidentally and phone bootloops. You can then just reflash that rooted image and be up and running quickly with all your settings and files intact.

So KEEP THE ROOTED IMAGE on your phone for a bit. :)
[G4 General] letoloke:
Thank you!!!!!! D:
[G4 General] JamaicaNater:
YouTube tutorial?
[G4 General] DsturbD:
i did this exact same thing. this method has worked like a charm for me on my tmo h811, when MM came out for it i flashed autoprimes zip and the kdz with lgup, neither method used could i get root on MM, so i went back to LP using lgup, now i cant use this method to get my rootedsystem.img back on my phone. the send command works and the backup system image works, but when i try to write the rooted image to the phone it goes right to the # prompt, never writes, typing LEAVE does work for me however, but now im not rooted anymore

wondering if some part of putting MM on my phone has now permanently made it unrootable :( :mad:
[G4 General] mehdi.shah:
Hey friends what will happen if my pc shutsdown for some reason during the injecting rootedsystem.img?

Sorry for my weak english :)
[G4 General] divineBliss:
Can you be more specific? What part of the process were you actually doing? :confused: :)
[G4 General] mehdi.shah:
I am thinking to root my H815 sea v10f i have pulled the system .img injected root now i am thinking to flash rooted img back to device but i am afraid what will happen if my pc shutsdown. Here is sudden electricity black out in my country thats why i am a little nervous.

Realy sorry for my english[emoji39]
[G4 General] dubart:
Can you do it using a laptop with a battery?
[G4 General] mehdi.shah:
Bro I dont have a laptop.?
[G4 General] divineBliss:
If your PC shuts down during making the rooted image, you will have to start over again with injection script. Keep a backup copy of the unrooted system image in case you have to start the injection program again.

Make sure you check MD5SUMs of files you copy between PC and phone. Make sure you phone is fully charged before you start flashing it.

Once you are on OP Step 3 ->Root

"4-Now grab your command to flash system.img line of code from this post. It isn't the same as step one. Copy that an paste in the command window. Make sure it is for your device. They are model specific.

5--This should take a while so wait until you see the # again.

6--After that LEAVE and upon reboot you should have root."

If you get a power outage between after you do step 4, but before step 5, do no turn your phone off for at least one hour since you won't be able to see the # prompt (step 5) on your PC. After one hour (to make sure flashing is done - it usually won't take that long :) , but we want to be sure ), if power went out, then turn phone off and back on.

Power outage should not be an issue then. Happy rooting! :)
[G4 General] mehdi.shah:
Means during the flashing of rootedsystem.img if my pc shuts down my device will be bricked? If yes than re flashing the stock system.img will unbrick it?
[G4 General] divineBliss:
No it won't brick. The rooted img file will be one your phone. Go back and read my last post carefully. :)
[G4 General] mehdi.shah:
Thanks a lot bro. :) one more thing bro when i sent the command to pull system.img it took only 1 or 2 minuts and created a 4.2gb system.img file in internal storage. Is it normal? I thought it would take 30 to 40 minuts to pull a 4gb img but it just took 2 minuts is it normal?
[G4 General] divineBliss:
The size is correct. I don't recall how long mine took.
[G4 General] mehdi.shah:
Thanks bro thanks a lot for your quick reply :)
[G4 General] chucky1984:
hello I have a g4 H815 SEA with locked bootloader.

there any way to make marshmallow root in a locked boot ??

sorry for my bad English

Cheers
[G4 General] goran_oh:
Sorry no way to root for now.
[G4 General] fr4nk1yn:
Its been asked a couple of times with no answer.

I'm looking not to root MM but to backup the system.img and debloat it. CMD is giving a "fail".

Does this not work with Android 6 at all?
[G4 General] mehdi.shah:
There are 2 zip files LG_root.zip and injecting_root.zip do i have to extract all files from both zips to one folder or should i extract them to saprate folders? Because both zips contain superSU.apk and root binaries so i am afraid if i mix all files from both zips mixed files will mess up my system.img pls friends help me what should i do? Mix them or keep them sprate? Sorry for my broken english
[G4 General] divineBliss:
mehdi.shah,

Follow the directions carefully. You keep them separate, because it doesn't tell you to combine them. :)
[G4 General] mehdi.shah:
You mean i have to keep my system.img and files of injection_root.zip in same folder in order to inject root?

---------- Post added at 01:05 PM ---------- Previous post was at 12:52 PM ----------

Yesterday i asked my friend to inject root for me because i am totally a noob in all this ubuntu stuff so he said ok i'll do it. Than he played a prank on me he just remaned my system.img to rootedsystem.img and gave me the file saying everything is done root has been injected. I was happy but when i flashed back the file there was no root nothing :( i told him that root is not injected properly. He laughed at me and told me that i just remaned the file from system.img to rootedsystem.img. i felt really bad. Thats why i am asking noob questions i want learn things i want to do everything by my self:)
[G4 General] mehdi.shah:
Hey friends pls help me how to inject root. I have zero knowledge in ubuntu and linux stuff so pls friends guide me how can i inject root in my system.img or if a guide is available about injecting root using ubuntu than pls pls pls give me a link to that guide plsssss friends pls help me
[G4 General] divineBliss:
mehdi.shah,

Have you tried following the instructions in post #1?

Do you have a specific questions or problem with the directions?

If you have not used Ubuntu before, you can Google for tutorials and help on that.
[G4 General] mehdi.shah:
Bro i am not able to choose C drive in ubuntu
[G4 General] unmanarc:
My download mode does not seems to accept the Send_Command, I tried id, and no answer (hangs there), I tried hundred times in both COM ports (mostly DIAG port), and everything.
[G4 General] mehdi.shah:
Finally i did it. I am sooooooooooooo happy i did it by my self. Now my device is rooted now oh yeah.... Thanks a lot friends thanks to this guide thanks to hackarchive thanks to divineBliss for helping me thanks to XDA thanks to all thank u sooooooo much :D
[G4 General] blackcemre:
Marsmallow method???
[G4 General] mehdi.shah:
Unfortunatly marshmallow cant be root with locked bootloader
[G4 General] mehdi.shah:
Successfully installed xposed. Took 19 minutes and 43 seconds . phewwww after a long black screen i thought its bricked i was about to pull the battery and sudenly i saw the flashfire rebooting screen :D

---------- Post added at 02:04 PM ---------- Previous post was at 01:46 PM ----------

Flat style colored bars module is awesome it looks really cool :)
[G4 General] divineBliss:
Bro,

This thread is not for general G4 discussion, it is specifically for root injection as related to the title.

Happy you are rooted, but please make your posts in the appropriate threads. :)
[G4 General] mehdi.shah:
Oh ok sorry bro
[G4 General] terryowen:
Successfully rooted my recently acquired G4 (H815, TWN, v10e) after a weekend's worth of frustration. I think the initial post should stress the importance of just using Ubuntu, though it could have saved me a day.

First I tried using the Linux distro I had on hand (Proteus), then downloaded CentOs and then Fedora, which supposedly worked but sent my phone into a boot loop. Finally downloaded Ubuntu, and then had to reflash the system.img and recreate the rooted image. Whew. Who knew selinux was such a pain?
[G4 General] divineBliss:
Didn't you get errors about missing packages, etc with those failed attempts? :confused:

I would expect the method to work with other flavors of Linux if they are configured with the correct packages.