Android 6.0 Marshmallow's release this month prompted Nexus smartphone users to immediately update their devices, which included the Google Nexus 5, 6, 7 and 9.  However, several Nexus 4 users were in for a disappointment when it was not included.

Google's Android Wear team's Dmitry Grinberg, a software engineer, released a guide on how to put Marshmallow in the Nexus 4 through his website. A well-known kernel developed by Grinberg is currently in circulation and  is compiled by vocoderism of the XDA Developer community.

Android developer Aldrin Holmes also released his own Marshmallow build for the Nexus 4. Currently, both ROMS are working perfectly well and can be injected to any Nexus 4 device.

Android 6.0 Marshmallow update should begin by downloading all the files needed for this procedure. The appropriate GApps file needs to be installed with the proper ROM such as TWRP 2.8.7.0, SuperSU, Vocoderism's ROM, Vocoderism's suggested GApps, Holmes' ROM, and Holmes' suggested GApps.

1.    Transfer the TWRP file to the Nexus 4

2.    Update or Install TWRP (TeamWin Recovery Project) 2.8.7.0.

3.    Boot into Recovery Mode.  If the Nexus 4 is already rooted, the Quick Boot app should do the trick, if not, turn off the phone first, then power it up while holding down the volume up, volume down and power button.  All three buttons pressed at the same time. Let go of the buttons once the TWRP loading screen pops up.

4.    Reset to Factory Settings.

5.    After the Factory Reset, transfer one of the two ROM-GApps combo to the Nexus 4 phone.

6.    Reboot into Recovery Mode again and choose Install.

7.    Locate the ROM and select it. Once complete, it will indicate that it is done.

8.    Install GApps once the ROM is installed.

9.    Reboot one more time and enjoy the new Android 6.0 Marshmallow on the Nexus 4.

10.  One can also root with SuperSU.

Android 6.0 Marshmallow update on Nexus 4 devices always has a risk of damages.