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.


  • 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:

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

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

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

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

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

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.

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

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

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. Dmitry Morozov says

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

  2. Dmitry Morozov says

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

    Can it be done?

  3. Dmitry Morozov says

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

    Can it be done?

Leave A Reply

Your email address will not be published.

android 1, android, android studio, android device manager, android pie, android games, android one, android emulator, android versions, android emulator for pc, android apps, android app development, android authority, android apk, android arsenal, android apps on pc, android auto, android activity lifecycle, android app download, android architecture, android codes, android color codes, android central, android cdc driver, android car stereo, android course, android camera, android omponents, android box, android beta, android best games, android beam, android backup, android backup to pc, android basics, android games, android games apk, android games free download, android go, android gamer, android games 2018, android games on pc, android glide, android game development, android emulator online, android emulator download, android emulator for mac, android emulator for windows 10, android file transfer, android file host, android framework, android flash tool, android firmware, android hacking tools, android hd wallpapers, android hard reset, android heavy games, android data recovery, android keyboard, android kitkat, android keyboard apk, android keylogger, android imei check, android multi tools, android manager, android material design, android mobile games, android modded games, android latest version, android lollipop, android nougat, android oreo, android pie, android play store, android pc suite, android pie update, android police, android programming, android questions, android ringtones, android root, android root apk, android root apps, android tv box, android themes, android tools, android wallpapers, android wallpapers hd, android usb driver, android ui design, android update 8.0, android update 9.0, android studio, android sdk manager, android secret codes, android vidmate, android youtube downloader, android youtube downloader apk, android youtube background play, android zapya