yashsingh1/xdaforums huggingface dataset:
[G4 General] rightonred:
I put together a quick tool to inject root into a system.img if any one is interested

https://mega.co.nz/#!9Y4D0DiD!sGxZJaIoA3BPbfp1gpOqiLkitY7bqVFZARirVSDY2es

The only oddity is that the chcon command does not seem to run correctly on my linux machine . I got around this by running the script -- on my phone! Which requires root access, which seems like a catch 22, but it can still be used to root someone else's system.img. There's a chance that it will still work fine even if the chcon command doesn't execute correctly, but I haven't tested it.

I have thoroughly tested, and am using the resulting image on my VS986 and all is good.

Edit: Use this one instead:

https://mega.co.nz/#!RNwCHQSI!oILT9IliUAwszW1GO2k4tA2UTQ3EKGk6xybPfE-LFj8

It has a workaround for the chcon command on desktop linux. (The other one still works fine on android, its that this one should work on both)

thanks karendar
[G4 General] hollywoodS14:
Did you root the 10b image?
[G4 General] Usraek:
Uhhm, I ripped the Rogers one earlier and I've currently been letting it upload here now for like a couple hours (only going 300k). I'll have it uploaded shortly, or did you guys already get it sorted out?
[G4 General] karendar:
A workaround for the chcon command is to use the following format:

sudo chcon --reference=FileWhichHasProperContext NameOfFile

Here's an example of what I chcon:

sudo chcon --reference=temp/xbin/tcd temp/xbin/daemonsu

sudo chcon --reference=temp/bin/app_process temp/xbin/sugote

sudo chcon --reference=temp/xbin/tcd temp/xbin/supolicy

sudo chcon --reference=temp/xbin/tcd temp/lib64/libsupol.so

sudo chcon --reference=temp/xbin/tcd temp/etc/.installed_su_daemon

sudo chcon --reference=temp/xbin/tcd temp/xbin/sugote-mksh

---------- Post added at 05:19 AM ---------- Previous post was at 05:18 AM ----------

First one that gets to me wins a thank you :P haha
[G4 General] offall:
I can dump Rogers one, can anyone send me a link /tutorial of instructions how to dump it?

Thanks
[G4 General] actr0n:
H818P rooted, thanks to karendar and Codefire
[G4 General] Usraek:
My upload decided to fail due to a a freezing computer, and I'm a silly fool because I forgot to compress the image anyhow.
[G4 General] DConrad2010:
That was the issue, i had to update the LG drivers to the latest version. Thank you!
[G4 General] master1454:
Thanks, had already tried that and it doesn't work. But I got it to work by using a different browser.
[G4 General] mooglepimp:
I get the the # prompt, but it won't run the "dd" script. Just goes directly back to #.

Ideas?
[G4 General] liquidraven:
I'm trying to get download mode to do the firmware update following step 8 and it just stays at 0% for ten mins..what am I doing wrong please? I have drivers installed and steps before completed fine.
[G4 General] minirx7:
Just did the root for Bell. How long does the reboot take?
[G4 General] rightonred:
Nope. 11A. If you want to dump your 10b image, I can help root it. If you need help dumping your image, I can help with that. (I or someone else)

Thanks! I just tested that and it worked.

The version of my system.img root injecting script with the workaround that allows it to work on desktop linux:

https://mega.co.nz/#!RNwCHQSI!oILT9IliUAwszW1GO2k4tA2UTQ3EKGk6xybPfE-LFj8
[G4 General] Tech_Savvy:
So can inuse the same command to first pull the img... Then reverse the command to flash it back on my phone... Or do i have to add "bs" and skip etc
[G4 General] the_scotsman:
The % on the phone screen doesn't change - ignore it. it's nothing to do with this root procedure. Once you do #8, wait for the prompt to return to the # symbol, then you are rooted.
[G4 General] billybob275:
Here's a link to a Verizon 10b system.img someone posted a little while back in the thread: https://www.androidfilehost.com/?fid=24052804347781719
[G4 General] javed91214:
my phone was bricked , bcz it was on ZV4 and i did the root process . security error is cmng and phone rebooting.

i have one working system.img , i wants to flash that file. but the issue is hw to copy img file into phone internal storage?
[G4 General] autoprime:
awesome... glad to see people steppin up and getting new images uploaded.. and now root scripts, methods for rooted stock system.imgs and root videos. :good:

I see someone got H818P rooted. Awesome. :victory: Didn't see a rooted system.img uploaded tho? I happen to have H818P 10D rooted system.img I made earlier. It was taken from the H818P 10D KDZ (LG G4 Dual Sim H818P Indonesia) but I would assume it'd work for any H818P on 10D.. and possibly other versions too.. I hear there is a 10E but no one has shared their KDZ for that yet. KDZ spreadsheet and other info here - http://xdaforums.com/g4/development/stock-complete-kdz-list-t3147406

I'll add the H818P 10D rooted system.img to the 2nd post in this thread... and I'll update it with any pre-rooted system.img's you guys want me to post there. I dont want to just take other people's links and move them to post #2.. thats up to the uploader.

I have the H818N 10D system img I may do next but I think that about about covers it for imgs posted by us. I think it can be taken over from here as far as system.imgs go. hopefully we get some more eyes on those system.img root steps and the rest of the imgs get posted and everyone on any model/softwareversion could have root by tomorrow. spread the word.. :cool:
[G4 General] liquidraven:
So when I enter the command to flash the file from sd card and hit enter I get the # right away..leave command doesn't reboot phone.

I extracted the Verizon img to sd card root folder?
[G4 General] rightonred:
Yes. Just swap 'if' and 'of' and put 'skip' instead of 'seek' to pull. Make sure 'of' doesn't point to the block device!

Will post a rooted version if no one beats me to it tomorrow. Calling it a night.
[G4 General] the_scotsman:
the leave command needs to be all uppercase.

but if the # appeared straight away, root didn't work. have you installed the latest correct drivers? Did you use the correct COM port? it's the one that says DIAG. Did you extract the *.img file from the tar file to the root of your INTERNAL STORAGE, not sd card. and NOT in a folder.
[G4 General] liquidraven:
Ah I put it on sd card lol oops..thanks
[G4 General] misteurz:
Hi,

My h815 did exactly the same thing in the first boot.

15 minutes after, everything was working like a charm

Envoyé de mon LG-H815 en utilisant Tapatalk
[G4 General] minirx7:
Just tried this on my bell phone.

Stuck on a boot loop.. Can you please confirm the DD command as i am stilll able to go back in to download mode. Thanks@!
[G4 General] chen-1:
H818P 10E

http://csmgdl.lgmobile.com/dn/downloader.dev?fileKey=FW3444X132EVAFV26E22YKZ/H818P10e_00.kdz
[G4 General] javed91214:
is there any to flash img file frm sdcard or copy img to internal storage. if twrp available or not for ls991? thn it will work.
[G4 General] billybob275:
Verizon vs986 10b image is ready

. Running fine on my phone, but flash at your own risk. No exFat issues with a Samsung 128gb microSD, but I did take it out of the phone when I flashed the rooted image.

Download Link: https://www.androidfilehost.com/?fid=24052804347782448

Command to run:

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

[IMG="VS986 10b rooted"]https://dl.dropboxusercontent.com/u/9896449/Verizon%2010b%20root.png[/IMG]
[G4 General] esmenikmatixx:
I'd also like to know if backup/then zero out LAF.img would potentially allow fastboot oem unlock? It seems to work on a couple other LG phones
[G4 General] Usraek:
Rogers H812 image dumped and uploaded (finally, whew). Linked to the gentleman requesting it. Hopefully root forthcoming.

Cheers
[G4 General] vaseker:
Successfully installed rooted image 10D on H818P(RU) but lost extFat support on external sd (don't care).

Thanks! :highfive:
[G4 General] HTCuser90:
LS991 Sprint stuck on logo with security error when finished :(
[G4 General] MicroMod777:
I'd try this but mine T-Mobile USA H811 is already unlocked from factory.

Doesn't anybody here want to be unlocked? Seems only root was more important.
[G4 General] Negan:
I had the same issue (bootloop with my 812 bell) and hopefully you kept your backup system.img on your sd card and if you kept it named system.img just run the command

dd if=/data/media/0/system.img bs=8192 seek=65536 count=548352 of=/dev/block/mmcblk0 and you'll be up and running fairly quick. just be sure that the name of the image you flashed is in the command properly

ie: dd if=/data/media/0

/name_of_file.img

bs=8192 seek=65536 count=548352 of=/dev/block/mmcblk0

and you should be ok again. Sucks cause it only took me 30 min to upload my system.img of 4.5 gb but took me 5 and a half hours to dl one!!!
[G4 General] roosta:
H818P and H818N (dual SIM) users, keep posting your IMG files (need 10a, 10b for 818P, 10a,b,c,d,e for 818N) and I'll be updating a more specific root method on my thread with credit to where credit is due (all source file contributors and devs).

Thanks

RoOSTA
[G4 General] Allesa:
I have H818P with indonesian 10e firmware. However when I open LG phone info app to check on my kdz link, it shows a link for 10d. I'm confused...

Will it be possible to use your pre-rooted 10d img on my 10e firmware though?
[G4 General] pelon90005:
You probably flashed the zv5 software when you had the zv4 one on your phone

Sprint LG G4
[G4 General] Andrey_hifi_Moskalets:
Awesome! Patiently waiting for that image. Sorry for my previouse posts. I really didn't get into situation as deep as possible. Sorry for conspiracy theories. Will donate right after rooting my 818P. Thanks again.
[G4 General] vaseker:
Lost cellular connection on both SIM cards. Flashed 10D over 10C stock.
[G4 General] minirx7:
THis is horrible. I didnt keep a backup of the system.img file. I am assuming my phone is messedup now as i am stuck on the boot loader.. Where can i get a copy of hte stock system.img file. Also, do you know how to push the file back in the SD if i can't boot (ie. via ADB?)
[G4 General] HTCuser90:
How to recover my phone or waiting until official rom has been release :confused:
[G4 General] esmenikmatixx:
Welp. Dont zero out laf

LS991 wont boot at all.. fresh batteries..

the only time I see something on the screen is if I plug it in with no battery I get a ? in a big battery icon..

anybody got any ideas
[G4 General] Eagle1337:
I can't say that I really know how these work but it appears that the kdz for the verizon variant exists.

https://docs.google.com/spreadsheets/d/1ANmGSVJo1_5x5urQvTfyfrIc7smiL6yrFDNZ4Ao_pfs/edit#gid=0
[G4 General] MicroMod777:
Can u get into fastboot mode? Volume up, then plug in microusb to computer?
[G4 General] Allesa:
Added 10e for 818p on the spreadsheet after searching around xda... Not sure from which country tho...
[G4 General] esmenikmatixx:
No it wont go. When I first put a battery in, the first time I hit power button I get a buzz like its going to turn on but it doesnt. No LED no backlight or security error or anything, just a black screen except if I plug usb in but no battery
[G4 General] biff6789:
Confirmed working on my Verizon VS986 running stock 10B software and bootloader. Thanks for the upload!
[G4 General] Dennisg34:
People, PLEASE stop asking "I have model ******, will this work?"!!! OP clearly states each model. International is CLEARLY marked as well. GAH! 96 pages already, 90 of them the same crap over and over.
[G4 General] autoprime:
you're 110% positive you entered the right command to zero laf? I dont want to doubt you but could you post the command you used?

It's just odd that wiping ONLY laf would cause the phone not to boot into any modes (download/recovery/system). If the command was proper I'm kinda scared... maybe ghosts involved :eek:
[G4 General] biff6789:
There is no Verizon 10B image in the OP, champ. Somebody else (i.e. NOT one of the devs) just posted it here an hour ago and I'm the first to post whether or not that image actually works. Please show me where a 10B version for Verizon is "CLEARLY marked in the OP" as you suggest. Calm your tits.
[G4 General] Dennisg34:
Why don't you read what I actually said. That's software version, NOT model which is what I clearly wrote.
[G4 General] dilligaf56:
Downloaded the 10b image as above, and was able to get it into the internal SD card root directory on the phone. However, when I run "adb devices" the phone isn't seen.

It's also not assigned a COM port.

Tried this with a couple of micro-USB cables. No joy. However, no problem seeing the contents of the directory tree in MTP mode.

Scratching my head here....
[G4 General] clandes:
So I have the H815 Vodafone Germany variant with 10b software. Can I use the standard Internatiional H815 10c files?
[G4 General] biff6789:
Uh huh. And where exactly did I ask if my model was supported, as you insinuated in your first attack post? Can you show me? No you can't because I didn't. You jumped all over me about something I didn't do, straw man.

Have you even been paying attention? Our 11A version in the OP causes bootloops if you're still on a 10B bootloader. The devs advised Verizon users not to upgrade to 11A if they want to maximize their chances of a bootloader unlock. Ergo, we VZW 10B users have not been able to root until about an hour ago when a regular user unofficially rooted an image himself and posted it here. Nobody confirmed whether it worked so I took the dive and posted for others that it works.

What's the problem? Users aren't allowed to post whether or not a newly posted root image works in a thread dedicated to root images? Especially after one of the devs jumped in a few pages ago and said he appreciates that other users are collaborating and sharing their own root files? The hell??

You're out of line, but I'm not going to turn this into a flame war. I won't be engaging you any further.
[G4 General] esmenikmatixx:
Im not 100% sure if i did it right tbh. First hard brick ive had over idk 10-12 phones, it was way overdue.

I saw a list showing laf in /dev/block/mmcblk0p8

I think the command was something like

su

dd if=/dev/zero of=/dev/block/mmcblk0p8

I had a backup, I think. If thats where laf actually is.
[G4 General] Shadefactor:
Try enabling usb debugging
[G4 General] Dennisg34:
Actually buddy, I never attacked YOU at all. Please show me where my first "attack" post said "Biff6789, blah blah blah blah". You can't, because it doesn't exist. I'm talking about the numerous people on here and their international versions asking the same questions, or questions about how to do this.

I understand that, which is why lots of people KDZ'd into 11A. Since I had seen no progress of 10B, I did it myself. Looking at the update, I saw nothing before I flashed it that would show me the BL would be affected in a larger way that has been said.

I never said THAT was a problem, did I? Nope, you took offense to something that had NOTHING to do with you. I actually commend the person who uploaded the 10B image and was a little mad I didn't wait myself, but too late for that now.
[G4 General] esmenikmatixx:
Christ it was mmcblk0p37

Smh I was reading about aboot.bin mods too.

So i deleted aboot. Oops.
[G4 General] autoprime:
ahh.. that would explain things. i think p8 might be aboot. on the korean g4 laf= /dev/block/mmcblk0p37

never use "mmcblk0pxx" use you have confirmed on your own device that the partition is what you think it is.

it is always suggested to instead use the "by-name" option instead which takes all the guesswork out of it.

example: dd if=/dev/zero of=/dev/block/bootdevice/by-name/laf

wiping aboot puts you in an unrecoverable state :crying:

take back to carrier and blame on ota? insurance? :fingers-crossed:
[G4 General] dilligaf56:
It's been enabled since I started the process.
[G4 General] esmenikmatixx:
Meh, no insurance but no big deal

Im still curious if it would work though, zero laf, fastboot oem unlock
[G4 General] MicroMod777:
Backup 1st:

dd if=/dev/block/bootdevice/by-name/laf of=/sdcard/laf.img

You might need it to enter download mode later.
[G4 General] autoprime:
nope.

are we really comparing security of a $100 phone vs the newest flagship on 5.1?
[G4 General] MicroMod777:
Contact LG. U have 1 year warranty.
[G4 General] chen-1:
hi, autoprime, the link is F500L10t_system.img(not rooted).

https://www.androidfilehost.com/?w=files&flid=36151

btw, when will you release the H818/N H819 system.rooted.img? Thank you for your hard work.
[G4 General] MicroMod777:
So u don't think a modified aboot can possibly work to unlock the G4?
[G4 General] Nima79:
[MENTION=2684188]autoprime[/MENTION] and CodeFire team thanks for all urhard work

finally release H818P . wish could donate to u guys ، but im living in the country that cant transfer money to ... :(
[G4 General] crucky:
Yes you can did the same on my Vodafone germany h815 only thing you temp lose is exfat support :( Autoprime or any other dev can comment on that one ?!?

Gesendet von meinem LG-H815 mit Tapatalk
[G4 General] clockcycle:
LG_Root.zip.exe has the .EXE extension, it's a trojan/fake that installs malware into your PC. Use the DOWNLOAD NOW button instead, but check the link before downloading. It should only be named LG_Root.ZIP
[G4 General] hellviruz:
I have the Canadien Videotron H812 10b. How can I dump the system.img so I can contribute (I tried the command in the first post but it gave me a 4gb file, is that it?)
[G4 General] Sean473:
Autoprime, any updates on a one click root? This method is too risky for me.. Also would like to have the option to take OTA updates which this method won't allow...
[G4 General] LancerV:
Yeah root isn't for you :good:
[G4 General] Negan:
That would be it. Keep that copy on your phones internal so you can recover if the root doesn't work when you have something to flash
[G4 General] Erik1805:
Yes, no problem. Did the same with my dutch H815 with 10b software.
[G4 General] karendar:
I'm back. I've deleted the Bell ROM that bootloops.... Sorry guys. I'll reupload a fresh one soon.
[G4 General] Negan:
812 bell system.img<br />

build LMY47D<br />

Version H81210c<br />

<br />

https://www.androidfilehost.com/?fid=24052804347781672

My gut tells me you cannot push this to your device if you're stuck in DL mode and you've bricked but this is my system.IMG

---------- Post added at 08:20 AM ---------- Previous post was at 08:16 AM ----------

It happens man. Rule number 1 on day 1 in rooting school is always have a backup.

Appreciate your efforts as you've been able to do what I haven't
[G4 General] minirx7:
Thank you !!! Will download the img file soon.

And i think you are right, i have not found a way to push the img file back into the phone, so for now my phone is a paperweight. And your right, things like this happens but i am sure there will be a way to bring my phone back to life!!

Thanks everybody for all your efforts to bring ROOT!
[G4 General] soyelmango:
Rooted just fine here (thanks team Codefire!), but like some others, it doesn't recognise my exfat format sd card. I'm on the international h815.

Looks like I'll wait a little longer until exfat is supported before transitioning to my G4.
[G4 General] sardroid:
H815 eur has this option too, but recovery not working:(
[G4 General] IlyaKol:
Can anyone point me in the direction for the 11A KDZ file? The only files of Autoprimes I can find is the 10A, 10B, and 10C files at this location http://downloads.codefi.re/autoprime/LG/LG_G4/H815.

EDIT: I'm on 815 10B and evidently need to KDZ to 11A first before this will work.
[G4 General] seb93:
Is this method going to erase my data: apps, photos... ?

Thank you.
[G4 General] munkypoo7:
Followed the instructions to make the system image for the H810 (AT&T Variant), sent a PM to [MENTION=1157052]thecubed[/MENTION] with the link :)
[G4 General] mfun89:
I cant find the .dll file, only the kdz where do I get that?
[G4 General] smw6180:
My GUESS based on conversations with [MENTION=4911249]Unjustified Dev[/MENTION] is that it comes unlocked. It's probably possible to dd that version of twrp on a stock unrooted ROM with send_command in download mode. I may take it back to stock to test (probably not. More I think about it, less I want to mess with it at this point), but it's possible it would work without root. Haven't tested, as I said, I just know that I rooted, DD'ed the twrp image UD gave me and it all works fine (backup/restore. I haven't tried to flash anything, see no reason it won't work).
[G4 General] IlyaKol:
You're trying to flash 10B too right? Can you share whatever info you have with me (where to get the KDZ, etc.)?
[G4 General] the_scotsman:
Confirmed working on the H815 Taiwan model :good:

Thank you devs, awesome work! :highfive:
[G4 General] Unjustified Dev:
On T-Mobile it actually does unlock the bootloader. In fact this was discovered by users of the LG Leon, on androidforums, after they updated to 5.1.1 . LG released two versions v10D and v10E only 10D could still be exploited with kingroot and after checking this option it allowed for flashing of TWRP. Failing to check this option on T-Mobile will result in secure boot error. My thoughts is LG unlock service wasn't planned for the devices that don't have the option. Your either locked (no option to unlock) or locked (option to unlock with LG service). Somehow T-Mobile doesn't fall in that category. I apologize for off topic posting, but I hope the confusion is now cleared up.
[G4 General] frankymix:
Can someone make a video of the steps of how to root?
[G4 General] bendsley:
No, it won't.
[G4 General] the_scotsman:
The steps are very very clear. What are you having trouble with? It's all in the OP and the thread linked in the OP.
[G4 General] bendsley:
I'm sure there will be one soon, given this just was released this morning. However, if you follow the steps exactly as told....it works. I'm on the T-Mobile variant like you and have no issues now.

I had issues with the phone basically slowing to a crawl....it wasn't the root, but applications and widgets I have installed that can work in a "rooted" mode also, (ie. Weather Live). I had to remove the widget and reboot my phone....add the widget back and now we're all good.
[G4 General] frankymix:
I have not started rooting yet. I just want to make sure I'm doing things right and not brick the phone. Video would probably help out other people too.
[G4 General] smw6180:
I had the same issues. A reboot sped it back up for me.
[G4 General] frankymix:
I hope so. Knowing me I will need to use my 2 laptops then to get this done lol.
[G4 General] bendsley:
donated to all 4 of you. thanks!

[MENTION=1157052]thecubed[/MENTION] - 4VJ926056U416121G [MENTION=6053822]IllegalArgument[/MENTION] - 82M19117BG7331127 [MENTION=2684188]autoprime[/MENTION] - 06K67892BR4280359 [MENTION=2376614]jcase[/MENTION] - 2V84877362552312U

---------- Post added at 09:30 AM ---------- Previous post was at 09:28 AM ----------

No...it really is pretty simple. Just make a folder on your desktop, download the LG zip file, download the image and extract the tar.gz file, follow step by step. Take a few minutes and do nothing else...because yeah, possible to brick your phone (not likely though)...just make sure to follow each step exactly.
[G4 General] frankymix:
Ok that sounds easy. Let me see if i dont screw this up! Lol
[G4 General] ThePhoneGeek:
Sold my G4 a week ago and went back to HTC. That said I agreed to contribute to the effort with $20 for root and because right now I can do more I upped that to $40 and sent $10 to each of the four devs.

[MENTION=1157052]thecubed[/MENTION] 3AC121652Y810501C - $10
[MENTION=6053822]IllegalArgument[/MENTION] 08927463V2408360W - $10
[MENTION=2684188]autoprime[/MENTION] 5L821282LD070210V - $10
[MENTION=2376614]jcase[/MENTION] 39E40958BG283434N - $10

Congrats and thank you for the effort.

PG
[G4 General] leond:
Trying to dump on Sprint LG G4 and getting "dd: /dev/block/mmcblk0: Permission denied"

shell@p1:/mnt/sdcard $ dd if=/dev/block/mmcblk0 bs=8192 skip=65536 count=548352 of=/data/media/0/system.img

=8192 skip=65536 count=548352 of=/data/media/0/system.img <

dd: /dev/block/mmcblk0: Permission denied

1|shell@p1:/mnt/sdcard $

sounds like you have to be root to dump system partition