yashsingh1/xdaforums huggingface dataset:
[Nexus 5 General] Chromium:
Yep unlocking is going to completely wipe all data off the phone...no way around it. What I was referring to is that back on the n4 in the 4.2 days, there was a bug in the bootloader that allowed you to bypass the wipe. It no longer exists with the n5 and its bootloader, so like I said, everything is going to get wiped and there is currently no way to stop it.

Sent using xda-developers app
[Nexus 5 General] leomd333:
Why exactly does unlocking the boot loader wipe the device? what does it gain from it haha?

Btw awesome thread :good:
[Nexus 5 General] Chromium:
For security purposes. Let's say someone stole your phone and you had a password lock on it. The thief may want to steal your data so he would try unlocking the bootloader and installing a custom recovery from where he could then use adb to pull your precious data off the phone. Since unlocking the bootloader wipes everything, the thief won't have any data to steal. With that being said....the thief would have to be quite knowledgeable of android, and I doubt many of them are.

Sent using xda-developers app
[Nexus 5 General] peste76:
So it´s insecure to leave it open ? :) Never thought about this.
[Nexus 5 General] leomd333:
Very Interesting. I never thought of that haha, thanks for the answer :good: But i gotta agree, id say 95% of theivs have no idea on how to use Adb :laugh: Ps: Ran outta thanks :(

So....:good: :good: :good:
[Nexus 5 General] mrro82:
I went to the site for the drivers and I clicked settings-then change pc settings and I'm not seeing a General tab, Am I missing something? I tried right clicking on the n5 in device manager to update the drivers and it said it couldn't due to Nexus 4 ABD Interface
[Nexus 5 General] Xeodus:
This should be part of the OP

Chromium - thanks for the great guide, could you add the above to the instructions? It seems to be that the recovery flash not working is prevented by the above.

Thanks all,

Xeo
[Nexus 5 General] FCDHBubbles:
Very nice guide took me 10 minutes!!:good::good::good:
[Nexus 5 General] mrro82:
Are you using windows 8.1?
[Nexus 5 General] FCDHBubbles:
No sorry I am on the dark side ;););););) OSX 10.9...
[Nexus 5 General] mrro82:
NM. I'll PM Chromium with this.
[Nexus 5 General] Vangelis13:
OP, great guide! Managed to pull it off on Windows 8, however by using some older usb driver from Wug's n4 toolkit; what a pain. Worked at the end though!

Link of your guide will be in my signature for the next few months if I may, it is a great way for new users to learn how to control their phone.

Thank you!
[Nexus 5 General] EnzoFr83:
I have a big problem. I have unlock my BL and installed TWRP official and now, the phone stuck on the boot logo.

When i want shutdown, the phone power on always....

Please help me
[Nexus 5 General] Chromium:
Somewhat.

In terms of security a locked bootloader is better than an unlocked one.

Will do.

Boot into TWRP > Wipe > Swipe to factory reset.
[Nexus 5 General] Petrovski80:
True, but this stands or falls with the consequence of unlocking the bootloader (wipe of userdata). As soon as a workaround for this is found, like with the Galaxy Nexus, it makes no difference.
[Nexus 5 General] Chromium:
True, but again we are assuming that the thief has adequate knowledge of how to use/manipulate adb and fastboot to his advantage and that he went through the trouble of browsing xda to find a way to stop the wiping of data. I highly doubt that the stuff we are talking about would ever go through any thief's mind.
[Nexus 5 General] EnzoFr83:
Factory reset failed, i have not the root...
[Nexus 5 General] Chromium:
Flash stock images. Read the second post for a link to instructions.
[Nexus 5 General] efrant:
Yes, dev-host has gotten really bad. I have already removed all files that I had hosted on that site. If [MENTION=4883664]Chromium[/MENTION] doesn't get to changing the host today, I'll try and do it today or tomorrow.

I would highly recommend no one use dev-host to host any files...
[Nexus 5 General] El Daddy:
Whoa. I can assure you the file is fine. Dev-host used to be a viable file hosting site when this was uploaded nearly two years ago. What you are seeing is bait links from Dev-host.
[Nexus 5 General] :
This guy knows his stuff. ^

Good to see you old friend. :)
[Nexus 5 General] Drambit:
Lol I accidentally summoned the uploader
[Nexus 5 General] Wout2426:
Thx for your good tutorial.

Have my Nexus 5 for 3 days now, time to flash !

Unlocked bootloader and, and flashed recovery succesfull, on a windows 10 laptop.

Had to pinpoint the drivers in device manager manualy, used univeral naked driver. But i worked !
[Nexus 5 General] goutham kumar muvva:
How to install sqlite 3 on nexus 5

I have a nexus 5 running stock 5.1.1 rooted and xposed framework installed . I installed the WhatsAppX module from xposed installer but it says I need to install sqlite3 .I downloaded the sqlite installer from the playstore and installed but it is of no use. Please help me out if there are any other ways to install sqlite3 and use WhatsApp X
[Nexus 5 General] dozer82:
Great write up. I was just smart enough to figure it out and get rooted. :D
[Nexus 5 General] deusfaux:
Does this method, which I used for several years and am most familiar with, still work on 5.0? A few links and the existence of other guides suggest it will not, but I didn't see anything in the OP (should there be?)

Also why do so many of the guides, including this one, neglect to mention that a custom recovery doesn't have to be installed to be used the one time you might need it for rooting (just boot the customrecovery.img from the PC) - leaving the phone with stock recovery, and less work overall. That's the way I was original taught on some sticky from the past, and yet all the guides don't mention this, which I think is worthwhile - isn't it?
[Nexus 5 General] Primokorn:
Yes it works on Lollipop even if I would mention SuperSU 2.49 (beta version).

You can only boot into TWRP to flash SuperSU, you are right but having a custom recovery is a good thing IMO, if only to make nandroid backups.
[Nexus 5 General] deusfaux:
Can you say that again? I can't understand the first line. Does it only work on 5.0 with that version of SuperSU? I was going to use 2.46. Will that one not work?

I understand why some people would want to have a custom recovery - but it's really frustrating that so many guides have sections for stock users and then give you instructions that will result in a loss of that stock status, when perfectly good, just as easy options are there that will keep stock status.

Also why the more complicated instruction of using ADB to push the supersu.zip onto the phone instead of dragging and dropping in Windows?
[Nexus 5 General] Primokorn:
SuperSU 2.49 has some fixes for Lollipop AFAIR but you should be good with the stable version 2.46.

Chromium is maybe a Linux guy so ADB is a natural tool :) You can use ADB or a drag and drop or you can directly download SuperSU from your phone. As you want.
[Nexus 5 General] deusfaux:
Thanks for clearing things up. I think the main sticky thread here: http://xdaforums.com/google-nexus-5/general/resource-guides-info-threads-linked-read-t2784527

should be edited, because right now the way it reads it suggests this thread and method here are only for Android versions prior to 5.0, and to visit a different thread for 5.0, that has the automatic CF method and no mention of this superior, IMO, manual one.
[Nexus 5 General] Primokorn:
Since Elluel is not active since July I asked Mods to edit the thread. Thanks.
[Nexus 5 General] the0nly0ne-:
Will this work on my Nexus 5 build "LMY48M" Android 5.1.1?
[Nexus 5 General] Primokorn:
Yes. This is a Nexus thread. Things don't change for each Android update ;)
[Nexus 5 General] ddpanda85:
it is not working for stock android 6 update...

i flashed my nexus 5 with flashall.bat file
[Nexus 5 General] rapastor:
What is not working? If you mean the method for root, yes it doesn't work. You should check this post

http://xdaforums.com/showthread.php?t=3219344
[Nexus 5 General] t0tec:
Hi, can I use this same procedure to update my Nexus 5 (v4.4.4 KitKat) to Marshmallow with the same method. Or are there any hidden caveats that I'm not aware of?
[Nexus 5 General] Primokorn:
You need an unlocked bootloader but you'll have to flash the factory images, which is not explained in this thread.
[Nexus 5 General] seanvree:
Great instructions...

However, i can't flash the recovery because it's too large:

Microsoft Windows [Version 10.0.10240]

(c) 2015 Microsoft Corporation. All rights reserved.

C:\Users\14z>cd C:\Users\14z\AppData\Local\Android\android-sdk\platform-tools

C:\Users\14z\AppData\Local\Android\android-sdk\platform-tools>fastboot flash rec

overy recovery.img

sending 'recovery' (11666 KB)...

OKAY [ 0.468s]

writing 'recovery'...

FAILED (remote: size too large)

finished. total time: 0.474s

So, how do I get a recovery on there since I'm not rooted yet????

EDIT: Wow, this tool is SICK:

http://www.wugfresh.com/nrt/

Mission accomplished
[Nexus 5 General] Dulliedroid:
Hiya!

I followed each of your steps in detail and am now stuck at this point. My Nexus 5 simply won't start. I updated to 6.0 yesterday and I have several power usage "anomilies" which is why I wanted to "downgrade" to 5.0 which is when it was last running smoothly.

The moving dots is the only thing I could see for the last 4 hours - I will leave it on for the night but I fear we are past the

point.

Any help would be appreciated - maybe note: This is the first time that I have done anything like this and it took me a lot of sweating and effort to even get here :crying:
[Nexus 5 General] efrant:
Reboot into fastboot mode and type:

fastboot format userdata

fastboot format cache

fastboot reboot

This will obviously wipe all your data on your device, including /sdcard
[Nexus 5 General] drworm73:
This thread seems more active, so I will move this here:

I am trying to do this to stop a boot loop that my phone N5 is stuck in. I tried to do a factory reset and it seemed stuck at the erase screen (I did not read far enough into the thread to see how long it might take) so I shut the phone down and restarted it. It was still looping, so I shut it down and started it in fast boot again and tried to get to the recovery screen, but now I can get to the android on it's back with the exclamation point, but it reboots before I can get the recovery menu up.

My next tactic was to install ADB and drivers, and follow the instructions to install a new factory image, but after I have fastboot oem unlocked my phone (the phone shows that it is unlocked) I then run flash-all bat and it reboots into fastboot and now it is locked so the rest of the flash-all can't run and it fails.

I have also made sure it is not a button issue.

I want to either factory reset or install the factory image, but I am banging my head against a wall. I take that back...I just want my phone to work.
[Nexus 5 General] Dulliedroid:
trying this now. Should I write anything before the fastboot format userdata when opening cmd?

Thank you!

---------- Post added at 08:26 AM ---------- Previous post was at 07:26 AM ----------

well it has been almost an hour.... I guess that didn't work either.

Anything else I could try? - I am in University now so I won't be able to try till lat evening.

I Was running 6.0, does that have a side-effect on the steps that I went through?

Maaan this is frustrating I feel buttnaked without a working smartphone...I don't even own a watch! :eek:
[Nexus 5 General] efrant:
Try re-flashing the images:

fastboot flash bootloader bootloader.img

fastboot reboot-bootloader

fastboot flash radio radio.img

fastboot reboot-bootloader

fastboot flash boot boot.img

fastboot flash system system.img

fastboot format userdata

fastboot format cache

fastboot reboot
[Nexus 5 General] WhiteTitane:
What makes this option appear or not?

More to the point: should a Nexus 5 running Marshmallow have it?

I thought I saw it on my phone but it's not the case anymore...
[Nexus 5 General] drworm73:
So, anyone have any idea why my oem unlock will not stay after fastboot reboot?
[Nexus 5 General] efrant:
Unfortunately that usually that signifies a hardware problem.
[Nexus 5 General] deusfaux:
From SuperSU marshmallow thread:

" Please note that the current method will not be officially supported. Future roots may require a clean system: we are at a very early stage of root for 6.0, methods used are subject to change."

(N5 user) What is the suggestion here when [MENTION=631273]Chainfire[/MENTION] says "clean system"? I really wouldn't mind any flashing at all, apart from wiping the user data partition. I feel I can no longer wait for a different root method to be revealed, so I'm looking at jumping in with the modified boot.img method we have available.

However if someone could identify there's a strong likelihood that'll set me on a path that will someday result in wiping my user data, I suppose I can justify holding off for longer.
[Nexus 5 General] efrant:
It will not set you on a path that will result in a data wipe. All he is saying is that, right now, you need both a modified boot image and a modified system, while in the past you only needed a modified system. In the future, you will likely need only a modified boot image, so the past method and the current method will be replaced.
[Nexus 5 General] kontini:
I unlocked bootloader via fastboot and without rebooting I fastbooted Android M so I forgot to reboot. OP says it is important so it's my fault, anyway my phone worked properly but after a couple of days I noticed that Windows doesn't show my storage when connected through USB. Are the two things related?
[Nexus 5 General] trabadura:
After the update to Android 6.0 should then connect to activate the file transfer mode on default is only charging.
[Nexus 5 General] kontini:
:svetius:

I feel like a stupid or I'm stupid :confused: Thank you
[Nexus 5 General] trabadura:
I'm glad that I was useful :)
[Nexus 5 General] efrant:
Probably not. If Windows can't see your storage, it's a driver issue.
[Nexus 5 General] SebLemery:
This is like the 6th tutorial i follow, and i still can't manage to root my phone. It's stuck in the flippin bootloop (boot animation) for hours... Why is there no custom roms with 6.0 already? Or am i just ****ing blind. :(
[Nexus 5 General] Primokorn:
Check the Dev forums. We do have MM custom roms.
[Nexus 5 General] :
thanks op. :D
[Nexus 5 General] giiv0ol:
Hello mates,

I've been reading for a couple of days now :D I already unlocked my bootloader and installed a custom recovery but before that I tried to root my N5 with Chainefire's CF-Auto-Root and the phone just stuck in android colour loading. Then I flashed the phone with a 6.0 stock version and gave him factory reset. So my question is - is it possible to root is with SuperSU-v2.46 or I need to wait a little bit :D
[Nexus 5 General] Gbooye:
Yes, it's possible to root with superSu, but its been said many times that some or a special kernel is required before rooting!!

I'll try as much as possible to see if i could locate you a thread that deals with this.:eek::eek::eek::eek::eek:
[Nexus 5 General] Abyssalia:
Hi everyone,

I followed the original tutorial with not much problems, using TWRP and SuperSu with no real problems at any stage, except now, rebooting after rooting it's taking very long to boot and i'm starting to get worried if it's okay? How long should it take and if it doesn't work what should i do to maybe fix it?
[Nexus 5 General] shaggyskunk:
If you're talking about the first boot without a Factory Reset, Wiping System and caches - Flashing a Rom etc - It shouldn't take too long - But if you Factory Reset and Wiped Caches and or System and Flashed a Rom - It could take 5 to 10 minutes - First boot after Rooting and Flashing a Custom ROM on my Nexus 7 took 16 minutes - Go get yourself a coffee - walk the Dog, cat or pet Squirrel - BEFORE you start to panic ?

Sent From My SM-N910W8 Running SlimRemix V5.3
[Nexus 5 General] Abyssalia:
Yeah i did wipe the system etc. and the boot's probably taken at least 20 minutes already, so i dunno
[Nexus 5 General] bb709394:
If you are on MM, there are two methods http://xdaforums.com/apps/supersu/wip-android-6-0-marshmellow-t3219344:

1) modified boot and root with SuperSU 2.52

2) system-less root with SuperSU 2.6 or later (current is 2.6.2) -- I am rooted with SuperSU 2.6.1 and everything works fine

If you are on still on LP: root with 2.46 should be fine.
[Nexus 5 General] KeerthiPraveen:
Thank you..

Very Nice step by step procedures shared.. Thank you very much. :good:
[Nexus 5 General] gipsi87:
Updating MM 6.0.1

Hello guys!

Quick question: I want to update my system with the latest OTA. I have rooted my device with ElementalX 6.05 and SuperSU 2.46. Also have installed xposed mod.

What are the steps to update my system to ElementalX 6.07? Should I update SuperSU also? Am I going to lose data?

Sorry for the newbie questions, but its my 1st time updating a custom ROM...

Thanks in advance.
[Nexus 5 General] jd1639:
You won't be able to use the ota. To update to 6.0.1 download the factory image, extract it and then extract the zip inside it too. Download supersu 2.62 to your device. Then using fastboot flash the radio, system, and boot images. Boot back into the boot loader and then boot into twrp 2.8.7.1, fastboot boot twrp.img (use the full name of the twrp image file) Then in twrp flash elemental x and supersu. Boot back into the bootloader and fastboot flash the twrp recovery image.

You'll be rooted with twrp installed and won't lose data. But back up everything first just in case.
[Nexus 5 General] gipsi87:
Thank you very much. Worked fine.
[Nexus 5 General] shylittlezerg:
Hi,

I'm having a problem unlocking the boot loader. I need to flash a factory image because my phone won't boot into the OS, it's stuck on the 4 dots boot animation thing. However, after unlocking the bootloader, the phone needs to restart but it will never boot up into the OS, and when I force shut the phone down and go back into the bootloader, it says my phone is still locked. I'm not very experienced with stuff so any help would be appreciated. Thanks!
[Nexus 5 General] jd1639:
You might want to check this out, http://xdaforums.com/google-nexus-5/help/unlock-bootloader-t2980875
[Nexus 5 General] dastane:
you will find you're happyness here [MENTION=7178914]moh2mi[/MENTION]
[Nexus 5 General] yerfenuj:
Hi xda, this is the place where i started modding my nexus 5. now im back to ask for some help. i cant boot my phone into custom recovery anymore. i tried to follow these steps once again but i have trouble opening command prompt and i cant use to go to the black window pop up where i used to type all the codes. i cannot use my phone anymore im just stuck at bootloder itself nothing more. pls help guys
[Nexus 5 General] Primokorn:
Try flashing again your recovery.img with fastboot then reboot into your bootloader and select Recovery.

To open a command prompt on Linux => right clic > Terminal :)

To open a command prompt on Windows => Shift + right clic > Open a command prompt here

To open a command prompt on Mac => idk :p
[Nexus 5 General] Gbooye:
Can i root 6.0.1 with method please ?

Without flashing custom kernel ??
[Nexus 5 General] c2b2:
Really well written guide.

Followed every step mentioned in this guide, and flashing a custom ROM on my Nexus 5 was easy.

I installed the custom ROM on my Nexus 5 using the CWM method. Then I installed another custom ROM on Xiaomi Mi 4i device using TWRP. I found TWRP much more user friendly and was wondering if I can install TWRP on my Nexus 5 so that my subsequent ROM installations can be done through TWRP.

How do I go about it?

I tried installing TWRP Manager from Google Play store, but after installing, it says "Custom recovery not installed or not detected". Then I selected recovery version to install as "twrp 2.8.7.1..." and it gave an error that it can't be flashed...

TLDR: How do I install TWRP on my rooted Nexus 5 which has a custom ROM installed (I want to do this so that going forward I can install custom ROMs by TWRP method)
[Nexus 5 General] audit13:
To install TWRP on the Nexus 5, download the latest TWRP from here: https://dl.twrp.me/hammerhead/

Put phone into fastboot mode, connect phone, use the following fastboot command to flash the twrp you downloaded:

fastboot flash recovery twrpxxxxxx.img
[Nexus 5 General] epiphone:
Still on 4.4.4. Rooted previously with old version of CWM, using this guide, and also installed Xposed.

I would like to update to Android M, whichever is the latest version of it. However, would like to keep it stock without flashing any custom rom, but will still need ROOT.

Have changed my custom recovery to the latest TWRP 3 for Nexus 5. Can someone advise the steps? Will I need to go to Lollipop first? Is Android M rootable at all currently?
[Nexus 5 General] Primokorn:
http://xdaforums.com/google-nexus-5/general/guide-update-rooted-device-to-5-1-lmy47d-t3050789

Directly flash MM and you can have root access with SuperSU 2.67.
[Nexus 5 General] epiphone:
Thanks a lot sir, can I check whether SuperSU 2.65 will work as well?

Can't seem to find SuperSU 2.67.
[Nexus 5 General] Primokorn:
Yes, it should.

FYI SuperSU 2.67 http://download.chainfire.eu/897/SuperSU/BETA-SuperSU-v2.67-20160121175247.zip

Changelog: http://xdaforums.com/showpost.php?p=64916199&postcount=3
[Nexus 5 General] epiphone:
What to answer to the below question? Keep Read Only, or Allow Modifications?

--------------------------------------------------------------------------------------------

TWRP can leave your system partition unmodified to make it easier for you to take official updates. TWRP will be unable to prevent the stock rom from replacing TWRP and will not offer to root your device.
[Nexus 5 General] Primokorn:
Keep Read only if you don't plan to modify your systemp partition and if you want to use OTA updates.

Allow modifications if you plan to update manually or use custom roms/kernels, root adblockers and so on...
[Nexus 5 General] linzoid:
Hi. I have just flashed MMB29Q to my Nexus 5. I wish to re root using SuperSU 2.52. because I do not want systemless root. I am aware that I need to flash a custom boot image/kernel to achieve this. I welcome suggestions from people with a wider experience than mine. Which boot image/kernel do you suggest? (I do not need a high level of control over kernel settings). Thanks in advance.

---------- Post added at 02:08 PM ---------- Previous post was at 01:54 PM ----------

Oh, and one other question . . I have been using CWM recovery ever since I started rooting phones a few years ago. All the talk these days is about TWRP. Is CWM no longer supported, or is TWRP somehow superior? Any advantage to my changing to TWRP? Again, thanks in advance.
[Nexus 5 General] farsight73:
TWRP is more widely use and preferable among people around..

Assuming you're know about abd command.. In Fastboot..

1. Flash TWRP 2.8.7.1 (https://dl.twrp.me/hammerhead/).

2. Reboot to custom TWRP recovery. Flash SuperSu 2.52.zip (http://xdaforums.com/apps/supersu/wip-android-6-0-marshmellow-t3219344/post63168310#post63168310)

3. Flash custom kernals of your preferable choice.
[Nexus 5 General] linzoid:
Thanks for that. Kernel suggestions, anyone?
[Nexus 5 General] farsight73:
All kernels are good in their own way..

But I prefer ElementalX.

Kernel - ElementalX N5 6.12

Good support from developer.

Don't forget to download also its EX Kernel Manager for more customization on the fly.
[Nexus 5 General] survivor_evil:
what am I doing wrong? Im flashing the CWR and then installing super user but my phone never boots up again. It always gets stuck on the google logo
[Nexus 5 General] Primokorn:
Try flashing TWRP then SuperSU from TWRP.
[Nexus 5 General] GersonAG:
Fully rooted thank you