yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] Kwongger:
1. Do the Out-Of-Box Restore

2. Reinstall TWRP/CWM

3. Boot into recovery

4. Wipe user data in Recovery
[Nexus 5 Original Android Development] anactoraaron:
For those people that can't make TWRP stick: you need to reboot bootloader and access recovery from there or it will not stick. Just an fyi. [MENTION=5241452]Kwongger[/MENTION] that should be easy to implement in the tool, no?
[Nexus 5 Original Android Development] duckied:
holy **** bro lol it worked thank you very much sir!!!

and thank you Kwongger for this awesome toolkit =)
[Nexus 5 Original Android Development] TripleDDD:
I dont know why but whenever i try to unlock the bootloader it keeps saying <waiting for the device>.
[Nexus 5 Original Android Development] unknownprotocols:
Bug. Idk if kit or my machine. Tried with and without admin privileges. Windows 8.1 pro 64bit. The kit runs, but says adb and fastboot not found / not valid command. I ran the adb and fastboot in the kit myself from cmd and had no issues. It just can't seem to communicate with them. Very odd. Probably something on my end. Wish I could think of what it was though...
[Nexus 5 Original Android Development] 02busa:
Thanks man. Just a clarification for some folks though, you must reboot the bootloader BEFORE you try to flash the recovery image.
[Nexus 5 Original Android Development] zhangmaster12:
Do you have developer mode unlocked? You need to turn on USB debugging. To unlock the developer mode, just click on the build number a bunch of times.

My TWRP wouldn't stick either but here is what I did to fix it.

1) Start phone into OS

2) Follow Kwongger's batch file and allow it to reboot my phone into fastboot and install the files.

3) BEFORE hitting any key to allow the batch file to reboot your phone do these 3 steps:

a. use the volume key to choose "reboot fastboot" in the bootloader menu and use the power button to select

b. then, when in fastboot mode, use the volume keys to select recovery and press the power button

c. now you should be in TWRP. Use the TWRP reboot menu to reboot back to bootloader.​

4) Now hit any key and let Kwongger's batch file reboot your phone.
[Nexus 5 Original Android Development] TripleDDD:
I figured it out, it was the drivers. I thought i had installed it already but windows showed that it wasnt. Now its working. Thanks
[Nexus 5 Original Android Development] starryeyez:
Nothing works

I'm running Windows 7 Home premium x64 ..... I've tried everything ..... I give up! Trying a different computer tomorrow. UGH!:crying:

Oh and I have no idea how to manual install never tried it.
[Nexus 5 Original Android Development] anactoraaron:
This tool must be placed on the OS drive. If you're like me you have an os drive and a data drive.
[Nexus 5 Original Android Development] nikeman513:
For those having issues with bootloop. None of these kits helped. I improvised and used Wugs Toolkit for other Nexus devices. I downloaded the factory image from Googles website and clicked softbrick/boot loop. It then asked if I would like to download the image (for nexus 4),or use one on file. I clicked on the image file for Nexus 5, and wallah! It worked. It will ask for md5 number and warn you that flashing the wrong image could hurt the phone. Just accept and don't put anything in the md5 number request. Just press OK and your phone will be back to normal. Idk why these toolkits didn't work, but wanted let those know that not all is gone when/if you get stuck at some point.
[Nexus 5 Original Android Development] larkhillv:
I keep getting come script in the toolkit that says "error: device not found"

Not sure if this is affecting the recovery from installing, but like many others, I can't get TWRP or CWMR to install in order to get root :( I have tried several times and it still won't work.
[Nexus 5 Original Android Development] abaaaabbbb63:
Try the manual method.
[Nexus 5 Original Android Development] supa2001:
I did all those, and it didn't work ("device not found"). Then I realized that I didn't turn on USB Debugging.

The complete steps:

1. Go to settings -> about phone -> tab "build number" 7 times.

2. Hit back once, click the newly appeared "developer options", then enable USB debugging

3. Download and unzip the newest USB driver: http://developer.android.com/sdk/win-usb.html

4. Plug in the USB cable, a pop up asking for authorization from your PC will show up. Click authorize/ok/allow

5. Open "Device Manager" on your PC (Visual steps here: http://www.theandroidsoul.com/nexus-5-driver-adb-fastboot-installation-guide/)

6. Under other devices, there should be a device with yellow exclamation mark, double click it, click update driver

7. Browse to the USB driver folder where you unzipped the stuffs from step 3 and select the driver file.

8. Open the toolkit and unlock away!
[Nexus 5 Original Android Development] larkhillv:
Thanks! This helped.

And thanks for all who suggested manually installed CWM recovery. I didn't know how to open a command window in a folder, so anyone wondering how to do this step-by-step, check out this link: http://www.android.gs/install-cwm-recovery-new-google-nexus-7-2013/

It's for the Nexus 7, but just apply the same concept and you'll be on your way to root :)
[Nexus 5 Original Android Development] Ricky Divjakovski:
the drivers are not istalled properly.

remove ALL other device drivers and reinstall.
[Nexus 5 Original Android Development] Kwongger:
Enable USB Debugging
[Nexus 5 Original Android Development] calvin269:
Thank You, the updated drivers fixed my bootloop. I was finally able to get it to start up again. For anyone one that is trying to do a factory restore (and having bootloop issues) replace the adb files with updated ones and the tool kit will work for restore.
[Nexus 5 Original Android Development] unknownprotocols:
Yep. Thanks man. It didn't like being on the data array. Moved it to the OS ssd and all is well. Kind of hits my ocd a little though... Don't like things other than windows on my ssd.
[Nexus 5 Original Android Development] anactoraaron:
Me too lol major ocd :) I just cut and pasted it off the C drive back to the data drive when I was done. SSDs only have so much space lol

Sent from my Nexus 5... yeah... my Nexus 5 :)
[Nexus 5 Original Android Development] peste76:
My adapter also stucked (empty of course). Have an "self cutted" Nano-SIM which is a bit "fatter" then normal. So it won´t get inserted and i tried the Adapter alone. Stucked. But got it back with inserting my Nano-SIM into the stucked adapter - phew! :)
[Nexus 5 Original Android Development] Braska90:
TWRP is not going so well or is it my impression? xD

Because for me 450 MB are very heavy to download :( (60 kb is my dw speed) so is just to know if the 3.0 version sould fix some issue with the recovery ;)
[Nexus 5 Original Android Development] elviroo:
I unlocked my bootloader sucessfully and wrote the twrp img to the phone. when it restarted and i switch it off and on in fastboot again and choose recovery only an android with a red sign on the stomach appears... after few minutes it reboots itself.

also tried the cwm through this toolkit but same problem here.

any suggestions?

tnx
[Nexus 5 Original Android Development] Braska90:
Ok evrything done, but after rooting the device with SuperSU the Playstore continue to crash...

Tired to clean data in "apps setting" but nothing... Suggestion?
[Nexus 5 Original Android Development] craig14:
Hi guys, after some helpppp :(

I unlocked my phone and installed TWRP, then i went to copy Superuser files to my phone, The internal memory had no folders in it whatsoever...

I rebooted the phone and still nothing so i used the "out of box restore" function from the toolkit, now im just stuck in bootlo0p :(

any ideas?

Thanks Craig
[Nexus 5 Original Android Development] calvin269:
Try reading a few posts back
[Nexus 5 Original Android Development] Kwongger:
I reccomend CWM... ricky310711 and I are collaborating on a toolkit that will be released by the week's end.

Boot to recovery before my toolkit reboots for you.

Restore using toolkit, flash TWRP, then wipe userdata in TWRP.

Install TWRP then boot into TWRP and do the Factory DATA WIPE
[Nexus 5 Original Android Development] Deeco7:
Safe to use this toolkit using your instructions without any potential brick or is it quite problematic?

Edit: Took me time to figure out, but just to note that 'Download link' is not visible to those who are using the XDA 2010 Theme'.
[Nexus 5 Original Android Development] Kwongger:
It's safe. No bricking

If it bootloops the instructions are in the post above yours :D

I am uploading v 2.2. NOW so it may be better to use that one.
[Nexus 5 Original Android Development] Deeco7:
Oh god, just finished downloading 2.1.2 lol, cheers!
[Nexus 5 Original Android Development] ghiki:
as the phone back to factory state? I deleted the OS, I need the option in the toolkit that, as the tablets had nexus
[Nexus 5 Original Android Development] Kwongger:
? Yes, you can return it to factory state.

It's okay 2.2 is small just put it in 2.1.2's folder :D
[Nexus 5 Original Android Development] Red Wolf:
Rooted using this toolkit, its awesome :D
[Nexus 5 Original Android Development] Kwongger:
I have a new one coming... It's a collaboration with the other Toolkit dev :D

GONNA BE SWEET

Unbrick. init.d Tweaks, build.prop tweaks, backup, and building ROM from current device state are PRO. :D
[Nexus 5 Original Android Development] Braska90:
Solved booting in Recovery, wiped cache / darvi, factory reset and reboot, works great! ;)

-Tapatalked with Nexus4-
[Nexus 5 Original Android Development] Kwongger:
Yup. That's what I recommend. :victory:

Glad you like it :D
[Nexus 5 Original Android Development] kayone73:
So these are the steps you need to do after flashing TWRP to get it to stick?
[Nexus 5 Original Android Development] DowntownJeffBrown:
OK guys a little help is needed. My friend has a Mac and I have no clue how to tell him how to open a terminal window in the same directory as the toolkit. He knows how to open a terminal window but just not in the same directory. I own a PC and did all my unlocking/rooting manually but I can't help him do it that way as he has a Mac. Do any help would be appreciated and thanks

>^.^< Sent from meow nexus5
[Nexus 5 Original Android Development] Kwongger:
Open the terminal and navigate? IDK though I never wouldn't own a Mac if apple paid me lol
[Nexus 5 Original Android Development] KrazyAttack:
Trying to flash TWRP through this tool and I keep getting:

TWRP installing just 1 step left

'fastboot' is not recognized as an internal or external command, operable program or batch file.

Nothing happens after that and when I then go to recovery like it says, red triangle.
[Nexus 5 Original Android Development] DowntownJeffBrown:
Same here bro that's why I couldn't figure it out lol....

Sent from my XT1058 using Xparent BlueTapatalk 2
[Nexus 5 Original Android Development] Kwongger:
Tell them to put this in the terminal. But to where the file is.

cd /Users/username/Documents/
[Nexus 5 Original Android Development] jumpman1229:
I second this
[Nexus 5 Original Android Development] matthew0776:
Very Nice....!!! Great work over here man...!!! :thumbup::D:beer:
[Nexus 5 Original Android Development] cadbomb:
As far as I know, MacOS/Linux/Unix doesn't natively support batch files in *.bat or *.cmd format. This is a Windows script format that would require re-coding to match the OS platform. Additionally Mac does not support *.exe binaries or *.dll's required to use the version of ADB used in this script. Simply stated, this method isn't compatible with MacOS. (Not a dev issue, new scripts and appropriate platform files would be required. Though OSX is a UNIX-based platform, so translating a linux variant might be able to execute appropriately).

If you wanted to try it, you'd need to look into the UNIX filesystem structure. Typically the home folder for the current logged on user will be "/home/<username>" or "/~" (enter "cd ~" or "cd /home/<username>" to access folder structure from terminal. Unix based OS's do not use drive letters, they use mount points instead)

However, if your friend happens to have a copy of VMWare Fusion, Parallels, or is dual booting with BootCamp, he can launch/boot Windows on his Mac, then go from there. He can use USB pass-through for the phone to connect it directly to the Windows VM and then use the command prompt in Windows to perform the operation as though he was working from a PC.

Otherwise he'll have to wait for someone to build out the alternative platform scripts, drive to your house for you to get it rooted, or buy a cheap lil $300 laptop that'll do the trick (which may be a more viable option than spending all that money on a VMWare/BootCamp/Parallels/Windows licensing)!

Hope that helps! Happy rooting!
[Nexus 5 Original Android Development] ceecee10:
Root Question

Is it possible to install custom rom without root. I need root for good for enterprise?
[Nexus 5 Original Android Development] Kwongger:
You guys need to make sure that the folder is on the same drive that your Operating System is on.

Come again?
[Nexus 5 Original Android Development] Kwongger:
Thanks! And Are you jumping off the HTC bandwagon as well?:good: :laugh:
[Nexus 5 Original Android Development] jumpman1229:
I put everything on the root of my C:\ drive. Still same result =/

ADB seems to crash as soon as it is opened. Is that normal?
[Nexus 5 Original Android Development] DowntownJeffBrown:
Haha he's in Florida and I'm near Chicago but I told him to bad that he wasn't closer cause I'd just do it for him. Thanks for the explanation

>^.^< Sent from meow MotoX
[Nexus 5 Original Android Development] oupavoc:
Thanks to your toolkit my phone came back from the dead! Thanks for the help!
[Nexus 5 Original Android Development] ceecee10:
I just want to know if it is possible to install a custom room without rooting the my phone.
[Nexus 5 Original Android Development] oupavoc:
From my understanding yes you can all you need is to unlock bootloader and custom recovery! But tbh most Roms have root!
[Nexus 5 Original Android Development] SKArabaeus:
might be a noobish question but anyways...

my bootloader is unlocked and the phone is rooted (not using this toolkit), but for some reason, i can't get to recovery anymore - i only see the android with the red triangle when i try to...everything else works fine.

so my question: will flashing JUST twrp-recovery wipe automatically / require to wipe?
[Nexus 5 Original Android Development] Braska90:
No with this I've solved my problem with PlayStore.
[Nexus 5 Original Android Development] Ricky Divjakovski:
no it wont, however i recomment waiting for the new tool me and kwongger are putting together

its one of the first that supports windows/linux/mac AND ANDROID! :D thats right, the tool can be used on your device!

and i gues goomanager done the trick? we will add a dd method that WILL work while the device is booted!!
[Nexus 5 Original Android Development] SKArabaeus:
Impatient as I am, I couldn't wait for the new toolkit ;) Still worked like charm! THX
[Nexus 5 Original Android Development] Arcaziel:
Thank my N5 is now unlocked! Rooting now, waiting for AOSPA :D
[Nexus 5 Original Android Development] nitrogen618:
Just a question. If I root through CF Root, can I install twrp from GooManager?

I did that on the s4, it worked... O_o
[Nexus 5 Original Android Development] matthew0776:
It was a in between device(gnex-no N4-N5) since I'm on Sprint...lol but I'm prob gonna keep both. :thumbup: the One has grown on me now that I've themed the heck out of it...lol but def grabbing N5 shortly after Sprint gets it...should be Friday when they get device...!!
[Nexus 5 Original Android Development] Kwongger:
Dont! The One you buy on Google Play activates and works on Sprint fine. :D saves you some $
[Nexus 5 Original Android Development] Ricky Divjakovski:
that will work on ANY device!
[Nexus 5 Original Android Development] exzR:
i need to relock bootloader

anyone can help me?
[Nexus 5 Original Android Development] Ricky Divjakovski:
hold shift and right click in the folder, then select "open command window here"

then boot into bootloader

then type fastboot oem lock

DONE :D
[Nexus 5 Original Android Development] elpmet27:
Thanks for this! I gained root and was up and running in a flash! ;) Quick and easy to use...
[Nexus 5 Original Android Development] exzR:
thanks that work :D i have an answer, i have rooted my nexus 5 behind the specs:

nexus 5 16gb black italy

S.O:

version M8974A-1.0.25.0.17

KERNEL 3.4.0-g9eb14ba Tue Oct 22 15:43:47 PDT 2013

build KRT16M

so may send it for the warranty (because i have some problems like more apps crashes like store, hangout etc and many other problems in this post http://xdaforums.com/showthread.php?p=47217472#post47217472).

i have found this link:

http://xdaforums.com/showthread.php?t=2513701

and i followed the step. now i see boot locked but my first bootloader version was zzh10X and now i have zzh10D.. but problems are not resolved. if i send to google's warranty they can repair phone or if they see that my bootloader version are different than my stock or if there are some counter that increment when you root device or unlock bootloader and that block the warranty or i must pay to warranty? now it seems like stock (althought my bootloader version is different) or not??

really sorry i hope you understand what i want to say
[Nexus 5 Original Android Development] Ricky Divjakovski:
they wont say nothing about the bootloader, bootloader can be updaated with an update from htc! You will be fine aslong as you have stock recovery and rom...

also as far as im concerned google doesnt implement a custom binary counter in their bootloader, but do some research just incase!
[Nexus 5 Original Android Development] exzR:
you have my all respect and thanks for search (my doens't have no result -.-) :) so for now can i feel comfortable

but i don't understand

"bootloader can be updaated with an update from htc!" from htc??
[Nexus 5 Original Android Development] Kwongger:
He meant LG sorry for the confusion.
[Nexus 5 Original Android Development] psxsnake:
interesting

when this tool will release? :highfive:
[Nexus 5 Original Android Development] matthew0776:
I figured it would but...I'm due for upgrade...so maybe I can score the device for 100 or under...with 2yr

Got my whole family tied I to this damn plan...lol stuck...!
[Nexus 5 Original Android Development] kayone73:
I used Kwongger's toolkit from start to finish, zero problems, and like he said repeatedly, once you flash TWRP recovery...

REBOOT INTO TWRP FIRST THING then you can reboot into Android or whatever you want to do next

Before you do anything else and you'll have no issues losing custom recovery

Sent from my HTC One Sinless Google Edition rom
[Nexus 5 Original Android Development] Ecf17:
Custom recovery necessary?

Right now do you have to install a custom recovery before you root or can you just root? I dont want a custom recovery, but the instructions make it seem like you need one to root. The unlock process worked great, though.
[Nexus 5 Original Android Development] Kwongger:
]

Yup! It is required. I use a method safer than other methods of root :D
[Nexus 5 Original Android Development] Ecf17:
If you want to install a custom kernel is it safer to do it through the toolkit or can you do it through TWRP?

thanks for helping!
[Nexus 5 Original Android Development] kellybrf:
had the issues with twrp working, finally got cwm to flash after a few tries. I'd like to run twrp though, you think it's safe to try and flash twrp again without messing cwm up if it doesn't work?
[Nexus 5 Original Android Development] kayone73:
Flashing a custom recovery is needed to flash the SuperSU software that gives you root access. Once you unlock the bootloader there is little reason to NOT flash custom recovery as its a powerful tool to create perfect backups to restore of you mess up your phone

Sent from my HTC One Sinless Google Edition rom

---------- Post added at 07:36 PM ---------- Previous post was at 07:34 PM ----------

Most of the time custom kernels are flashed in custom recovery

Sent from my HTC One Sinless Google Edition rom
[Nexus 5 Original Android Development] K3VL4R:
Everything installed fine, thanks for the work on this. One issue that I had though was that I must have done something wrong as it ended up wiping my phone..... which in itself is not a bad thing, though after logging back in, play store only had stock apps and supersu and would not backup all my other apps like it did before.

I already tried wiping again to see if it would restore but it did not. It is going to be faster to install them manually than to keep trying different things, but if anyone knows how to avoid this, maybe post what I did wrong so that the next person can avoid it.
[Nexus 5 Original Android Development] lopri:
I appreciate the effort but I don't know why Samsung drivers has to do anything with the Nexus 5? I used the Nexus 4/7 (Google drivers 4.0.0 and 8.0.0) along with Samsung devices (Samsung drivers, not KIES) without an issue until now. I don't see where the conflict might come in.
[Nexus 5 Original Android Development] orphan22:
Stuck on boot nothing seems to work hellllp :(

Did not even got to use the phone :@@

---------- Post added at 06:37 AM ---------- Previous post was at 06:12 AM ----------

Any kind of help?

Hope?

Please :(
[Nexus 5 Original Android Development] abaaaabbbb63:
Boot in recovery, and do a factory data reset.

If that doesn't work, flash the factory images. There's a guide in the General section.
[Nexus 5 Original Android Development] orphan22:
tried it no luck, it just gets stuck again on the spinning nexus logo :(((
[Nexus 5 Original Android Development] abaaaabbbb63:
You flashed the factory images?
[Nexus 5 Original Android Development] orphan22:
I think so, thing is I use the old blue program, and I used the #4 function to do everything, I chose CWM.
[Nexus 5 Original Android Development] abaaaabbbb63:
Don't use a toolkit. You're on your own now.

Use this guide to flash the factory images:

http://xdaforums.com/showthread.php?t=2513701
[Nexus 5 Original Android Development] orphan22:
Thanks i will try that, and sorry i am so nervous right now i didnt see when you told me about it in the other comment.
[Nexus 5 Original Android Development] orphan22:
all i keep getting is this "fastboot" is not recognized as an internal or external or external command.

And the phone is indeed on fastboot mode where is says start, recovery and all that. I get that when i try to do the CMD window as well

---------- Post added at 02:02 PM ---------- Previous post was at 01:29 PM ----------

Got the CMD to work thanks for all the help good as new :')

And thanks for the tutorial as well bro
[Nexus 5 Original Android Development] ricecake2000:
Sooooooo, after trying this toolkit I now have a 400 dollar brick, :(

I was using the latest version, unlocked my bootloader then went to root it.

Since the root requires a custom recovery I went ahead and began to install TWRP.

After I allowed my computer (or the ToolKit) access to my device it told me to boot into the bootloader

And now I cant get the device into the bootloader or to even turn on.

Any options or am I just out of luck?

Feel free to pm me a solution that way I actually see it.
[Nexus 5 Original Android Development] cobyman7035:
live and learn lol, don't use those tool kits when u this sort of stuff! do it the manual cmd/fastboo/adb method!

lessen the chance of bricking(your case is soft brick im sure) use the tutorial above u, one guy also had trouble,flash the stock imgs and re do
[Nexus 5 Original Android Development] ricecake2000:
Yeah. Had a dumb moment but I got it into fastboot. (Was holding vol up and down instead of just vol down and power) face palm

Restoring in a second.
[Nexus 5 Original Android Development] piticoeur:
Impossible for me to install custom recovery TWRP or CWM. It doesn't work. In toolkit it's written "sending and writting OK" but when i restart the phone into recovery i have nothing except the bugdroid...

Any solutions please?