yashsingh1/xdaforums huggingface dataset:
[Nexus 6P General] Z.muhammad:
can u tell me how to root s4 android 5.0.1 i tried kingroot,iroot,towelroot,iroot,vroot
[Nexus 6P General] sirxdroid:
See? You already know how to do it :)

---------- Post added at 12:21 PM ---------- Previous post was at 12:19 PM ----------

You are in the wrong forum, this is for the Nexus 6P only. You may want to check here, assuming that's the S4 you are asking about:

http://xdaforums.com/galaxy-s4
[Nexus 6P General] Soulfly3:
:o Yes... I do... but others may not.

Like I said, he has the (whole) sequence there, but I think when it's not clearly spelled out (just BL+radio), it can cause mistakes to happen.

Just think it'd be a quick addition to the thread that would compliment the OP well
[Nexus 6P General] Z.muhammad:
sirxdroid what i must do actually
[Nexus 6P General] Soulfly3:
you need to go to the PROPER FORUM, like he told you... and ask your question there.

You're asking a question for a COMPLETELY different device and OS
[Nexus 6P General] greatnesstx:
Can anyone upload the stock recovery for Nexus 6P , I dont have the time to download the factory image. I just need to the stock recovery. Thanks in advance
[Nexus 6P General] pahlerc1:
I am currently on the CleanCore MDB08M build with root, am I able to follow instructions in step 10 to flash the new update MDB29M via fastboot and then wait for a modified boot.img from MDB29M to re-root and install TWRP? Or do I have to fastboot flash back to the MDB08M build and then take the OTA? Thanks in advance for the help, this is my first Nexus so things are a bit different from other makes/models haha :good:
[Nexus 6P General] LeftHandedWave:
OK, I just finished rooting systemless after I did a traditional root. I did have issues with SuperSU, so I ended up restoring from nandroid, then unrooting the phone from inside the SuperSU app, then following the following steps. Works now.

Thanks again Heisenberg; you rock!

- unroot SuperSU from inside the app

- boot into recovery (TWRP)

- flash stock /system

- flash the boot image (angler-mra58k-boot-systemless.zip)

- flash SuperSU systemless (SuperSU-v2.56-20151030013730.zip)

- wipe cache
[Nexus 6P General] Empty Hand:
I'm looking to update to 6.01 and am running a custom recovery (TWRP). I have no need to return to stock (running Cataclysm unrooted). Would these steps be sufficient (eliminating the step to flash the recovery.img)? Also, is erasing cache and flashing the cache.img necessary in this case? Thank you!

fastboot flash bootloader C:\angler\images\bootloader-angler-angler-xx.xx.img

fastboot reboot-bootloader

fastboot flash radio C:\angler\images\radio-angler-angler-xx.xx.img

fastboot reboot-bootloader

fastboot flash boot C:\angler\images\boot.img

fastboot erase cache

fastboot flash cache C:\angler\images\cache.img

fastboot flash system C:\angler\images\system.img

fastboot flash vendor C:\angler\images\vendor.img
[Nexus 6P General] Alferboy:
Or http://www.xda-developers.com/update-to-snapprefs-xposed-module-includes-17-instagram-like-filters/
[Nexus 6P General] Ketawa:
6.0.1 works with SuperSu 2.60, which automatically patches the boot image. No need for the modified images as long as you're using systemless root.
[Nexus 6P General] sirxdroid:
I had no idea SuperSU got to 2.60 :) Thanks! Way too much stuff to keep up with.

Edit: Ah systemless ... I want the system version though.
[Nexus 6P General] dirtyreturn:
red yield and android sign

how do you recover from this kind of thing? I was following the instructions and messed up along the way. My bootloader is unlocked and I have TWRP installed. Any help would be greatly appreciated as I have no clue on how to proceed.
[Nexus 6P General] Soulfly3:
did you make a Nandroid backup?

Also, where along the process did you mess up?

---------- Post added at 06:02 PM ---------- Previous post was at 06:00 PM ----------

Atl4ntis answered me directly for this question... Here is the direct link.

http://xdaforums.com/showpost.php?p=64195378&postcount=681
[Nexus 6P General] sirxdroid:
And it looks like there's even a SuperSU v2.61 (systemless). Is root moving the systemless direction? There were some apps in the recent past that didn't work with systemless root, that's why I went with the system version.
[Nexus 6P General] Empty Hand:
Atl4ntis answered me directly for this question... Here is the direct link.

http://xdaforums.com/showpost.php?p=64195378&postcount=681[/QUOTE]

Thanks for the reply. I saw that post. I am wondering what to flash where Atl4ntis says "flash the rest, in this case Cataclysm" if I want to update while waiting for the updated Cataclysm. In other words, what is the "rest" if it isn't Cataclysm.
[Nexus 6P General] Soulfly3:
I assume he means this is for when the new DELTA for cataclysm comes out.

What did you want to flash?

I believe when you do the steps above, the current version of cataclysm remains on your device.
[Nexus 6P General] Empty Hand:
I want to update to the stock 6.01 until the delta comes out. Ultimately, it's not a big deal to flash the stock recovery per the instructions in this OP, but I was wondering if it was necessary. I don't think cataclysm can remain on the device once you flash an updated system image because cataclysm runs on top of the stock system image (of course, I could be wrong).
[Nexus 6P General] jimbotron:
Xposed V78 Works with 6.0.1

I figure it should be alright since old boot img file works with 6.0.1 update. I just thought I'd confirm that Xposed V78 still works with 6.0.1 update in case anyone is wondering.
[Nexus 6P General] dirtyreturn:
It seems to be stuck on four dots now, any clue? Won't boot past that splash screen. I don't know what to do.
[Nexus 6P General] mrRobinson:
its ideal so i think that is the focus. it doesn't mean you can't decide to edit your /system partition though. just means the process of rooting won't do it.
[Nexus 6P General] Ketawa:
I updated to Android 6.0.1 at the same time as SuperSu 2.61 without any issues. I had been on 6.0.0 with SuperSu 2.60.

flashed bootloader, radio, boot, cache, system, and vendor with fastboot

booted into TWRP

adb push SuperSu 2.61 zip to /sdcard/, installed it

wiped cache and dalvik

rebooted into system

Phone booted up once and asked for my PIN to decrypt, then rebooted and asked for PIN again, then went through the optimizing apps step. Everything is working perfectly.
[Nexus 6P General] Soulfly3:
4 dots? ok, maybe it's just loading.... sometimes takes up to 10min... shouldnt tho

anyways, did you make a backup or not?
[Nexus 6P General] jesssiii:
Here's the answer from the horse's mouth. ?
[Nexus 6P General] sirxdroid:
I guess systemless root it is going forward. And time to dump apps that don't work with it and don't care to issue updates to fix it.
[Nexus 6P General] elreydenj:
True, but I think we need a non encrypt stock boot.img from 6.0.1 that I'm sure MrRobinson will provide.

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

Has anyone created a non encrypt stock boot image for the 6.0.1 kernel yet? Don't want to go through the process of decrypting again....
[Nexus 6P General] sirxdroid:
Why do we need non-encrypt? I encourage everyone to keep encryption on, unless you have a very strong reason to not encrypt and know what you're doing. These days encryption and HTTPS/TLS should be standard. We have the compute power.
[Nexus 6P General] elreydenj:
I guess we don't. There are still a decent amount who have decrypted though. There is a decrypted boot.img in the 6.0.1 thread in nexus 6P general section.
[Nexus 6P General] sirxdroid:
You can go back to encrypted without data loss, via Settings > Security > Encrypt.
[Nexus 6P General] :
Thanks for the explanation. So you didn't lose twrp when you flashed the update.?

And please explain if I'm wrong here, this works for system root?
[Nexus 6P General] pahlerc1:
Just to make sure I can use the factory boot image now via fastboot and flash SuperSU 2.61? Do layers I hope? :)
[Nexus 6P General] thephatness:
No, because you're not flashing the recovery.img. I followed the same steps and it worked like a charm! The only addition is that I flashed xposed before rebooting.

Edit: What was weird was that it didn't ask me for the PIN to decrypt on start but my phone is encrypted. I did remove the PIN for screenlock before taking a backup but I thought that setting is separate from the PIN used for encrypting.
[Nexus 6P General] greyhd:
Can we use the "Flash All" command to flash the update? OP says to boot each file one by one.
[Nexus 6P General] :
In not sure if i should follow step 9 or 10 in op. Either way they both say to flash the recovery.img. Any reason why you didn't just flash twrp again? I just ask because i don't know.

Didn't know you can flash xposed in twrp? Any benefit?
[Nexus 6P General] thephatness:
Simply because if you've already got the latest TWRP in the recovery partition, you got TWRP. :D

And for xposed, there's the framework and then there's the installer app. You need to flash the framework for the app to work with.

Edit: Someone correct me if I'm wrong, when flashing xposed after systemless root, because it modifies the system partition, Android Pay won't work.
[Nexus 6P General] :
[MENTION=4153349]Heisenberg[/MENTION] since 90% of people will be (and should) using step 9 for updating to 6.0.1, shouldn't you remove the step to flashing recovery.img because we already have twrp installed?

Correct me if I'm wrong on this one but shouldn't "flash boot.img" be removed as well because we already have mdb08k custom boot? Or do we flash mmb29n that's in step 6?

I'm currently on Android MDB08L. Custom boot version mdb08k. SuperSU 2.52. TWRP 2.8.7.2

I've gotten so much help in this thread so thank you all. This should be the last question i have.

---------- Post added at 11:24 PM ---------- Previous post was at 11:12 PM ----------

Edit: I'm using Layers themes which i believe installs into vendor partition. Can i leave out the vendor.img when updating or is that a big no?
[Nexus 6P General] Ketawa:
The flash-all batch file doesn't work unless you haven't modified system, at least. Unsure about recovery or boot. Regardless, you don't want to use it, since it will erase userdata.

#9 is for returning to complete stock images, so you would lose root. #10 is for being able to accept an OTA, which requires all the images to be stock. Neither is quite the same as updating to a new version of Android by flashing the factory images.

I'm not sure. I used systemless root and modified system with AdAway, but I was still able to add a credit card in Android Pay. I wasn't able to add the card when I was using SuperSu 2.52. I haven't tested actually using Android Pay, however.
[Nexus 6P General] :
I hope you just misread step 9 because i think it's exactly for those who want to flash an update (which is what most of us are doing). But step 9 is technically for going back to stock as well, only because of the last step of flashing userdata.

So it serves 2 purposes then.....?
[Nexus 6P General] bagarwa:
Not correct. flash-all.bat will flash the stock images, overwriting whatever modification you've made to system, boot, recovery etc.

You can edit the .bat file before running and remove -w from it, so that it doesn't wipe data while flashing the images. That's what I do.

If you don't want to encrypt your device though, you shouldn't run it. I learnt it the hard-way today. I ran it and when its run finished, it started the system boot. It's been more than 8 minutes, so I thought it is bootlooping. I did a hard reboot. And on next boot, I got the error screen saying my "encryption is corrupted. must factory reset now". It then dawned on me. Since I flashed the stock boot.img via flash.bat which has encrypt-on-boot set, the phone was getting encrypted on first boot; which I interrupted. That's how I ended up having to factory reset my phone and losing everything, including sdcard content.
[Nexus 6P General] Heisenberg:
No, and definitely no. You need to be fully stock to accept an OTA. You need to flash all images except for the userdata image.
[Nexus 6P General] Ketawa:
It's called "How To Flash The Factory Images (And Return To Stock)". That isn't the same as updating to a new version of Android as quickly as possible, which doesn't require any changes to recovery. Just keep TWRP 2.8.7.2. Regardless, you'd still be fine following #9 for the newer version of Android, then #2, then following the instructions in post 3 of the SuperSu WIP thread. There is no longer a need to download a modified boot.img since SuperSu 2.61 will create it for you.

---------- Post added at 01:05 AM ---------- Previous post was at 01:00 AM ----------

flash-all.bat always failed when I tried to run it on my Nexus 5 to sell it on eBay since I wasn't stock. I also thought that this line meant it simply used the image-angler-XXXX zip file: "fastboot -w update image-angler-mmb29m.zip"., and that there wasn't any way to selectively avoid the userdata image. I could be completely wrong though! That was just my experience.
[Nexus 6P General] mobileman88:
I got it all working without restoring nandroid by doing the following :

http://xdaforums.com/showpost.php?p=64202079&postcount=3340
[Nexus 6P General] Heisenberg:
I'm pretty sure you do need the stock recovery installed to take an OTA.
[Nexus 6P General] mobileman88:
Try not to do a "flash all" as it will wipe out all your data and internal sdcard.
[Nexus 6P General] Ketawa:
To clarify, I meant that you can typically use the steps in #9 to go directly to a new version of Android. I did that today (except recovery) to update to 6.0.1 before I received the OTA.
[Nexus 6P General] Heisenberg:
Ahh, yes, indeed you can. Sorry, I misunderstood what you were saying there.
[Nexus 6P General] thephatness:
Confirmation here that xposed or any /system related changes after systemless root will cause Android Pay to whine and complain.

http://xdaforums.com/showthread.php?p=64192451
[Nexus 6P General] :
Really appreciate the help guys. I feel like the annoying person who just doesn't get it ?

I did some more reading but I do need some more clarification...

1) what do you guys mean by accepting ota? I'm only interested in flashing it myself instead of waiting for it.

2) After reading the supersu threads, why do i feel like I'm one of few who doesn't want systemless root or android pay? Is supersu 2.61 systemless only root? It doesn't say which one it is (link, post #3 http://xdaforums.com/showthread.php?t=3219344). I want system root...

3) I'm going to do what ketawa said and follow step 9 (skip flash recovery.img), do step 2, and last flash supersu 2.61? (Which seems to be systemless root and i don't want that)....
[Nexus 6P General] Heisenberg:
1. Don't worry about accepting the OTA then, just flash the latest factory images.

2. You may not have a choice, it looks like this is the way Chainfire is heading with SuperSU, it doesn't look like the standard branch of SuperSU will need maintained from now on.

3. If you're going to skip flashing recovery then you probably won't need to do step 2 again. See above for explanation regarding systemless root.
[Nexus 6P General] Heisenberg:
I highly doubt it, just another bs post cluttering up the thread.
[Nexus 6P General] nrfitchett4:
you don't have to flash the custom recovery. You can boot into twrp without installing it to get superSU installed. Then after reboot, you will still have stock recovery. This will be my beginning choice when I get my device...

https://aubykhan.wordpress.com/2013...t-into-twrp-or-cwm-recovery-without-flashing/
[Nexus 6P General] Heisenberg:
That's true but either way you need an unlocked bootloader. I see no benefit of keeping the stock recovery over TWRP, especially when you can just flash the stock recovery back if you ever need it.
[Nexus 6P General] StephenMSmith:
Can you remind me? We need to flash the stock recovery in order to take ota's, but do not need to relocate the bootloader. Correct?
[Nexus 6P General] nrfitchett4:
Don't you have to side load OTAs when you are custom recovery or does it not matter on nexus phones. I don't plan on romming right away, just need root for a couple of apps.

On my HAM2, wanted just root because not much devving going on so it was easier to just load it temporary.
[Nexus 6P General] Pder:
Thanks for summing up :good:
[Nexus 6P General] BladeRunner:
completely stock recovery and system to take an OTA but the boot loader can remain unlocked.
[Nexus 6P General] Heisenberg:
If you want to retain the custom recovery you can sideload via fastboot. Or you can flash the stock recovery in order to take the OTA and then flash TWRP again afterwards. Keep in mind that you can't have root when taking an OTA either.
[Nexus 6P General] StephenMSmith:
No root for ota? My last nexus was a galaxy nexus and root didn't matter for applying ota's. You would frequently lose root and have to reinstall it, but I never had to unroot to apply an ota. Has that changed since the old Galaxy nexus days?
[Nexus 6P General] BladeRunner:
Yes, it changed with Lollipop. Any modifications to /system will cause the OTA to fail.
[Nexus 6P General] Aria.A97:
So root will break OTA while unlocking bootloader doesn't.

So if I unlock bootloader, root, flash custom kernel, and install Xposed I won't receive any kind of OTA.

Question is will I still be able to sideload OTA with ADB? And that won't erase my data. right?

I'm coming from too old Xperia V :D
[Nexus 6P General] BladeRunner:
You would still to flash a stock system as root will cause the side load OTA to fail.

If you're you would still receive the OTA but trying to install it will cause it fail.
[Nexus 6P General] StephenMSmith:
So what is the usual way to apply ota updates on nexus phones now? Uprooting, flashing rock recovery, etc seems a lot of work. Do peeps post updated system image Roms after xota's that can be flashed with TWRP?
[Nexus 6P General] BladeRunner:
It's really not that much work to flash a stock recovery and system, but yeah usually updated ROMs get posted pretty quick. You'd still need to flash a bootloader and radio.
[Nexus 6P General] StephenMSmith:
As long as I don't have to wipe data. Way too many apps to reconfigure.
[Nexus 6P General] ohlin5:
I was initially apprehensive of its $6 price tag, but titanium backup is easily the best purchase I've ever made from the play store. Makes even full wipes and restores dead simple!
[Nexus 6P General] Heisenberg:
Couldn't agree more, best few dollars I ever spent. The pro version with the batch app restore and sms/mms restore makes clean flashing a piece of cake.
[Nexus 6P General] galaxys:
Yep, TB Pro has always been my favorite app.!
[Nexus 6P General] efrant:
I'll post it here so that people have it in mind when they unlock their bootloaders: apparently the Nexus 6P has a QFuse. http://www.xda-developers.com/xda-e...hich-blows-irreversibly-on-bootloader-unlock/

Haven't really looked at it, but from what the posts are saying is that unlocking the bootloader will blow the QFuse. Weird for a Nexus...
[Nexus 6P General] Stephen:
I wouldn't worry about it too much. It cant affect warranty. To simply flash a factory image, Google's own instructions tell you to unlock the bootloader, flash the factory image and then re-lock the bootloader. I am not really sure why they added it in the first place! Copy of instructions from their page:

Factory Images for Nexus Devices
[Nexus 6P General] :
I haven't heard of system root being abandoned... Might have to wait for it.. Long live OG root.

3. That's my mistake. I'll skip step 2 since twrp won't be touched by the update.
[Nexus 6P General] cturbos:
Heisenberg

I'm rooted with your method,Thank you,I got an OTA (6.01),which obviously would not stick ,been thinking can I follow your instructions to upgrade manually?Straight to 6.01 from my build (L)?Then root with your instructions?

Thank you
[Nexus 6P General] Martini3001:
Exactly the same question here. :)
[Nexus 6P General] Heisenberg:
We've just been discussing this, guys, it's all in the last couple of pages, searching goes a long way. Follow the instructions in section 9 to flash the factory images for the latest build, don't flash recovery if you want to keep TWRP, and don't flash/format userdata if you want to keep your data intact.
[Nexus 6P General] cturbos:
Thank you,It's just the thread is so condensed,takes a while to go through it.

Appreciate your efforts
[Nexus 6P General] Martini3001:
One little question. Does the twrp-2.8.7.2-angler and SuperSu2.52 work on 6.0.1 or will the device end in trouble if I flash it? Thanks in advance.
[Nexus 6P General] Heisenberg:
SuperSU 2.52 relies on having a modified boot.img to work, and to my knowledge we don't have such a thing for the latest build.
[Nexus 6P General] VanGolfer:
[MENTION=4153349]Heisenberg[/MENTION]: could you add a foolproof guide for systemless root? Thanks in advance!
[Nexus 6P General] jboku:
Hello,

I have not rooted a phone since the Galaxy Nexus....

Back then I could still receive OTAs but it looks like this has changed? I am receiving my nexus 6P today and am wondering if I should root or not?

The main reason I rooted before was to get tethering... I've used Foxfi on my Note3 (current phone) for that and only use it sporadically since I am always around wifi unless going on a road trip. I do also have unlimited data on Verizon so I should stick it to them as long as I can though... ;p

So my questions...

1. Do I have to re-root and install images manually now instead of getting OTAs

2. Does the re-root process mean I have to re-configure everything? -- Do I lose any data?

3. What are some of the main reasons for rooting now?

4. Does Google handle the OTAs or does it still go through Verizon meaning I still have to wait forever to get them?

Thanks!
[Nexus 6P General] drothenberger:
Folks that are worried about app compatibility with the new systemless SuperSU 2.61, you might want to check out this post:

http://xdaforums.com/showpost.php?p=64204285&postcount=3358

Basically it says that if you create /system/bin/su and/or /system/xbin/su yourself (an empty file is fine), SuperSU will replace those files with the correct binary every boot. Hence you essentially get the original system root.
[Nexus 6P General] sirxdroid:
Cool. This means you can have both systemless and system at the same time and you don't need a modified kernel, SuperSU 2.61 will fix it for you.

I don't have a problem modifying /system for SuperSU as I have other apps that modify it anyway. Until we get unionfs/overlayfs, many of us are still stuck with a modified /system anyway.

Now ... has anyone tried it? :)
[Nexus 6P General] drothenberger:
I'm using 6.0.1 and SuperSU 2.61 with ElementalX 1.0.0 kernel, the latest Xposed, and Gravity Box. No problems.

I created /system/xbin/su because QuickBoot wasn't working and it worked fine after a reboot.
[Nexus 6P General] XSCYTHEX:
I am having a problem with the first step. I installed the SDK tools, adb and fastboot. Im not getting a serial number when i run the command prompt for fastboot or adb. i know from an earlier response that adb is not required but is there a way to get fastboot to work? I am booted in to bootloader when doing the fastboot test
[Nexus 6P General] Soulfly3:
do you have USB debugging on?

and oem unlock checked?
[Nexus 6P General] XSCYTHEX:
Both are checked
[Nexus 6P General] bhrootmind:
I can not and im trying if You get notice
[Nexus 6P General] Heisenberg:
I'm be adding that soon.

There's a dedicated section of this guide on how to take updates.

1. That's the easiest method.

2. No you don't lose any data.

3. Same reasons as always.

4. OTA updates come directly from Google, nice and quick.

I found Quick Boot still works, clicking one of the action buttons will bring up the SU prompt for you to acknowledge.

You probably need to look at your drivers. Do you have any drivers installed for other phones? They could be interfering.