yashsingh1/xdaforums huggingface dataset:
[Nexus 4 General] fuser1337:
You need root to remove, else just disable them.
[Nexus 4 General] nicobrazell:
I have root
[Nexus 4 General] fuser1337:
Can someone test these gapps?

http://xdaforums.com/showpost.php?p=63226314&postcount=1108
[Nexus 4 General] xof9999:
Hi,

I have installed ROM and Gapps on my Nexus 4. Everything works fine except for GPS and data. I have access to my french network (Bouygues), I can send SMS but it's not possible to enable data. Anyone with the same issue and perhaps a solution?

Thanks in advance...
[Nexus 4 General] vetzki:
for data: flash latest boot image from dimitry grinberg

for gps: maybe google location provider is missing
[Nexus 4 General] Dobromirr:
hey [MENTION=4948573]fuser1337[/MENTION] can your signature get any bigger?
[Nexus 4 General] Ruudvangoal:
Been going for a day now and everything is going fine except for location services, is there a solution to this yet?

GMaps - Works fine but when i hit my location nothing happens.

Uber - Crashes on start

Chrome - crashes when allowed to use my location.
[Nexus 4 General] bart.found:
LOL
[Nexus 4 General] de.ran:
are u using gmaps or what?

I have problem with pointing my location... :(
[Nexus 4 General] Davejb:
I just noticed location doesn't work on battery saving either, apps act like location is turned off.
[Nexus 4 General] xof9999:
Thanks, I'll try this...
[Nexus 4 General] timmylamoule:
Hey boys,

Glad to hear that our beloved N4 can get 6.0 ! :D

After a quick read on this post, can somebody told me what is not working ? gps (i need it 100% working..) ? data ?

Furthermore, can someone tell me the operation going from CM 12.1 to STOCK 6.0 ?

Cheers ! :laugh:
[Nexus 4 General] sd3993:
Location fix

push to /system/framework

Wifi/Network location works.

Apps like browser and chrome no longer crash.

Did not test gps. Please do the honors and report back :P

EDIT :- GPS works
[Nexus 4 General] sd3993:
Battery saver turns gps off forcefully even if you enable it manually and wifi/network location wasn't working.

So basically location was off.

See my post to fix network/wifi location
[Nexus 4 General] bultras:
It works! Thanks man.

There was only one glitch - back up account in Settings.
[Nexus 4 General] Davejb:
That did the trick! Thank you kind sir
[Nexus 4 General] nitin.chobhe:
Push using adb?
[Nexus 4 General] fuser1337:
What changes did you make?
[Nexus 4 General] Ruudvangoal:
What do you mean with pushing it :)? sorry it's my first time using a custom rom so i am not familiar with all the terms yet.
[Nexus 4 General] ChristiaanP:
Now on tap doesn't work... Fix google app?
[Nexus 4 General] sd3993:
connect device via usb and make sure usb debugging is on(default)

then type these into terminal

adb root

adb remount

adb push framework-res.apk /system/framework

no need to set permissions already set to 755

If this is too complicated use an app like Root Browser to copy paste the file into system/framework and set permissions to rw-r--r--

---------- Post added at 05:38 PM ---------- Previous post was at 05:36 PM ----------

https://github.com/exdroid/frameworks_base/commit/a52167fe461c1ba8849d1efa2a85e528e41d3023

---------- Post added at 05:40 PM ---------- Previous post was at 05:38 PM ----------

Nothing to fix. flash proper gapps package.

search in the thread there are plenty.
[Nexus 4 General] Ruudvangoal:
Nope not complicated at all in fact i tried adb push right away but i kept getting a read only system error until you posted the root command ;P.

Uber and Maps now work perfectly thanks a lot!
[Nexus 4 General] sd3993:
Glad i could be of help :)
[Nexus 4 General] Ruudvangoal:
Can i install another gapps package over the one i already have or do i need flash the whole thing and start all over again?

Gone back few pages and it seems that the benzo gapps have on tap working maybe try that, and if someone else have a better one please share it.
[Nexus 4 General] biku123:
every thing is working. now on tap, contact sync,root,data,gps. daily driver rom
[Nexus 4 General] Ruudvangoal:
Can you post a download link for the gapps package you're using please :)?
[Nexus 4 General] biku123:
https://www.androidfilehost.com/?fid=24052804347832897
[Nexus 4 General] Ruudvangoal:
Cheers, can this overwrite an existing one or do i have to do a clean install?
[Nexus 4 General] biku123:
clean install
[Nexus 4 General] Ruudvangoal:
Alright thanks a lot but one last question, how did you get the contacts to work? i've been going back in this thread and everyone using the benzo gapps was reporting that contacts sync wasn't working.
[Nexus 4 General] biku123:
go to system/app/googlecontactsyncadapter and delete google contact sync adapter.apk and reboot then copy any googlecontact sync adapter.apk from 5.1.1 Gapps package to same folder and give correct permission and reboot. then contact will sync
[Nexus 4 General] Ruudvangoal:
aha the one i am using atm has it working so maybe ill try the adapter from that zip with benzo's gapps, thanks you again :).
[Nexus 4 General] tabriis:
I flash the ROM and it all went fine except the browser can not reach internal storage.

The thing is, I am in China that I need to download a specific proxy apk before using google stuff,

but everytime I hit download link, the browser shows 'USB storage unavailable',

I checked the permission and made sure the browser had all the permissions including storage,

but without luck, the problem persists, I try other download links, still the same.

Anyone had an idea what had gone wrong with my N4?

I use a custom recovery by NRT and wiped everything before flash.

Before installing the M ROM, the 5.1.1 stock ROM works perfectly fine with storage.

Thanks in advance.

update: Yay!! I found the solution:

In terminal emulator or adb shell enter below:

su

restorecon -FR /data/media/0/

works like a charm!

all credit goes to [MENTION=2607037]hyelton[/MENTION]

http://xdaforums.com/showpost.php?p=59643053&postcount=2
[Nexus 4 General] djsubterrain:
Don't need to do that at all, you just need to make sure all the permissions are set properly. A lot of people seem to be missing the fact that all your apps in Marshmallow now have individual permissions, all you need to do is:

Go into Settings>Apps and then set the permissions properly for each one.
[Nexus 4 General] tthmatt:
Is there a twrp flashable zip for this ROM?
[Nexus 4 General] biku123:
ok.thanks
[Nexus 4 General] zankyw:
I guess the ideal place for it would be in the first post of this thread, the same questions are being asked dozens of times.

Let's hope that [MENTION=4550998]cybervibin[/MENTION] can do it.

Wow, I guess that we need to thank some amazing mod for that.
[Nexus 4 General] bassbox:
What's by the way currently the easiest way to backup my stuff on nonrooted locked stock 5.1.1 (to restore it later on 6.0 rom)? Helium Backup?
[Nexus 4 General] Ruudvangoal:
The gapps link you posted has the quick settings and home button broken :\.
[Nexus 4 General] grinandbearit:
hello is there a way to fix gps without wipe and installing benzo gapps? everthing works perfect here except gps and i dont want to set up the whole phone again.
[Nexus 4 General] xof9999:
You have the answer page 44 and 45. It worked for me.
[Nexus 4 General] de.ran:
u can see a few previous posts.

there is a patched framework base which fixes location/gps
[Nexus 4 General] vetzki:
add google location provider to framework-res (or copy the apk from http://xdaforums.com/showpost.php?p=63229334&postcount=434 to device). No need for setting device up again
[Nexus 4 General] biku123:
first flash rom let it boot then flash gapps. I dont get any problem
[Nexus 4 General] Ruudvangoal:
It's exactly what i did installed the system then booted normally then turned it off and installed gapps then turned it on again and home button\quick settings aren't working.

I'll try to wipe everything and have another go.
[Nexus 4 General] kaiser_tytnii:
It works like a charm! Thank you so much!

---------- Post added at 10:25 AM ---------- Previous post was at 10:24 AM ----------

Download it and move it via twnp recovery using their advanced menu file manager if you are rooted
[Nexus 4 General] grinandbearit:
thx a lot seems like im blind :o

after i pushed the file and robooted gps works like a charm :)
[Nexus 4 General] vetzki:
or via adb:

adb root

adb remount

adb push Path_to_dl_framework-res.apk /system/framework/framework-res.apk

adb reboot
[Nexus 4 General] Ruudvangoal:
Yea i appreciate the help guys someone already posted the solution in the previous page :).

Right now i have another issue as when i use the slim one on tap doesn't work and when i use benzo an issue occurs with the home button and quick settings.

Are you all using the benzo gapps here or is there something more complete? right now i am flashing again and trying my luck hopefully it works this time because this is getting boring :p.
[Nexus 4 General] girish_7:
Hey guys, I like to start off by saying great work to everyone who has contributed to making a ROM so fast for the Nexus 4.

I have a stock 5.1.1 Nexus 4 and I want to load this custom ROM. This will be the first time I'm trying out a custom ROM as I always used stock ROMs. I have an important question before going ahead and installing it.

I have a banking app (Barclays) which I use and it doesn't run on rooted devices. So my question is, can you install a custom ROM without rooting the device? Is there any way around that so I can use the app and have this ROM? Thanks in advance.
[Nexus 4 General] Davejb:
I'm using the latest Benzo from here http://files.oceighty.co/gapps/
[Nexus 4 General] Ruudvangoal:
The one that was linked to me is benzo-gapps-M-20151007-modded+.

EDIT: Again home button is broken, i'll try to download the 2015008 one and see how it goes.
[Nexus 4 General] nicobrazell:
Now on tap not working. How to make this work?
[Nexus 4 General] vetzki:
try to delete setupwizard apk via adb after booting and reboot, maybe it helps (not needed anyway)

(for me gapps working fine after deleting the app, except of contact sync, but I sync them vie davdroid so not needed for me. I took the one from the 6.0 aosp thread )
[Nexus 4 General] Davejb:
benzo-gapps-M-20151008-signed.zip worked perfectly for me, contacts are syncing, On Tap worked as well, no home button issues.
[Nexus 4 General] Ruudvangoal:
what is that file directory and what command should i use? adb delete?
[Nexus 4 General] telenut:
How to push it? I need root?

adb push framework-res.apk /system/framework/framework-res.apk

failed to copy 'framework-res.apk' to '/system/framework/framework-res.apk': Read-only file system

edit: gave myself root and used root explorer to replace the framework-res.apk file.... bad idea :)

worked wit these commands: (had to use search better...)

adb root

adb remount

adb push framework-res.apk /system/framework
[Nexus 4 General] nicobrazell:
Can I flash this even when I already flashed gapps(not benzo) earlier?
[Nexus 4 General] vetzki:
first, try the gapps mentioned above (maybe problem is soved then)

if not, delete setupwizard via adb:

adb root

adb shell

(you should have a "root" [# not $] shell )

mount -wo remount /system

cd /system/priv-app

rm -rf SetupWizard

(optional to clean up remaining files from data, not needed:)

cd /data/dalvik-cache

find . -iname '*setupwizard*'

delete files with rm

cd /data/data

rm -rf com.google.setupwizard (dont remember the exact name, is a folder with setupwizard in name)

reboot device
[Nexus 4 General] Ruudvangoal:
I'll try the updated gapps first just to be on the safe side, this will take around an hour because thanks to my brilliant ISP they choose the perfect day to have a massive outage and my download speed is currently close to dial-up connections :D.
[Nexus 4 General] tthmatt:
Is your language in Google settings US English
[Nexus 4 General] nicobrazell:
Yes. And if I toggle now on tap in google app setting, it show's fc
[Nexus 4 General] ReneX10:
girish_7 ....Yes
[Nexus 4 General] Davejb:
I've noticed a new issue since getting the GPS fixed, wifi has become very slow and unstable, randomly disconnecting.

[Edit #2] Traced to bluetooth, if it's on and not connected to anything my wifi performance is horrible, turn BT off and it performs as expected
[Nexus 4 General] Ruudvangoal:
Installed the latest gapps and now i am stuck at checking connection when i first power up my device, this is unreal.
[Nexus 4 General] mymeatb18:
There is a Bluetooth location setting too. In locations hit the the menu button then scanning.
[Nexus 4 General] Davejb:
I have no menu button in locations, were you meaning mode perhaps? If so that doesn't help, if I select GPS only, wifi is still garbage with BT turned on. Also poor if location is off.
[Nexus 4 General] mymeatb18:
Settings>location>3dot menu>scanning
[Nexus 4 General] Davejb:
there is no 3 dot menu there
[Nexus 4 General] djsubterrain:
Read the earlier posts in the thread, these are the best Gapps to try so far:

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

To be honest, I wish the OP would come back and edit his original thread to give some clarification to people arriving late in the history of this.
[Nexus 4 General] Ruudvangoal:
I don't think the connection thing has anything to do with the gapps tbh, it seems like a different problem that happens with the nexus 4, i found a solution over here

http://xdaforums.com/nexus-4/help/nexus-4-stuck-checking-connection-t3188070

But this thing does not support 6.0 yet so i might have to flash again manually.

EDIT: Oh and btw i was using these and everything works fine on it except for google now on tap.
[Nexus 4 General] mymeatb18:
I'm basing this off of a n5. You don't see this
[Nexus 4 General] Davejb:
Nope, don't have the 3 dot menu in mine, maybe due to hardware differences?
[Nexus 4 General] Ruudvangoal:
So far

gapps-mm = on tap not working

modified benzo = no home button

latest benzo = stuck on checking connection

slim = no on tap

Trying again a clean install with the latest benzo again since a lot of people are reporting it's working, but i am that close to reverting back to 5.1.1 i miss the whatsapp noise lol :D.
[Nexus 4 General] mmonaghan34:
Not sure if this has already been answered, if so, sorry.

The reason why you're getting "/system/bin/sh: adb: not found" is because you are trying to run adb from a shell on the device.

To get root for things like adb push, etc. You have to do adb root instead of adb shell and then su. After running adb root, if you've not already done so grant root to adb then you'll have full root through adb for any command you run, adb shell should also be root by default
[Nexus 4 General] Ruudvangoal:
I have no clue what i am going wrong.

- Wiped everything with twrp

- went into fastboot

- used adb commands to flash boot.img, system.img, normal_modem.img

- booted the phone and everything worked fine including wifi and 3g.

- Turned off phone

- opened recovery mode

- benzo-gapps-M-20151008-signed.zip on the phone directory (usually download folder)

- installed the zip using twrp

- rebooted the phone

- got swarmed by install wizard was forced to stop

- turned off the phone

- wiped data, cache from twrp

- started the phone again

- selected language

- selected my wifi and entered the password

- stuck in checking connection forever

Any ideas?
[Nexus 4 General] psychology:
Convert Gnow to a system app, it made on tap work for me. Was suggested in marshmallow aosp thread in android development by another user.
[Nexus 4 General] Ruudvangoal:
Is this done through the phone or other commands?
[Nexus 4 General] djsubterrain:
Yes, install the gapps I already told you to install, we've been doing this for the last day and went through all this or just ignore me, I don't care.

OpenGapps, Slimgapps and BenzoGapps don't have the correct permissions out of the box, the mm-gapps package does, that's why it's posted in this thread and has 915 downloads so far:

http://xdaforums.com/nexus-4/development/rom-6-0-android-marshmallow-pure-aosp-t3220900
[Nexus 4 General] vetzki:
as said before, delete the setupwizard apk whlle giving fc's via adb (or try now, should also work)
[Nexus 4 General] Ruudvangoal:
I have never ignored you i already told you i installed it earlier and it broke the now on tap service :).
[Nexus 4 General] nitin.chobhe:
Thanks man! I got it now :good:
[Nexus 4 General] psychology:
I did it through my phone using root explorer.
[Nexus 4 General] sd3993:
The perks of reading and searching :D
[Nexus 4 General] Ruudvangoal:
I am guessing it should work if i push it through adb?
[Nexus 4 General] scudos:
I just installed this last night (after quite a bit of messing around) and I found that there were quite a few issues (bugs, and a fair number of them). To be expected I guess since it's so new but the one thing I really wanted to determine is if there was increased battery life.

What I found was that the battery was worse with this 'M' - much worse. On my Mom's old Nexus 5, after the M update, battery life was dramatically increased especially on stand-by (ideal for her) - going from maybe two days to more then 8...... :D

I was hoping for the same with this port of M to the Nexus 4 but what I saw was the opposite. It ate the battery in my phone at a pretty good clip. Considerably faster then Lollipop.
[Nexus 4 General] sd3993:
Android M focuses on increasing standby battery, not active use battery life :)
[Nexus 4 General] Tmfz:
Edit: After testing a little more making gnow a system app is not needed. It just needs it's permissions turned on.
[Nexus 4 General] djsubterrain:
??????

I never said I had any problem??
[Nexus 4 General] Tmfz:
Was just using your post as a reference for the gapps that seem to be working the best and the fix I used to get on tap working with them. Post wasn't directed solely at you, apologies for any confusion.
[Nexus 4 General] ale29-09:
Ehy guys, I made a TWRP backup of system and boot. All working, including GPS and 3G, except for Now on Tap. Prerooted.

https://drive.google.com/file/d/0BxhhI44GE2sJM1hOVmlIeUVpTkk/view?usp=docslist_api

XT1092 on Tapatalk
[Nexus 4 General] scudos:
I get that - I went to bed with the battery @ 90% and woke up with it at 38%

What I'm getting at is that I didn't see any of the battery savings that I saw with M on the Nexus 5 on the Nexus 4.

In fact, it was quite the opposite - this build of M on the Nexus 4 used a lot more battery power then Lollipop did.

I wonder if it needs more time to mature or if the power savings just don't work with the Nexus 4 ?
[Nexus 4 General] chealsearock:
I've got everything but Contact Sync working. Now on Tap, 3G, GPS, etc all work. Used benzo gapps 20151007 modded.zip and it's all good.
[Nexus 4 General] vampire36:
For now on tap just install google app...use titatinum backup pro make it system app...it will be stuck in processing..after 5 min reboot phone...voila tap on now will be working :)
[Nexus 4 General] psychology:
Yes
[Nexus 4 General] sd3993:
Well yes mako still needs quite a few changes here and there for it to work better.

But judging by the current state of things(roms and gapps) i wouldn't be surprised if things go awry.
[Nexus 4 General] Dryblow:
Is it based on first aosp released?
[Nexus 4 General] djsubterrain:
You wouldn't be surprised or you would?
[Nexus 4 General] scudos:
I think it's encouraging that people have started in on making Marshmallow work on Nexus 4 even if it's not quite up to snuff. I think I was spoiled by installing it on my Mom's old (newer!) Nexus 5 yesterday. When I saw 8 days (!!) of stand-by time (up 6 days from what it was) I was shocked.

For lower usage phone users where stand-by time is the majority of it's usage - that's unreal. Mom has complained for years about the need to charge it every day and when I did the upgrade and she saw 8 days (!!) of stand-by time she went nuts. It was an answer to prayer for her as she really is only a cell phone carrier (pardon the pun) as opposed to a cell-phone user :laugh:

I'm in much the same boat, so I figured installing Marshmallow would turn my Nexus 4 into the stand-by king of phones. No such luck :( In fact, the battery life looked worse then on Lollipop :eek:
[Nexus 4 General] Davejb:
My battery seems to be doing well, will know for sure in a couple days. Still can't find a fix for the BlueTooth causing wifi issues.
[Nexus 4 General] djsubterrain:
I think a lot of that might be kernel based, there are a lot of kernels for the Nexus 4 that will drop the usage down to one core when not in use, a custom kernel will probably do wonders for Marshmallow.
[Nexus 4 General] Ruudvangoal:
Didn't work, i even got Root Explorer and i moved the base.apk from data to system/apps and gave it the permissions like a guide i found while searching stated then i rebooted and went to enable on tap and again google service crashed.

So after 5-6 hours flashing different gapps folders i am back to where i was this morning everything except on tap working :D.
[Nexus 4 General] scudos:
Ahh.....I saw a post somewhere in my Marshmallow adventure last night about whether the release had the proper Kernel and as I recall the answer was that it was forthcoming...perhaps the release didn't come with the power-saving Kernel?
[Nexus 4 General] ale29-09:
Second :)

XT1092 on Tapatalk
[Nexus 4 General] ariesgodofwar:
Is everyone having issues using the latest TWRP version, and doing a Factory wipe in TWRP before flashing Gapps? I have everything working (except Face Unlock, which has always been an AOSP issue), and am running the rooted kernel. All I did was install the system.img, boot.img, and modified LTE radio image, and then flashed the modified Benzo Gapps after booting the first time. After doing that EVERY issue I have come across has been the result of the fact the necessary permissions have not been given to the apps themselves, as well as their System framework counterparts. For those with Contact Sync issues, go into Apps and hit the 3 dot menu, and select "Show System". Make sure that both Contacts and Contacts Storage have permissions granted. I know neither had any when I went in the first time. If you enable one (Contacts) but not the other (Contacts Storage), which is in System, it will not sync, and will likely not show in you Sync list under Account either.

I personally have not seen any other issue not solved by following the above. Make sure you install from a clean wipe. On Tap Works just fine following the above (assuming you give Google all of the permissions)

btw, Logcats can be extremely helpful in troubleshooting some of the issues folks are having :D
[Nexus 4 General] Ruudvangoal:
Do you have Google Now as a system app or is it just working for you normally?
[Nexus 4 General] scudos:
I'd love to hear your findings on both of these issues once you know more. I guess I'm still hoping that in time we'll see a 'perfect' MM release complete with month-long stand-by times :D;)
[Nexus 4 General] ariesgodofwar:
System, but I never moved it. It should install as a system app from the Gapps install, and there should be no need to do anything with it.
[Nexus 4 General] Ruudvangoal:
Yea and that's the problem, i can never get the benzo pack to work and the working one for me doesn't have it as a system app so on tap doesn't work :(.
[Nexus 4 General] ariesgodofwar:
What do you mean when you say you can't get the modded Benzo gapps to work? What is not working about it for you?
[Nexus 4 General] Ruudvangoal:
Well i've done about 5-6 clean installs and they all start spamming installwizard crash when i boot so to fix it i clear cache + data and when i boot i get stuck at checking connection and when someone provided me with an alternate way to get rid of that error by deleting installwizard.apk it worked but play store kept crashing\minimzing every time i tried to open it.

I literally spent the past 6 hours trying to get different versions of benzo gapps to work unsuccessfully the only one that works well for me is the gapps-mm-fix.zip and that has the on tap problem.
[Nexus 4 General] psychology:
Strange, I didn't have to change permissions as they were already the same as all the other system apps already...
[Nexus 4 General] girish_7:
Anyone?