yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Original Android Development] Zjoske:
Ok, noob question.

I want to adjust the vibration intensity with an app because mine is way too loud, but I need root access for that.

What's the noob step-by-step guide to root, because I'm a bit confused?

1. I need to install SuperSU from the Play Store? What about binary and APK chainfire mentions? Play Store offers the APK only right? What is binary?

2. Download and extract zip file.

3. Boot device into bootloader

4. Connect to USB

5. Run root-windows.bat

I will loose all my data and apps and settings by doing this?
[Nexus 5 Original Android Development] oediv:
boot your device into fastboot download zip and use the bat or sh, press any key and finish

SU will be install automaticly in this process, after boot you must set the device up again and then you are finish (warning everything on the device (also pics and other media data )) will be delate)
[Nexus 5 Original Android Development] imb951:
Haven't seen an answer to this in this thread yet so I'm quoting to bring attention to it again.

I'd like concrete info about this as well. I want to have simple root for a while without recovery or ROM flashing and still get OTAs and I want to be sure I do it right.
[Nexus 5 Original Android Development] dont know:
Worked on win8.1 for me.

But first you have to instal the correct usb driver manually via win Device Manager

(driver http://developer.android.com/sdk/win-usb.html#top )
[Nexus 5 Original Android Development] CaspaTheGhost:
Mmm, root.

Sent from my Nexus 5
[Nexus 5 Original Android Development] reeco:
Rooted,

Thank You :)
[Nexus 5 Original Android Development] GrenW:
Simple/silly question but would the drivers I have on my laptop to flash stuff on my GNex work for the N5? Mine's in the post so I can't check yet

Are they standard Android drivers, not phone specific?
[Nexus 5 Original Android Development] jd1639:
You can do a factory reset, it'll wipe your device
[Nexus 5 Original Android Development] f0olyc0oly:
hi, i have a question.

I recently updated my os to Lollipop prior to this I have alread rooted my device. After updating the OS, i received this message "There is no SU binary installed, and SuperSU cannot install it. This is a problem! If you just upgraded to Android 5.0, you need to manually re-root - consult the relvenat forums for your device."

If I re-root my device again, will it erase everything? Is it the same steps as the first time I root my device?
[Nexus 5 Original Android Development] #sharath:
It wont erase anything, the steps are same.
[Nexus 5 Original Android Development] dz1:
Hey guys need help from Mac users. Can you please give me steps to get a successful root. Yes I have read the front page and instructions.

I am able to fast boot. When executing commands in instructions nothing happens
[Nexus 5 Original Android Development] aerozolic:
You should enable developer options and USB debugging. After that disconnect and reconnect the phone and do "adb devices" to see if the phone shows up.

Also this thread might help you out:

http://xdaforums.com/showthread.php?p=47025283

Sent from my Nexus 5
[Nexus 5 Original Android Development] f0olyc0oly:
Thanks. I'll try it when I get back home and let you guys know the results [emoji4]
[Nexus 5 Original Android Development] chrisonline:
I have seen CF-Auto Root now works without kernel modification or flashing another kernel.

How can I get back to the original kernel?

Now the OTA 5.0.1 update fails on install because of the changed kernel.

Can anyone help?
[Nexus 5 Original Android Development] aerozolic:
Flash system.img and boot.img

Sent from my Nexus 5
[Nexus 5 Original Android Development] chrisonline:
Thanks for your quick answer :)

But I think boot.img should be enough? The kernel is in the boot.img I think.

What do you think?
[Nexus 5 Original Android Development] aerozolic:
Some kernels modify system files too. You won't lose any data if you flash system.img. So better safe than sorry :P

Sent from my Nexus 5
[Nexus 5 Original Android Development] apache04:
OTAs?

Does this method break OTAs? I hope it doesn't because it doesn't touch the recovery!
[Nexus 5 Original Android Development] Primokorn:
Yes it does because it changes system partition. More details here: http://xdaforums.com/google-nexus-5/general/info-nexus-5-ota-help-desk-t2523217
[Nexus 5 Original Android Development] bilbo6209:
So if I used this method to gain root previously and am now getting errors attempting to apply the 5.0.1 OTA Is there any method of restoring the phone to an uprooted state so I can apply the OTA WITHOUT wiping my data (My wife would kill me if I had to wipe her data again after doing a manual install of lollipop and wiping her phone in the process).
[Nexus 5 Original Android Development] jd1639:
Flash the system, recovery and boot images from 5.0 using fastboot. Then try the ota. It will not wipe your device.
[Nexus 5 Original Android Development] bilbo6209:
Thank you jd1639

Did Google screw up on this update, or did they change their stance on rooted phones? I have always had unlocked boot loaders and rooted phones (some apps I like require root) but if this is the new standard rolling forward I will have to re-evaluate rooting and some apps.
[Nexus 5 Original Android Development] jd1639:
They've changed the way the update works. it's actually not that difficult to unroot, flash the image files and then root again. It can all be done in 5 minutes once you get used to it.
[Nexus 5 Original Android Development] bilbo6209:
I just noticed you are in Minnetonka jd1639. Im up in the grandiose Brooklyn Park :P

Ya, just a bit of a pain, I have 4 Nexus devices that I went through, wiped, install lollipop, rooted etc :)

So just to make sure I am doing it correctly;

1. boot device into recovery

2. connect via USB to PC

3. launch ADB and verify connectivity

4. ADB push the system, recovery and boot images (Zips I believe) from the correct device images (Nexus 10 and Nexus 5)

5. then run the OTA on the devices?

OPTIONAL 6. go back in and re-root the devices.

This is from memory and I know there are directions on flashing a factory image on the phones so I can track it down too. but Im just trying to make sure I have at least about the correct steps :)
[Nexus 5 Original Android Development] jd1639:
No, you want to flash the .img files in fastboot. Boot into the bootloader then in a command window on your pc run the commands

fastboot flash recovery recovery.img

fastboot flash boot boot.img

fastboot flash system system.img

Make sure the image files are in the same directory as fastboot.exe and open the command window in that directory

That'll return your system to 100% stock

Then if you have the ota.zip you'll boot into the stock recovery and sideload the zip. There's a sideload option in recovery. Then from your pc run the command

adb sideload update.zip.
[Nexus 5 Original Android Development] bilbo6209:
I knew I was close :P basicly correct steps but wrong too ;)

When you say return you to 100% stock, will this leave apps and user data?
[Nexus 5 Original Android Development] jd1639:
It won't wipe any of your apps our data. I should have been more clear that it's the stock recovery, system and kernel.
[Nexus 5 Original Android Development] Konstigt:
While your at flashing recovery image, why not take 5.0.1 directly instead?! :)

Has anyone tried flashing CF-Auto-Root on 5.0.1?
[Nexus 5 Original Android Development] veldom:
Should CF-Autoroot for LRX21O (Lollipop 5.0) work on LRX22C (Lollipo 5.0.1) too?

Or we have to wait for a specific release?

I'm gonna try it as soon as my new Nexus 5 will arrive :P
[Nexus 5 Original Android Development] jd1639:
Just flash or boot twrp to your device and flash supersu 2.37 in twrp.
[Nexus 5 Original Android Development] vishnuk15:
I flashed the factory image from the developer forum using the flash-all.bat script, it worked fine.

Also the CF-Auto-Root image is working fine on 5.0.1. :good:
[Nexus 5 Original Android Development] Sigray:
No need a new "file" to unlock/relock the bootloader? Sorry im a noob :)
[Nexus 5 Original Android Development] Konstigt:
What is stored within CF-Auto-Root-hammerhead-hammerhead-nexus5.img? Can I extract it and check?

I would like to make sure no files are contained within it that will be overwritten with 5.0-versions on my 5.0.1-system.

(I'm thinking if it contains files that have been altered/patched)
[Nexus 5 Original Android Development] zippocat:
So on mine i got 5.0 running which was rooted using CF-auto-root. Then i installed CWM recovery. SuperSU 2.4 is installed as well.

Can you clarify what i need to do in order to update to 5.0.1 and stay rooted with CWM and SuperSU installed?
[Nexus 5 Original Android Development] jd1639:
You can't. You have to be unrooted with the stock recovery for the ota to work.
[Nexus 5 Original Android Development] zippocat:
flashing the non-ota image wouldn't work either? or would i have to wipe in the process?
[Nexus 5 Original Android Development] jd1639:
Going from 5.0 to 5.0.1 you can get by with just flashing the radio, system and boot images with fastboot. But it'll break root and hose up your recovery. You'll have to re-flash the recovery and flash super su in it to regain root.
[Nexus 5 Original Android Development] zippocat:
wow this sure blows. guess i'll wait for 5.0.3 or something and then redo the whole shebang properly. thank you for your help!
[Nexus 5 Original Android Development] aerozolic:
It's actually very easy to update to 5.0.1 and re-root.

Just download the factory image, extract it, then extract the zip which you find from the extracted factory image, delete userdata.img and flash everything else one by one:

1. Bootloader

2. Radio

3. Boot

4. Recovery

5. System

6. Cache

And then re-root.
[Nexus 5 Original Android Development] FunDionysus:
This is what occurred to me.

When I flash the latest TWRP (using flashboot), then reboot and launch recovery, I see the blue TeamWin logo and after a few seconds the device auto boots into Android. Then when I try to go back into recovery, I see the dead Android character on its back with a red triangle.

Several times I have reflashed recovery, and rebooted and the same cycle repeats itself. Android 5.0.1 appears to be working fine, Just unable to install custom recovery and then flash super su.
[Nexus 5 Original Android Development] aerozolic:
Known issue. Flash 2.8.1.0
[Nexus 5 Original Android Development] FunDionysus:
I should have read the XDA TWRP thread first before posting.

Indeed 2.8.1.0 solved the issue. Thanks.
[Nexus 5 Original Android Development] apache04:
I rooted my 5.0 all stock using CF Autoroot.

I've downloaded the 5.0.1 OTA

I unrooted my phone from within the SuperSU app. But when I clicked on install update, it failed on entering recovery. Please help !
[Nexus 5 Original Android Development] blahquader:
- Make sure you get latest(!) Google USB drivers and ADB/Fastboot executable

- Download the 5.0(!) Stock Image, https://dl.google.com/dl/android/aos...y-01315e08.tgz

- Download the OTA-file (5.0 --> 5.0.1), http://android.clients.google.com/pa...O.785a2f7a.zip

- If using SuperSU, unroot your Nexus 5 from inside the app

- Extract the 5.0 Stock Image with WinRAR or equal

- Unzip the inlcuded .zip-file

- Use Fastboot to flash boot.img, system.img and recovery.img

- Reboot to Fastboot after flashing, start Recovery with the volume buttons and power button

- Long hold power button, press volume up to open Recovery options

- Do an ADB sideload of the OTA .zip-file

- Reboot to Recovery (if not already there) and wipe caches

- Reboot phone, you are done!

re-root if needed.
[Nexus 5 Original Android Development] buteo:
Do we need an updated CF-autoroot boot image for rooting after upgrade to 5.01?
[Nexus 5 Original Android Development] apache04:
Please help :'(

I rooted using CF Auto root

flashed cwm

launched cwm

it said - root permission lost

i googled

i re rooted by manually flashing Su.zip via cwm

now i am stuck on the 4 dots animation

i factory reset

still nothing

now stuck in 4 dots

i reboot

it just reboots, doesnt do to boot loader

please help !
[Nexus 5 Original Android Development] zuberio:
Thanks blahquader!

I followed most of your steps - but was able to take a shortcut at the end thanks to the OTA coming in straight from Google instead of having to sideload it :)

- Reboot phone to Android

- Download & Install OTA update to 5.0.1

- (re)Root if required :)
[Nexus 5 Original Android Development] domseg:
I was so anxious to update my Nexus 5 that I rushed to start the process and missed one step. I forgot to unroot using SuperSU. Fortunately everything when fine. So in resune you can do this to update:

- Make sure you get latest(!) Google USB drivers and ADB/Fastboot executable

- Download the 5.0(!) Stock Image, https://developers.google.com/android/nexus/images

- Extract the 5.0 Stock Image with WinRAR or equal

- Unzip the inlcuded .zip-file

- Use Fastboot to flash boot.img, system.img and recovery.img

- Reboot phone to Android

- Download & Install OTA update to 5.0.1

- (re)Root if required
[Nexus 5 Original Android Development] Theliels:
you don't need flash old 5.0 system/boot, you can flash directly 5.0.1 sytem/boot partitions with fastboot over rooted 5.0 without wipe and without ota sideload. In this case, 5.0.1 come with radio update, so maybe you want upgrade too:

1º. Download and extract 5.0.1 firmware

2º. Fastboot flash new radio

2º. Fastboot flash system and boot partitions (from 5.0.1)

3º. reboot

after reboot, you can flash cf-autoroot if you want. You dont lose nothing. OTA only remove/patch/add system files (and maybe recovery/bootloader...) after all in most of all cases, so revert to original 5.0 and sideload OTA is unnecessary
[Nexus 5 Original Android Development] Smerks:
Will flashing boot.img system.img and recovery.img wipe my data?
[Nexus 5 Original Android Development] jd1639:
No
[Nexus 5 Original Android Development] kalvin807:
Where can I get previous version of CF auto root?
[Nexus 5 Original Android Development] Wis1:
Thx, that did it for me.
[Nexus 5 Original Android Development] kushty:
Hi. I have an OTA 5.01 nexus 5. How do I root it from OS X?

The instructions on the first page don't refer to 5.01 so not sure if that changes things...
[Nexus 5 Original Android Development] jd1639:
Easiest way is to flash twrp on your device then flash supersu 2.4 in twrp
[Nexus 5 Original Android Development] kushty:
Thanks. I just tried to use the guide but my Nexus 5 screen doesn't show 'FASTBOOT USB'. What drivers do I need to have installed on my mac for it to work?

'Download the above file. Turn off your device. Turn on the device and keep holding volume down until a menu shows up. The device will now be in fastboot mode. Plug the device into your computer. If you have the right drivers installed, your screen should now say FASTBOOT USB. Run the following command via the command line:

fastboot flash recovery recoveryfilename.img

Note that you will need to change the last part to match the name of the file that you just downloaded. You will also need adb and fastboot for your computer.

If you have just used fastboot oem unlock, you should let the device boot up normally first before trying to install TWRP. If you boot TWRP first before booting normally, you will be prompted for a password. Hit cancel and got to Wipe -> Format Data. Type yes at the prompt and hit the "enter" key. Hit the home button at the bottom and Reboot -> Recovery. Unlocking the device will cause you to lose all userdata, apps, pictures, downloads, etc.'
[Nexus 5 Original Android Development] Sabyn:
Hey guys, i have a problem. I tried to root my Nexus 5 but all i got is " waiting for device" in cmd... Any ideeas why?
[Nexus 5 Original Android Development] jd1639:
You don't have the usb drivers set up correctly
[Nexus 5 Original Android Development] Sabyn:
So i need to download and install http://developer.android.com/sdk/index.html ?
[Nexus 5 Original Android Development] jd1639:
I would Google 15 second adb install xda. It should have everything you need
[Nexus 5 Original Android Development] Sabyn:
Working, thanks a lot and Merry Christmas
[Nexus 5 Original Android Development] jd1639:
Glad you got it working. Merry Christmas to you too
[Nexus 5 Original Android Development] CDB-Man:
Hmm, with the 5.0.1 update, will we need a new boot.img to keep root? For 5.0, [MENTION=631273]Chainfire[/MENTION]'s LPX13D boot.img worked to keep root. Will this boot.img work with 5.0.1 LRX22C to keep root as well?
[Nexus 5 Original Android Development] jd1639:
Just flash twrp to your device then flash supersu 2.4 in twrp. You'll be rooted
[Nexus 5 Original Android Development] CDB-Man:
Excellent, good to hear no need to mess with the boot.img again. It worked!
[Nexus 5 Original Android Development] p1nky:
for those without twrp...

can i install the 5.01 update and just run cf auto root again without loosing data?
[Nexus 5 Original Android Development] jorra:
Is there any advantage using CF auto root compared with towelroot on a stock 4.4.4 rom?

Sent from my HTC Sensation with Tapatalk 2
[Nexus 5 Original Android Development] f0olyc0oly:
this will work on lollipop right?
[Nexus 5 Original Android Development] sempot:
If you read a couple of pages back, you'll know
[Nexus 5 Original Android Development] DoragonHunter:
I heard that the latest version of CF-Auto Root and SuperSu does not modify the kernel anymore. Can you still receive OTA if you root after going back to stock?
[Nexus 5 Original Android Development] Austexcat:
Problems with rooting on mac

I have a nexus 5 with an unlocked bootloader and I tried to complete the root using CF Auto. I downloaded the zip file and extracted the folder. When I type in commands I keep getting "no such file or directory." Can someone walk me through what i'm doing wrong? It should be a lot easier than this. Thanks
[Nexus 5 Original Android Development] AztekSoul:
You don't have to type anything, just reboot your device into fastboot, from the extracted cf-autoroot just click the "root-windows.bat" that's it.
[Nexus 5 Original Android Development] mag786fd:
Thanks Chainfire! Works like a charm.
[Nexus 5 Original Android Development] chestvrg:
I'm having difficulty with PC recognizing the nexus 5 drivers. Can someone help me or point me to a driver's link for the nexus 5. Windows 7 I'm running. Thank you.
[Nexus 5 Original Android Development] xrad:
Use Koushik Dutta's Universal ADB Driver. Uninstall other ADB drivers you may already have installed.
[Nexus 5 Original Android Development] chestvrg:
Thank you so much.
[Nexus 5 Original Android Development] rupalazzi:
Android 5.1

Hello guys. This might be a noob question, but does the latest CF-Auto-Root work with Android 5.1? Should I wait for a new version?

Thanks for your time.
[Nexus 5 Original Android Development] #sharath:
Works fine.
[Nexus 5 Original Android Development] indianajonze:
are you certain? i didnt have a chance to run it on my n5 last night after flashing, but i did run it on my n10 and it didnt work...
[Nexus 5 Original Android Development] #sharath:
My bootloader was already unlocked, so cant comment about that. But rooting DID work fine.
[Nexus 5 Original Android Development] indianajonze:
ya but i think he's talking specifically about using the cf auto root method. did you use that or did you root manually?
[Nexus 5 Original Android Development] #sharath:
As i said earlier I used cfautoroot and it worked fine.
[Nexus 5 Original Android Development] iaTa:
Worked fine here too.
[Nexus 5 Original Android Development] B5Pilot:
Works for me. I didn't run the scrip because I didn't want to possibly clear my phone with the oem unlock part of the script. I just used "fastboot boot" with the image in the Auto-Root package.
[Nexus 5 Original Android Development] Matrix_19:
me too !
[Nexus 5 Original Android Development] Smerks:
I am getting an error when I try to do the OTA, I have unrooted from within SuperSU to see if that was it but it did not allow me to apply 5.1.
[Nexus 5 Original Android Development] Smerks:
I figured it out, I flashed boot, recovery, and system and it updated fine but the only CFAR I see is the one for LRX21O, is that the correct one to use to root?
[Nexus 5 Original Android Development] Daimonion1980:
Am i right you didn't unlock the bootloader or was it already unlocked?
[Nexus 5 Original Android Development] dmonleo:
Well I was going to post a screen shot to "brag" about my update notification...looks like I'm late.
[Nexus 5 Original Android Development] B5Pilot:
My phone was already unlocked.
[Nexus 5 Original Android Development] railpressureflip:
That's odd. It doesn't work for me. The cmd runs its script just fine but the device boots back into the main screen and when I check the apps, it doesn't have SuperSU or anything.

Edit: Nevermind. Downloaded the latest version of autoroot and ran it, device is rooted!
[Nexus 5 Original Android Development] mongoosepanda:
I can verify it works on 5.1 as well!
[Nexus 5 Original Android Development] LordGrahf:
So how does autoroot still work on 5.1 even though it was targeted for 5.0? Does it flash a rooted 5.0 kernel? Just want to understand the downsides of not waiting for an updated autoroot for 5.1

Thanks!
[Nexus 5 Original Android Development] RossFixxed:
It doesn't do anything with the kernel or recovery it just installs super su. Read the OP again it's explained better there than I can. I just used it on 5.1.1 with no issue.
[Nexus 5 Original Android Development] Smerks:
Can someone explain why for each update I have to unroot then flash boot, system and recovery before I can apply the update and then reroot?

Is this normal?
[Nexus 5 Original Android Development] PhilipPeake:
I assume you are talking about over the air updates?

If so, the reason is that Google has stopped pushing updates as complete system images.

Now, it assumes that the phone is locked, and what is on the system partition is EXACTLY what it wrote there last time.

The update is a set of patches to apply to the partition, not the files it contains.

It will "seek" N bytes in, and write the first update, then seek M bytes in, and write the second update etc.

This is much faster than updating individual files and requires much smaller updates, but to apply it, you have to have EXACTLY what the update is expecting. Adding root (for example) will add extra content (or at least changed content), so the partition image is no longer byte for byte what the update is expecting.

The first thing the update does is to calculate a checksum of the partition contents to verify that it is all as it should be. When that checksum is not what was expected, the update stops (rather than trashing your phone).
[Nexus 5 Original Android Development] Smerks:
That explains it perfectly, thank you.
[Nexus 5 Original Android Development] CamoGeko:
Wow cool, will definitely use this if I decide to unlock/root my new sexy red Nexus 5. xD
[Nexus 5 Original Android Development] avensakias:
Can this work on Android M hammerhead-MPZ44Q-preview ??
[Nexus 5 Original Android Development] sgtkwol:
Give it a try and let us know.
[Nexus 5 Original Android Development] glhturbo:
Didn't work for me on the Android M preview.
[Nexus 5 Original Android Development] Marsou77:
Root cause a bootloop on Android M :(
[Nexus 5 Original Android Development] galaxys2Tav:
Do it.... Do it........ DO IT! LOL [emoji13]
[Nexus 5 Original Android Development] CamoGeko:
Lol, I will when I get a cheap unrooted android to run my banking app on.
[Nexus 5 Original Android Development] Ordinair:
Too bad it doesn't work on M. I don't want to change my kernel yet.
[Nexus 5 Original Android Development] jusetan:
Isn't the nexus 5 sold as an unlocked phone to begin with?

I wanted to root, but thought this phone came unlocked so I wouldn't have to worry about losing data.
[Nexus 5 Original Android Development] #sharath:
It comes as sim unlocked, not bootloader unlocked.
[Nexus 5 Original Android Development] eldar4uk:
thank you guys, worked well, root checker is showing full access now. do I need to update SU or there is a fresh version?