[ROOT / TWRP][D851 ONLY][OSX/Linux/Windows] Root/TWRP your TMO G3 with PurpleDrake!

Search This thread

ryan8r

Senior Member
Apr 9, 2011
556
135
I was able to downgrade using LGUP and go to 30D.
Tried Purple Drake, No luck, same error. I see there's an alternative method using Kingroot, but have read there is some concern using this tool.

Any other options?

Mike

Do you own a D851 aswell?

I want to downgrade to 30D too but the official thread says LGUP works only on D855
 
Last edited:

christoophat

Senior Member
May 20, 2011
1,217
379
SoCal
Got an LG G3 D851 today, updated to 30D via OTA.
Un zipped PurpleDrake on my Win 10 PC, set device to USB debugging & PTP mode, plugged in cable ran the bat, it found device & rebooted it, and here I sit as it trys to find the device after rebooting it. Correct LG USB drivers are installed.
Have tried this 4 times now with same results. Any suggestions?

An update: Tried a different cable after doing a reset via stock recovery , and this time it progressed further only until it came to:
"ERROR: Your phone is not running a compatible software version. No vulnerable mode detected, rebooting phone.

We tried to temproot you, and it didn't work. This phone isn't vulnerable, it would appear.
Android 6.0
BB:
MPSS.DI.2.0.1.c1.13-00114-M8974AAAAANPZM-1.43646.2
Build: MRA58K, D85130d (via OTA update)

Any ideas?
 
Last edited:

bshend

Member
Mar 18, 2011
41
3
Failed to fork

I extracted 'purpledrake_windows.bat' on my Windows 10 machine. Immediately I receive an error "Failed to fork child process: Resource temporarily unavailable.
DLL rebasing may be required. See 'rebaseall --help'."


Any advice?? Thanks!

---------- Post added at 10:25 AM ---------- Previous post was at 10:23 AM ----------

I extracted 'purpledrake_windows.bat' on my Windows 10 machine. Immediately I receive an error "Failed to fork child process: Resource temporarily unavailable.
DLL rebasing may be required. See 'rebaseall --help'."


Any advice?? Thanks!

A second window behind the one above says this: "313069 [main] mintty 17420 fork: child -1 - forked process 18104 died unexpectedly, retry 0, exit code 0xC0000142, errno11"
 

usmandaud

Member
Nov 28, 2016
8
0
How to root LG G3 D851 with MM 6.0

Why can't work on mine
How to root LG G3 D851 with MM 6.0 or install TWRP or Install Custom Rom like MIUI 8
 

abbes2012

Member
Nov 2, 2016
8
3
Après l' installation de LG-D85130E-Flashable.COMPLETE.zip - tous les stocks avec récupération enlevé (pour préserver TWRP) l'TWRP disparaît
Lorsque je veux installer la racine avec purpledrake et kingroot il ne veut pas installer.
Alors , comment puis - je déraciner mon téléphone lg g3 D851
 

mraqkhan

New member
Jan 25, 2017
1
0
LG G3 d851 marshmallow here

Howdy all!

Welcome to PurpleDrake!

Please ensure your phone is connected, powered on, and USB debugging is properly enabled.
Your phone should be showing your homescreen with no other apps open. This is to ensure a clean state.
When you're ready, press [enter]...

Press \033[35;1m[enter]\033[0m to continue...
Waiting for device... . Found device!


Your phone is a [ LG-D851 ] on [ TMO ] running SW version [ V30e ] ...


Alright. We're ready to go. We're going to temproot your phone first. Press enter when you're ready!
Press \033[35;1m[enter]\033[0m to continue...

Rebooting phone...
Waiting for device... .. Found device!
Found device, checking if vulnerable...

ERROR: Your phone is not running a compatible software version. No vulnerable mode detected, rebooting phone.
We tried to temproot you, and it didn't work. This phone isn't vulnerable, it would appear.
Please post on XDA with your phone model, carrier, and SW version in the PurpleDrake thread and someone will take a look.
Your phone has been rebooted back to normal system mode, no changes have been made. Thanks for trying!
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...none found.
 

marcdw

Senior Member
Sep 24, 2014
5,751
2,894
59
Baldwin Park
I'm not sure but from what I gather PurpleDrake doesn't work with such a new firmware. You'd probably have to downgrade first.
Search the thread. I haven't used PurpleDrake since initial rooting a few years back.

Also see these threads if you haven't already.

http://forum.xda-developers.com/showthread.php?t=3478560

[STOCK] D851 30E KDZ + Flashable ZIPs (ROOTABLE) (MM)

http://forum.xda-developers.com/showthread.php?t=3367371

[STOCK] D851 30D KDZ + Flashable ZIPs + All IMGs (Marshmallow!!)



LG G3 D851, AOSPA-L ROM, Nebula Rev9.3 Kernel, microG (NoGapps), MultiROM, Tapatalk 4.9.5
 
Last edited:

whodisname

Senior Member
Feb 14, 2012
1,458
298
destrehan
Hello. I bought this phone today off Amazon go $135. Is this still go in to work? Links and whatnot? Haven't checked, I'm mostly posting in on here to n sure I have this thread bookmarked. It's coming in refurbished.
 

fabjm

New member
Jun 2, 2017
1
0
Bergen
LG G3 Vigor D725 AT&T

Hi, Ive tried several roots, including purpledrakes, but it comes up error saying software not compatible. Anyone has a root for G3 D725, android 5.0.2

Thanks!
 

ecrudragon

Senior Member
Oct 13, 2012
762
137
Heart of Sharjah
Totally NOOB to LG G3 just dropped LG V10 ATT&T unlocked REASON because non of the VPNs was working & no-root so bye bye.
Couldn't find windows version download link? I just bought LG D851 so it will work right?
Edit: Found it, it was in tar file.
 
Last edited:

rstuff

Member
Feb 10, 2015
5
1
How To Root Lg G3?

I am looking for a phone that I can root and customize the way that I want. I was looking at getting an Lg G3 because it has a good camera and replaceable battery. I am on Consumer Cellular which uses the Att network so I was looking for a D850. I saw where Att locked the bootloader closing a lot of doors to rooting. The only option that I saw left open was using Kingoroot which may or may not be misusing IMEI's. What is the consensus, at this time, on rooting the Lg G3. Thank you.
 

Cycloptic

Senior Member
Jul 4, 2013
134
10
Toronto
Root Denied

Hi all,

I have a question regarding the ADB Boot method. Everytime i try to do a system boot through ADB, it doesn't go to the recovery. (ADB Reboot --bnr_recovery) It just boots back to the OS, doesn't give me an option to type the commands in the ADB window on command line. Could be that maybe the stock is updated to the newest. If so, is there an older version of stock i can use? Don't know what to do cause i want to root and install "twrp" on my T-Mobile D851.

Build Number: MRA58K
Software Version: D85130g

Also when trying on FASTBOOT; It indicates "waiting for device".

Anyways what i'm asking is are there any links to downgrade or tools to use that will allow me to get root-user permissions?

I would appreciate the help, cause i'm really at my wits end. :rolleyes:
 
Last edited:

marcdw

Senior Member
Sep 24, 2014
5,751
2,894
59
Baldwin Park
I have an LG-D851 with an SW of V30d and it didn't work.

The method in the OP was from the KitKat days, which I used back in 2014. I'm thinking it's not applicable to you guys trying to root a Marshmallow setup.
Maybe take a look at the thread below. I believe there's a way to get root there.

http://forum.xda-developers.com/showthread.php?t=3367371

[STOCK] D851 30D KDZ + Flashable ZIPs + All IMGs (Marshmallow!!)


LG G3 D851, LiquidSmooth v4.1 ROM, MultiROM, Tapatalk 4.9.5
 

Top Liked Posts

  • There are no posts matching your filters.
  • 192
    Howdy all!

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

    rY0Jco4.png

    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 FULL version. This means that it will automatically root, and ask you if you want TWRP installed and a custom boot that doesn't trip the root checker!

    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.

    Thanks to @Shelnutt2 for the security-disabled boot.img
    Thanks to @Dees-Troy for the TWRP image!

    Is my phone compatible?

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

    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.

    Please note that this version is currently only compatible with the T-Mobile D851 version of the LG G3. For other phones, we suggest you look for the LITE version of PurpleDrake.

    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-TMO_VERSION.tar.gz
    • Mark the application as executable, and run it!
      cd PurpleDrake-TMO
      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.

    If you choose to install the custom boot.img, your phone's root checker will not be tripped and your phone will show as UNROOTED.

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

    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!

    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
    Code:
    [url]http://downloads.codefi.re/thecubed/lg_g3/purpledrake/PurpleDrake-TMO_R03.tar.gz[/url]

    Old version here... (OSX/Linux only)
    Code:
    [url]http://downloads.codefi.re/thecubed/lg_g3/purpledrake/PurpleDrake-TMO_R01.tar.gz[/url]

    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!):

    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.

    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!
    51
    FAQ:

    Q: I'm running the Windows .bat as administrator and it's closing/not working.
    A: There is no need to run the .bat as admin. Just double-click and run.

    Q: I get the "Windows cannot find '.\assets\windows\bin\mintty.exe'." error.. watdo?
    A: Try just double-clicking on the .bat instead of running as admin.
    Also make sure the script is extracted properly first before running.

    Q: I [used Flashify and] am stuck in fastboot.. how can I get out?
    A: Be cautious using Flashify as it seems it's not working right.. or people are hitting the wrong buttons with it.

    HERE are the stock TMO D851 partitions.

    Use fastboot to flash recovery(TWRP or stock) and stock boot. This will install TWRP and fix booting into rom.
    If on Windows you will need fastboot drivers. Use Google to find fastboot binaries and drivers.

    Code:
    fastboot flash boot boot.img
    fastboot flash recovery recovery.img
    fastboot reboot

    The commands to flash TWRP manually instead of using flashify is below.
    Place TWRP on the root of your internal /sdcard/ using MTP, downloading it directly to phone or using ADB push.

    Code:
    adb push name_of_file.img /sdcard/
    
    adb shell
    su
    dd if=/sdcard/name_of_file.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery

    Disable OTA:

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

    The first D851 update has been released (10M). Bootloader remained unlocked. It would appear future OTAs will be safe to take AS LONG AS YOUR PHONE IS NOT MODIFIED! If you have flashed TWRP or installed xposed or modified /system then you need to restore any changes made or flash stock firmware (tot/kdz) before taking OTA.

    If using a non-tmobile g3 I would be hesitant about taking OTA updates. An OTA may update the boot stack to block Bump!

    EFS Backup:

    Code:
    [FONT="Arial Narrow"][B]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..[/B]
    
    DO NOT FLASH OTHER PEOPLES EFS OR FLASH YOUR OWN BACKUPS ONTO ANOTHER PHONE.
    THIS WILL BREAK EFS ON THE PHONE YOU ARE FLASHING TO. EFS BACKUPS ARE FOR THE PHONE THEY CAME FROM ONLY.
    
    I have made a new thread on EFS backup and restore which can be found [URL="http://forum.xda-developers.com/lg-g3/development/efs-lg-g3-efs-backup-restore-t2907329"]HERE[/URL].
    [/HIDE]
    [B][SIZE="5"]Restoring Stock / Remove root flag:[/SIZE][/B]
    [HIDE]
    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-Mobile firmware can be found [URL="http://downloads.codefi.re/wolfgart/LG_G3/D851"]here[/URL]. Thanks to [user=608699]@wolfgart[/user] for the files and [user=1157052]@thecubed[/user] for codefire hosting. 
    
    *Step by step picture guide - [url]http://imgur.com/W83hMPE[/url]
     
    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 [URL="http://downloads.codefi.re/autoprime/LG/LG_G3/Setup_LGFlashTool_1.8.6.527.zip"][B]LG Flash[/B][/URL]. In "C:\LG\LG Flash" folder delete megalock dll. Replace with .dll below.
    new megalock dll - [url]http://bit.ly/1cQADXm[/url] (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 [URL="http://downloads.codefi.re/autoprime/LG/LG_G3/LGUP_8974.dll"][B]LG Flash .dll[/B][/URL]
    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. 
    [/HIDE]
    [B][SIZE="5"]PurpleDrake YouTube Videos:[/SIZE][/B]
    [HIDE]
    [url]https://www.youtube.com/watch?v=wJtz51KgxjM[/url]
    [/HIDE]
    21
    Can you share your process for other Windows users please?

    Windows Script (Rooting)

    1. Install the USB drivers

    2. Unzip the files (7-Zip) works great

    3. When you have the file Unzip this will create a folder called Purple Drake with a folder called asset inside it.

    4. Obtain the ADB files. Place the adb files in the both the Purple Drake folder and the assets folder to make it easier:

    adb.exe
    adbWinApi.dll
    adbWinUsbApi.dll

    5. Open an Admin command prompt in the Purple Drake folder

    6. Turn on USB debugging and connect your phone to your PC by USB

    7. Change to PTP mode, your computer should recongnise the LG G3, if not the USB drivers did not load correctly

    8. Type: adb devices

    it should come back with your phone info and the word attached, if it says offline then check your phone and accept the RSA popup, I would check the box inside so it remebers the phone.

    9. Type: adb devices

    It should say attached now

    10. Type: adb reboot --bnr_recovery

    This will boot your phone into recovery mode. This will boot into a graphic which I dont remember what it looks like. Once you see the graphic you can continue.

    11. Type: cd assets

    12. Type: adb push start_restore /temp/start_restore

    When it returns you to the command prompt you can continue

    13. Type: adb push permaroot.bin /temp/start_restore

    When it returns you to the command prompt you can continue

    14. Type: adb reboot

    This will boot you back to the home screen. Go to Google Play and install SuperSU. Once installed then update the binaries the normal way and you should be rooted.

    TRWP Flashing

    1. Copy the TWRP_LG-D851.img file found in the Recovery folder in the Assets folder to the root of the internal storage on the LG G3

    2. Download Flashify for Root from Google Play

    3. Run Flashify and select under Flash the Recovery image option

    4. Select Choose a file and select the above file on the root of the internal

    5. Click on Yup!

    This will flash the recovery and boot into the recovery. Just select the Reboot option in TRWP then System to boot back to the home screen

    ---------- Post added at 11:05 AM ---------- Previous post was at 10:54 AM ----------


    The below was provided by AutoPrime and works:

    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..

    DO NOT FLASH OTHER PEOPLES EFS OR FLASH YOUR OWN BACKUPS ONTO ANOTHER PHONE.
    THIS WILL BREAK EFS ON THE PHONE YOU ARE FLASHING TO. EFS BACKUPS ARE FOR THE PHONE THEY CAME FROM ONLY.

    HERE is an EFS backup .zip that can be flashed in TWRP.
    the zip creates a new flashable zip in /sdcard/efs_backup
    you can flash this new flashable zip in TWRP any time you need to restore your EFS.

    Or you can do it manually...

    Backup:
    adb shell
    su
    dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst1 of=/sdcard/modemst1.img
    dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst2 of=/sdcard/modemst2.img

    Restore:
    adb shell
    su
    dd if=/sdcard/modemst1.img of=/dev/block/platform/msm_sdcc.1/by-name/modemst1
    dd if=/sdcard/modemst2.img of=/dev/block/platform/msm_sdcc.1/by-name/modemst2
    19
    Howdy everyone!

    Just woke up, and I'm back to work on this.

    Items to fix for today:
    • App needs to be ran twice to see phone
    • Initial Windows support
    • Better debugging messages on failure of temp/permaroot

    The 'run twice' bug appears to be related to the phone's adb server, it doesn't like people connecting to it just out of the blue, so I guess I need to do some kill;start;kill;start adb server stuff until the phone is detected.

    Windows support will be easy once I can find the right damn cygwin stuff. I had accidentally grabbed MSYS from git-bash, which is great and all, but it automatically translates paths - even if they're not a path. That meant trying to run "adb push ./somefile_on_desktop /tmp/somefile_on_phone" would translate both to "c:\blah\somefile". At 3AM my brain just didn't have the willpower to fix that so I figured I'd delight the OSX/Linux users with a release first for once.

    Anyway, I've skimmed over this thread and it seems like I also need to add a few better debugging messages for failures of temp/permaroot - I'll

    I'm gonna try to get a mod to move it to the proper TMO forum too, so international users aren't confused (despite the D851 in title...)

    Thanks guys for the support, your patience has been greatly appreciated!
    18
    Hey guess what?

    Windows support is up!
    Fixed OSX bugs!
    aaaand I included a 64-bit ADB binary that should fix Linux not detecting the phone!

    Let me know how it goes!