yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] adrman:
[MENTION=631273]Chainfire[/MENTION] Now that SuperSU 1.69 is the current release, how does that affect those of us that have obtained root via this script. I'm currently running completely stock, just unlocked and rooted, with the SuperSU Pro app on my N5. Will I receive an update notice via the app/play store or will the script be updated and require it to be run again? Thanks.

Edit:

Answered my own question. The play store registered an update and everything updated perfectly to the new version.
[Nexus 5 Original Android Development] rldstover48:
windows vista 64 bit

Hi, It says in the first post - Download the ZIP file (see post below for link)

- Extract the ZIP file

I downloaded the file and then copyied it to the Desktop I then Extracted it from there. Would that give me a problem with it not finding the command or files needed in the batch file because when I run the Windows Batch file it shows a couple of lines where it cant find what it wants. Should I follow a different method in order to do this on my system if so could someone point me in the right direction. Also is there any settings on the phone that need to be set or unset before begining or running the batch file. And do apoligize know it shouldn't be this hard but i'd rather ask questions then Brick this thing.

Thanks Ahead again.
[Nexus 5 Original Android Development] gaosphappy:
I found (may have read) that file and android SDK need to be installed in same place. IE c:/ so that the script can find fast boot. At least that's how I had to do it. Good luck. :thumbup:

Edit.... USB debug needs to be selected (xda app is slow tonight)
[Nexus 5 Original Android Development] TheDudeAbides:
After a successful root, I no longer have mobile data. WiFi works, but that's it. I have everything enabled in settings too. Any help?

EDIT: Had to call Sprint. They did something on their end. Now working.
[Nexus 5 Original Android Development] pejotl:
After root, I noticed that T9 does not work in the dialer (from the black keyboard). Also, in the settings, the name LTE has changed to 4G. Is it possible?
[Nexus 5 Original Android Development] Primokorn:
Well...

So CF Auto Root didn't do anything about your keyboard and network icons.
[Nexus 5 Original Android Development] robdood:
Hey all, so I just got a Nexus 5 and want to root for a few apps that require it..

Do I have to install the Android SDK, then? It's not mentioned in the OP but it is over the last few pages.

Edit - NVM! Found a thread with more details! :)
[Nexus 5 Original Android Development] gfreek:
Unroot

Hi guys I rooted my device using this method, which worked great however I now need to send back my nexus 5 back to google for warranty replacement so I need to unroot and lock boot loader, from reading this thread my understanding is to unroot you do the following:

Step 1:

In SuperSU app, go to settings and click Full Unroot.

Step 2:

Open a CMD window

Boot phone in fastboot, and connect to PC

And type the following command Code:

fastboot oem lock

Is this correct? for step two do I need additional tools etc..?
[Nexus 5 Original Android Development] gradford11:
Got the boot loader unlocked now I can't get it to take root. I get message bootloader already unlocked then it tries to download boot.img which went on forever. Finally I gave up and thankfully nothing got borked. I used the same method to unlock but when it came to root, no go. Any idea's?
[Nexus 5 Original Android Development] Primokorn:
Wrong thread. All you need is there: http://xdaforums.com/showthread.php?t=2513701

How did you unlock the BL?
[Nexus 5 Original Android Development] gradford11:
Wug's nexus tool kit. Maybe wrong thread. I'll repost if necessary. Thanks.
[Nexus 5 Original Android Development] AndroidDude11:
Rooting the Nexus 5

I've rooted my Nexus 5 using the procedures from http://playfuldroid.com/tutorial-how-to-root-the-google-nexus-5/ and http://www.geek.com/android/how-to-root-the-nexus-5-1576590/. They make use of cf root program as well.
[Nexus 5 Original Android Development] chk27:
Thanks for your work, but just for curiosity to better understand the whole thing, who the .img works?

What file system does it have? (Is it encrypted?)
[Nexus 5 Original Android Development] kenpen:
win 8.1

i have a new computer with win 8.1 ... can i still root my phone without any issues
[Nexus 5 Original Android Development] kenpen:
supersu giving me issue

so i reverted back to win8 and used cf auto root.

it seem to have work boot loader is now unlocked ......but

1.there was no supersu app in app drawer, so i downloaded it from the playstore

2. when i try to open super su, it says

"there is no su binary installed, and supersu cannot install it.this is a problem!

if you just upgraded to android 4.3, you need to manually re-root-consult the relevant forums for your device"

pls any help on how to correct this would be appreciated
[Nexus 5 Original Android Development] fytr4lyf223:
I honestly tried to but the link is such a pain, paypal wouldn't work. I have no issues on eBay.
[Nexus 5 Original Android Development] Musko:
Hello,

may I have absolutely noob question? When I root my new Nexus 5 I will OTA updates or not?

Thank for answer.
[Nexus 5 Original Android Development] rinderkappajoe:
worked for me. Thanks a lot!

i had some problems first regarding drivers.

If someone else has problems "waiting for device" follow theese steps ( i know some of you allready postet that but for me it didnt work because the first steps were missing)

1. Go to Phone settings --> About Phone

2. Type 7 times on Build Number --> Now you are a developer and a special developer menue appears in settings

3. Go to Phone settings --> developer settings --> enable usb debugging

I´m pretty sure most of you the people arround here know that....but this is a guide for everybody, also noobs like me....so i think the first steps should be mentioned in Chainfires first post

4. Connect your phone to the computer and open device manager: My phone apperead 2 times: One Time as Mobile device and the second one as "other"

Choose The Nexus 5 that is listed under "other" and install new drivers (http://developer.android.com/sdk/win-usb.html#top)

After that everything worked as explained and i am very grateful for chainfires work!!
[Nexus 5 Original Android Development] p5f:
Worked perfectly for me. Another great tool. Thanks.
[Nexus 5 Original Android Development] bornoxt:
As long as you didn't change the ROM, Kernel or Recovery??? yes.

Correct me if I'm wrong.

But then there's the question: "Why rooting your phone?" ;)
[Nexus 5 Original Android Development] CatThief:
For me it's:

Nandroid backup

AdAway

Firewall

Titanium Backup

Certain functions in Power Toggles app

Access to Angry Birds lua files ;) To name a few...
[Nexus 5 Original Android Development] besweeet:
So, is "we are going to run the OEM UNLOCK command on your device. If your device was not previously unlocked, this will wipe all your data" referring to the bootloader, or a carrier unlock? If it's the former, then I'll pass on rooting. Didn't think you had to root BEFORE setting your device up. Don't want to start over with my setup :).
[Nexus 5 Original Android Development] Musko:
A long time I root all of my and my son's phones, because I use some root apps. Like a Titanium Backup, AdAway, XPosed Framework, etc. Therefore I root phone.

In my actually Samsung Galaxy S3 I use custom ROM and kernel, but I thing what in Nexus 5 I don't need custom ROM and use pure Google Android.

Therefore I ask: with rooted N5 i receive OTA update, or not?
[Nexus 5 Original Android Development] astarling10:
anyone get this to work on mac? i clicked the script but all it does it open up the file in TextEdit.
[Nexus 5 Original Android Development] besweeet:
It's to be done in Terminal. Run the first command as shown, then run the second one with: ./root-mac.sh
[Nexus 5 Original Android Development] tangosierra_:
Its the bootloader, and why is your Nexus carrier locked anyway O.O

Anyway if you read around you will know that unlocking BL will wipe all data but there's backup apps you can use to shorten setup time. (Of course me being lazy i unlocked first thing after opening the box)
[Nexus 5 Original Android Development] astarling10:
Tried that too and then was asked for a password. I put in my administrator password and it said "sorry wrong password."
[Nexus 5 Original Android Development] pdane:
I have a windows 8 computer and am trying to root my Nexus 5. When I plug my phone in via usb it is recognized as an MTP device. I cannot get fastboot access, however. I have tried to install and update drivers but my computer keeps on insisting that I have the most up to date drivers. I keep getting "waiting for device" whenever I use CF auto root. I have even tried, via a command, to check for "fastboot devices" but my phone is not recognized. I have uninstalled by phone and reinstalled, shut down and restarted my computer, but no matter what I do, I cant get the fastboot to work. Any ideas?
[Nexus 5 Original Android Development] bornoxt:
You can try to switch your phone to PTP mode.

Otherwise download the Android SDK and install it to get the latest drivers and of course disable the automatic driver download from windows update.
[Nexus 5 Original Android Development] pdane:
Thank you for the reply. I was finally able to get it to work by putting my phone in fastboot and updating drivers with my phone attached via usb. This updated fastboot drivers and allowed my to proceed with boot unlock.
[Nexus 5 Original Android Development] pravinzs77:
Thank you!!
[Nexus 5 Original Android Development] chris6278:
Just used this to root my N5 and it worked great. Thank you
[Nexus 5 Original Android Development] jackfrost909:
Just a thank you for you Chainfire.

Not sure if I'm gonna root my N5 just yet (or even if I'll use your autoroot method when I do) but you've helped me out previously with other tools and wisdoms elsewhere so have a couple beers (or coffees - whatever keeps you productive ;) ) on me.

Much thanks for ALL your gifts to our Android communities good sir. :highfive::good:
[Nexus 5 Original Android Development] haseoxth:
Sorry, a silly question here. Can I still get update via ota after using this ?
[Nexus 5 Original Android Development] aavvaallooss:
I think yes unless you install a custom recovery. In that case you can do it manually
[Nexus 5 Original Android Development] eruscool:
Will I lose root if I do a factory data reset?
[Nexus 5 Original Android Development] aavvaallooss:
No
[Nexus 5 Original Android Development] fabiocpinto:
Stupid question, but if I root my Nexus5 and unlock the bootloader will it affect my warranty?

Or is it possible to reset everithing and relock the bootloader so it won't be traceable by LG?

I only had my phone 4 hours ago... :(
[Nexus 5 Original Android Development] aavvaallooss:
Yes to both questions
[Nexus 5 Original Android Development] fabiocpinto:
Now you blew my mind...

So if I can reset everything, I won't void the warranty.

Or there are ways for them to see that even if I completely restore my phone?
[Nexus 5 Original Android Development] aavvaallooss:
My opinion: No warranty issues if you restore EVERYTHING but not only bootloader. You need to reset tamper flag too
[Nexus 5 Original Android Development] fabiocpinto:
So if I had any problem, I should unroot, re-lock bootloader and do a factory reset on my fastboot, and there won't be any counter or something like I had on my Galaxy S3?

Sorry for the noob questions, but on S3 the stuff was so simple to do, and I'm worried, that I'll make any s**t wrong...

Thanks
[Nexus 5 Original Android Development] aavvaallooss:
Yes. There is a whole tutorial threat about this topic (RETURN TO STOCK, UNROOT...)
[Nexus 5 Original Android Development] DreamLinker:
Hi,

I have a question about the install-recovery.sh in system/etc that is rewrited(?) by the CF-autoroot.

I know that (please correct me if i'm wrong) this file is used to start the daemonsu at startup

/system/xbin/daemonsu --auto-daemon &

but i have seen that there are also other commands in the original file and if i remember, these commands are

used to restore the stock recovery in the case of a failing checksum at android boot... i'm right?

After rooting, can I append the command above to the other commands just inside the original install-recovery.sh just to keep

also the original functionality of the script and start the daemon at the same time?

Thanks very much
[Nexus 5 Original Android Development] varuntis1993:
unlocking phone-help

Hey! is there any way to unlock the boot loader without wiping the data.......I am completely on stock and not rooted.

or

Is there any method to backup all my applications and games with data as I will loose all them which I don't wanna do after unlocking the phone?

Bought my nexus 5 from Indian play store and it came with locked boot loader.
[Nexus 5 Original Android Development] Primokorn:
No your user data will be wiped for sure.

You can backup them thanks to 3rd party apps like Helium.
[Nexus 5 Original Android Development] mandeep294:
Just rooted my Nexus 5.. thanks for making it very easy
[Nexus 5 Original Android Development] rohin26:
Update

if google comes out with an update in the future for example 4.4.1, will i be able to install using OTA or will i have to un-root then install and root again?
[Nexus 5 Original Android Development] sewer56lol:
Warranty potentially but you should be able to re-lock it to gain it back.

ALSO

UNLOCKING YOUR BOOT LOADER WILL °MAY° YOUR PHONE FACTORY RESET.

No unlocking your boot loader does not modify /system so you won't lose anything.
[Nexus 5 Original Android Development] Datsun.510:
Chainfire, you are the man!!! Thank you for your amazing support!! :good:

Yes you can relock it and send it in for warranty. As long as its a hardware related problem and you didn't brick the device, you shouldn't have an issue.
[Nexus 5 Original Android Development] sewer56lol:
I don't understand the question exactly.

However the Nexus 5 doesn't have a TWRP or CWM custom recovery build yet.
[Nexus 5 Original Android Development] Grondinm:
This was quick. Now time for my noobish question will this work on carrier phones like one from telus...
[Nexus 5 Original Android Development] oediv:
i mean if this is the final root, so i dont need to root it again when TWRP comes out :D that was the meaning sorry
[Nexus 5 Original Android Development] sewer56lol:
Yes all Nexus phones should have unlockable bootloaders.

---------- Post added at 07:05 PM ---------- Previous post was at 07:03 PM ----------

I haven't had the Nexus 4 or any other LG phone so I don't know the partition layout but I don't see how flashing a kernel would make you lose root. I assume the recoveries might be in the kernel but still, I don't know the partition layout.

---------- Post added at 07:06 PM ---------- Previous post was at 07:05 PM ----------

All nexus 5 phones have unlockable bootloaders which is pretty much the only requirement from the phone side. Being booted in fastboot is the only other one.
[Nexus 5 Original Android Development] Grondinm:
If i could hit thanx twice for one post i would Thank you for answering my question twice.
[Nexus 5 Original Android Development] mrgold2505:
Sorry to ask, but how can unlock the bootloader??
[Nexus 5 Original Android Development] dankoman:
(from terminal):

adb reboot-bootloader

then:

fastboot oem unlock
[Nexus 5 Original Android Development] sewer56lol:
You can either use this tool, which will run the appropriate command for you or go into command prompt type in CD (followed by the folder path to where you have fast boot)

Pressing enter and then typing in fastboot OEM unlock.
[Nexus 5 Original Android Development] rlcassidy:
Thanks!

Thank you, your Awesomeness! A beer is on its way!
[Nexus 5 Original Android Development] oediv:
thougth the CF-Auto-Root also unlock the bootloader
[Nexus 5 Original Android Development] AndroidUzer:
Wow, that was fast... Thanks!

Can't wait to receive my N5

Is it a safe assumption that there are no custom recoveries available yet for the N5?
[Nexus 5 Original Android Development] JCreazy:
Not yet, but I am sure we will see on soon.
[Nexus 5 Original Android Development] tintin1892:
Sorry for this noobish question put exactly what do I do to root my nexus. I mean what steps 1. Download the zip then what.

Please
[Nexus 5 Original Android Development] shr33kant:
Just rooted my N5 - Works perfectly! Tested with Titanium and it worked fine (uninstalled hindi input). Great work as always Chainfire!
[Nexus 5 Original Android Development] Hand76:
Any issues restoring data on 4.4 or TB seems to play nice with it already?
[Nexus 5 Original Android Development] sewer56lol:
No custom recoveries.

I could probably follow Dees_Troy's partial tutorial on compiling TWRP on Ubuntu but I won't know how to include it in the kernel, (assuming the recovery is in the kernel because I don't know if the N5 has a recovery partition)

---------- Post added at 08:51 PM ---------- Previous post was at 08:50 PM ----------

Titanium works perfectly for me.
[Nexus 5 Original Android Development] Highland3r:
Perfect - worked like a charm! Cheers!!
[Nexus 5 Original Android Development] d00mz:
Cheers CF!!

donation confirmation number 3V0930451T818143U

Come on folks, support the devs!!
[Nexus 5 Original Android Development] anjaykumar:
Just want to ask a simple thing will this also unlock my bootloader??
[Nexus 5 Original Android Development] mandeep294:
yes

Sent from my Nexus 5
[Nexus 5 Original Android Development] Primokorn:
You'll have to flash the OTA from your custom recovery. (more details)
[Nexus 5 Original Android Development] mandeep294:
Stock Rom + Stock Recovery + CF-auto root --- OTA will be available for u
[Nexus 5 Original Android Development] toaomatis:
Hits thanks.

Downloads zip

Unlocks device

Donates €5 :good:
[Nexus 5 Original Android Development] lolpok:
Thanks so much, i love your work chainfire!!!
[Nexus 5 Original Android Development] DryEagle:
sadly i only learned 3 weeks after getting my N5 that rooting / unlocking bootloader wipes all the phone.

so of course i had to do it immediately, at least 3 weeks is not much to lose if the holo backup not work i think ;)

thanks for making this so easy
[Nexus 5 Original Android Development] TheHighlightGuy:
Anyone else's phone have to reactivate mobile data services after unlocking?

EDIT: It reactivated just fine, actually faster than the first time, just curious
[Nexus 5 Original Android Development] Sans143:
Work on Andriod 4.4.1

Will this method work on Android 4.4.1?
[Nexus 5 Original Android Development] ScumDroid:
Yuppers, just used it to reroot on 4.4.1
[Nexus 5 Original Android Development] jss2:
For clarity's sake, rooting does not wipe anything, but unlocking the bootloader will wipe the entire phone. So in the future, if you apply an OTA update or whatever and lose root, it will be very simple to re-root and not lose anything, because your bootloader will already be unlocked.

awesome. about to run it again to re-root after applying the 4.4.1 OTA update

---------- Post added at 07:59 PM ---------- Previous post was at 07:46 PM ----------

just a note about using this tool after the 4.4.1 OTA update. I ran it and it re-rooted just fine. but for some reason, SuperSU was no longer installed. So I just downloaded/re-installed the app from the playstore, and I'm good to go.
[Nexus 5 Original Android Development] Evo_Shift:
So the pro version of supersu will not survive the OTA using the survival mode or does anyone who has the pro version know? I have it but am waiting for the OTA rather than downloading anything. I'd love to do the whole update without a computer.
[Nexus 5 Original Android Development] jss2:
I don't have the pro version of SuperSU, but from reading through the long threads about the 4.4.1 OTA update, it appears as though several people have applied the update and have kept root while using the OTA survival mode.
[Nexus 5 Original Android Development] indianajonze:
i can happily confirm that survival mode does indeed maintain root after sideloading the update :victory:
[Nexus 5 Original Android Development] Nakebod:
After the Nexus 5 update to 4.4.1, and re-rooting, SuperSU was not installed.

Downloaded it via the Play Store, and updated the binary, and everything is fine again.
[Nexus 5 Original Android Development] peppot:
Same here...
[Nexus 5 Original Android Development] berkmanmd:
same here...
[Nexus 5 Original Android Development] fytr4lyf223:
Just updated to 4.4.1, lost root, and used this to re-root successfully. Was so happy I was determined to make a donation! It has been sent, thanks for helping make our n5's even more awesome Chainfire.
[Nexus 5 Original Android Development] Pumå:
I really would like to root my Nexus 5, but I don't even get through the first step to have fastboot drivers. Without them, my device can't be found. (First Nexus device, never needed them)

The SDK Manager won't install, one cmd window flashes for half a second and then disappears, doing nothing. I have JDK installed, I tried both 32/64bit versions of SDK, reinstalls etc, nothing works. I searched for solutions but I don't understand them. For some it may be the easiest thing in the world, I just don't get the stuff with androd.bat, java machine directory and stuff, could someone explain?

Edit: Problem solved, I found some universal adb drivers and root progress worked like a charm now. Why the hard way when it can be done easier xD

Thanks again Chainfire for providing us with such awesome programs, I just sent you some beer for the weekend! :)
[Nexus 5 Original Android Development] KMSAlex:
I also needed to re download the Supper-su app.

But at finally after all day fighting with my Adb/Fastboot setup got this minor OTA re-rooted.

Thank you very much for the utility CF :)
[Nexus 5 Original Android Development] ryoen:
So correct me if I'm wrong, so when I reroot my nexus 5, when 4.4.1 is coming.... not data is wiped...

So only the first time it wiped the data?
[Nexus 5 Original Android Development] ryoen:
Its already done :D

- Uninstalled Xposed Frameworks

- I Flashed boot.img

- I Flashed SU

- I Flash the OTA

But had some problems on the way, with ADB... and my recovery crashed (I was lost my SDcard partition), so I flashed another recovery...

=> Now Running perfect 4.4.1 with ART... Amazing fast :good:
[Nexus 5 Original Android Development] happycadaver:
I successfully rooted my N5 some days ago. Is it correct, that i now can flash the 4.4.1.OTA image via ADB, than flash the SU image and again have a rooted N5 without data loss? It's my first time, i don't want to screw things up.
[Nexus 5 Original Android Development] Philthy82:
I've heard different things about CF Auto Root breaking OTA updates. I've only applied root, I haven't flashed a custom recovery. I'm able to check for system updates on my Nexus 5, and get the normal "Your system is up to date. Last checked for update at...." and the "Check now" button seems to work fine (only takes about 1 sec to tell me my system is up to date after clicking). Would I be seeing this if root broke OTA on my phone?
[Nexus 5 Original Android Development] jack27:
Nope. Just got the 4.4.2 OTA. (Previously rooted with CF-Auto Root on 4.4 & 4.4.1 without any custom ROM apply. Just Root and SU) :good:
[Nexus 5 Original Android Development] vonlupe:
so... i'm an idiot.

forgot to flash superSU after 4.4.2 and lost root and recovery.

can i just use this to regain root on 4.4.2?
[Nexus 5 Original Android Development] jack27:
Yes. Just did it 1 min ago.. :good:
[Nexus 5 Original Android Development] vonlupe:
yep, worked great!