[Nexus 6 Android Development] nathanchance:
Installing Cataclysm

EDIT: This post will now be updated on the first page here.

Alright guys, this is most likely going to be the last time I need to post this since [MENTION=3913401]atl4ntis[/MENTION] has gotten it figured out for how he wants to do updates, hopefully this is not too intrusive or unnecessary! I'll be linking this and I will fully update this as time goes on, depending on how things change. Let me know if there are any issues.

PLEASE READ THE PROCESS ALL THE WAY THROUGH SO YOU UNDERSTAND EXACTLY WHAT YOU ARE DOING. If you have questions, either PM me or post here. I'd rather you not bootloop your phone :)

Getting all the way up to date:

If you are on the latest stable version (currently December 8th):

YOU MUST BE ON LATEST STABLE VERSION TO DO THIS PROCESS! If you are not on the latest stable, following the below steps will get you onto the latest stable then the beta.

1. Download the latest Mod zip, your custom kernel (optional), and SuperSU (if you want root, see below) onto your phone (make sure the kernel is up to date for the latest Android version of Cataclysm, currently 6.0.1).

2. Boot into TWRP.

3. Make a backup (optional but HIGHLY recommended).

4. Flash Cataclysm zip.

5. Flash your custom kernel (optional).

6. Flash SuperSU (optional, see below).

7. Reboot and profit.

If you are on a Cataclysm build date on/after November 15th but not the latest stable OR stock Android 6.0:

1. Download the latest stable zip (and the latest beta zip, if applicable), your custom kernel (optional), and SuperSU (if you want root, see below) onto your phone (make sure the kernel is up to date for the latest Android version of Cataclysm, currently 6.0.1).

2. If you have not done it already, flash the radio and bootloader from here via fastboot (optional but recommended).

3. Boot into TWRP.

4. Make a backup (optional but HIGHLY recommended).

5. Flash Cataclysm zip(s).

6. Flash your custom kernel (optional).

7. Flash SuperSU (optional, see below).

8. Wipe cache and dalvik cache (optional).

9. Reboot and profit.

If you are on a Cataclysm build date on/before November 8th OR on a custom ROM:

1. Download the latest stable zip (and the latest beta zip, if applicable), your custom kernel (optional), and SuperSU (if you want root, see below) onto your phone (make sure the kernel is up to date for the latest Android version of Cataclysm, currently 6.0.1).

2. Back up any important data via Titanium Backup or your tool of choice.

3. If you have not done it already, flash the radio and bootloader from here via fastboot (optional but recommended).

4. Boot into TWRP.

5. Make a backup (optional but HIGHLY recommended).

6. Wipe system, data, cache, and dalvik cache in Wipe > Advanced Wipe (MANDATORY).

7. Flash Cataclysm zip(s).

8. Flash your custom kernel (optional).

9. Flash SuperSU (optional, see below).

10. Reboot and profit.

If you are on the latest stock Android (currently 6.0.1):

1. Download the latest Mod zip (no need for full stable), your custom kernel (optional), and SuperSU (if you want root, see below) onto your phone (make sure the kernel is up to date for the latest Android version of Cataclysm, currently 6.0.1).

2. If you have not done it already, flash the radio and bootloader from here via fastboot (optional but recommended).

3. Boot into TWRP.

4. Make a backup (optional but HIGHLY recommended).

5. Flash Cataclysm zip.

6. Flash your custom kernel (optional).

7. Flash SuperSU (optional, see below).

8. Reboot and profit.

Which SuperSU do I use:

There are two types of root right now, system and systemless:

- System: this is the normal root you are used to. It works without any issues and it is NOT required to reflash when you update Cataclysm. This is only compatible with December 14th and later, follow the above process to get there if you want this.

- Systemless: this is new and allows for Android Pay to be used (at the moment). It may have issues with older apps (see Chainfire's post about it if you have any questions, he is 100 times smarter than I am). It IS required to reflash when you update Cataclysm.

If you choose system root, download either SuperSU 2.52 OR SuperSU 2.64.

If you choose systemless root, download one of the following:

1. SuperSU 2.61 (if you want Android Pay right out of the box)

2. SuperSU 2.62-3 (must delete /su/xbin_bind with a file manager then reboot for AP to work)

3. SuperSU 2.64 (must go into the Advanced section of TWRP, choose Terminal Command, and type "echo SYSTEMLESS=true>>/data/.supersu" without the quotes BEFORE you flash this for systemless and do the same process in the second option).

SuperSU 2.64 is special because it will try to give you root by modifying /system first; if that succeeds, you will have regular root like you did with SuperSU 2.52, not systemless with previous versions of 2.6x. [MENTION=3913401]atl4ntis[/MENTION] patched the SEPolicy of Cataclysm to allow system root so just flashing SuperSU 2.64 without that command will give you system root. This is nice because now we have one version of SuperSU for both types of root instead of two different ones, but if you want AP to work, you need to follow that step next to the download above.

Just flash whichever one you choose in the above processes.

If you are on system root currently (2.52 or 2.64) and would like to switch to systemless root, follow this process:

1. Dirty flash latest Cataclysm (Stable or Beta, whichever is applicable).

2. Flash UnSU (removes SuperSU from /system).

3. Flash your custom kernel if you have one (optional).

4. Flash the systemless SuperSU from above.

5. Reboot and profit.

If you are on systemless and want to go back to system root, follow this process:

1. Uninstall SuperSU under SuperSU > Settings

2. Delete /data/su.img

3. Boot into TWRP.

4. Flash most latest Cataclysm (Stable or Beta, whichever is applicable).

5. Flash your custom kernel if you have one (optional).

6. Flash SuperSU 2.52 or SuperSU 2.64.

7. Reboot and profit.