So after updating your Nexus 4 to Android marshmallow 6.0 a unofficial AOSP Custom rom.If you didn’t update your nexus 4 to marshmallow 6.0 yet then follow this link to Download and install Android M 6.0 in Nexus 4.In this guide we are going to show you how to root LG Nexus 4 running on android Marshmallow 6.0 just follow below step by step tutorial of rooting android marshmallow 6.0.
See also:Cyanogenmod 13.0 Features,Walkthrough, Release Date Android 6.0 [CM 13]
#Requirements
1.Download this fixed_data_root.img
2.Download latest Super Su 2.51.zip( marshmallow supported).
3.You must have TWRP recovery in your Nexus 4.
4.Android Marshmallow on Nexus 4 of course.
#How To Root Nexus 4 Running On Android Marshmallow 6.0
1.After downloading fixed_data_root_img and super su v2.51.zip place both the file in your Device.
2.Now Reboot your device in to recovery mode (TWRP recovery).
3.Firstly flash fixed_data_root_img from recovery.
4.Then flash Super Su 2.51.zip in it, done !.
5.Now restart your device and you will get Super Su in your app drawer it means you have successfully rooted nexus 4 running on Android Marshmallow 6.0 (Android M).