This tutorial is only for installing Android 5.1.1 nanoPOP ROM on Sony Xperia Z2.
Please do not try on any other Xperia Z2 variants.
Your phone should be rooted and haveClockworkMod recovery installed from before.
This tutorial will wipe out all your data.Proceed at your own risk.
Perform a Dalvik Cache wipe before proceeding from the recovery mode.
Sony PC Companion will NOT detect your phone after installing this ROM because it is a custom firmware.
Bootloader should be unlocked or you will not be able to install this ROM.
Make sure you backup all your data in your phone before proceeding…
Android 5.1.1 nanoPOP Lollipop Custom ROM on Sony Xperia Z2:
Step 1 – Download nanoPOP Android 5.1.1 ROM for Sony Xperia Z2 on your computer and extractboot.img from the zip file separately.
Step 2 – Connect and mount your Sony Xperia Z2 USB (mass) memory on your computer using the USB cable.
Step 3 – Now copy/paste the downloaded Android 5.1.1 ROM zip file to your SD card. Make sure the fileis in the SD card root.
Step 4 – Copy/paste the boot.img file to android-sdk-windowsplatform-tools directory.
Step 5 – Then turn OFF your phone.
Step 6 – Now to get into the Bootloader Mode. Press and hold the Volume Up button while connecting it again with the USB cable. Your phone LED will turn blue and it will get into the Bootloader Mode.
Step 7 – Once in the Fastboot mode (on your phone), navigate to android-sdk windowsplatform-tools directory (on your computer) and open Command Prompt (Shift + Right-click > Open Command Prompt).
Step 8 – Type the following command and press Enter. fastboot flash boot boot.img
Step 9 – Then, type the following command and press Enter. fastboot reboot
Step 10 – Now to get in the Recovery Mode. Switch ON the phone while pressing the Volume Up or Volume Down buttons a few times when you see the LED light turn pink or any other colour.
Step 11 – Once you are in ClockworkMod Recovery, select perform a full data wipe by selecting “wipe data/factory reset” as shown below. Use the Power button to select everything while in the Recovery Mode.
Step 12 – Then, perform a cache wipe by selecting “wipe cache partition”.
Step 13 – Now this is optional, but it is recommended to perform a wipe of your Dalvik cache as well. You will not get into boot loops or any other errors. From CWM recovery, go to ‘advanced’ and then select “wipe dalvik cache”.