yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] Tmfz:
This is exactly what I did and after giving gapps the permissions everything seems good to go. The only issue I have right now is in Backup & Reset>Backup account is greyed out with the message "android backing up to debug-only private cache". Going to guess this has something to do with Google Backup Transport gapp. It has the permissions from I can tell. Anyone have any ideas on how to fix?
[Nexus 4 General] txuki2005:
Hi [MENTION=3326402]dmitrygr[/MENTION] Do you upload source to github or another website? I would like to see changes on kernel. Also i will try to deodex n5 STOCK ROM to make new gapps and use Google play services from n7 razorg. Now, i see that play services's libs are inside apk.

Thanks for your work.
[Nexus 4 General] dmitrygr:
The original post links to my site

A careful reading of that site will reveal a link to an archive containing:

1. instructions on how to build these exact system & boot images

2. my patches to the kernel

3. my patches to the device repository

:)
[Nexus 4 General] __ByTeS__:
How do we install this? Can't flash in TWRP...
[Nexus 4 General] Rock-86:
Via fastboot:

fastboot flash boot boot.img

fastboot flash system system.img
[Nexus 4 General] tthmatt:
Now on tap not working?
[Nexus 4 General] __ByTeS__:
How do we install this?
[Nexus 4 General] nicobrazell:
There's no boot animation isn't it?
[Nexus 4 General] vetzki:
copy to /system/media/
[Nexus 4 General] __ByTeS__:
I flashed this, but it doesn't seem to work...
[Nexus 4 General] DarkisFever:
I flashed V2 and Benzo apps but am also getting the issue where my home button doesn't always work. If I'm in an app I actually have to hit multitask and then home. I also cannot seem to access my dropdown settings, only notifications.
[Nexus 4 General] tthmatt:
Anyone knows how to root this rom?

---------- Post added at 08:39 PM ---------- Previous post was at 08:30 PM ----------

How do you enable now on tap?
[Nexus 4 General] vetzki:
aosp su should be included, also adb root should work, so it is already rooted
[Nexus 4 General] djsubterrain:
Nope, do not root this with the default boot.img
[Nexus 4 General] :
My contacts are still not syncing. When i ioen the contact app it says that i need to add a google account iach i alredy have
[Nexus 4 General] djsubterrain:
Working gapps..
[Nexus 4 General] hp420:
i flashed system & boot, rebooted, flashed supersu 2.51, and get a bootloop. if i do the same without supersu it's fine. any help??
[Nexus 4 General] sd3993:
Enable contacts permission for contacts app

search for it. there's a thread for what you want in the nexus 4 general section
[Nexus 4 General] djsubterrain:
Yes, try reading 3 posts above your own :/

You can't root this with the boot image it has, wait for [MENTION=4491606]ktetreault14[/MENTION] to redo his boot.img from here, there was a new one released by Dmitry Grinberg (The Google Engineer that saved our bacon) to fix the problems with 3g not being used, ktetreault14's older one enabled root but still had 3g broken, he's currently sleeping off hours of work so we'll need to wait.
[Nexus 4 General] Wassupdog:
I get Setup Wizard force close, what should I do?
[Nexus 4 General] Rock-86:
Wipe cashe and data and try again, For me, it is working fine. Only location is not working.

Any solution for Location?
[Nexus 4 General] ariesgodofwar:
Just tossing it out there in the event it helps some. I saw many (all) of these same issues, until I factory wiped in TWRP and then reflashed Benzo Gapps. After giving all of the permissions needed for each of the apps, my contact sync and everything else are working properly (Home button, On Tap, etc.) and the force closes and "Unknown issues with Play Services" have all stopped. Only issue I have at the moment is Waze causes reboot when making a call to GPS services, but that appears to be an issue with their app and not GPS as other apps using GPS like Maps, etc. work properly.

Thanks [MENTION=3326402]dmitrygr[/MENTION]
[Nexus 4 General] Wassupdog:
Thanks!

Fixed the issue.
[Nexus 4 General] Rock-86:
Google Maps cannot find my current location...I gave all permissions, but no luck.
[Nexus 4 General] Ruudvangoal:
I downloaded the 475mb gapps zip but every time i try to install it i get an error.

with twrp i get the unable to mount usb-otg (tried mounting it manually but it just won't tick).

with cwm i get the Status 6 error

I have tried both adb sideload and putting the zip on the phone and install it directly, any assistance would be great :).

It generated this log if it helps

Please note that i have 12gb free.
[Nexus 4 General] fuser1337:
Flashed the rom and flashed the fixed slim gapps through TWRP.

I cannot restore the apps in the setup, when I set it up as a new device, It just stays there forever.
[Nexus 4 General] VirtualMontage:
Try a factory reset and reflash Gapps.
[Nexus 4 General] sd3993:
In the /data partition. Not in /system
[Nexus 4 General] fuser1337:
I did, didn't work.

Which GApps did you use?
[Nexus 4 General] VirtualMontage:
Try the one on page 33.
[Nexus 4 General] Rock-86:
Gapps from page 33 are working, but Location does not work for me. Maybe this is Gapps issue.

I
[Nexus 4 General] Stalkermight:
someone could make a summary of what we know for sure so far and maybe update the first post

Inviato tramite Tapatalk
[Nexus 4 General] Ruudvangoal:
Can i change the directory then somehow?

EDIT: Did a factory reset and re flashed everything and installed the benzo gapps and it successfully installed, will boot now and see how it goes.
[Nexus 4 General] xWolf13:
I took the time to share my findings here
[Nexus 4 General] ale29-09:
Using latest build with TheXorg's Gapps (http://xdaforums.com/showthread.php?p=63214033), no bugs so far and Gapps are fully working ?

XT1092 on Tapatalk
[Nexus 4 General] fuser1337:
How and when did you flash the gapps?
[Nexus 4 General] davideakc:
For the root? We have news? Sorry, but I've missed all the other 33 pages :(
[Nexus 4 General] ale29-09:
I decided to perform a clean, clean, clean install:

-Flashed latest official factory image;

-Erased cache, userdata, boot and system;

-Flashed Marshmallow boot, system and TWRP Recovery;

-Rebooted in TWRP and flashed gapps;

-Waited for the magic :)

Remember to unmount /system before flashing the gapps.

XT1092 on Tapatalk
[Nexus 4 General] equlog:
Mine is working.

Location is not a gapps issue just aosp issue, you have to add the correct location provider.

How to fix? recompiling sources or modify frameworks base apk.

Tapatalk Nexus 7
[Nexus 4 General] fuser1337:
Did the exact same procedure, When I enter my google account and try to restore the apps and data, the restore dialog just comes back again and again, When I try to set it up as a new device, It gets stuck in the Restoring screen forever.
[Nexus 4 General] ale29-09:
Select "Configure as a new device" (not sure if it says exactly this, I did it in Italian), it will restore all the apps anyway.

XT1092 on Tapatalk
[Nexus 4 General] Ruudvangoal:
My phone was rebooting before installing any gapps every time i tried to enable location in the browser so i am pretty sure it has nothing to do with that.
[Nexus 4 General] kaiser_tytnii:
second that! thanks for everyone! especially [MENTION=3326402]dmitrygr[/MENTION] and [MENTION=5405633]TheXorg[/MENTION] who made all of these happened! the only thing is not working so far as i am restoring is when being asked to restore, you actually need to "set up as a new device" to restore after picking which device to restore from, or else it just keeps looping through the same screen...

btw, all i did was

clear system, cache, and data in TWRP recovery

flash the 2 images via fastboot

boot into M

flash thexorg gapp via recovery

boot into M

"Wizard stopped working"

clear cache, and data in TWRP recovery

boot into M

Wizard works!

PROFIT!!

(Don't forget to give permission to google and google services!!!)

EDIT: LTE works once APN is setup with the latest LTE hybrid image found in the forum! Did not flash any of the modem.img dmitrygr provided.
[Nexus 4 General] Ruudvangoal:
Now i am getting swarmed by setup wizard has stopped working although i had wiped everything before re-installing!

Didn't see the post right above me before posting, i'll try that!
[Nexus 4 General] kaiser_tytnii:
wipe data and cache again
[Nexus 4 General] vetzki:
?? it is already rooted (userdebug build)

see picture
[Nexus 4 General] fuser1337:
Okay I got it to work.

Enabling Now on Tap doesn't work :/
[Nexus 4 General] flopower1996:
Yeah it's rooted because we use a userdebug build. But thats only through adb and not for apps.
[Nexus 4 General] kaiser_tytnii:
yeah same here, [MENTION=1675826]peryndark[/MENTION]. could you advise how you got it to work? neither tap nor swipe up for google now works... Thanks!
[Nexus 4 General] cqloveqc:
i think the slim gapps have some problems, i encountered that also.

Benzo's gapps is ok, after a wipe data and cache
[Nexus 4 General] Ruudvangoal:
Thank you this worked but it looks a bit messed up, like for example it asked me whether i wanted to restore the 100 apps i had or set up a new device and i chose the later yet it's restoring all of them right now lol, then i went over to contacts and it asks me to enter my email and when i do it says that it's already registered on this device yet it didnt' sync my contacts yet.

Will wait till the app installer finish and see if it syncs the rest of my stuff or not.
[Nexus 4 General] sriraviprasad:
Someone need to summarize the whole thread. Latest files, how to install and whats nt working
[Nexus 4 General] ktetreault14:
Check my thread if you guys want data and root
[Nexus 4 General] hp420:
This is my old legacy device...I can wait for 3g. Thank you for your detailed response!!

*edit*

didn't see the post above...I guess I'll have mobile data, afterall. BONUS!! :D

I did...but in this thread only. I just assumed any progress made would be posted here. You're right, though...search and you profit ;) Thanks!
[Nexus 4 General] ktetreault14:
Glad I can help :) this isn't my daily driver but to have root and marshmallow is heaven. Now xposed
[Nexus 4 General] djsubterrain:
[MENTION=4491606]ktetreault14[/MENTION] has posted a new boot image with data fixed and supporting root, great work fella!!

http://xdaforums.com/nexus-4/general/root-achieved-nexus-4-6-0-roms-t3221226
[Nexus 4 General] E-B41:
I wiped sytem, data and cache using fastboot.

Then i flashed system-, boot- and radio-image(w/o LTE) from "MakoM_bin_v2".

After that i directly booted to recovery and flashed the gapps from this thread.

When setup stucked at "checking connection" i booted to recovery and flashed benzos gapps.

After that setup stucked at last step, when trying to restore apps. So i rebooted and selected to not restore any apps.

Now everything works fine, even all the apps were restored (which is a bit strange).

Now on tap is working if system language is set to English.

Did not try to root (for now).
[Nexus 4 General] VirtualMontage:
We need someone to make a simplified process of this for everyone else.

Also, is Location working for you?
[Nexus 4 General] dmitrygr:
GPS tests app shows all satellites seen and location works
[Nexus 4 General] E-B41:
Yes, GPS/Location is working fine.

I'm not really into system details, or why that worked out good in the end. I just can report what i did.
[Nexus 4 General] sriraviprasad:
guys, do we need to install custom recovery? can we install gapps through stock recovery through fastboot?
[Nexus 4 General] Wassupdog:
If you flash only System and Boot, you will still have your custom recovery.
[Nexus 4 General] bart.found:
you have 12GB free in user partition.. but system partition is not big enough for such a big Gapps package!
[Nexus 4 General] ktetreault14:
So I got around to testing data and stuff with my aunts sim and I noticed that I had signal issues
[Nexus 4 General] advance26:
Hi guys !

Can you make a resume of which boot.img, system.img, radio and GAPPS do we need to flash ?

It will be easier for everybody because there is already 38 pages :o

PS: Thanks to every developers who contribute to the long life of our N4 ;)
[Nexus 4 General] ariesgodofwar:
Curious if anyone has tried it, but does the N4's *.* modified boot.img [MENTION=3110798]WugFresh[/MENTION] uses in the NRT work to give SU App access if SU is laid over it, or does it still fail? I have never torn it apart, but it has always worked for me on prior versions before someone specifically modifies the boot.img for the new version. Was not sure if something new to 6.0 would kill that or not.
[Nexus 4 General] hp420:
After playing around for a while I'm finally starting to make some decent headway...everything installed just fine initially, but somehow my whole storage partition got wiped at some point...so I've lost MONTHS worth of files, pics, etc...not too happy, but it happened. Then I tried superSU 2.51...this is where things went south. I had some crazy bootloop I couldn't fix somehow. I had to follow this guide: http://xdaforums.com/nexus-4/general/how-to-fix-internal-storage-16gb-8gb-t2033692 to fix it. It took like 3-4 tries...I forget how many, now. I have no idea why. I've followed the same guide sooooo many times, but for some reason it seriously didn't like something I was doing this time. I ended up using LRX22C factory image for the guide, and it booted again...YAY!!! Now I rebooted to fastboot and flashed the 6.0 system.img, the newest boot.img (with root and data working) and twrp. It took. I flashed superSU and it took, as well.

I'm now working on gapps. If anyone can give a recommendation for one they've gotten to work I'm all ears. I'm using Slim_mini_gapps.BETA.6.0.build.0.x-20151008a and I keep getting storage errors. My recovery log is attached. I've already made a gapps file to white & black list apps....nothing is working.
[Nexus 4 General] sriraviprasad:
Flashed. Everything working except launching google now by dragging home button and now on tap. anybody help pls

Edit: Working now after changing language to US. Did google remove home button drag to open google search?
[Nexus 4 General] djsubterrain:
These work fine, they're a fixed version of SlimGapps:

https://www.androidfilehost.com/?fid=24052804347833783

Also after that I would recommend Material Power Menu since there's no advanced power menu, this will work with root and allow you to restart into Bootloader or Recovery
[Nexus 4 General] Tmfz:
The gapps from http://xdaforums.com/nexus-4/development/rom-6-0-android-marshmallow-pure-aosp-t3220900 seem to be working best from what I've used so far.
[Nexus 4 General] flopower1996:
Do a full wipe

fastboot flash system system.img

fastboot flash boot boot.img
[Nexus 4 General] cell2011:
Can be done nexus toolkit and directions?
[Nexus 4 General] Sun90:
Sorry,I couldn't get u.

I am on stock android v5.1.1 LMY48M Build for now.

full wipe u mean from stock recovery ?
[Nexus 4 General] thundericky2:
Yes, all is working.

Just flash it from ADB.
[Nexus 4 General] flopower1996:
I would recommend with twrp (the full wipe only of course) or the coresponding fastboot command.
[Nexus 4 General] cell2011:
Now on tap everything? Now all we need is Ambient
[Nexus 4 General] DJ_MuTeD:
Installing 5.1 opengapps breaks the launcher, Now on Tap doesnt work either.
[Nexus 4 General] DrexelDragon:
Worked fine for me. Going to flash 5.1.1 GAPPS and update from play store to see if Now on Tap works.
[Nexus 4 General] suarez1907:
Can anybody make flashable zip it?

Nexus 4 cihazımdan Tapatalk kullanılarak gönderildi
[Nexus 4 General] TristanLee:
Can i use TWRP to intsall the zip?
[Nexus 4 General] DrexelDragon:
How did you even flash Gapps? TWRP wouldn't let me.
[Nexus 4 General] thundericky2:
GAPPS for 6.0 Marshmallow doesn't exists yet.
[Nexus 4 General] DJ_MuTeD:
Modified the installer script to ignore android version.

Looks like the gapps dont only break the launcher, but entire home button? Installed Nova via adb, doesnt even let me choose which launcher to run.
[Nexus 4 General] DrexelDragon:
What did you modify the g.prop?
[Nexus 4 General] cell2011:
Obviously we need gapps for NOT to work yes?
[Nexus 4 General] DJ_MuTeD:
installer.data

req_android_version="6.0";

Didnt notice g.prop, I will modify it as well and check if that helps.
[Nexus 4 General] DrexelDragon:
Yep found it trying again

---------- Post added at 10:54 AM ---------- Previous post was at 10:53 AM ----------

Can't we just get extract the gapps from a N5/N6 image to create an installer?
[Nexus 4 General] DJ_MuTeD:
http://androiding.how/android-6-0-marshmallow-gapps/
[Nexus 4 General] flopower1996:
It's not THAT easy ;)
[Nexus 4 General] ale29-09:
SystemUI Tuner:

MultiWindows:

100% Legit, eheh ?

XT1092 on Tapatalk
[Nexus 4 General] hp420:
lol you predicted my next question!!!

You da man :D
[Nexus 4 General] djsubterrain:
That link is now broken for some reason, I've just re-uploaded the same package to my AFH host above.

---------- Post added at 08:33 PM ---------- Previous post was at 08:32 PM ----------

It's really cool, you can tell it to create a desktop shortcut which you can then drag into the dock on Nova or some other launcher, makes it very useful.
[Nexus 4 General] bart.found:
quick reboot is probably less fancy.. but does its job pretty well! ;)
[Nexus 4 General] hp420:
Thank you, I found the link in the 6.0 rom thread under android development ;)
[Nexus 4 General] de.ran:
can u make a TWRP backup of the gapps+system and boot u are using? :)

because mine, location is not working?

what do I have to do? :confused:
[Nexus 4 General] hp420:
For the people getting a setupwizard.apk force close on boot....

boot to twrp, select advanced>file manager

navigate to /system>priv-apps>setupwizard

delete the setupwizard file

reboot

You don't need this app for the rom to work. It just makes setting everything up nice & pretty with a cool gui.
[Nexus 4 General] FormerSlacker:
Just wanted to say real impressive work dmitrygr. Much appreciated, thank you.
[Nexus 4 General] Tmfz:
Anyone know a fix for in Backup & reset>Backup account being grayed out with the messge "android backing up to debug-only private cache"?
[Nexus 4 General] ariesgodofwar:
I used the 2nd version of the modified Benzo Gapps as suggested earlier and so long as you wipe properly, they seem to work just fine.
[Nexus 4 General] Mirko ddd:
awesome

sounds a good start, the dev site contains also instructions on how to compile and what sources are needed. Pretty cool :D
[Nexus 4 General] Rock-86:
Any fix for Location?
[Nexus 4 General] Tmfz:
Location working fine for me with gapps found here http://xdaforums.com/nexus-4/development/rom-6-0-android-marshmallow-pure-aosp-t3220900
[Nexus 4 General] Rock-86:
I tried alredy, Google Maps cannot find my location...
[Nexus 4 General] Tmfz:
Strange, I used maps to test it too and it just asked me for permission for maps to use my location then worked fine. Try hitting the top icon in the bottom right corner and see what happens.
[Nexus 4 General] kaiser_tytnii:
not sure if anyone faces the same problem as i had... using the benzo gapps, google on tap works but contact does not... the slim gapps gets contact and stepup wizard to work but not google on tap...

i just combined the 2 using slim gapps as the base and added all missing files from benzo to it... so far both contact sync and google on tap work... will report after...
[Nexus 4 General] Matsilagi:
I have no idea but i didn't flash the new GApps and my contacts suddenly synced.

Im serious, it happened out of nowhere, im about to root now.

Congrats for everyone involved! Looks like its a daily driver for me.
[Nexus 4 General] Davejb:
I used the Benzo Gapps as recommended and location doesn't work on mine either, can I just load this one over it?

Odd thing is when I set up smart lock it correctly detected my location, but location isn't working with any apps.
[Nexus 4 General] kaiser_tytnii:
seems like the problem is in aGPS... GPS is fine with GPS test...
[Nexus 4 General] Rock-86:
I can confirm this. aGPS is problem...
[Nexus 4 General] Matsilagi:
So, how to fix Now on Tap? Like, the circle appears and all, but i have never saw a "Now on tap" notification, so i guess it isn't working.
[Nexus 4 General] Davejb:
Yup, GPS test gets me 21 Sats

[edit] Oddly enough after the GPS test it seems to now be working
[Nexus 4 General] ariesgodofwar:
I installed Benzo Gapps after a factory wipe in TWRP, and both Google on Tap and GPS/location are working properly for me. Are you using a radio different than the one Dmitry modded for LTE? That is the one I am using, and have no issues. Maps took me to work this AM because Waze seems to cause a reboot on 6.0

On the contact sync issue, trying to resolve it was why I wiped after installing Slim gapps and having it be a mess. Then Factory wiped in TWRP, and installed the Benzo Gapps, and I have no issues. I think this may be some left over data/cache issue. After doing the above, my contacts sync just fine. Make sure you give all of the apps all of the permissions they need.
[Nexus 4 General] kaiser_tytnii:
same here but i did not want to jump to the conclusion too quickly... in case the location is only locked due to GPS but once we leave the current location, it will be gone again... and will have to wait for GPS to pick up....
[Nexus 4 General] Davejb:
I'm using the modded LTE, luckily I didn't have the contacts issue.
[Nexus 4 General] nicobrazell:
Can someone please post a full guide from the start til flashing gapps. I'm a bit confused now ?
[Nexus 4 General] Davejb:
Yeah, it didn't last :(
[Nexus 4 General] kaiser_tytnii:
[MENTION=3326402]dmitrygr[/MENTION] would you mind looking into the aGPS issue? What could we provide to you to assist? Thanks!
[Nexus 4 General] famewolf:
Can someone point me to a current working download link for the makom.zip? The google one has been viewed to many times and the AFH link posted on the first few pages leads to a 404.
[Nexus 4 General] Charles_l:
Thanks for your backup, as my phone USB port broken, I can not use the Fastboot way to flash anything.

Everything is working fine, and I managed to write a guide about using this backup, hope this helps. http://chromloop.com/2015/10/tutorial-how-to-install-android-6-0-marshmallow-aosp-rom-on-nexus-4/
[Nexus 4 General] Cristiano Lira:
Now on tap only works with the modded benzo gapps?
[Nexus 4 General] sriraviprasad:
I can access now on tap but can't access google from any screen option in settings. Is this a bug?

Location also nt working.
[Nexus 4 General] ariesgodofwar:
Check your app permissions. Not just the ones it shows you initially, but have it show you system apps as well, and make sure those are all enabled. I reinstalled it all again today, and was able to get everything working again today. Flash .img files, boot, then flash Benzo Gapps, boot. Then go in and give everything permissions in the Apps menu, and it will work properly.
[Nexus 4 General] nicobrazell:
How to change this dialer? It's like in jellybean. And is it safe to remove this pre installed app? Like clock, browser, calendar? Want to change to google apps. And this gallery too.
[Nexus 4 General] Chotu90:
Is the rom here and the one posted in android development different?

I am slightly confused as to how to install it now?
[Nexus 4 General] sriraviprasad:
Granted all permissions. still not working. Will flash everything again and check.
[Nexus 4 General] fuser1337:
You can remove the AOSP clock, browser and calender.

The dialer is AOSP, wait for a full gapps package that will include google dialer.

---------- Post added at 10:35 AM ---------- Previous post was at 10:34 AM ----------

This one is the factory image

The one posted in Android Development is flashable via TWRP.
[Nexus 4 General] nicobrazell:
Where to remove those apps?
[Nexus 4 General] fuser1337:
For those who want M Boot animation, I made a flashable zip

https://drive.google.com/file/d/0ByLl9j7NEnN0MGxHQVV5dWNReGM/view

Just flash via twrp.

Thanks to [MENTION=766325]Rollies77[/MENTION] for the bootanimation
[Nexus 4 General] engga_enak:
hey i have issue about GPS, when i open maps, location won't changes, someone have related issue ??
[Nexus 4 General] fuser1337:
system/app
[Nexus 4 General] nicobrazell:
It's not there