yashsingh1/xdaforums huggingface dataset:
[Sprint LG G3] golpeen420:
When it says "looking for lg serial port" in the script, does it say "serial port not found" and make you manually boot in to download mode?
[Sprint LG G3] swapcall:
same here..

tried 7 times with v1.2 v1. gd with GUI one but only below steps

"ui_print - Disabling OTA survival

ui_print - Removing old files

ui_print - Placing files

ui_print - Post-installation script

ui_print - Unmounting /system and /data

ui_print - Done !

than nothing tried on ZV4 and works perfectly
[Sprint LG G3] optiplex2012:
nope, it finds the com port 4 and cotinues, booting the g4 into download mode

but than in the script it just skips the part where it suppose to run the su.zip archive
[Sprint LG G3] golpeen420:
Yeah went back to ZV8 and tried this and it worked, still no luck with ZVA
[Sprint LG G3] l33tlinuxh4x0r:
This only works on the LG G3 and other phones that were supported by the older method. I was hoping that it would work on the LG G4 but no dice.

tldr, This does NOT work on the LG G4
[Sprint LG G3] l33tlinuxh4x0r:
You are on a LG G3 ls990 and this didn't work with ZVA? That is weird. It worked on my phone. Is else with a G3 having issues? Maybe it is the version of windows that it is being run on. I remember that I used to have issues with the old script and had to run the following command manually. Note you might have to change the com port number.

Send_Command.exe \\.\COM4 < installRoot
[Sprint LG G3] golpeen420:
I am on LS990 stock ZVA. I've changed the com port like 5 times, 5 different numbers, at what point should I enter that command?
[Sprint LG G3] l33tlinuxh4x0r:
You enter the command when the phone is in download mode. You can find the com port number in Device Manager in windows. It is usually the higher of the ports. It is never COM1 and LPT1
[Sprint LG G3] Rally187:
is it possible to install a custom recovery on ZVA?
[Sprint LG G3] golpeen420:
After I run the script? Or just open a command window in the script folder and enter the command? Sorry for so many questions, just a little confused
[Sprint LG G3] l33tlinuxh4x0r:
If you have already run the script and it failed just enter download mode and run that command from the script folder in a command prompt. Once it finishes reboot and you should have root.
[Sprint LG G3] golpeen420:
Trying now, thank you so much for the quick responce
[Sprint LG G3] l33tlinuxh4x0r:
I'm not sure I haven't tried. I'm sure that you will have to downgrade the bootloader and bump the recovery. There is a apk that will do it for you if you have root. I'll try to find a link and update this post.

This should do the trick however I haven't tested it as I just use stock with root. http://xdaforums.com/sprint-lg-g3/development/apk-flash-twith-auto-rec-thanks-to-t3078507
[Sprint LG G3] golpeen420:
sadly it produces the same results when I enter the command, it skips the part where it opens the archive and installs root, and when I reboot, nothing changed
[Sprint LG G3] l33tlinuxh4x0r:
Are the files being sent to your phone correctly with the script? It uses adb so you have to have USB debugging enabled.
[Sprint LG G3] golpeen420:
They appear to by being sent correctly, and yes I have usb debugging on
[Sprint LG G3] l33tlinuxh4x0r:
Can you do a

adb shell ls -la /data/local/tmp

please post the output.
[Sprint LG G3] scorpic1978:
this one doesn't' work.

---------------------------------

LG Root - One click script

Written by avicohh

Updated by l33tlinuxh4x0r

Now with support for ZVA

---------------------------------

Please make sure that USB debugging is enabled, and LG drivers are installed.

Starting adb server..

Waiting for device..

Device detected!

Pushing files..

3639 KB/s (1048328 bytes in 0.281s)

586 KB/s (9393 bytes in 0.015s)

5021 KB/s (4017098 bytes in 0.781s)

Rebooting..

Looking for LG serial port..

Serial port not found, please insert the phone manually into Download mode.

Disconnect the USB cable and turn off the phone.

Then press and hold the Volume Up button, and while you're doing that connect th

e USB cable again.

Waiting for device..

Phone found at COM41!

Rooting phone..

If you don't see the SuperSu installer script runs within about a minute,

then the root failed.

Author : blog.lvu.kr

SPECIAL COMMAND : ENTER, LEAVE

###########ui_print *****************

ui_print SuperSU installer

ui_print *****************

ui_print - Mounting /system, /data and rootfs

ui_print - Extracting files

ui_print - Disabling OTA survival

ui_print - Removing old files

ui_print - Placing files

ui_print - Post-installation script

ui_print - Unmounting /system and /data

ui_print - Done !

Please press Ctrl+C, and then type N and ENTER to reboot.

#
[Sprint LG G3] golpeen420:
My results exactly
[Sprint LG G3] scorpic1978:
C:\Temp\Phone\LG\Root\LG Root Script v1.G4>adb shell ls -la /data/local/tmp

-rw-rw-rw- shell shell 4017098 2015-03-08 07:49 UPDATE-SuperSU-v2.46.zip

-rw-rw-rw- shell shell 1048328 2015-01-18 11:00 busybox

-rw------- root root 430 1970-03-16 19:05 itson_update_log

-rw-rw-rw- shell shell 9393 2015-03-17 00:09 lg_root.sh
[Sprint LG G3] l33tlinuxh4x0r:
You all are right the 1.G4 version doesn't work at all! I am fixing it now... however the original version that I posted 1.2 works.
[Sprint LG G3] golpeen420:
these are my results from using:

adb shell ls -la /data/local/tmp

not sure what it did
[Sprint LG G3] l33tlinuxh4x0r:
adb shell ls -la /data/local/tmp tells me if the files are pushed correctly and also tells me if the permissions are changed by the script. The files are pushed correctly but the permissions are wrong. I'm looking into it now.

There are one of two things at play here. One being that I forgot a command or two that I typed in when rooting my phone or 2nd there is some sort of time lock on ZVA you are allowed to root/downgrade/ whatever for say 30 minutes after the upgrade and then no dice. Might be why the G4 isn't rootable and also why LG can update these phone. Some sort of key that unlocks the phone for the time needed to flash a rom and then locks when the timer runs out.

I am doing more testing.
[Sprint LG G3] scorpic1978:
both got the same results: no rooting!
[Sprint LG G3] golpeen420:
I've tried the 1.2 version as well, but I'm gonna clear all my drivers, reinstall them and try again

---------- Post added at 03:34 AM ---------- Previous post was at 03:18 AM ----------

I doubt the time lock thing, i was zva all night, and flashtooled zv8 this afternoon
[Sprint LG G3] l33tlinuxh4x0r:
Tot will always flash but the download mode thing might be under time lock. I had unrooted my device yesterday using the zv8 tot and let it sit all night and tried to root again today and it was doing the same thing for me that it was doing for you guys. I just got my phone backup with ZV8 again. I'm going to take the OTA and then I'm going to try rooting it again. That is an idea too, if it works after a fresh flash it might have something to do with having a google account associated with the phone or a lock screen due to the new factory reset protection. Anyway about to take the ota give me about 20 minutes to test if root works. I am trying with no lockscreen and no google account.

Update: I tried to get the ota and it says that I'm up to date? I checked the software version and it says ZV8
[Sprint LG G3] golpeen420:
huh...strange, I actually haven't even been pushed the ota yet myself, updated through flashtool

edit: so I flashtooled back to stock ZVA to get a clean slate, and ran the 1.2 script, gave me the same results but when I ran the

adb shell ls -la /data/local/tmp

command it gave me different results than before, i included a screenshot of the results
[Sprint LG G3] l33tlinuxh4x0r:
strange... I tried falshtool and got an error. Failed PreviousLoad ()

brb I'm going to reboot my pc and try again.

PC reboot fixed that error.
[Sprint LG G3] golpeen420:
I edited my previous post and included a screenshot that may have some helpful info, not sure though
[Sprint LG G3] l33tlinuxh4x0r:
Yeah I checked that. It still isn't changing the permissions. I am going to test my time lock theory. Just used the ZVA tot and Android is upgrading... going to run the script as soon as I can enable adb.

Hey, have you tried running the script from command prompt instead of double clicking on it to run it?
[Sprint LG G3] golpeen420:
no actually I haven't, how would I do that?
[Sprint LG G3] l33tlinuxh4x0r:
It probably wont work but that is how I usually run it so I thought that it was worth a try. Start > Run > cmd

then cd to where ever you extracted the zip and run LG Root Script.bat

again it probably wont work but worth a try.
[Sprint LG G3] galaxyhero:
Help I flashed ZVA tot and now I can not root/ both scripts dont work for me, even when it says to boot into download mode. it doesn't recognize busybox either. i am on com41 is that why?
[Sprint LG G3] golpeen420:
yeah no go one that one
[Sprint LG G3] l33tlinuxh4x0r:
it is weird that it worked yesterday but not today. I'm still trying.
[Sprint LG G3] golpeen420:
I'm testing to see if i can still root zv8, to kinda test the timelock theory, then if that works go back to zva and play with that script a little more
[Sprint LG G3] l33tlinuxh4x0r:
Yeah this script still roots ZV8 I already checked that.
[Sprint LG G3] golpeen420:
Indeed, so at least there's that. Gonna flash back to ZVA and play around some more
[Sprint LG G3] l33tlinuxh4x0r:
I think that I got it!!! Just need to reboot and use the script to root to check it.

NO dice... but I'm a bit closer.
[Sprint LG G3] golpeen420:
Nice , any progress is good news, still no luck using the original 1.2 method. I've tried just about every different thing I could to make it work. results are always the same.
[Sprint LG G3] l33tlinuxh4x0r:
I finally figured it out! But I did it manually and I need to update the script with the root steps.

I got it working and tested. Hopefully I didn't forget anything in the script but I know how I did it now so if I did mess up the script I can always just post the individual steps.
[Sprint LG G3] galaxyhero:
Almost works for me but towards the end the whole window disappears. my phone is in download mode the whole script window died.
[Sprint LG G3] l33tlinuxh4x0r:
what was the last thing that is said? The last command says press any key to exit. So if it is done and you press anything it will close.
[Sprint LG G3] galaxyhero:
I ran it again this time window doesnt die, but still no root no superuser app.
[Sprint LG G3] l33tlinuxh4x0r:
What was the output?
[Sprint LG G3] galaxyhero:
it ran thre control C twice

---------- Post added at 11:18 AM ---------- Previous post was at 11:17 AM ----------

not sure what you mean by that. No luck for me did not root for me.
[Sprint LG G3] l33tlinuxh4x0r:
What does it say on your computer screen can you copy and paste it? Also it is supposed to make you control C two times now.
[Sprint LG G3] l33tlinuxh4x0r:
What version of the Script are you using? I just got done flashing my phone back to stock. I am going to try to reproduce your problem.
[Sprint LG G3] galaxyhero:
I tried all scripts dont work for me tried 2.1 last
[Sprint LG G3] l33tlinuxh4x0r:
I just fixed the script finally. I reflashed to stock and ran it and it actually works this time. Uploading version 2.2 to the opening post.

EDIT: OP is updated give it a try. Sorry to everyone that this didn't work the first time that I uploaded it and thanks to everyone that helped me test it.
[Sprint LG G3] scorpic1978:
still doesn't work.

If you don't see the SuperSu installer script runs within about a minute,

then the root failed.

Author : blog.lvu.kr

SPECIAL COMMAND : ENTER, LEAVE

#

it stops at this step. No further information.
[Sprint LG G3] l33tlinuxh4x0r:
Just let it sit a bit longer. Also I have found that with this script and with the original that if you try to do anything else on your computer at the same time that it sometimes doesn't work. Anyway... try the script one more time. If it still hangs close it and run the following with your correct com port number

Send_Command.exe \\.\COM41 < installRoot
[Sprint LG G3] galaxyhero:
Still no luck for me. and when i try to open send command.exe it instantly closes on open.
[Sprint LG G3] l33tlinuxh4x0r:
what version of windows are you running?
[Sprint LG G3] galaxyhero:
Windows 10 build 10130 64 bit
[Sprint LG G3] l33tlinuxh4x0r:
I don't know why it is getting stuck. I too am on windows 10 and it works fine. Are you in download mode? Are you running it from the directory where it is located on your pc? Also did you try 2.2?
[Sprint LG G3] scorpic1978:
i will try this after work.
[Sprint LG G3] galaxyhero:
I extracted lg rootscript 2.2 to desktop and ran lgscript batch file only recognizes phone in download mode com 41. But no luck in rooting. Do i need a seperate adb installation or is one included in folder enough?
[Sprint LG G3] l33tlinuxh4x0r:
adb that is included should be enough. I just found a type-o in the script that might be causing the problems.
[Sprint LG G3] galaxyhero:
Hmm so im not sure why its not working for me then.
[Sprint LG G3] l33tlinuxh4x0r:
Uploading version 2.3 to OP. I just tested it on a fresh ZVA update. It now backs up your old files and pulls them to your computer for safe keeping. If it hangs wait 5 minutes if still nothing then there is a problem.

Upload complete, check OP.
[Sprint LG G3] l33tlinuxh4x0r:
Can anyone confirm that the script is running correctly now?
[Sprint LG G3] javed91214:
its working , i have Sprint LG G3 with ZVA . my phone is rooted . thanks a lot ...
[Sprint LG G3] l33tlinuxh4x0r:
Excellent news!
[Sprint LG G3] galaxyhero:
confirmed working now, thanks!! Though i had to reboot twice and then disconnect and put in download mode twice.
[Sprint LG G3] javed91214:
i have flex2 with 5.1.1 , can i try the same script for flex 2 and g4 ?
[Sprint LG G3] galaxyhero:
Help my phone will not boot now i get a LG Security error bootloop. All i did after i rooted was install busybox, autorec,and twrp sd card fix and restarted and now im in this bootloop. Going to go back to ZV8 for now. weird.
[Sprint LG G3] l33tlinuxh4x0r:
This is normal.

NO this will not work with any other device as it modifies device specific files. And will probably brick any other device.

Yeah I had the same problem with autorec. I believe that it has to do with the kernel not being bumped correctly and I'm not sure why it isn't being bumped correctly.
[Sprint LG G3] javed91214:
is it possible to modified the file for flex2 and g4?
[Sprint LG G3] l33tlinuxh4x0r:
No essentially it just downgrades to an older version of a file for the G3... I have an idea for a G4 root but I have no way of testing it and it might brick devices with no way of unbricking as there are no tot files yet.
[Sprint LG G3] galaxyhero:
So is there a way around autorec. Another way to install twrp without getting that bootloop?
[Sprint LG G3] l33tlinuxh4x0r:
I'm working on it ;)

I need to do more research into what autorec is actually doing. I tried manually flashing twrp and aboot and boot but it just hard bricked me. Nothing on the screen not able to boot. I recovered it though Will work on this some more tomorrow or over the weekend.
[Sprint LG G3] scorpic1978:
it works, thanks
[Sprint LG G3] bigbyte.me:
For ZV8 none of the script or GUI method worked for me. But what always worked for me was sending commands manually following this thread

http://xdaforums.com/android/development/guide-root-method-lg-devices-t3049772

It would be great if [MENTION=673006]l33tlinuxh4x0r[/MENTION] can post the commands that can be send through pc on a command prompt in addition to the script. For people like us for whom the script never worked it would be of great help.
[Sprint LG G3] l33tlinuxh4x0r:
I updated post 2 with instructions.
[Sprint LG G3] bigbyte.me:
Thanks a lot, makes job little easier for me. In case the script is not able to identify correct port and I can retry and restart from same step instead of starting over all again.
[Sprint LG G3] DuhWinning:
I rooted ZVA with this a couple days ago (6/27) and it worked perfectly. There were a couple necessary usb pulls that I don't think were mentioned in the directions but it was easy to figure out.
[Sprint LG G3] g4nj4b4by:
+1
[Sprint LG G3] actionbot:
WORKS! THANK YOU! and a BIG thank you to senior Op - 1619415... This person helped me in private chat and I am now rooted! I wish I could thank you personally my friend!!
[Sprint LG G3] TigreO:
Thank you so much for v2.3. After spending countless hours scouring the internet and just getting frustrated, my phone is finally rooted.
[Sprint LG G3] Androidawg:
Been trying for 3 days with no success. It initially recognizes the device and pushes files, then rboots the phone and looks for the serial port. The phone will not reboot into download mode, so I have to disconnect, turn it off and then hold the up volume button and connect the phone. Then it finds the phone (COM5 on my machine). It says installing LAF and then it stops at SPECIAL COMMAND : ENTER, LEAVE. So I Ctrl C and hit n and Enter.It reboots the device again (the phone boots normally, not into download mode) and the scripts says "Device detected!" Grabbing backup files. "failed to copy '/data/local/tmp/lafBak.bin' to './lafBak.bin' : Permission denied

Rebooting..

Looking for LG serial port..

Phone found at COM5!

Rebooting into Download mode.. (which again, the phone refuses to do so I have to manually put it into download mode)

Waiting for device..

Phone found at COM5!

Rebooting phone..(which doesn't happen, the phone just stays on the Firmware Update screen)

If you don't see the SuperSu installer script runs within about a minute, the root failed.

Author : blog.lvu.kr

SPECIAL COMMAND : ENTER, LEAVE

#

and that's it, I reboot the phone and nothing happens
[Sprint LG G3] galaxyhero:
I am using cloudyrom 2.4 and i could really use the activiation folder in system if someone can please send me it, thanks
[Sprint LG G3] hunterintustin:
I decided to root it without the auto-script and it worked. It took about 5 minutes for the SuperSU to start but I got finally root again.
[Sprint LG G3] lilizblack:
If you get stuck at bootloop... try this

I had problems running the lg root script 2.3 after it installs the laf image. Luckily The script did a laf backup bin file of my previous laf image. After the bad flash the lg g3 was stuck in bootloop. Well after a few try and errors i found a way to recover without deleting or reflashing phone. This will work as long as you have a lafbak.bin of your phone.

This require knowledge in CMD And ADB Commands

First place your phone in Download mode (VOL up + cable)

Look for your LG Serial COM PATH (You can check it in device manager > ports)

Send_Command.exe \\.\COMPATH

When you see #, input

dd if=/dev/block/platform/msm_sdcc.1/by-name/laf of=/data/local/tmp/lafBak.bin
dd if=/data/local/tmp/lafBak.bin of=/dev/block/platform/msm_sdcc.1/by-name/laf
chmod 755 /data/local/tmp/lafBak.bin

Then

!/sbin/sh

sh /data/local/tmp/lg_root.sh dummy 1 /data/local/tmp/UPDATE-SuperSU-v2.46.zip
/data/local/tmp/busybox

Give it a minute or two and you will see the following result

ui_print *****************
ui_print SuperSU installer
ui_print *****************
ui_print - Mounting /system, /data and rootfs
ui_print - Extracting files
Archive: /data/local/tmp/UPDATE-SuperSU-v2.46.zip
inflating: META-INF/MANIFEST.MF
inflating: META-INF/CERT.SF
inflating: META-INF/CERT.RSA
inflating: META-INF/com/google/android/update-binary
inflating: META-INF/com/google/android/updater-script
inflating: arm/chattr
inflating: arm/chattr.pie
inflating: arm/libsupol.so
inflating: arm/su
inflating: arm/supolicy
inflating: arm64/libsupol.so
inflating: arm64/su
inflating: arm64/supolicy
inflating: armv7/chattr.pie
inflating: armv7/libsupol.so
inflating: armv7/su
inflating: armv7/supolicy
inflating: common/99SuperSUDaemon
inflating: common/Superuser.apk
inflating: common/install-recovery.sh
inflating: mips/chattr.pie
inflating: mips/libsupol.so
inflating: mips/su
inflating: mips/supolicy
inflating: mips64/libsupol.so
inflating: mips64/su
inflating: mips64/supolicy
inflating: x64/libsupol.so
inflating: x64/su
inflating: x64/supolicy
inflating: x86/chattr
inflating: x86/chattr.pie
inflating: x86/libsupol.so
inflating: x86/su
inflating: x86/supolicy
ui_print - Disabling OTA survival
ui_print - Removing old files
ui_print - Placing files
ui_print - Post-installation script
ui_print - Unmounting /system and /data
ui_print - Done !

When its done just type LEAVE and the device will reboot successfully and rooted! hope this helps:o
[Sprint LG G3] bigceej:
Script is not working for me. It said Installing LAF then the Command promp just closed.

Edit: I followed the manual route and it worked!
[Sprint LG G3] eagleaglefan:
Waiting for device

After installing LAF the phone does not reboot into download mode. It reboots says starting adb server

waiting for device

And thats where I've been stuck. I tried manually booting into download mode but nothing.

Any idea on what I'm doing wrong?
[Sprint LG G3] l33tlinuxh4x0r:
you need to reboot into android. Then it will pul a file and reboot back into download mode.
[Sprint LG G3] YellaHayes:
Have people just given up on this? I've been trying this off and on for 3 days on multiple computers. Tried doing it manual but a noob with command prompt.
[Sprint LG G3] YellaHayes:
I finally got this working. Messed up my phone trying to install xposed framework. Downgraded down to zv8, updated back to zva and now I can't get this root to work again fml
[Sprint LG G3] YellaHayes:
IM trying to go the manual route but a noob at command prompt. i know how to run simple commands but,

when it says do:

dd if=/dev/block/platform/msm_sdcc.1/by-name/laf of=/data/local/tmp/lafBak.bin

dd if=/data/local/tmp/laf.bin of=/dev/block/platform/msm_sdcc.1/by-name/laf

chmod 755 /data/local/tmp/lafBak.bin

sh /data/local/tmp/install_laf.sh

LEAVE

Do i type all that at one time and then hit enter?

or each line and enter afterwards?

Any help is appreciated.
[Sprint LG G3] l33tlinuxh4x0r:
Type one line at a time and press enter.

dd if=/dev/block/platform/msm_sdcc.1/by-name/laf of=/data/local/tmp/lafBak.bin

dd if=/data/local/tmp/laf.bin of=/dev/block/platform/msm_sdcc.1/by-name/laf

chmod 755 /data/local/tmp/lafBak.bin

sh /data/local/tmp/install_laf.sh

LEAVE
[Sprint LG G3] winn75:
Do you lose root if you do a factory reset? In Settings>Backup & Reset>Factory Data Reset
[Sprint LG G3] io_wa:
Confirmed working on my Sprint LG G3 LS990 ZVA :D
[Sprint LG G3] Brown_Ninja15:
So does autorec work with this or am i going to brick my phone
[Sprint LG G3] YellaHayes:
Autorec locked me out with a security error. I wouldn't use it yet.

---------- Post added at 11:16 AM ---------- Previous post was at 11:15 AM ----------

It locked me out with a lg security error. I wouldn't do it.
[Sprint LG G3] Brown_Ninja15:
Yeah I tried it and I got the security error so I flashed ZV8 and went from there
[Sprint LG G3] YellaHayes:
I still haven't got root again. Once out of 50 tries.
[Sprint LG G3] ankurcshah:
i am on ZVA and it directly goes off to

ui_print - Disabling OTA survival

ui_print - Removing old files

ui_print - Placing files

ui_print - Post-installation script

ui_print - Unmounting /system and /data

ui_print - Done !

Read all the pages in this thread and few others. tried all the methods ! what else do i do
[Sprint LG G3] ceissman:
works

thank you.

sprint lg g3 ls990 flashed on win 7 64, zv8 / lollipop

some troubles but worked it out.

if you do this make sure that you pay attentoin to when you have to press ctrl-c, N and then enter. I screwed this up a couple times because i'm definitely used to breaking processes with a Y
[Sprint LG G3] toastman74:
Sharing thanks, worked flawless for me the first time. LS990 (Sprint) Win7 64bit ZVA