FORUMS
Remove All Ads from XDA

[ROOT] Root your LG-G3 easily with PurpleDrake-Lite! [OSX/Linux/Windows!]

1,023 posts
Thanks Meter: 10,361
 
Post Reply Email Thread
Howdy all!

What's this? Read on, dear reader, to discover the magic that is PurpleDrake.


Quote:

What is this?

This is a utility to easily root your LG G3 (specific models only). It's a fairly foolproof script that includes all the dependencies you'll need for getting your phone rooted easily.

This is the LITE version. This means that this version will only ROOT your phone. If you have a T-Mobile G3, we'd suggest you look for the full version in this same forum on XDA, since that will root, install TWRP, and prevent your root checker from showing your phone as rooted!

Quote:

Who made this?

This root is a collaboration between myself (IOMonster), jcase, and autoprime.
Special thanks also to beaups for some initial guidance looking at the vulnerable application.

Quote:

Is my phone compatible?

The new LG G3 models each are slightly different with regards to rooting and unlocking.

The vulnerability we're exploiting for PurpleDrake has actually been present on quite a few LG phones for some time, and as such this script will automatically detect if your phone is capable of rooting with this method.

To see a matrix of which LG G3 phones are compatible with this root, please see this Google Docs spreadsheet that we've compiled.

When you run this program, your phone will reboot and run a test to see if it's compatible. If the application succeeds, it'll let you know that it's able to permaroot you. If not, it'll fail gracefully and reboot you back to normal Android without having changed anything.

Quote:

How do I use this?

WE NOW SUPPORT WINDOWS! YAY ME

To start, for either platform you'll need to scroll down to the download section and get the file.

Ensure that your phone is in ADB mode (PTP Mode for everyone but Verizon. Verizon users need to be in "Internet"/"Ethernet" mode)

Linux Instructions (in a terminal!)

  • Extract the file you downloaded...
    tar xvf ~/Downloads/PurpleDrake-Lite_VERSION.tar.gz
  • Mark the application as executable, and run it!
    cd PurpleDrake-Lite
    chmod +x purpledrake_linux.sh
    ./purpledrake_linux.sh

OSX Instructions (just a bit easier)
  • Extract the file you downloaded
  • Double-click on "purpledrake_osx"

Windows Instructions
  • Extract the file you downloaded
  • Double-click on "purpledrake_windows"

The application will guide you through all the steps you need.

You will still need to install SuperSU from the market after installing PurpleDrake. This pack does not include one.

After, be sure to check @autoprime's post for how to disable OTA upgrades! here : http://forum.xda-developers.com/show...62&postcount=2

Quote:

But, what if I don't want to run your script to root?

Well then, I'd be a little hurt, but you can still do everything the script does manually.
Download the package, and extract it. Open a terminal in the main folder of the archive and run these commands:

Code:
adb reboot --bnr_recovery
adb push ./assets/start_restore /temp/start_restore
adb push ./assets/permaroot.bin /temp/start_restore
adb reboot
That will perma-root you, however there's no protection from doing something stupid or the phone being incompatible. Please be careful!

Quote:

Where do I get this?

WINDOWS/OSX/LINUX VERSION OUT NOW!
- Fixed Windows support
- Fixed OSX ADB issues not detecting phone first try
- Fixed race conditions leading to errors permarooting
- Added 64-bit Linux ADB

Old version here... (OSX/Linux only)
Please DO NOT mirror or re-upload the PurpleDrake software to your own site, or any other file host.

If you need drivers for Windows (thanks @autoprime for having these handy!):

Quote:

Help, it doesn't work!

Post here, let us know what happened and we'll try to help you. DO NOT private message us on XDA or on IRC asking for help. We will not assist privately.

Most questions if not answered here can be answered on #lg-g3 on IRC in Freenode.

Quote:

Thanks so much! How can I show my appreciation?

Since this was a collaboration project, proceeds that are made from this root will be split between amongst us so we can purchase a Sprint test phone to root (as it's currently not rooted).

If you'd like to donate to us, click the "Donate to me" button on the left sidebar under my name, and be sure to enter a comment to let us know that you're donating towards the PurpleDrake project.

Thanks again!

The Following 351 Users Say Thank You to thecubed For This Useful Post: [ View ]
 
 
19th July 2014, 09:44 AM |#2  
autoprime's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter: 10,461
 
Donate to Me
More
Disable OTA:

Open LG Hidden Menu (3845#*851#) --> WLAN Test --> OTA Setting --> OFF
*Replace "851" with your devices model number, 850, 852, 855 etc...

Look, instead of rushing to take an OTA to get the latest software.. think for a moment.
We do no know if the bootloader will stay "unlockable" in future updates. OTA's can update not only software..
but the boot stack as well.. enabling features to block downgrades.. close exploits.. and all sorts of fun stuff.

so.. instead of taking an OTA.. wait for the files to get posted so we can look at things first.. possibly only updating /system, /boot, /modem (maybe tz/rpm)
without updating the rest of the boot stack. ya... do that. Plan on making a lil thread on this soon to make things easier.

EFS Backup:

[code]
[FONT="Arial Narrow"]Backup EFS after jailbreaking your G3. EFS is split into 2 partitions modemst1 and modemst2.
img files will be on root of internal sdcard. Save the .img files somewhere else besides the sdcard... email, cloud, etc..


I have made a new thread on EFS backup and restore which can be found HERE.

Restoring Stock / Remove root flag:

Download the tmo .tot file and use lg flash to restore it to stock. itll format everything on internal sdcard so backup anything u may need off it.

T-Mmobile firmware can be found here. Thanks to @wolfgart for the files and @thecubed for codefire hosting.

*Step by step picture guide - http://imgur.com/W83hMPE

install the drivers.
put phone into Download Mode (power off. unplug USB. pull battery. put battery back in. press/hold Volume Up then plug in USB cable.)
In Windows Device Manager set the phones serial COM port to #41. (*see picture guide for help)
Install LG Flash. In "C:\LG\LG Flash" folder delete megalock dll. Replace with .dll below.
new megalock dll - http://bit.ly/1cQADXm (this site includes a "download manager.. UNCHECK THE BOX before downloading dll file.)
Run LG Flash in the "C:\LG\LG Flash" folder. Select korean factory if asked.
When LG Flash opens you will see a box to select firmware and dll.
Select LG Flash (.dll).
Select (.tot)
Hit OK (*see picture guide for help)
Hit yellow start button. If you get Milkyway error click ok. LG Flash will then run a crc check on the tot file. Takes a bit.
After crc check finishes unplug the phone. plug phone back in. it should now be seen in LG Flash and start flashing.
Phone will reboot when finished. You may end up on a screen with s "2"... let it sit there for a minute or two.
If stuck on "2" try unplugging the usb cable from the phone.. wait 10 seconds.. then plug the usb cable back in. now wait 30 seconds and hopefully it changes to a "3"
Once the phone says "3" you can unplug the USB.. remove the battery and plug back in.. boot back up... you are now 100% stock.
The Following 72 Users Say Thank You to autoprime For This Useful Post: [ View ]
19th July 2014, 10:51 AM |#4  
Senior Member
Thanks Meter: 16
 
More
this will work for sprint?

Sent from my LGLS990 using XDA Free mobile app

---------- Post added at 11:51 AM ---------- Previous post was at 11:47 AM ----------

Quote:
Originally Posted by mrkrabs

this will work for sprint?

Sent from my LGLS990 using XDA Free mobile app

ignore that question I just read alil bit

Sent from my LGLS990 using XDA Free mobile app
19th July 2014, 11:23 AM |#5  
MarvinFS's Avatar
Recognized Developer
Flag Ekaterinburg
Thanks Meter: 14
 
More
Question
any possible release dates for F/G FWs?
19th July 2014, 01:14 PM |#6  
Senior Member
Thanks Meter: 108
 
More
can someone explain if there are any differences between towelroot, ioroot and purpledrake? the end result is the same, no?
19th July 2014, 02:24 PM |#7  
Gs0230's Avatar
Senior Member
Flag New York
Thanks Meter: 6
 
More
Quote:
Originally Posted by cnn888

can someone explain if there are any differences between towelroot, ioroot and purpledrake? the end result is the same, no?

towel root doesn't work for some phone that have taken firmware updates and ioroot doesn't work on D851 and purpledrake does
The Following User Says Thank You to Gs0230 For This Useful Post: [ View ] Gift Gs0230 Ad-Free
19th July 2014, 02:40 PM |#8  
Senior Member
Thanks Meter: 141
 
More
Thanks for the awesome work, devs!

Has anyone figured out what the hidden menu code is for the vzw vs985, to be able to turn off ota? Plugging in "985" for the model number doesn't work.

Will there be a method to turn off/reset root counter for those of us who used IOroot?
19th July 2014, 03:23 PM |#9  
suljo94's Avatar
Senior Member
Flag Antwerpen
Thanks Meter: 944
 
More
Quote:
Originally Posted by thecubed

I won't quote the whole OP

I can confirm that it worked on the D855 euro (10A). so you guys can go ahead and remove the question mark if you want. Also if you give me the right commands I can check if the 855 eur bootloader comes unlocked or not(google doesn't know them )
The Following 2 Users Say Thank You to suljo94 For This Useful Post: [ View ] Gift suljo94 Ad-Free
19th July 2014, 04:06 PM |#10  
Senior Member
Flag Milan
Thanks Meter: 75
 
More
For me relaunching two times worked with d855 european version v10g leaked. But what about TWRP for D855?
The Following 3 Users Say Thank You to lukemo For This Useful Post: [ View ] Gift lukemo Ad-Free
19th July 2014, 05:32 PM |#11  
suljo94's Avatar
Senior Member
Flag Antwerpen
Thanks Meter: 944
 
More
Quote:
Originally Posted by lukemo

For me relaunching two times worked with d855 european version v10g leaked. But what about TWRP for D855?

I just hope that lg doesn't try to fix this exploit
The Following User Says Thank You to suljo94 For This Useful Post: [ View ] Gift suljo94 Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread