yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G3] thecubed:
I'm still not sure why this is necessary though... are you trying to run this as administrator? If so, don't... There's *no* need to run this from platform-tools folder, there's nothing in the script to even take advantage of that - heck, I even force the script to use the included ADB binary so it doesn't even need an adb installation.

Let's figure this out properly instead of asking people to try random remedies that aren't really officially sanctioned (don't take that wrong, I'm glad you got it working for you, but let's figure out why it's not working in the first place).

--

Anyone getting the mintty.exe error, please do the following:

a) Ensure you have FULLY EXTRACTED the .tar.gz file, by dragging the actual PurpleDrake folder somewhere outside of your extraction program

b) Check that the file mintty exists in the assets/windows/bin folder and that you can run it by double clicking it

c) Let me know what Windows version you're running - win8, win8.1, win7, winXP - is it 64-bit, 32-bit, 0-bit, 8-bit... I've tried windows 8.1, windows 8, and windows 7 64 bit each with no problems and can't reproduce this issue.

If the mintty file doesn't exist, maybe your antivirus is deleting it?
[T-Mobile LG G3] jgarozzo:
I'm running Win 7 64 bit with no AV. There are no files in minty for me.
[T-Mobile LG G3] networkdood:
Yeah...ok...I put the folder there for safe keeping...it made sense, and I realize that it did not to solve the issue, other than me just running the batch file manually...
[T-Mobile LG G3] merchomini:
Ok i got root, had to move my PurpleDrake to the desktop. I can seem to boot into recovery mode tho....holding the power button and volume down button and letting go when i see the LG symbol just boots the phone normally......maybe i missed something??
[T-Mobile LG G3] Nosferatu.:
thing this worked like a charm awesome! I made sure to read up on everything before hand but hit no hiccups.

Windows 8.1

LG D851

Rooted, TWRP installed, EFS backed up. Having fun. Thanks guys!!! :good::good::good:
[T-Mobile LG G3] thecubed:
So, you extracted the .tar.gz file, opened the assets folder, opened the windows folder, then opened the bin folder and don't see a mintty file? Do you see other files? A screenshot could help too, since I'm baffled as to why you wouldn't have the proper files after extracting the .tar.gz file.
[T-Mobile LG G3] Skizzy034:
Is this legit for other variants?

http://xdaforums.com/lg-g3/general/recovery-cwm-chinese-english-d855-f400-t2825994
[T-Mobile LG G3] kodiakice:
extracted purple drake to desktop

drill down and manually try to run of the minitty

Windows 8.1 64bit.

Anyone getting the mintty.exe error, please do the following:

a) Ensure you have FULLY EXTRACTED the .tar.gz file, by dragging the actual PurpleDrake folder somewhere outside of your extraction program

b) Check that the file mintty exists in the assets/windows/bin folder and that you can run it by double clicking it

c) Let me know what Windows version you're running - win8, win8.1, win7, winXP - is it 64-bit, 32-bit, 0-bit, 8-bit... I've tried windows 8.1, windows 8, and windows 7 64 bit each with no problems and can't reproduce this issue.

If the mintty file doesn't exist, maybe your antivirus is deleting it?[/QUOTE]
[T-Mobile LG G3] Skizzy034:
Can we run the windows script again and select option 1 with the modified boot.img if we chose option 2 the first time?
[T-Mobile LG G3] marty331:
Yes you can. I think this was answered a few days ago and the OP said it was safe to run again with option one. Also, since bootloader is unlocked you can flash the included recovery .img via fastboot.
[T-Mobile LG G3] Nosferatu.:
for those having problems follow the directions to the exact. That means open up the youtube link and follow the video up to the point he's ready to do the root manually (which by the way most should understand what they're doing before attempting this).

Anyways, go to this thread and run his adb setup. http://xdaforums.com/showthread.php...mctr=(not provided)&__utmv=-&__utmk=202557202

Make sure under device manager you have an ADB driver and LG pop up.

Run drake as administrator.

You're set.
[T-Mobile LG G3] mrfeuss:
It's very nice of you to try to help people out, but your instructions are directly contradicting [MENTION=1157052]thecubed[/MENTION]'s directions below.
[T-Mobile LG G3] Nosferatu.:
I'm not trying to contradict him. Just stating that's how I got through it one time with zero problems. :good:
[T-Mobile LG G3] thecubed:
[/QUOTE]

Howdy! Your screenshots are super helpful, thanks! Mintty is giving an error saying it can't find "/bin/sh" because it expects to launch a program from a Linux system - if we had ran mintty from the command line, we'd run it with "mintty.exe .\bash.exe" and you'd get a linux bash prompt.

The .bat file "purpledrake_windows.bat" launches mintty properly, however somehow it seems to not be able to find mintty, which is strange.

I'm going to check a few things and ensure that there's no way Windows could fail to launch Mintty (with the proper arguments) and I'll let you know what I find. Thanks!
[T-Mobile LG G3] thecubed:
Thanks for the link - I'm not sure if the drivers there are any better or worse than the LG drivers I've linked in the thread. Was there an issue with the LG drivers in the OP?

If people are having issues with the drivers from LG, let me know and I'll repack the drivers into purpledrake itself as well.

Also, there isn't a need to even have adb installed on your box :) purpledrake brings it's own adb installation (If you're curious, it's in assets/windows/bin/), so it should be that only the drivers are necessary.

In regards to running as administrator, purpledrake doesn't need admin rights from when we've tested it. I suppose someone could have a more restrictive group policy applied to their windows box, however if they're part of a domain (and thus group policy) I'd think the run as admin button might not do much :)
[T-Mobile LG G3] jgarozzo:
That is exactly what happens to me.
[T-Mobile LG G3] VDub2174:
Can't wait to use this to root my phone!
[T-Mobile LG G3] jgarozzo:
The file I see is just .tar

Not .tar.gz
[T-Mobile LG G3] Haro912:
I first tried using the drivers in the OP but couldn't get the device in adb. Quick Google search sent me to here and I got it to show up in adb.
[T-Mobile LG G3] autoprime:
same drivers
[T-Mobile LG G3] gunslingerfry:
That was the easiest root I've ever done. Thanks Thecubed, (IOMonster), jcase, and autoprime! :good:
[T-Mobile LG G3] Dellman87:
I can't get PurpleDrake! file to work.

Installed correct drivers

LG G3 put into PTP AND MTP or whatever it is

rebooted pc and phone ( pulled batteries too)

run in admin and in non admin

( random thought, is there a battery level you have to be at ) update: battery is at 80% didn't work...

Drake for windows keeps saying "waiting for device" and it goes like that forever. Any ideas of what to do?

Windows 7 64 bit.

LG G3 T-Mobile
[T-Mobile LG G3] Nosferatu.:
Did you unlock the developer options and enable USB debugging?
[T-Mobile LG G3] Pheno.menon:
I had the same problem and closing PurpleDrake then starting it again fixed it for me.
[T-Mobile LG G3] T-Fanatic:
So I used the manual method for root that didn't include twrp. I'm rooted, but no twrp. Where can I find the twrp recovery by itself, and can I use flashify to install it? Thanks for any help.
[T-Mobile LG G3] Dellman87:
I've restarted my computer and phone multiple time, also I've shut down the windows applicaiton.

---------- Post added at 05:06 AM ---------- Previous post was at 05:02 AM ----------

WOW, I can't believe I didn't unlock that feature.. * face palm *

Here is how to do it for anyone who got lost like I did..

How to enable Developer Options on the LG G3

Pull down the notification Shade

Tap on the Gear icon

Tap on the “General” tab in Settings

Scroll down to “About Phone” and tap on it

Scroll down to “Software” and tap on it

Now tap on “Build Number” and tap it seven (7) times.

Now go back twice

And you should see “Developer Options” above Printing and About Phone..
[T-Mobile LG G3] Nosferatu.:
Glad to have been able to help. Did this fix your problem? :good:
[T-Mobile LG G3] Dellman87:
I'm actually at work right now, so I'll update when I get home!!
[T-Mobile LG G3] bustinstugots24:
Wondering the exact same thing. Completed it manually and need twrp. How can I install twrp by itself?
[T-Mobile LG G3] Mikey:
PurpleDrake\assets\recovery
[T-Mobile LG G3] bustinstugots24:
Mikey I appreciate the response I'm just not exactly sure what that means. Would you be able to help me step by step?
[T-Mobile LG G3] Boostjunky:
That's the directory of where you can find TWRP. Just go to where you placed the the PurpleDrake folder, and navigate to that directory, which is where you'll find the TWRP file that you're wanting to flash with flashify.
[T-Mobile LG G3] bustinstugots24:
Thanks! I'll try it when I get home appreciate the help

EDIT: I was able to do it in my office. It worked perfectly thank you so much! Now can't wait for some amazing roms to take this device to the next level.
[T-Mobile LG G3] Eldartho:
My issue... I download r3 and I'm clueless as to what (using 7zip) format I'm supposed to extract the. Tar. Gz file Into.... Fml and face palm I've never had this much difficulty rooting before....
[T-Mobile LG G3] chefp2010:
How easy is it to root using this method ive rooted my phones before im coming from gs5 and that was easy just wondering because so many people getting stuck ?
[T-Mobile LG G3] Dellman87:
THANK YOU EVERYONE for helping with the debugging idea! I got my phone rooted!! This has to be, hands down, the easiest root I've ever done ( When you finally figure it out, b/c I didn't think about debugging )

Seriously, thank you for troubleshooting with me.

( by the way, it only worked on my machine with admin privileges )
[T-Mobile LG G3] Boostjunky:
Honestly, I don't get how so many people are getting stuck and having a hard time. This is practically a "One-click" method with a couple of simple, straight-forward options for you to select during the process.

I have to wonder if most folks aren't just getting stuck due to not fully extracting the package from the archive? The package in its raw downloaded form is, essentially, a zip (in "tar" format) within a zip ("gz" format). If you right click the downloaded package (the "gz archive" named "PurpleDrake-TMO_R03.tar.gz") and simply hit extract, you will extract another zipped folder (the "tar archive" named "PurpleDrake-TMO_R03.tar"), which you would then have to extract once more to get to the actual fully extracted package (which would no longer be a zip archive of any kind, and would be named "PurpleDrake".

An easier way to do it is to right-click and open archive of the downloaded package (again, named "PurpleDrake-TMO_R03.tar.gz") with 7zip, and within that archive, open the next folder (which, again, is named "PurpleDrake-TMO_R03.tar"), then just drag and drop the folder named "PurpleDrake" out of the archive to wherever you want to execute it from.

Those that are reporting not being able to find the files and folders (such as the "assets" folder, or the "mintty.exe" file) are likely those who have not fully extracted the package.

The other issue I'm seeing is that folks are forgetting to enable "Developer Options" and enable "USB Debugging" within that menu. And, of course, there are those who are forgetting (or mixing it up) to put the phone in "PTP mode".

Really, it's quite simple and straight forward.

I'd hate to see how many folks would brick their phone if this absolutely required manually inputting ADB or Fastboot commands.
[T-Mobile LG G3] Skizzy034:
Had an updated twrp been released yet that fills the whole screen?
[T-Mobile LG G3] g33kChic:
I keep getting error message

"windows cannot find '.assets\windows\bin\mintty.exe" etc

Can someone please help me out?

thanks in advance
[T-Mobile LG G3] Boostjunky:
Look 2 posts above yours...
[T-Mobile LG G3] kodiakice:
I finally got it to work. I don't know what I did differently but it must have truly been how I extracted the files as I started over from scratch extracting and it worked like a charm. Anyone having troubles go at this with an open mind and take your time extracting the archive. I been fighting with this since it came out, it works.
[T-Mobile LG G3] papaketchup:
Rooted my D851 but I notice some lags. Is this normal?
[T-Mobile LG G3] g33kChic:
Ok I finally got rooted but under my device health it shows that I'm rooted

I thought according the op "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."

Did I do something wrong? Why is it showing rooted? I'm only concerned just in case if I have to take it back and they see that it's rooted they won't exchange etc :confused:
[T-Mobile LG G3] Boostjunky:
Device health, as in, the T-Mobile app?
[T-Mobile LG G3] Deggy:
Ugh. I'm one of the people that's stuck. I double clicked on "purpledrake_windows.bat" and nothing. USB debugging enabled. Drivers installed. Redownloaded the zip file. Extracted it properly. I no have idea on what to do next.
[T-Mobile LG G3] g33kChic:
Yes.
[T-Mobile LG G3] papaketchup:
What do you guys do when you root?

Uninstall T-Mobile Apps and what other things do you do?
[T-Mobile LG G3] jgarozzo:
Anyone use ClockworkMod recovery?
[T-Mobile LG G3] justen7723:
Is there a cwm for G3???
[T-Mobile LG G3] apexi350z:
Does this root give you Sim Unlock?

Read through the threads, but did not find info on Sim Unlock with this root. Does it give you Sim Unlock after root, so you can use other sim cards? or do I need to unlock it separately? Thanks!
[T-Mobile LG G3] BACARDILIMON:
Unlock separate

---------- Post added at 10:38 AM ---------- Previous post was at 10:38 AM ----------

No
[T-Mobile LG G3] tbiggs:
Will this allow me to use a tethering app to get around tmo's tethering charges?
[T-Mobile LG G3] Boostjunky:
That isn't the built-in "Root Checker" that was being referred to. The T-Mobile Device Health app data can be cleared and noone would be the wiser once you unrooted the phone. The built-in Root Checker, on the other hand, I'm not so sure that you can simply wipe data and expect that to go away.

It's somewhat unimportant for the time being, anyway, since apparently T-Mobile doesn't currently care if your phone is rooted or not.

If they ever do start caring, it's the built-in root checker that you'll want to be aware of. Not the T-Mobile Device Health app. That is, unless you've enabled reporting to T-Mobile, in which case they could track whether your phone was rooted or not at any given time...
[T-Mobile LG G3] warchyld77:
no link

Pls help..i can only find the link to the lite version but i can not install twrp with that!
[T-Mobile LG G3] EEngineer:
I'd also like to see CWM for the G3. One of my phones had a cracked screen and the touch acted on it's own like the phone was haunted... CWM is keys-only and saved the day for me.

I'm running purpledrake_windows.bat from Windows XP from a command window. Another command windows quickly opens, then closes. A quick screenshot shows me the command window has the following lines:

./assets/purpledrake_main.sh: line 2: $'\r': command not found

./assets/purpledrake_main.sh: line 11: $'\r': command not found

./assets/purpledrake_main.sh: line 12: $'\r': command not found

./assets/purpledrake_main.sh: line 13: $'\r': command not found

My G3 (D851) does nothing. I have debugging enabled on my G3.

From looking at the contents of the purpledrake_windows.bat it appears that the backslashes are backwards?

I'm also confused about running this manually, can't get that running. For example, this instruction:

C:\Users\Michael\Downloads\PurpleDrake\PurpleDrake\assets>adb push start_restore
/temp/start_restore
6 KB/s (13 bytes in 0.002s)

Am I really entering this line?

adb push start_restore /temp/start_restore

I have adb v1.0.31 installed.
[T-Mobile LG G3] IXChicharitoXI:
Just put the phone on ptp mode, USB debugging enabled, install drivers, and press enter like 2 times.
[T-Mobile LG G3] EEngineer:
USB debugging is enabled

Drivers are installed.

What is ptp mode and how do I set it?

Also, when I execute this command:

adb push start_restore /temp/start_restore

it says 0 bytes transferred

UPDATED: Figured it out, changed to PTP mode from the status bar alert.

ROOTED!!!
[T-Mobile LG G3] tschmid:
When you connect your phone it gives a notification that mtp mode is used. Change this to ptp mode. Its a protocol for picture transfer
[T-Mobile LG G3] chefp2010:
How do i set up adb
[T-Mobile LG G3] tridogg97:
Anyone on Windows having trouble with adb try this http://forums.androidcentral.com/showthread.php?t=415287
[T-Mobile LG G3] robert90262:
Im on windows and whenever i download all i get is the tar how do i get the files to extract :confused:everyone is talking about kind of lost right now

Am I supposed to get something else besides the tar file ?
[T-Mobile LG G3] graig79:
Your question has already been answered. See post #483.
[T-Mobile LG G3] robert90262:
Just wondering what everyone is doing are they installing just twrp or twrp and LG security off ?
[T-Mobile LG G3] hawkstwelve:
Just wanted to give a BIG thanks to the devs who helped put this together. Just switched to TMO from VZW. Got my G3 home at 530, rooted by 545... And thats including charging it for about 10 minutes to get the juice a little higher. Very painless and simple.

Enable USB Debugging on Phone

LG G3 drivers from OP on Comp

Extract PurpleDrake x2

Run PurpleDrake

Profit

Now starts the real fun. Thanks again fellahs!
[T-Mobile LG G3] detroitguy1:
THANK YOU. Easiest root process ever.
[T-Mobile LG G3] NewMan4Life2010:
Thank you I rooted my girls phone today and had no problems at all.
[T-Mobile LG G3] chefp2010:
Thank you
[T-Mobile LG G3] webfrm:
KUDOS

Thanks for getting the root. I do see the TWRP.img file. Has anyone installed the TWRP yet? IF so what is the ADB command to get the custom recovery on the phone?
[T-Mobile LG G3] EEngineer:
Since successfully rooting my D851 I'm trying to install SuperSU but I can't install anything from Google Play.

I can browse what's on Google Play, but when I click the Install button I get the animated line like it is installing but it never finishes.
[T-Mobile LG G3] hawkstwelve:
Easiest way is to transfer .img file to your phone. Download Flashify from Play Store. Select RECOVERY IMAGE and browse/select your .img file after approving SU. Flash. Profit.

Make sure to select Recovery Image and not Boot Image or else it'll be no bueno.
[T-Mobile LG G3] tschmid:
Clear cache from google play doesn't help?
[T-Mobile LG G3] jgarozzo:
I still can't get my computer to find my phone. It keeps saying waiting.
[T-Mobile LG G3] Boostjunky:
After downloading and properly extracting all packages:

1) Install LG United Mobile Drivers package.

2) Enable developer options on phone.

(If you don't know how to do this, go to "Settings", "General" tab, "About Phone", "Software Information", then tap "Build Number" 7 times. You now have access to Developer Options within the "General" Settings tab.)

3) Enable USB debugging within the developer options menu.

4) Plug phone into computer.

5) Check status bar pull-down on phone to ensure you are in "ptp mode". If you are in "mtp" or "charge only" mode, tap that measage, after which it will present you with 3 options (charge only, mtp mode, or ptp mode) and select "ptp mode".

6) Allow "New Hardware" wizard to finish realizing that the drivers are already installed on your machine and resolve itself.

7) Start the Purple Drake bat application.

8) Follow on-screen computer instructions.

9) Come back and tell us what your "duh..." moment was. :)
[T-Mobile LG G3] EEngineer:
I cleared data and cache from Google Play and Google Services Framework. I removed my Google email, cleared it again, then inserted my Google email again. Nothing - since rooting I'm getting the Google Play Error 495 and nothing has helped.

For the time being I'm downloading apps using my JB tablet (including SuperSU) and moving the APKs to my G3 for install. But this has to get fixed somehow.
[T-Mobile LG G3] tschmid:
Maybee something with rights/permissions. But hey its fixed ?
[T-Mobile LG G3] BACARDILIMON:
So I take I you fixed your issue. What was it?
[T-Mobile LG G3] Boostjunky:
What issue? I was offering instructions to someone else that was having trouble.

Everything worked just fine the first try when i did it.
[T-Mobile LG G3] BACARDILIMON:
Weren't you the one who couple not get his phone to load with his PC.
[T-Mobile LG G3] decaturbob:
I gotta say I read every single post in this thread, all 53 pages as I will have a G3 next week. I can't believe how many problems are a direct result of taking little, if any time to read some previous threads...This G3 is about the easiest phone I have seen in a long time to root and install a custom recovery....coming from a S4 and before that a Thunderbolt...

good job by those who put it all together.
[T-Mobile LG G3] rich2007:
How do I boot into custom recovery manualy with power key?
[T-Mobile LG G3] decaturbob:
info I saw for doing so:

Easier to install a 4-way rebooting, download G3 Tweakbox...will have to buy premium version. but has a option for 4 way reboot menu when you hold power button and click power off and restart

manual way I believe:

IMPORTANT NOTE: Do not try to reboot into recovery mode unless you’ve installed a custom recovery on your LG G3, otherwise you might end-up hard resetting your phone. REPEAT>>>>>YOU WILL DO A HARD RESET OF YOUR PHONE

Power off your device and wait for 5-10 seconds until the device is fully switched off.

Press and hold ‘Volume Down + Power’ buttons together and release them as soon as you see the LG logo on your phone’s screen.

Now immediately press and hold the ‘Volume Down + Power’ buttons again until you see the ‘Hard reset screen’

Press power button once, and then again to confirm hard reset. If you have a custom recovery installed, your phone won’t hard reset and will boot into recovery mode.

Your phone will boot into recovery mode. Use Volume buttons to navigate Up and Down between options and use Power button to select an option in recovery (if in case it’s not touch supported)

Install and use Quickboot app

Yes! There’s an app for rebooting your phone into recovery mode, and it’s the most easier of the methods we discussed above. But it won’t work unless you’ve root access on your device, and since not everyone roos their device, we’ve put this as the last method here.

ROOT ACCESS REQUIRED

Install the Quick Boot (Reboot) app from Play Store on your LG G3 | Play store link →

Open the app and grant Root Access

Select ‘Recovery‘ from the list of options and it’ll boot your device into recovery mode
[T-Mobile LG G3] Boostjunky:
Getting MTP mode to work on Windows XP still isn't happening for me, but it never stopped me from getting the phone rooted. PTP mode works just fine.
[T-Mobile LG G3] rich2007:
No official for TWRP yet? Can anyone fix the resolution on our device?
[T-Mobile LG G3] decaturbob:
That would be addressed by team win who supports twrp for g3...apparently not a priority.

sent by safestrap powered echo v26
[T-Mobile LG G3] mrfeuss:
I posted this last week:

Per [MENTION=2684188]autoprime[/MENTION] on IRC
[T-Mobile LG G3] autoprime:
coming soon :good:

*update*

now available! http://techerrata.com/browse/twrp2/d851 2.7.1.3
[T-Mobile LG G3] CheesyNutz:
nice cant wait thanks
[T-Mobile LG G3] jgarozzo:
My duh moment is there isn't a bat file. I click "purpledrake_windows" then enter and it says "waiting for device". Also, this is what I get when I check on the mintty file " /bin/sh: No such file or directory"
[T-Mobile LG G3] Boostjunky:
Please refer to post # 483.
[T-Mobile LG G3] jgarozzo:
This is the file I get when I download it from XDA: "PurpleDrake-TMO_R03.tar"

Sometimes I'll get the phone in recovery? but it hangs with the do not remove sign and adb says waiting for phone. I have downloaded the LG Drivers multiple times, all with success.
[T-Mobile LG G3] tschmid:
But it should be PurbleDrake-TMO_R03.tar.gz i think. Does it help if you rename the downloaded file and extract it again?