Update Xperia Z2 to Android 6.0 Marshmallow via AOSP Custom ROM – How To


This guide list steps on how to update Xperia Z2 to Android 6.0 Marshmallow via AOSP Custom ROM

Xperia Z2 was launched in February 2014 and it is planned to get Android 6.0 Marshmallow firmware update in the near future. As we don’t know exactly when it is about to receive Android 6.0 update, till then we can use a Custom firmware to experience latest features provided by Marshmallow. So in this guide we have brought Android 6.0 AOSP Custom ROM for Xperia Z2 and it is the first ROM based on Android 6 available for Xperia Z2 and it provides completely Stock like experience. So if you are ready then we can proceed further and update Xperia Z2 to Android 6.0 Marshmallow via AOSP ROM.

Update Xperia Z2 to Android 6.0 Marshmallow via AOSP Custom ROM - How To

Let’s first follow some of the pre-requisites and then proceed to install Android 6.0 Marshmallow on Xperia Z2.


  1. Make a complete backup of all of your data and settings.

Backup and Restore Call Logs

Backup and Restore Contacts

Backup and Restore SMS

Backup files stored on internal storage to PC

  1. Enable Sony USB drivers from Developer Options.
  2. Charge Xperia Z2 to at least 75%, to avoid it from turning off in between the installation process.
  3. Unlock Bootloader on Xperia Z2.
  4. Install Custom Recovery and Root Xperia Z2.
  5. Create a Nandroid Backup of your current ROM.
  6. Backup TA Partition on Xperia Z2.
  7. Download and install required Sony USB drivers on PC.
  8. Install and Setup ADB and Fastboot drivers on PC.

Disclaimer: Rooting and Installing Custom Firmware on Xperia Z2 voids its warranty and we are not responsible for any damage to your device. So proceed with the below steps at your own risk.


Android 6.0 AOSP Marshmallow ROM – Download

Android 6.0 Gapps Package – Download

Also ReadHow to Install Android 6.0.1 Marshmallow on YU Yunique via CM 13 ROM

How to update Xperia Z2 to Android 6.0 Marshmallow via AOSP ROM:

Step 1: Download the required files from the above downloads section.

Step 2: Copy both the files to the Root of your internal storage but not inside any folder.

Step 3: Extract boot.img file from the AOSP ROM and copy it inside the Fastboot folder.

Step 4: Now open Command Prompt inside the Fastboot folder by opening the folder and pressing and holding the Shift Key and right clicking inside the folder at the empty space. Now choose open command window here.

Step 5: Power off and Boot Xperia Z2 into Fastboot Mode. How? Press and hold the Volume Up key while connecting it to PC. Now LED turns Blue and device enters into Bootloader / Fastboot Mode.

Step 6: Now in CMD type the below commands and hit enter after each command.

fastboot flash boot boot.img

This command flashes the boot.img file to your device.

fastboot reboot

This command reboots your device into normal mode.

Step 7: Boot your device into Recovery Mode.

  • Power off Xperia Z2.
  • Power it on and when you see LED light press Volume Up or Down buttons few times.

Step 8: Once you are inside the Recovery Mode, follow this guide and install Android 6.0 AOSP Marshmallow ROM and then Google Apps Package.

Step 9: Reboot your device to normal mode.

Step 10: Check the Android version from Settings > About Phone.

That’s it. Now you have successfully updated Xperia Z2 to Android 6.0 Marshmallow via AOSP ROM. If this guide has helped you then do consider sharing it on Facebook, Twitter and Google Plus etc.

Have any queries? Ask them in the comment section below.

Related Posts:


Please enter your comment!
Please enter your name here

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.