Android 6.0 Marshmallow pure AOSP ROM for Nexus 4 D820 / D821 Variants [How To Install]

The official Android 6.0 Marshmallow OTA update released for most of the Nexus devices such as Nexus 5, 6, 7, 9 & Nexus Player recently and there is no news that when Nexus 4 will get the latest Android OS firmware update. Thanks to vocodersm (XDA forum developer) who has unofficially released a pre-built AOSP Android Marshmallow ROM. This stock Android 6.0 custom firmware is based on Google’s AOSP (Open Source code).

Just like other custom ROMs, you’ll be required to install the Google Apps package separately on your Nexus 4. In this guide we have given the compatible Google Apps package with this Marshmallow based AOSP firmware. Keep in mind that this is a custom ROM and is still under development all of its features might not be functioning properly. If you are interested to get this latest Android 6.0 Marshmallow AOSP ROM on your Nexus 4 then go ahead and follow the guide instructions.

Install Android 6.0 Marshmallow AOSP Custom ROM on Nexus 4 D820 & D821


This guide containing the Android 6.0 Marshmallow AOSP ROM can be used only with Nexus 4 (D820 and D821) variants. Do not try to install this firmware on any other device or incorrect variant.

Warning: will not be held responsible for any kind of damage occurred to your Nexus 4 during or after the installation of Android 6.0 Marshmallow AOSP custom ROM. Proceed at your own risk.

Before Getting Started:

  • Take a proper backup of all your important data and settings on your Nexus 4 before proceeding to the installation guide.
  • Make sure that the latest version of a custom recovery like TWRP is already installed on your Nexus 4 which is required to install a custom ROM. You can easily download the latest TWRP from here or here.
  • Download and install Nexus 4 USB drivers on your PC.
  • The battery level of your Nexus 4 should be charged at least about 70% to prevent unexpected shutdowns while installing ROM.

Required Files:

Steps to Install Android 6.0 Marshmallow pure AOSP ROM on Nexus 4:

Step No 1:- First, download the Android 6.0 Marshmallow AOSP ROM and Google Apps from the above links on the desktop of your PC.

Step No 2:- Copy/paste both of the .zip files to the root folder of phone’s internal storage.

Step No 3:- Turn OFF the phone in order to boot into TWRP recovery.

Step No 4:- Turn the device ON while pressing and holding Volume Down + Power buttons altogether.

Step No 5:- While the Nexus 4 is now in the recovery mode, perform a nandroid backup (System, Data, Boot, Recovery, EFS).

Step No 6:- Once the back up is completed, go back to the main TWRP menu and tap the wipe button > select Advanced Wipe. Then select Dalvik CacheSystemData and Cache.

Step No 7:- Navigate to TWRP menu and tap on the install then Storage. Locate the Android 6.0 Marshmallow custom ROM .zip file that you have already transferred to the root folder of your phone. Begin the installation process by swiping on it

Step No 8:- Once the ROM installation is completed, flash Google Apps package by repeating the above steps on your Nexus 4.

Step No 9:- After installing ROM and Google Apps, reboot system.

That’s All! You have successfully installed Android 6.0 Marshmallow on Nexus 4 D820/D821.

Let us know in the comments area below if you have any trouble or query while following the above steps.


If you face bootloops or system errors then try factory reset or you can also restore your previous ROM from the backups.

  1. Reply
    Dmitry Morozov January 12, 2016 at 7:12 am

    WHAT DOES Nexus 4 D820 and D821 ???
    LG Nexus 4 e960. WHY DID YOU WRITE Nexus 4 D820 and D821 ETOGES Nexus 5 ???

  2. Reply
    Dmitry Morozov January 12, 2016 at 7:15 am

    I should like to establish, android 6, in my Nexus 4 e960,

    Can it be done?

  3. Reply
    Dmitry Morozov January 12, 2016 at 7:41 am

    I should like to establish, android 6, in my Nexus 4 e960,

    Can it be done?

Leave a reply