yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] dimusa:
I flashed all and it´s work correctly, but i don´t have 3G... Why? :(
[Nexus 4 General] VirtualMontage:
Are the Google Apps working?
[Nexus 4 General] dmitrygr:
see OP

set it in phone testing settings
[Nexus 4 General] dimusa:
Yes :D:D
[Nexus 4 General] VirtualMontage:
But why are others still saying that Google Play Store, etc. are not opening?
[Nexus 4 General] dimusa:
It isn´t work for me :(

---------- Post added at 12:30 AM ---------- Previous post was at 12:30 AM ----------

I don´t know... I tried the [MENTION=1675826]peryndark[/MENTION] gapps and it works well
[Nexus 4 General] VirtualMontage:
Is everything working? Especially data?
[Nexus 4 General] Rock-86:
Mobile data is not working for me.
[Nexus 4 General] dmitrygr:
try "su setenforce 0" in adb shell

i'll look at it later today
[Nexus 4 General] Rock-86:
I didn't try. I will try tomorrow.
[Nexus 4 General] dimusa:
It didn´t work for me
[Nexus 4 General] dmitrygr:
i'll look at it tonight and fix it :)

worry not
[Nexus 4 General] Rock-86:
It is working for me!

adb shell

su 0 setenforce 0
[Nexus 4 General] nicobrazell:
Are these useful now?http://androiding.how/android-6-0-marshmallow-gapps/

Which one?
[Nexus 4 General] sd3993:
Is network/wifi location working for anyone?
[Nexus 4 General] cell2011:
[GAPPS][CM11][CM12.x][4.4.4][5.x.x][6.x.x] Delta Gapps With Modular Addons (All DPI) in Android hacking software gapps category. Might be on to something here
[Nexus 4 General] Rock-86:
su 0 setenforce 0 command fixes mobile data until reboot. After reboot, user must apply command again.

After command, to start working mobile data user must turn on/off airplane mode.
[Nexus 4 General] dmitrygr:
thanks for the info

i'll fix it today
[Nexus 4 General] Rock-86:
It's not working, Setup Wizard has stopped...
[Nexus 4 General] cell2011:
Will there be an easier way soon so we will have data working etc without having to adb everything or fastboot? Just rom gapps go. I really do appreciate all your work do get something done that wasn't going to get done after Oct 5th, I asked DeltaDroid about these Marshmallow Base Gapps (32bit)

Marshmallow Base Gapps package for 6.0.0: gapps-600-base-20151008-1-signed.zip. He says they should work
[Nexus 4 General] nitin.chobhe:
This worked for me as well... Thanks a lot! :good:
[Nexus 4 General] nicobrazell:
No boot animation?
[Nexus 4 General] allan.lobue:
N4 on T-Mobile

Using the modded benzo gapps, I seem to have a working install including mobile data without messing with selinux, however I am on T-Mobile with the supported 4G bands if that matters.
[Nexus 4 General] nitin.chobhe:
Can't push the apk. Getting error like:

E:\Nexus 4\ROMs\Marshmallow\MakoM_bin>adb shell
shell@mako:/ $ su
su
root@mako:/ # mount -o remount,rw /system
mount -o remount,rw /system
root@mako:/ # adb push GoogleContactsSyncAdapter.apk system/app/GoogleContactsSy
ncAdapter
ogleContactsSyncAdapter.apk system/app/GoogleContactsSyncAdapter <
/system/bin/sh: adb: not found
127|root@mako:/ #

---------- Post added at 08:24 AM ---------- Previous post was at 08:22 AM ----------

are you able to sync contacts? Everything is working except contact sync for me :o
[Nexus 4 General] allan.lobue:
Yup after pushing GoogleContactsSyncAdapter, FYI use the adb push command outside of adb shell and you will be successful at that command, you are executing it on the phone the way you are trying which will fail.
[Nexus 4 General] xWolf13:
I'd like to share my findings so far upon flashing this:

- With Benzo Modified Gapps I was able to get Google Play Services to finish and stop crashing. You will have to give it all the permissions in the settings.

- Google Play Store will also crash when it needs to download additional files. Just give it Storage permissions in the settings. Better yet, give it all.

- There is no root. So if you want to backup your apps data, download Helium Desktop. Google it for more information.

- 4G (or LTE as some of you have known) data (with T-Mobile) does work if you flash the LTE modem via fastboot. Works perfectly with my experience

- My Contacts were not able to Sync. Maybe if I changed permissions first it would have worked, but the way I did was to export all my Google contacts on my laptop and then transfer it to my phone.

UPDATE: after flashing the latest build

- After numerous times playing with the settings, I still can't get location to work. Maps is being screwy with me :P

- I've had a few RR's also. I have not been able to pull a logcat yet, but I'll try ASAP

- My process about flashing this:

-- Using TWRP, I usually format data (after backing everything up) when moving on to a newer OS version

-- After flashing boot into the bootloader a.k.a fastboot mode

-- On your computer, point your terminal towards the area where you have extracted the files

-- Connect your N4

-- fastboot flash boot boot.img

-- fastboot flash system system.img

-- fastboot flash radio n4_lte_modem.img

I will update this if I find anything else. Other than that I would love to thank the developer(s) that put their time and effort into this. Thank you!
[Nexus 4 General] nitin.chobhe:
Outside the adb shell it gives this error:

E:\Nexus 4\ROMs\Marshmallow\MakoM_bin>adb push GoogleContactsSyncAdapter.apk /sy
stem/app/GoogleContactsSyncAdapter/
failed to copy 'GoogleContactsSyncAdapter.apk' to '/system/app/GoogleContactsSyn
cAdapter//GoogleContactsSyncAdapter.apk': Read-only file system

:confused:

Can you help me?
[Nexus 4 General] gaj05:
download Link nwrong

Hi ,

Downloaded the zip file twice, twice also the zip(MakoM_bin.zip) was with only (radio,system,boot).

can anyone please reply with the correct link.

in B/w is this " aosp_mako-userdebug_6.0_MRA58K_eng.dmitrygr.zip" the zip file to be downloaded or "MakoM_bin.zip"
[Nexus 4 General] cqloveqc:
this file is good

bin file

---------- Post added at 11:19 PM ---------- Previous post was at 11:18 PM ----------

Maybe copy file to c:

and try agian

I don't know why, but this is an option
[Nexus 4 General] nitin.chobhe:
Tried this too; but getting same error:

C:\>adb push GoogleContactsSyncAdapter.apk /system/app/GoogleContactsSyncAdapter
/
failed to copy 'GoogleContactsSyncAdapter.apk' to '/system/app/GoogleContactsSyn
cAdapter//GoogleContactsSyncAdapter.apk': Permission denied

C:\>adb shell
shell@mako:/ $ su
su
root@mako:/ # adb push GoogleContactsSyncAdapter.apk /system/app/GoogleContactsS
yncAdapter/
ogleContactsSyncAdapter.apk /system/app/GoogleContactsSyncAdapter/ <
/system/bin/sh: adb: not found
127|root@mako:/ #
[Nexus 4 General] cqloveqc:
Permission denied

Maybe need to change /system/app/ permission

I don't know how :(
[Nexus 4 General] nitin.chobhe:
I did that in commands after that. Have a relook on above post.

But then got the same error that sh adb not found :confused:
[Nexus 4 General] Tmfz:
I used fastboot to flash boot, system and LTE radio provided post #4 and then used TWRP to flash the modded gapps from post #154. All seems well so far, a huge thank you goes out to dmitrygr, peryndark and anyone else who helped bring android m to our n4s!

edit: Spoke a little too soon, contact sync and gapps still no quite there.
[Nexus 4 General] nitin.chobhe:
How about contacts sync?
[Nexus 4 General] VirtualMontage:
How's data?
[Nexus 4 General] gaj05:
could some one provide me the download link for zip file..
[Nexus 4 General] nitin.chobhe:
Data works when you run the command via adb. It's there on the last page I think
[Nexus 4 General] yochananmarqos:
Do you even read? A Google employee spent the time to unofficially port Marshmallow for us, but you can't be bothered to read the OP. Seriously?
[Nexus 4 General] Tmfz:
Data is working fine for me on tmobile however I spoke a little too soon about the gapps. Looks like those still need some work.

Contact sync didn't seem to work either. I jumped the gun a little on the "all's well" comment, my apologies.
[Nexus 4 General] pratamaaudi:
su : setgid failed: Operation not permitted

i want to enable the data, but adb shell wont launch the su mode
[Nexus 4 General] VirtualMontage:
Looks like I'll be holding off until the gapps seem to be working. Why is it that some users are reporting issues with data while others are not?
[Nexus 4 General] Tmfz:
My n4 is my daily driver so I'm already in the process of going back to 5.1.1 until gapps are sorted as well. No idea about the data but for the brief time I was on 6.0 I updated a few apps over LTE no problem.
[Nexus 4 General] VirtualMontage:
Before you revert to 5.1.1, I thought I read that there is a modified gapps package.
[Nexus 4 General] nitin.chobhe:
Anyways, I did export to my PC and then imported to phone. So that's not a big problem for now.

I'm using this ROM as my daily driver now :cool:
[Nexus 4 General] cqloveqc:
Rightnow, everything works well , but I noticed sometimes, the signal went away, I'm not sure someone else also come cross this
[Nexus 4 General] djsubterrain:
I re-uploaded the zip to Android File Host:

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

Although, bear in mind, this is NOT a flashable zip, it contains the boot partition and the system partition as well as 2 radios (One LTE and one 3G), the partitions are supposed to be transferred using fastboot, if you don't feel confident using a recovery and fastboot then I would advise you to wait until someone makes an actual flashable rom, although there is no fully working Gapps package yet so you may want to wait a few days until it's all sorted out. I would guess after the weekend there should be something fully working.

---------- Post added at 07:02 AM ---------- Previous post was at 07:01 AM ----------

From Dmitri's original post:
[Nexus 4 General] kyle25:
Anyone managed to get the gapps works?

I have tried the slim gapps as posted in this thread but there's no Google play services installed after flashing it, Google play store will crash when I open it.
[Nexus 4 General] nitin.chobhe:
Flash the gapps from post #154 and thank to [MENTION=1675826]peryndark[/MENTION] :)
[Nexus 4 General] -Asskicker-:
Do these gapps not work?

http://androiding.how/android-6-0-marshmallow-gapps/
[Nexus 4 General] dmitrygr:
If with my rom you're having issues with your cellular data, please run "dmesg" under adb shell and send me the output since after a full erase and a flash i am still unable to duplicate this with lte or normal radio firmware
[Nexus 4 General] ktetreault14:
I am just playing around with the old nexus 4 and am so glad to have come across this :D typing this on 6.0 is great and I can't wait for more roms to come. Got gapps all worked out. Tried flashing superuser beta 2.51 but it bootlooped. Then tried flashing it on my S6 and it stuck on bootloader lol. I believe [MENTION=631273]Chainfire[/MENTION] said we need to disable verity and one other thing. let me get that post.
[Nexus 4 General] dmitrygr:
no verity in this build
[Nexus 4 General] kyle25:
Ok got it work, thanks mate!
[Nexus 4 General] ktetreault14:
http://xdaforums.com/showthread.php?t=3219344

Also patched selinux.
[Nexus 4 General] dmitrygr:
As for Gapps, the crashes you see are due to apps being installed via update script having no permissions by default. Eventually people who package Gapps will learn to grant them proper permissions on install, ad then all will be well :)
[Nexus 4 General] ktetreault14:
Gapps are doing great!
[Nexus 4 General] sd3993:
Okay i don't know how many of you will find it useful, but until a proper gapps package first flash the open gapps package and THEN flash the modified benzo gapps.

That way the contacts sync adapter is also installed(it's there in open gapps but not in benzo).

EDIT :- Looks like ContactSyncAdapter from both gapps are working. You just need to manually give ContactSyncAdapter permission to access contacts. That makes the modified benzo gaapps by [MENTION=1675826]peryndark[/MENTION] the only fully functional gapps package for now.

PS:- The mobile data problem has nothing to do with gapps. It's an selinux issue and will need changes to boot.img probably.

As for network/wifi location...still a no go.
[Nexus 4 General] djsubterrain:
I'm still getting a problem with G-Mail, it crashes out showing "Unknown issue with Google Play Services" and it won't sync, even when you grant it all the permissions it's asking for.
[Nexus 4 General] __ByTeS__:
And how do you give it permissions manually?
[Nexus 4 General] dmitrygr:
no idea - i do not know that part of android

i am sure the people who do this will figure it out :)

my goal in making this was to help produce the first M rom for Nexus4. Now others can take my patches and instructions and use them
[Nexus 4 General] sd3993:
I'm really sorry to hear that especially because all's well here. Check attachment. Also in the background of the pic you can see that gmail synced successfully.

Maybe clear data? or uninstall and reinstall from play store? although i guess you've already tried these.
[Nexus 4 General] sd3993:
Settings->Apps->App permissions

From the overflow menu click on 'Show system'

Then scroll down and find Google Contact Sync and enable Contact permission.

Do report back if this works.
[Nexus 4 General] sidnoit22:
I flashed Open Gapps then Benzo I can get Home button and Quick Setting drop to work. Doesnt work with 2 fingers as well. When I flash ROM + Benzo gapps then it was but when I join Open with these they stops working.

---------- Post added at 01:07 PM ---------- Previous post was at 01:06 PM ----------

Which Gapps you used and steps?
[Nexus 4 General] ale29-09:
I can't get home button and quick settings working with Benzo Gapps, gooood ?

Tried both clean flash and dirty, same.

XT1092 on Tapatalk
[Nexus 4 General] sd3993:
Don't flash the opengapps anymore then. Just flash modded benzo. It's the most complete gapps as of now.

Is your contacts sync working? if so you're good to go.
[Nexus 4 General] ktetreault14:
Who wants root? ;) https://goo.gl/photos/ZWNNNRiMQzRwuZXP8

Watch that short clip then check general
[Nexus 4 General] sd3993:
[MENTION=4268138]sidnoit22[/MENTION] [MENTION=4822561]ale29-09[/MENTION]

Go to Settings->Apps>App permissions

click 'show system' from overflow menu

scroll down to google play services, click on it and give ALL permissions

reboot and see if the home and qs work?
[Nexus 4 General] ale29-09:
Already did, not working the same.

XT1092 on Tapatalk
[Nexus 4 General] sidnoit22:
Checking..
[Nexus 4 General] sd3993:
Yes EVERYTHING except location is working
[Nexus 4 General] sidnoit22:
Just tried giving Gservice all permission and rebooted still nothing. :(
[Nexus 4 General] dmitrygr:
With benzo gapps (after i gave them all the permissions in settings) everything seems to work for me :)
[Nexus 4 General] pratamaaudi:
wow.. how to do that ?
[Nexus 4 General] sidnoit22:
I factory rese then flashed ROM via TWRP ( latest ) and Benzo gapps, I give all app their permission and reboot still Home button and swipe notification down doesnt works
[Nexus 4 General] damskrey:
Mobile data isn't work. It's shown always connecting:rolleyes:
[Nexus 4 General] __ByTeS__:
This has worked perfectly!! Thanks!
[Nexus 4 General] dmitrygr:
APNs set properly?

Did you wipe before installing the ROM?

If yes to both, in adb run "dmesg" and send me output

then in adb run su 0 setenforece 0

and toggle airplane mode

and again run dmesg and send me output
[Nexus 4 General] sd3993:
You did flash the modded benzo gapps right? the one by [MENTION=1675826]peryndark[/MENTION]? i think it's in post 145.

wipe data(not internal), cache, dalvik and system.

then flash system.img, benzo modded gapps.

You can also flash modded kernel(from n4 general section) and supersu 2.51 to get root if you want :P
[Nexus 4 General] sidnoit22:
Yes I flashed it correctly File name : benzo-gapps-M-20151007-modded+

I can get root later, don't need root right now
[Nexus 4 General] ktetreault14:
Check my thread in the general section. Bed now almost 4:20 am
[Nexus 4 General] nitin.chobhe:
Even the contract sync?
[Nexus 4 General] dmitrygr:
For those with cell data issues, i'll need a little help since i cannot repro here, and creating selinux policies takes time (fix one denial, wait for next, fix that, wait for next, etc)

So i'll post a new boot.img here, and you try it and post you new dmesg output. After a few iterations we'll have it working. OK?

I'll post the first image to try in a moment

---------- Post added at 09:19 AM ---------- Previous post was at 09:15 AM ----------

Those with cell data issues, please try this boot.img (no need to wipe after/before flashing it)

https://drive.google.com/file/d/0B2MsuxYf4GsyS3hSUjVfRk5hSVU/view?usp=sharing

And tell me if

(1) it helps

and

(2) what "dmesg" in adb says
[Nexus 4 General] __ByTeS__:
Looks like Battery Optimization does not work. After switching the setting to "all apps" from "disabled" and exiting and entering the view again, it shows again as disabled...
[Nexus 4 General] sd3993:
Can you please include the changes in this http://xdaforums.com/nexus-4/general/root-achieved-nexus-4-6-0-roms-t3221226 ?

Thank You! You've been doing a lot for mako :)
[Nexus 4 General] dmitrygr:
with GAPPS on, you'll get great battery life as is (mine has been at 73% the last 5 hours)

---------- Post added at 09:26 AM ---------- Previous post was at 09:25 AM ----------

probably not

i just want to fix this one issue, not make a perfect rom (i am not interested in doing such a thing long term, i just want to enable others to)
[Nexus 4 General] sd3993:
It takes a few days for it to work and know your usage pattern.

Also what you are changing from 'all apps' to 'disabled' is a list not an option.

disabled is the default list shown.
[Nexus 4 General] dmitrygr:
OK, with some help from svlog, I have figured out the data issue that some are having. I will upload new images to fix it, as well as the source changes

But for now, here is the boot.img you'll need to fix call data: https://drive.google.com/file/d/0B2MsuxYf4GsyUUhnd21TRnFDZHM/view?usp=sharing
[Nexus 4 General] Rock-86:
Mobile data is not working with modified boot.img.

dmesg output: https://drive.google.com/file/d/0B_-4N80sn_ZLR2JJUHozTkVyNU0/view?usp=sharing
[Nexus 4 General] dmitrygr:
Aaaand.....sources updated on the site

---------- Post added at 09:53 AM ---------- Previous post was at 09:53 AM ----------

try the latest i posted - it will
[Nexus 4 General] djsubterrain:
Just need to wait for [MENTION=4491606]ktetreault14[/MENTION] to modify it for root but I'm guessing that will be a few hours off, he's just gone to a well earned bed rest after working on the other one :)
[Nexus 4 General] dmitrygr:
Well the process he mentioned is some sort of a binary patch on the final sepolicy file

if he or anyone else specified that actual changes in the policy in its text form, it would be much easier to make a version
[Nexus 4 General] Rock-86:
Thank you! I will try now. :)

EDIT: It's worklng now! :) :) :)
[Nexus 4 General] djsubterrain:
I think he just followed the guide here:

http://xdaforums.com/apps/supersu/wip-android-6-0-marshmellow-t3219344
[Nexus 4 General] Rollies77:
Aaaand it works! Thank you!
[Nexus 4 General] dmitrygr:
Hence the problem. That code uses some tool called "supolicy" to modify the binary compiled selinux policy file. There is *NO* way to know what that tool did to the policy and what it changed. This is potentially rather not safe (since you do not know what exactly you just allowed to happen on your device), and I'd never distribute under my name a boot image with a selinux policy somehow modified in such a way that I could not inspect. If we knew what the changes were (in text source form), I could apply them to the source selinux policies and rebuild the image and we'd all have peace of mind and be able to inspect the source too.
[Nexus 4 General] tthmatt:
Does anyone have issues with the gapps. I cannot add goigke account.
[Nexus 4 General] djsubterrain:
Which Gapps package are you using? The one that seems to work best at the moment is the benzo Gapps package:

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

---------- Post added at 10:16 AM ---------- Previous post was at 10:14 AM ----------

[MENTION=631273]Chainfire[/MENTION] any chance you could throw some light on this for us?
[Nexus 4 General] Rock-86:
Home button is not working?
[Nexus 4 General] tthmatt:
I am using the not modded one.

What's the difference
[Nexus 4 General] dmitrygr:
Just to clarify, I was not accusing [MENTION=631273]Chainfire[/MENTION] of being malicious, just saying that I will not put my name on a binary patch that I do not know the contents of. :)

You are welcome to run his tool on my boot.img and publish the results yourself. Go wild!
[Nexus 4 General] djsubterrain:
I know, it's fair enough, you do work for Google and one of the biggest features in Android 6 is the new security confirmations so it wouldn't be good for you to be seen giving advice that may not be "secure", we all understand that and we're certainly very grateful ;)

---------- Post added at 10:25 AM ---------- Previous post was at 10:22 AM ----------
[Nexus 4 General] Rock-86:
When I tap on Home button, nothing happened. Bug or issue becaue there was no Setup Wizard?
[Nexus 4 General] djsubterrain:
Mirrored the newest package :

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

md5

f3becda571d126c795dc8352d5526466
[Nexus 4 General] Rollies77:
Stock Marshmallow boot animation

bootanimation.zip
[Nexus 4 General] tthmatt:
New rom update?
[Nexus 4 General] djsubterrain:
Yes, with the boot image that should fix 3g problems
[Nexus 4 General] Rock-86:
Sync contacts is not working for me. I gave all Permisisons to Google Play Services and Contacts app, but no luck.
[Nexus 4 General] djsubterrain:
OK, I'm getting a weird bug running the latest from scratch, I'm getting no notifications, at all, even when installing my apps again from the Play Store. I granted the Google Play Services all the permissions it listed, also when I go into the Google entry in my accounts it shows my account but there's no sub-menu in there, when I tap on Google it does nothing even though it's letting me install apps from the Play Store. I'll try a restart and see what it does.
[Nexus 4 General] dmitrygr:
I am not an apps guy so i cannot help much, but what i did:

flash rom

erase userdata + cache

flash gapps

ignoring all errors that pop up, give all permissions to ALL apps on device

reboot

works now

---------- Post added at 10:47 AM ---------- Previous post was at 10:46 AM ----------

latest image i uploaded did not modify system partition at all (check it)

it was only an addition of a few more selinux permissions for netmgrd
[Nexus 4 General] Tmfz:
Gave google play services and google contact sync permissions and no more force closes and contacts sync just fine. Thanks!
[Nexus 4 General] Rock-86:
I noticed that I don't have notifications. And Home buitton and Quck Settings Menu are not working. I think that is something wrong with Gapps.

I will wipe cashe and data partitions and try.
[Nexus 4 General] djsubterrain:
I think we're basically just waiting on a well made Gapps package and we should be set, hopefully someone can post a new package for us soon.
[Nexus 4 General] sd3993:
You need to contact permission to 'Google contacts sync' :)
[Nexus 4 General] tthmatt:
Home button no working in V2
[Nexus 4 General] dmitrygr:
1. Works before Gapps & Works with Gapps for some => Gapps issue

2. V2 did not change system image at all (it is byte for byte the same)

:)
[Nexus 4 General] Rock-86:
I think that removing Setup Wizard APK causes Home Button Issues.

---------- Post added at 12:48 PM ---------- Previous post was at 12:09 PM ----------

I flashed gapps-600-base-20151008-1-signed.zip, I wiped data/cache and Setup Wizard stuck on "Checking connection"... :(
[Nexus 4 General] dmitrygr:
As everyone else said: use the benzo gapps, and install them only AFTER your first boot