yashsingh1/xdaforums huggingface dataset:
[Android General] lazarus2297:
trying to root my VZW LG G Pad 8.3 LTE. I have had no luck.. I get all the way to what you see in the screenshot below and it just sits there. Nothing ever changes.. any suggestions.. I have tried the one click version too..
[Android General] Die Bruine:
Not working on V500 Lollipop icw Windows7/8/8.1

Tried this on a W7, W8 and W8.1 machine. The sh won't run. Can't figure out why. Maybe someone with a Linux machine can try and work out the magic.
[Android General] mrhaley30705:
Maybe try updating the sdk? Just guessing, as I did this on a W7 machine with no problem.
[Android General] Die Bruine:
Nah, it's a problem/issue within the shell. After I start the Send_Command.exe and enter a command everything stops. It doesn't matter which command you enter. As soon as I press "Enter" the shell stops functioning. Ctrl+C is the only command it accepts.

I tried a different shell, can't think of the name right now. That seemed to work. But I haven't found any instructions on how to bind sh.exe (name of the shell included) to a specific COM port.

It could also just be that LP on an LG G Pad 8.3 V500 simply won't be rooted by this here... :(
[Android General] scottysize:
Disregard. I found my answer...
[Android General] bass_me:
Worked on AT&T LG G2 Lollipop 5.0.2 D80030F

Just used this method to root my G2 after the AT&T Lollipop 5.0.2 D80030F OTA update. Worked perfectly.

First I tried to use avicohh's one click method from this thread

http://xdaforums.com/lg-g3/general/guide-root-lg-firmwares-kitkat-lollipop-t3056951

That didn't work for me as it was hanging every time at the "looking for serial port" section. This method however worked perfectly and got me rooted proper.

Much thanks :cool:
[Android General] alysher:
:good: Confirmed working for Sprint LG G3 Vigor LS885 Build # KOT49I.LS885ZV5
[Android General] IaKnightHawke:
The LG root zip file has an exe extension. why?
[Android General] IaKnightHawke:
edit: figured out that I was looking at the wrong link. Found correct one in same site. All is golden. I am rooted with the latest lollipop update taken before running this root script. Follow the directions and refer to the pics included. Thank you developers for all you do for us! ?
[Android General] qhuinzy_09:
Lg Gpad 7.0 V400 Running Lollipop

Hello Mate .

Can you help me out ?

i having errors using this script.

i already installed adb drivres on the laptop.

but always having this error ,

please see my screehot above,

thanks in advance:)
[Android General] cpshelley2:
you have more than one device connected, you need to specify which device you're trying to communicate with.

try it like this:

adb -s LGV400cd58ce06 <command>

where <command> is the command you want to execute.
[Android General] SystemErrorOne:
Device LG G2 D801 Tmobile

I get stuck on step 10. When I hold the vol up and plug usb it takes me to black screen with fastboot mode. I cannot

get into download mode (with the little circle arrows)
[Android General] 117micc:
did it unlock the boot loader?

Sent from my G3 using the ORIGINAL TAPATALK :)
[Android General] tjupille:
AFAIK, no. For my purposes, it doesn't matter.
[Android General] cpshelley2:
try shutting down that emulator you have running, it might be causing problems. once only your phone is showing up in the list of devices you should be able to use the commands as they are in the thread.
[Android General] qhuinzy_09:
Thanks For the Help,

Sir what kind of emulator are you referring to ?

Sorry I'm Noob:p
[Android General] cpshelley2:
when you posted the output of adb devices, it listed your phone and also an android emulator running. try shutting that down so that only your phone shows up in the list of devices.
[Android General] qhuinzy_09:
Sorry dude but how can i shut it down?

sorry for being so noob:crying:
[Android General] cpshelley2:
I'm not sure, I've never had use for one, so I don't know how :/ sorry..
[Android General] skulldreamz:
Type adb kill-server and hit enter, then type adb devices and hit enter
[Android General] cthedogg:
Mine wont go past the download mode. stays at zero percent Sprint LG G3 ZV8
[Android General] lalek:
same here, stuck on step 6 (0% in download mode). i tried 3 times and nothing happens. Device is LG F60 (D390n). Can anybody help pls? Tx
[Android General] jct522:
If I'm not rooted at all and I'm on 23C would this method still work to get the phone rooted?
[Android General] piranah:
So the ZV8 update still can not be rooted?

Just got my G3 this Friday, and can't wait to get rooted.
[Android General] jkeuclid:
Root works on D800 LG G2, my question is anyone having connectivity issues, e.g WiFi disappearing after booting occasionally and also can't seem to connect with Google Play store.
[Android General] Tekone:
How run the last step of this method? On the last step to root script..

After I run the Send_Command.exe \\.\COM23. My port is 23 and It give the # sign.. after that #, I type the follow line in and it hang there for 15min without doing anything... My phone on download mode run hot like a hot potato.

#sh /data/local/tmp/lg_root.sh dummy 1 /data/local/tmp/UPDATE-SuperSU-v2.46.zip /data/local/tmp/busybox
[Android General] jkeuclid:
That happened to me where the port was 5 but I changed it to 40 and it worked. Just copy and paste that line right after the "#"
[Android General] pangolin.rollin:
I've gotten stuck at the same point. Trying to reproduce "Send_Command.exe". Can the creator or any devs give me more insight? It seems I have however figured out the commands for executing root script via download mode... it executes but doesn't work as whatever is done in the previous step is missing. If anyone is interested this is what I found while in download mode via usb on linux:

You should be able to find your device at:

/dev/serial/by-id/usb-LG_Electronics_Inc._LGE_Android_Phone_LGLS990******** < your device serial **

cd to /dev/serial/by-id/

do "ls" to get your device id

then do "chmod o+rw (yourdeviceidhere)"

then run the command found in last step of instructions:

echo "sh /data/local/tmp/lg_root.sh dummy 1 /data/local/tmp/UPDATE-SuperSU-v2.46.zip /data/local/tmp/busybox" > /dev/serial/by-id/(yourdevicehere)

Hopefully we can get this working on linux as I hate having to find a windows computer ha. Goodluck everyone!!!
[Android General] rootlinux:
Linux would be great.
[Android General] player911:
I am slowly getting there on my VS980 Verizon 39A Lollipop stock rom.

I finally got the drivers to read through to USB-Serial (very picky) and the send_command is connecting but the script command is just returning another # after hitting enter on the keyboard.

I have read around the forum and found some people had better luck using another port, so I manually changed the port to 43 and connected that way, but still just doesn't seem to do anything. I attached a screenshot. I used the One Click method when this phone was on 27A and rooted no problem, but for some reason the One Click isn't working with Lollipop, it isn't going into Download mode automatically, and it is failing to find the com port unless I use the older script.

I can "adb shell" into the phone and verify the 3 files were pushed successfully, how ever trying to launch the scripts via Download mode-serial just proves nill.

I've attached several pics.

Any suggestions?
[Android General] player911:
I Finally got it!

I deleted all my existing drivers using a USB app I have and reinstalling. I think I might have used a different driver. It was a Android Net USB MNT or something like that. It installed but wasn't connecting to the device until after a reboot.

Once I could connect using the send_command, I copied the last "sh.." command to a text file (to make it easier then constantly pulling up this thread) and then pasted it into the command window.

My phone WAS in Download mode for a long time while I screwed with drivers too. Maybe it needed additional time to settle? Who knows.

I am using a fresh OTA Lollipop 39A on Verizon vs980. I flashed a 10B TOT file and completely went through every OTA until 39A (I was having signal issues).

So check drivers, let it sit for a while, and keep at it. The COM port assignment shouldn't matter as long as it is what is assigned and what the "ports.bat" finds. When you have the proper drivers installed, you should have 2 listings show up in "ports.bat". At first it assigned it to COM7 and COM8. This last time it assigned it to COM3 and COM4. You always use the highest port (at least in my findings).

Attached is what it looked like when the script finally took.
[Android General] pangolin.rollin:
UPDATE:

I've decompiled the provided executables, sifted through the #C code and traversed the internet (authors blog, etc..) and started looking VERY closely at

printf("Author : blog.lvu.kr \n");
printf("SPECIAL COMMAND : ENTER, LEAVE\n\n");
if (argc != 2) {
// 0x401086
printf(" USAGE : %s [PORT]\n\n", &((struct struct_0 *)*(int32_t *)argv)->e0);
g4 = 0;
return function_4014cf(0);

...and started thinking could it be as easy as issuing connect/disconnect commands in download mode? (eg. ENTER / LEAVE)

If anyone wants to try.. in download mode it would be:

echo "ENTER" > /dev/serial/by-id/(yourdevicehere)

Then followed of course by the script commands in last post.

I'll try when I get home! Call me crazy, maybe I have no clue what I'm talking about but.. I'm trying! :good:

UPDATE: Wasn't able to get linux root working... haven't had much experience with communicating to usb serial ports. I believe its actually /dev/ttyusb* instead of what I listed. I won't be pursuing linux root method any further as I finally got access to Windows. If you have questions regarding my suggested method feel free to contact.
[Android General] hoangnova:
doesnt works on LG G4 F500K.
[Android General] MicroMod777:
What part fails?
[Android General] hoangnova:
Tks for your reply.

Failed in step 10.

Sh run ok, but cannot mount system.

i'm writen some code to test. I think LG patched this bug

#!/sbin/sh

ui_print "*****************"
ui_print "Starting test script"
ui_print "*****************"

ui_print "- Mounting /system, /data and rootfs"
mount /system
mount /data
mount -o rw,remount /system
mount -o rw,remount /system /system
mount -o rw,remount /
mount -o rw,remount / /

#test1 -> failed
cat /system/build.prop > /system/hack.prop

#test2 -> failed
cp /system/build.prop /system/build_test.prop

#test3 -> ok
cp /system/build.prop /data/local/tmp/build1.prop

#test4 -> ok
cat /system/build.prop > /data/local/tmp/build2.prop

#test5-> fail
dd if=/dev/block/platform/f9824900.sdhci/by-name/boot of=/data/local/tmp/boot.img

#test6-> fail
cat /dev/block/mmcblk0p8 > /data/local/tmp/aboot.img

ui_print "- Done !"
[Android General] MicroMod777:
That happened on my G2 a few times. I keep trying till it was rooted. Look for the SuperSU app after booting.
[Android General] hoangnova:
I dont think so. I think lg has patched this bug. I tried many many time. No luck.
[Android General] MicroMod777:
Try this one click root method that worked on my LG G Pad 8. Should work on any LG.

http://xdaforums.com/lg-l90/general/guide-root-lg-l90-running-d41510e-t3072568
[Android General] hoangnova:
Tks fỏ r your help. I will try.

---------- Post added at 01:39 AM ---------- Previous post was at 01:28 AM ----------

Fail again. Its same your way.

LG G4 use android 5.1, ithink lg patched bug.
[Android General] MicroMod777:
This is not good. Hopefully somebody can find an exploit so a twrp can be used.
[Android General] drekalots:
Worked on LS990 running ZV8 in Windows 7. Now to figure out TWRP.
[Android General] geooovany:
Worked on G2 Lite (D295), great work, guys :D
[Android General] ChitownWingMan:
Does not work on USA T-Mobile LG G4

I have a T-Mobile LG G4

Model #: LG-H811

I tried this process and the remounts with r/w permission fails.

I tried to execute the SU manually and the do the mounts and that didn't work either.

I am available to try experiments and ideas by those smarter than I am :)

The files pushed over with ADB all were owned by shell not root. I don't know if setting the SID and GID bits will allow it to work as root? I doubt it, but this has now exceeded my knowledge of android.

Thanks in advance.
[Android General] pangolin.rollin:
Worked perfectly for Sprint LG G3 LS990 on ZV8 (5.0.1). Flawless and straightforward thanks to everyone involved!
[Android General] jacob019:
I want a linux version so bad. Tried to comment on Only's blog, but it's broken :-/ He said that he's working on a Ruby version, but I suspect he has given up on it. Really wish he would just release the source. Anyone make any progress? I tried to disassemble his binary but I'm can't make heads or tails of it. I've written drivers before, I'm sure I could make it work if I could just get a response out of the port. Anyone else working on it?

EDIT:

Success. Code coming soon.
[Android General] jacob019:
Linux version of Send_Command

I've prepared a Linux port of the Send_Command tool. Now we can root without windows.

Thank you to Only, pangolin.rollin, and Unjustified Dev who made this possible.

http://jacobstoner.com/qcdlcomm.py

Run the python script in a terminal for instructions. Feedback is appreciated.
[Android General] jac10000:
Really nice work , I tested it and it work fine :good: :)
[Android General] jac10000:
@ jacob019

Only one problem : when the root is "Done", the command LEAVE don't work. I have to retry the battery
[Android General] jacob019:
Thanks for the feedback. I noticed that and I did find a way to make it work. When the LEAVE command is issued it seems to disconnect the ttyUSB0 (modem I think) device first. If you then disconnect the phone and reconnect it you will see that there is only one ttyUSB device that time. Connect to the remaining device and issue the LEAVE command again. Then it will reboot. If you look at the python you will see that the leave command is a hard coded binary message. It's the same message that Send_Command was using, I got it by spying on the COM traffic. I don't really understand how it works, I just reproduced it. There may be another command that will give a forceful reboot, but we would have to find it. I'm using the G2 and it isn't really a problem because you can just hold the power button for 15 seconds, then it reboots. If other people really to be able to reboot the device from the tool, please let me know and I will study it some more. I may be able to find the message that LG Flash Tool uses to reboot, then we could use that instead.
[Android General] jac10000:
Ok thanks, I'll try like you explain tomorrow and give you feedback :)
[Android General] jac10000:
Hi [MENTION=6093796]jacob019[/MENTION]

At the first LEAVE command, it not reboot

Exit of the script

Disconnect the G3

Connect the G3

run your script

At the LEAVE command the G3 reboot this time

edit : I found why I do not have the same results for ttUSB.

The first time I d'ont apply rmmod usbserial as root in my Terminal.

But the root of the G3 worked all the same (can be perhaps I had make udev rules for the G3 some times ago ...)
[Android General] jacob019:
Thanks for testing and for the screenshot. That should help other users.

I tested it more myself and found that the ttyUSB enumeration is not relevant. The trick is to reconnect the USB cable and then issue the LEAVE command, sometimes you might have to do it twice. I'll try to find a way to improve the script.

If the usbserial module isn't already loaded, then there is no need to unload it. I found on some computers it's already loaded and on others it isn't. It depends on your hardware. Anyway, it's a good idea to try and unload it first.
[Android General] Xenzo33:
Thanks you so much you saved my life i couldnt find any way to root my Lg leon :D
[Android General] Xenzo33:
Worked on Lg Leon check it here :D http://postimg.org/image/n7g5pdj7l/
[Android General] vampirefo:
anyway to upload some where else, I can't download from that site, just full of spyware.
[Android General] RGOLD:
Not working on my G Pad 8.3 GPE v5.1. It hangs after sending the command.
[Android General] lazarus2297:
I have the verizon LTE G Pad 8.3 and I get the same thing..
[Android General] Slothboy:
My phone has been on Firmware update mode for a while now at 0% with "USER B95" at the bottom, what does this mean? Help!
[Android General] jacob019:
That's normal. B95 means that your battery is 95% charged. If you've successfully completed the Send_Command part, then reboot the phone. You can hold the power button for 15 seconds or you can try to issue the LEAVE command.
[Android General] volospin:
It does not work on my F220K with stock v30b (lollipop).

I upgrade from v20c (4.4.2) to v30b (5.0.2) via LG PC Suite.

I tried issue adb reboot recovery and get the lying android with a triangle exclamation mark.
[Android General] jacob019:
This root method does not install a custom recovery. Since you still have the original recovery it is normal for you to get the yellow exclamation when you adb reboot recovery. At no point do you need to enter adb reboot recovery. adb is only being used to push some files to the phone. The rooting process uses download mode. After copying the files, unplug the cable, power off completely, hold the volume up button and insert the usb cable. Then you will be in download mode where you complete the root using the Send_Command tool.
[Android General] hongtae2013:
It returns a hash (#)

Author : blog.lvu.kr
SPECIAL COMMAND : ENTER, LEAVE

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

and nothing happened on my phone so I leave.

#LEAVE

and my phone reboot. It didn't work. Please help.
[Android General] jac10000:
see here : http://xdaforums.com/showpost.php?p=60584661&postcount=459

---------- Post added at 21:41 ---------- Previous post was at 21:35 ----------

[MENTION=6093796]jacob019[/MENTION] Really practical your Python script. I tested a little all the possibilities and it work fine
[Android General] jacob019:
Thanks. I had another idea for an improvement. We could write files directly with the script. Load the file into local memory, touch the file on the phone, append tiny chunks of the file over and over with unicode escape sequences in the shell until the complete file has been transferred. Once implemented it would be trivial to make a one-click root. I haven't had time to work on it. Any python hackers here?
[Android General] psychowood:
[MENTION=6093796]jacob019[/MENTION] Thanks for your efforts! I tried to use your script on OSX but sadly it seems that the download mode is not correctly recognized (at least on Yosemite). Any idea? In Console I only get

17/05/15 23:58:11,000 kernel[0]: 0 3 AppleUSBCDCACMData: start - Find CDC driver for ACM data interface failed
17/05/15 23:58:11,000 kernel[0]: 0 3 AppleUSBCDCECMData: start - Find CDC driver for ECM data interface failed

and I don't gat any /dev/tty* device for my G2... any idea?
[Android General] jacob019:
It's designed for Linux only. We're having to force the usbserial module to load the device, that's really Linux specific. If you can get OSX to recognize the serial device then the script could be modified to communicate with it. I don't know much about OSX's device modules. I expect you would need to modify the kext equivalent of our usbserial module and add the device id; but maybe it would just work. I really don't know. If you can get as far as a serial device, let me know the path and I'll modify the python script to interface with it.
[Android General] Silvers91:
Hello, I've been trying to root my LG G3 D855 for two days now it's always the same issue. Everything goes according to plan, until the last step and it seems that something is missing, it only runs those few commands, and when I reboot, nothing is changed, there's no supersu and there is no root. The same thing happening when using the one-click root tool. All the ways to root Lollipop out there are basically the same one, just different interfaces, so please someone help me.
[Android General] gilpdawg:
I had to try it about 20 times before one time it randomly went through. Keep trying.
[Android General] kchiman:
i am facing this situation exactly, it said done but the phone is not rooted.

i am using D855 HK 20G.

Could anyone help?
[Android General] Unjustified Dev:
Try kingroot

Sent from my LGMS395
[Android General] Silvers91:
I tried it, it kept trying a lot of scripts, then it rebooted my phone and then my phone asked me if I wanted to install framaroot, I was happy I thought it worked, then it rebooted again and there was no root then it continued checking scripts for about 15 minutes before telling me that the root has failed.

I'm starting to lose hope here and believing that my phone will never be rooted :(
[Android General] Unjustified Dev:
Have you tried the one click guide I'm positive this model worked.

Sent from my LGMS395
[Android General] kchiman:
Kingo root and kingroot failed.

for the script and one click , both said done. but the phone did not be rooted.

i am afraid that it's a sign of blocking root from LG, D855 20G HKG is just released yesterday...

but I hope LG G4 would help to explore the way if LG has updated anything...
[Android General] Silvers91:
Man, trust me, I have tried every possible/available way to root an LG G3 out there, nothing works..

I'm hopeless, someone please help
[Android General] EMJI79:
http://xdaforums.com/showthread.php?p=59496298

Worked for me.

Just have to enter download mode manually ...
[Android General] kchiman:
what is your android version? 20G?

i have tried this for almost 20 times, but all failed...
[Android General] EMJI79:
20h
[Android General] kchiman:
I think 20g is unable to root as dev do not have this rom... May be should wait for g4, it hopes there is the same way to root 20g and the coming g4...
[Android General] kchiman:
i have tried some command from the script in download mode to test

after entering the download mode, use Send_Command.exe as usual

mkdir tmp

the tmp folder is created in the root level

then i tried

mkdir /system/tmp

nothing created under the system folder,

as reading the script

the first step is cat /system/bin/toolbox > /system/toolbox

make the /system/bin/toolbox to /system/toolbox

but seems we cannot modify under /system ?

and i repeat the steps and mount first

mount /system

mount /data

mount -o rw,remount /system

mount -o rw,remount /system /system

mount -o rw,remount /

mount -o rw,remount / /

but nothing changes...

i am not good at linux system and shell script

i am not sure my concept is correct or not...
[Android General] ScriptAlpha:
The one click solution didn't work for me, but this one was able to root my G3 D855 running the official 5.0.1 update. Thank you for great tool! :D
[Android General] rherwind:
Un-Root

I understand that this method can root LG device, but if I want to unroot my LG device can it be done by flashing new firmware or I need another method to do this ?

Thanks in advance...
[Android General] 6ril1:
Seems we can run script sh, and dd partitions with it. So it should be possible to install bumped custom recovery with it.

And after, reboot in recovery for rooting.

Seems working by this way for d855 sea 20g that can not be rooted (recent firmware patched against the original method) by the original method.

Send from my d855
[Android General] kchiman:
if i wanna back to stock recovery later on, just flash the stock KDZ?
[Android General] ngerasimatos:
Worked like a charm.
[Android General] jrebo:
Thank you. Worked great on my LS990 ZV8.
[Android General] aquatarkus:
Just tried this method on my D801 with official 5.0.1. The phone appeared to have hung after running "sh /data/local/tmp/lg_root.sh dummy 1 /data/local/tmp/UPDATE-SuperSU-v2.46.zip /data/local/tmp/busybox"

So I pulled out the USB cable and rebooted the phone, and found it was all nicely rooted :)
[Android General] Cafi96:
Not working for G2 mini Lollipop.
[Android General] Shaolin007:
Running Succesfully on LG G2 D802 v30b 5.0.2 [MENTION=4911249]Unjustified Dev[/MENTION]