yashsingh1/xdaforums huggingface dataset:
[Nexus 6  General] K!ngpen:
I'm right there with you. My first rooted device was a motorola xt720 sometime in 2010 I think. It was a company phone and like most very young IT folk I was curious lol. New versions of Android started rolling out but the phone wasn't going to get the update. So i was suck on Eclair. I stayed after work and tried the root, and it didn't work to say the least... I stayed at work until 2am trying to get that darn thing to work. 3 days later I got it to flash cyanogen. It was buggy as hell but i didn't care because I didnt have to explain to my boss that I broke my phone by trying to "hack" it lol. That was a win in my book. I later worked up the courage to get it back on a rooted version of Froyo. Pretty bumpy start to my rooting career to say the least. Now I'm a die hard Nexus follower just looking for an excuse to root the next device.
[Nexus 6  General] NLBeev:
Everyone who is trying to help other users earns respect.
[Nexus 6  General] Noopguy:
Thanks for this. it got me 98% there but SuperSU says i need to update the binary. Its gives me the option to update normally which fails or to update through twrp. Im not sure how to update through twrp. Any suggestions?
[Nexus 6  General] K!ngpen:
Just to confirm, your phone now boots back up correctly, but you get the popup stating that the binaries for SuperSU are missing?
[Nexus 6  General] Noopguy:
Not missing but needs updating. My phone boots up and everything seems to fine otherwise. I tried updating with the normal option but it fails and going into twrp does nothing. I just cant figure out how to update the binaries with twrp. I tried to post a screen shot but XDA wont let me post a link since im a new user. imgur.com/a/Jgwpt
[Nexus 6  General] K!ngpen:
And this was an unrooted nexus 6 with android 6.0 when you started? It wasn't already rooted on a lower version of android or anything like that?
[Nexus 6  General] Noopguy:
No i had it rooted on 5.1.1 this morning and updated to 6.0 with a factory image. I ran into problems rerooting after the update and I came here. I used your guide and everything works except i cant figure out how to update the binaries for SuperSU.
[Nexus 6  General] alryder:
If you sideload this through TWRP you shouldn't need to update the binaries. It has the latest included.
[Nexus 6  General] sjgore:
Flash SuperSU 2.52 Beta (not 2.56), then boot into Android and select "Update SuperSU Binaries" and select "TWRP/CWM" option rather than "Normal". Worked for me.

I still needed to.

I'm on MRA58R, BTW (the third and latest factory image for Nexus 6).
[Nexus 6  General] alryder:
That's strange, I sideloaded that for MRA58K, MRA58N and MRA58R and I don't think I was ever prompted to update the binaries. I'm not sure you are being asked to.
[Nexus 6  General] Noopguy:
Thanks guys, this really helped. Flashing 2.52 did the trick and i didnt need to update the binaries after i flashed it. I am also on MRA58R
[Nexus 6  General] Rektifying:
I was going to say as well, SuperSU v2.52 is what needs to be installed via TWRP, not v2.56. I believe v2.56 is for the new systemless root option but it sounds less stable and buggy.
[Nexus 6  General] TriguyRN:
Does this wipe any data? I have been looking to root and actually followed that guide myself, got the same issue and fixed by reflashing a factory image.

EDIT: I'm assuming I don't have to break my phone again to do this correct? Can I just pick up from step 1 to flash the recovery and go from there?
[Nexus 6  General] ICStevenC.:
Something weird happened to me after flashing TWRP and I thought I'd share. So my N6 wasn't corrupted at all, but I decided to root my phone and I started by flashing TWRP. I went into boot loader and then recovery to make sure it worked and it did. When I went to reboot the system, I got the the "your device is corrupt screen." I pressed the power button and the screen turned black for a few seconds and then it rebooted normally. I went back into recovery to try and reproduce this and it happened again, Not sure why this happened but everything is functional.
[Nexus 6  General] atvisic:
New to rooting and I want to root my Nexus 6

I have a Verizon Nexus 6 with the build number "MRA58R." I haven't unlocked the bootloader or ran CF-Root tool like Steps 0.2 and 0.3 say. To root my phone, should I try and purposely break it by following the All-In-One Beginner's Guide and then follow the steps you put? Or is there another way I should go about rooting it? Thanks for your help :)
[Nexus 6  General] daheazle:
Lol why break it first. I didn't read through the op here but all you need to do is unlock the bootloader. Flash twrp with fastboot. Reboot to recovery without booting the phone, if you boot the phone before going into twrp it will get overwritten and you will need to reflash it. Flash a custome kernel in twrp, flash SuperSU 2.52 or higher in twrp.

The instructions in the op are more complete naturally. But when it has you flash the boot.img, you can use a custom kernel instead.
[Nexus 6  General] atvisic:
Sorry I'm probably being annoying, but

I'm sure I can just find instructions for most of this online, but what do you mean by "reboot to recovery without booting the phone?" How does that work?
[Nexus 6  General] scryan:
No, unlock your bootloader, which will wipe you device, then flash a kernel that supports root on 6.0 and flash supersu, as directed in this guide.

The old boot.img that people are downloading from the guide that causes booting to corrupt message and blank screens does not support workarounds for the newer verified boot

Don't just power on the device and let android boot. If your in fastboot mode, use the volume keys to navigate to boot to recovery and select with the power button. If your powered off boot by holding volume down first then holding power until the device boots to recovery.
[Nexus 6  General] daheazle:
After flashing twrp. Use "fastboot reboot recovery"

You can also use the volume buttons to switch to recovery from the bootloader.
[Nexus 6  General] scryan:
Actually, this is not a command. I always thought it was too... but its not

Easy to confuse, but the fastboot reboot command does not support additional arguments, your thinking of ADB.

fastboot reboot recovery will output

usage: fastboot [ <option> ] <command>

commands:
update <filename> reflash device from update.zip
flashall flash boot, system, vendor and if found,
recovery
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
format[:[<fs type>][:[<size>]] <partition> format a flash partition.
Can override the fs type and/or
size the bootloader reports.
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> [ <second> ] ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> [ <second> ] ] create bootimage and
flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
help show this help message

options:
-w erase userdata and cache (and format
if supported by partition type)
-u do not first erase partition before
formatting
-s <specific device> specify device serial number
or path to device port
-l with "devices", lists device paths
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address.
default: 0x10000000
-n <page size> specify the nand page size.
default: 2048
-S <size>[K|M|G] automatically sparse files greater
than size. 0 to disable

As you can see the only reboot options are reboot and reboot-bootloader.
[Nexus 6  General] daheazle:
My bad, that apparently will not work
[Nexus 6  General] donebrasko:
tep 1 - Install a Custom Recovery (taken from the original guide)

Go HERE to download the latest TWRP recovery for the Nexus 6. At the time of this write-up, I used 2.8.5.0

Turn the phone off. Then boot it into the bootloader/fastboot mode by holding volume down + power.

Rename the recovery file that you downloaded above to recovery.img. *Make sure that you rename it to recovery.img NOT recovery.img.img

Move the recovery.img file to C:\Program Files (x86)\Android\android-sdk\platform-tools

Open command prompt and run the following commands:

Code:

cd C:\Program Files (x86)\Android\android-sdk\platform-tools

Code:

fastboot flash recovery recovery.img

On the phone, use the volume buttons to scroll onto "Restart Bootloader" and hit power to select it.

After the bootloader reloads, use the volume buttons to scroll onto "Recovery Mode" and power to select it. You should then be greeted with your newly installed custom recovery.

Power off the phone

I am stuck at :

fastboot flash recovery recovery.img

I get

cannot load 'recovery.img'

what can I do?
[Nexus 6  General] scryan:
Have you downloaded a recovery image, renamed it to recovery.img and placed it in the folder you are working out of?

I don't know why everyone is in love with renaming the recovery image, it is completely unessisary...

But you need to run the program fastboot, with the command "flash" telling it you want to flash recovery and pointing it to the recovery image you want to use.

The command is

fastboot flash <partition> <filename>

So if you want to flash recovery, and have the file "twrp-2.8.7.1-shamu.img" in your downloads directory on windows, it would actually be

fastboot flash recovery c:\Downloads\twrp-2.8.7.1-shamu.img

To use the command as stated in the directions you are following, make sure you copy the file twrp-2.8.7.1-shamu.img into the directory your working out of (likely the one with fastboot.exe in it), and renamed it to recovery.img
[Nexus 6  General] internetpilot:
Yeah, where was this thread a week ago at 3:00am when I thought I'd bricked my brand new phone?! Haha.

I did want to point out that I actually arrived at this same point using the Wugs rootkit (or whatever it's called) and the unroot/factory restore feature wasn't even working for me. I ended up figuring out your solution by myself, but it did put a scare/panic in me for like a solid hour.

I was actually thinking about writing this up myself, but you beat me to it. Thanks for it! I know it's helping people (it definitely would've helped me).
[Nexus 6  General] donebrasko:
when i type fastboot flash c:\android\platform-tools recovery.img it says:

cannot load recovery.img
[Nexus 6  General] scryan:
No.

fastboot flash <partition> <filename>

so if you renamed the file to recovery.img, and both it and fastboot.exe are in c:\android\platform-tools then you need to navigate to that folder and type

fastboot flash recovery recovery.img

the partition is just "recovery" for recovery... The filename only needs to include the path to the file if it is not in the current folder.

If you need further help, please make sure to tell me:

what recovery file you have downloaded

what directory it is currently in

what you have renamed it to

If you don't answer those three questions, I wont be able to help you.
[Nexus 6  General] donebrasko:
twrp-2.8.7.1-shamu renamed to recovery.img

its located in C:\Android\platform-tools

---------- Post added at 05:03 AM ---------- Previous post was at 04:55 AM ----------

im an IDIOT!!!!!! i named it recovery.img which means it looked like recovery.img.img

i think that fixed it. ill let you know
[Nexus 6  General] scryan:
My next step was to say run dir and copy the output here.

That fixed it, the error you were getting was basically file not found... Which it wouldn't be with that file name :P One of the reasons I don't like the rename thing... very common mistake. Instead on things like this use tab completion, that is to say type "reco" and press tab and it will complete the file name with the correct match, or wont if there isn't one. good way to ensure you have not made a spelling error.
[Nexus 6  General] donebrasko:
i didnt know that. Thanks!!! Everything is up and running
[Nexus 6  General] miro666:
Here is modified boot for MRA58R firmware:
[Nexus 6  General] scryan:
Not that miro is untrustworthy... I wouldn't know either way...

But its a HUGE security risk to download and install a boot.img, I would NOT use one that was not provided by a very trusted developer... This is your system's kernel, all kinds of malicious things could be snuck into it.

Sorry miro, I mean this as nothing against you, just a general security thing...
[Nexus 6  General] psychomaniac189:
I just wanted to personally say thank you so much for this! I just got the phone home from a 2 hour round trip craigslist ad sunday afternoon and i rooted it right away to only see that "your phone is corrupt" screen and i freaked out! combination of google and xda search and i found this.
[Nexus 6  General] miro666:
This is not my file. I was found it here somewhere in Nexus 6 xda thread. Dont remember where...I was installef and work like a charm without boot nessage...
[Nexus 6  General] totallybeachin:
I haven't read this whole thread......what can I say/ I'm in 'panic' mode!

It's obvious why I'm here.......so, going from the first post in this thread, it said install the latest TWRP 2.8.5.0, however, when I went to the page to download it, it says

"Requires TWRP 2.8.4 or higher already installed"

well, when I go to version 2.8.4 it says something similar......I just took this phone out of the box yesterday. Allowed the phone to do all it's updating, which brings me to Marshmallow.

Followed all the steps that got me to HERE!

I have NO previous versions of TWRP installed, so can anyone be so kind as to instruct me as to what I need to do to get my phone working again so I can continue with my 'rooting' project?

Please, and thank you.

Remember....I am in panic mode---for real!!!
[Nexus 6  General] scryan:
2.8.5 is old, iirc its up to at least 2.8.7.1?

Its 4 pages. Read it. There is your help, at least read post 1 that's a decent overview... Its not out fault you didn't bother to learn ahead of time, and you panicking and refusing to read now certainly won't improve things.

And what says TWRP is already installed? You download the IMG file and flash it with fastboot, as the instructions here detail. This performs no check for what you previously had installed, it just overwrites it.
[Nexus 6  General] totallybeachin:
edit:

Well, thanks for your reply at least.

I know I am the one responsible for my mess. It's my own fault......

I was simply trying to say the OP says download the latest TWRP, but on TWRP's page, it says you must have an older version installed before using the newer version.

I was having trouble figuring out where/how to install an older version first....

all's good.

----I think I figured it out.....

Not everyone is new at this......
[Nexus 6  General] psychomaniac189:
after this can i install the latest supersu?
[Nexus 6  General] rudynasco:
where can i find the prerooted custom kernel?
[Nexus 6  General] scryan:
No.

But for super su to work, it needs a kernel that supports it. At this point basically ANY custom kernel, then you flash the latest super su.

But kernel alone is not giving you root.
[Nexus 6  General] heenryy:
Can this be used to root MRA58N?
[Nexus 6  General] Nikos2k:
Yes

You just need to flash the slightly modified boot.img (shamu-mra58k-boot.zip) and superSU 2.52
[Nexus 6  General] heenryy:
via fastboot? thats all?
[Nexus 6  General] Nikos2k:
The boot.img via fastboot the the supersu zip file via TWRP
[Nexus 6  General] heenryy:
Sorry im very new into this and dont want to brick my phone, so first get to fastboot and flash boot.img then how I flash twrp to flash su??
[Nexus 6  General] Nikos2k:
You flash TWRP through fastboot

Since you are new into this, you can use NEXUS ROOT TOOLKIT to do everything automatically
[Nexus 6  General] DefectiveRobot:
At the risk of sounding noobishly redundant, can the "trusted" modified boot.img for MRA58K be used to root a stock MRA58R? If so, can (and should) I re-flash a MRA58R version when it becomes available? If not, does anyone know of a trusted MRA58R modified boot.img?
[Nexus 6  General] KonranKame:
Hey there, I just got a Nexus 6 today, my first Android phone, so all of this is quite new to me. I've been reading things here for awhile and am ready to unlock my bootloader. Only question I have is, I'm on 5.1.1, so following the All in One beginner guide should work fine, I shouldn't get the corrupted error mentioned in the opening post if I'm correct. After I unlock the bootloader I'll install Marshmallow, will I run into the corruption error then? Or will I only have to worry about it if I unlock the bootloader from Marshmallow?
[Nexus 6  General] Paschfire:
Unlocking the bootloader is the same procedure on 5.1.1 to 6.0, nothing has changed.

the problems start when attempting to obtain root privileges on 6.0.
[Nexus 6  General] qwopzxnm:
I'm so close to the finish-line but need some guidance from this great forum.

I was fortunate enough to get one of the Amazon Black Friday Nexus 6's and ran headfirst into this Marshmallow root issue. I've completed steps 1 and 2 but step 3 is giving me issues. I boot into bootloader, load up TWRP recovery, but when I connect my phone to my computer it's not recognizing the phone (USB Debugging is turned on). If I boot into regular on mode it recognizes it, I change the USB from charge only to file storage, put the SU 2.56 into the downloads folder, but when I re-boot into TWRP I can't find the SU zip file anywhere. I feel like I'm close but what am I missing?

Thanks for your help. This place has been helping me since my OG Droid and Galaxy Nexus days.
[Nexus 6  General] alryder:
You should be able to browse to the downloads folder from within TWRP but I always put any flashable zips in the root folder as that is what always shows up for me by default and I don't have to drill down through folders to find the zip.
[Nexus 6  General] foshozee:
great guide. I finished up but no matter what I do I cant get super su binary to update. When i press update it says failed. I tried doing the process again and reflashing supersu but nothing. Any help would be much appreciated.
[Nexus 6  General] Noopguy:
use 2.52 instead of 2.56. there is a link on page 2 of this thread. i had the same problem. hope that helps
[Nexus 6  General] qwopzxnm:
Thanks for the reply. I'm running into an interesting problem. I put the SU Zip in the downloads folder by connecting my phone to the computer and then changing USB from charge only to file share. I even used the file explorer app to confirm it's there. When I boot into TWRP and click install, I see a root file folder but nothing else inside. Then I tried going to the SDcard folder which should have sub-folders like ringtones, downloads, etc. and there are no files or folders.

I'm also running into the same SU binary issue mentioned earlier and my Android Pay isn't working but I'll tackle those after the SU zip file.

Any help/suggestions would be appreciated. Thanks.
[Nexus 6  General] FedericoUY:
Excelent guide. Thank you. One more that followed previous android version guide. Cheers!
[Nexus 6  General] ahpukuh:
Thank you

Thank you, I was feeling cold sweats. I thought I bricked my new phone. I was very upset, but it looks good now. Thanks Again, you're awesome
[Nexus 6  General] Yerry:
How to properly unroot and return to stock after applying this root repair?
[Nexus 6  General] CapitalParallax:
Make a nandroid backup. Since you're asking, this might not go well for you the first time.

From TWRP: Wipe > Format Data. Then just flash the factory images provided by Google.
[Nexus 6  General] grimpressive:
Hi there,

I was going to manually install the new factory image for 6.0.1, it does not install because of my TWRP and modified boot.img with root as this thread describes.

So, again, I was going to manually flash bootloader, radio, then boot, recovery, cache and system from the factory image, and then reinstall recovery and the modified boot image to correctly get root.

The question is, can i use this modified boot.img (that comes from MRA58K) on my 6.0.1 (which is a MMB29K) or should I wait for a modified version of boot.img based on MMB29k?
[Nexus 6  General] Negotiator50:
I had the same problem as OP. Since I was on mmp2k, I was worried that the modified boot.img would not work. Instead I flashed SuperSU 2.62 beta in recovery. This new version is suppose to patch the boot.img itself. Sure enough, it solved the error that wasnt allowing me to boot past the error screen. It works great now with root.
[Nexus 6  General] mwebb34:
I'm stuck on the maeshmellow boot logo. I tried the tool kit but I can't get anywere
[Nexus 6  General] shabydog:
Hi xda's,

Had the same issu (can boot into bootloader), only bc's i updated to 6.0.1.

I found out that in order to fix my n6 I need to flash from bootloader the -- bootloader, radio, then boot, recovery, cache and than I found this method.

The method here is basiclly doing the same but just a different way?

P.S: In bootloader I can see in yellow "Device is UNLOCKED. Status code: 3"

What does that mean regards my bootloader (Unlocked+some problem? Just Unlocked?)

Thank you!
[Nexus 6  General] Sirdragonx:
There is a tutorial a couple of threads down called tutorial on how to flash factory images. Also if you do a google search on how to restore nexus 6 to stock there is a real good YouTube video on how to do it.
[Nexus 6  General] mwebb34:
I'll be receiving my new nexus 6 tomorrow and it should have 5.1.1 is that easier to root and unlock?
[Nexus 6  General] Sirdragonx:
If you go to the developers forum there is a good tool called Wug's tool kit that works well. It says in the latest post that it will work with Marshmallow. There is a one click tool but I am not sure if it works with marshmallow. Make sure you read the latest post from the thread and the first post to see which versions it works with.

---------- Post added at 03:57 AM ---------- Previous post was at 03:52 AM ----------

I just unlocked the bootloader, flashed TWRP custom recovery and downloaded the Dirty Unicorns Test build ROM for 6.0.1 and flashed it and the TBO Gapps available on the dirty unicorns download site which already had root.
[Nexus 6  General] Sirdragonx:
Also, most custom ROMs are pre-rooted so I pretty much skip the rooting part and flash the custom ROM.
[Nexus 6  General] janjanrex:
Option 1: Purge User Data

If you don't care about your user data to restart over/reset and unroot just install the factory image entirely as directed from Google's factory image page. (Don't relock the bootloader)

Haven't set up your Nexus 6 yet - update to 6.0.1 first via factory image flash-all.bat.

---//---

Option 2: Keep User Data

If you do care about your user data - download the factory image from google and unpack both zips into where ever you have adb.exe and fastboot.exe installed on your pc.

Plug phone into pc and either boot into the bootloader manually or use adb reboot bootloader.

Once you're sitting in the bootloader run the following commands

fastboot flash bootloader bootloader-shamu-moto-apq8084-71.15.img

fastboot flash boot boot.img

fastboot flash radio radio-shamu-d4.01-9625-05.32+fsg-9625-02.109.img

fastboot flash system system.img

fastboot flash cache cache.img

Note: if you're already have previously updated your bootloader and radio - you don't have to run those steps.

---//---

Pre-Root

If you don't have a custom recovery then install it via adb using fastboot flash recovery {recovery_name}.img.

Else if you do boot into recovery.

To Root

Download supersu beta 2.65 zip from http://xdaforums.com/apps/supersu/wip-android-6-0-marshmellow-t3219344 and save it on your phone.

Use your custom recovery to install the zip.

Please note the warnings from the thread!

The supersu zip will auto patch the boot.img.

Reboot your device and enjoy.
[Nexus 6  General] Adamy16:
for step 3 point 5, my phone does not show up on my computer. any idea why and how can I make it show up?
[Nexus 6  General] Sirdragonx:
Did you install the USB drivers along with the SDK?
[Nexus 6  General] Adamy16:
Yea, I have installed the drivers, my computer is dectecting the phone but the phone is not showing up on my computer