[Nexus 6  General] liqice:
[INFO] How to sideload 5.1.1 (LYZ28E), & maintain no encryption - no wipe required

Simplified procedures with LMY47M / LYZ28E now available as a factory image.

Hopefully this isn't blatantly obvious to everyone, it is a little different than the normal sideload procedure. Thought it might be useful to some who want to load 5.1.1 (and get Wifi calling with T-Mobile!) and not be forced to encrypt.

Requirements:

1. I'm assuming you have adb/fastboot working on your computer / connecting to your device and you understand a little bit about using adb / fastboot with an android phone.

2. Your phone cannot be encrypted, if you're encrypted already - this will not un-encrypt your data - you need to turn off forced encryption and format the "userdata" partition to disable the encryption.

3. You need to have an unlocked bootloader for this to work of course.

How to follow this procedure:

1. If you're on LMY47M (T-Mobile) and unencrypted, you can follow option 2, starting with Step 3 - only a small ~150MB download required.

2. If you're on anything other than LMY47M, you should use option 1 unless you have a desire to flash LMY47M and sideload LYZ28E.

I didn't do much here - except spent a bunch of time writing the procedure.

All Credit for tools / ideas goes to:

- efrant for his explanation of how to get OTA updates to work with TWRP ( http://xdaforums.com/nexus-6/general/nexus-6-ota-help-desk-t2992919/page4 )

- hlxanthus for the NO FORCE ENCRYPT mod ( http://xdaforums.com/nexus-6/development/mod-disable-force-encryption-rom-kernel-t3000788 )

- Q9Nap and mhous33 for the LMY47M factory image ( http://xdaforums.com/nexus-6/development/fxz-nexus-6-recovery-flashable-fastboot-t3066052 )

- bbedward and others for the original disable forced encryption boot.img ( http://xdaforums.com/nexus-6/development/disable-forced-encryption-gain-root-t2946715 )

- TeamWin - the TWRP Developer ( https://twrp.me/ )

——————————————————————————————————

OPTION 1 - Easy Method - Flash the LYZ28E factory image directly:

1. Download hlxanthus's NO FORCE ENCRYPT mod and put it onto your phone so you can flash it later (in /storage/sdcard0) - https://basketbuild.com/filedl/devs...u/misc/NO_FORCE_ENCRYPT_shamu_v1.0-signed.zip

2. Download LYZ28E for Nexus 6 ( https://dl.google.com/dl/android/aosp/shamu-lyz28e-factory-b542b88a.tgz ) and extract the files, there is a zip file you want to extract that too.

Boot to the bootloader ("adb reboot bootloader") and fastboot flash the boot, cache, recovery, radio and system:

fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img (OPTIONAL - If you have TWRP or another alternative recovery you can skip this step)
fastboot flash radio radio-shamu-<variable>.img
fastboot flash system system.img

3. Restart the Bootloader, and flash TWRP, found here: ( https://twrp.me/devices/motorolanexus6.html )

fastboot flash recovery twrp-2.8.6.0-shamu.img

4. Restart the Bootloader again and then go to Recovery (TWRP). Now flash NO_FORCE_ENCRYPT_shamu_v1.0-signed.zip through TWRP, and flash SuperSU if you want root and whatever other zips you want to flash (Xposed, etc)

After flashing the NO FORCE ENCRYPT mod, reboot and you should be running 5.1.1 with all of your data and with your userdata partition intact and unencrypted!

———————————————————————————————————————————————————

OPTION 2 - SIDELOAD Method (Makes sense if you’re already on LMY47M):

1. Download hlxanthus's NO FORCE ENCRYPT mod and put it onto your phone so you can flash it later (in /storage/sdcard0) - https://basketbuild.com/filedl/devs...u/misc/NO_FORCE_ENCRYPT_shamu_v1.0-signed.zip

2. Follow the normal procedure, if you're already on LMY47M you can skip to step 3. Download LMY47M for Nexus 6 ( https://dl.google.com/dl/android/aosp/shamu-lmy47m-factory-5228e84a.tgz ) and extract the files, there is a zip file you want to extract that too.

Boot to the bootloader ("adb reboot bootloader") and fastboot flash the boot, cache, recovery, radio and system:

fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
fastboot flash radio radio-shamu-<variable>.img
fastboot flash system system.img

3. Now flash TWRP, found here: ( https://twrp.me/devices/motorolanexus6.html )

fastboot flash recovery twrp-2.8.6.0-shamu.img

4. Restart the bootloader, and enter recovery mode (TWRP). Once in TWRP, go to Advanced -> ADB Sideload. You may need to unplug/plug in the USB cable to your computer again.

Download my version of LYZ28E from here: https://www.androidfilehost.com/?fid=23991606952609905

Note: I modified this version to work with TWRP, it will not work with the stock recovery (because I modified it, the signature on the file is now invalid). The only thing I changed was I edited the updater-script to remove the release keys check which seems to fail on the stock recovery and doesn't work right with TWRP).

adb sideload f69096766706fab3c721163f02aad9073a989d00.unsigned-shamu-LYZ28E-from-LMY47M-fullradio-fix-superblock-use-TWRP.zip

5. After it finishes, do not reboot yet. Go back and I recommend rebooting to recovery again. Now flash NO_FORCE_ENCRYPT_shamu_v1.0-signed.zip through TWRP, and flash SuperSU if you want root and whatever other zips you want to flash (Xposed, etc)

After flashing the NO FORCE ENCRYPT mod, reboot and you should be running 5.1.1 with all of your data and with your userdata partition intact and unencrypted!