yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] princearic:
Contacts not syncing is usually because you need to flash at least the stock version of gapps. Using any smaller packages will keep giving you that frustrating syncing issue.
[Nexus 4 Android Development] iason747:
My dads Nexus 4 has been running with this rom for quite some months now without any problems. Yesterday tho he wasn't able to get mobile data from it's sim card, he was connected (strong signal) and he could make calls, send SMS etc but he can't get a internet connection. The phone will just not get some sort of 3g etc.
[Nexus 4 Android Development] fireillusion:
Happened to me a couple of times. A restart fixes it, at least temporarily
[Nexus 4 Android Development] skhell:
Back again with Nougat.

Although not ideal, the only solution that I found to fix the contacts sync, was to dirty flashing Nitrogen OS over Pure Nexus Rom. It seems to be working ok, let's see if the dirty flash doesn't mess too many things!
[Nexus 4 Android Development] iason747:
Uhh I restarted the phone many times but it will never get a data connection :/
[Nexus 4 Android Development] nitin.chobhe:
Looks like aging SIM or phone. For a quick test, you can flash any other ROM (carbon may be?) and check if you get data.

Nitin
[Nexus 4 Android Development] iason747:
After many reboots and reseating the sim it works again?
[Nexus 4 Android Development] mrk2815:
so does that mean you will have final build of mako and work on a bring up for a 9.0 if possible. just wondering.
[Nexus 4 Android Development] hk.happy:
Installing oreo on dad's Nexus after a long time. All these months it has been running on nitrogen os nougat build. Quick question : do i have to install the zero gapps mentioned in the op or can i install the regular opengapps 8.1 arm version ?
[Nexus 4 Android Development] nitin.chobhe:
Open gapps are bigger is size and cause problems. So it is necessary to use the smaller package mentioned in OP. You can try pico from opengapps but if you have issues use the one linked in OP.

Nitin
[Nexus 4 Android Development] mrk2815:
nitin, i just saw that zix has brought up nitrogen os p for 1plus 3t.i am wondering are you going to do the same for nexus 4, nexus 6 and pixel 2xl.
[Nexus 4 Android Development] nitin.chobhe:
I'm trying to do that but there is no breakthrough yet. Need to spend some more time and need help from the experts.

Nitin
[Nexus 4 Android Development] mrk2815:
any way that i can help test builds. i will gladly test on the nexus 4 an the nexus 6.the pixel 2xl.will be my business phone so cant test there for android 9 nitrogen builds.
[Nexus 4 Android Development] nitin.chobhe:
Presently not needed but I'll let you know if I need your help. Thanks!

Nitin
[Nexus 4 Android Development] nitin.chobhe:
Finally got some breakthrough :good: Thanks to the awesome developers out there!

Nothing works as of now. Need to spend more time to fix the things.

No ETAs, no request for the build please :p

Nitin
[Nexus 4 Android Development] MaximilianoRmrz:
Stuck on boot loop, is there any way to fix this ?
[Nexus 4 Android Development] wallefclima:
I almost cried with such happiness to see these prints kkkk. Android Pie 9.0 is closer than I imagined for Nexus 4. My congratulations Nitin :laugh::good:
[Nexus 4 Android Development] nitin.chobhe:
Follow the OP.

Nitin
[Nexus 4 Android Development] MaximilianoRmrz:
Sorry I should have been more clear, I've been using the rom for 2 months already with 0 issues and since yesterday I turned it off and when I turn on the phone again, I experience a boot loop, should I do another clean install?

I wiped the cache and still couldn't get rid off the boot loop.
[Nexus 4 Android Development] mrk2815:
thanks nitin, cant wait to flash when you have a working build of android 9 pie for nexus 4 mako. tears of joy waiting for a flashable build.
[Nexus 4 Android Development] nitin.chobhe:
Just flash the ROM zip again and see if it helps. If it doesn't, do a clean flash.

Nitin
[Nexus 4 Android Development] PVL_93_RU:
It's crazy that our beloved Nexus 4 started as early as Android 4.1 and we're now almost on Android 9.0

I'm very happy to see that the development for this particular phone, despite it being almost 6 years old now (5 in my case, actually), is still active

Nitin, you and whoever helped you out in bringing the latest version of Android to this device, are wizards
[Nexus 4 Android Development] ddaggebi:
....like, what kind of magic is this???

Thanks, nitin! I was thinking that I should let go of my n4. Looks like I'll keep this one for another year:laugh:

Super thanks!!
[Nexus 4 Android Development] L3R4F:
Hello guys. I'm really happy to see that the development is still ongoing on our beloved Nexus 4. Keep up the good work Nitin !

I've been running 8.1 for a few weeks now but my phone started to randomly shut down, it happened 3 or 4 times already in the last few days. According to some threads in the forum, it is more likely a freeze rather than a shutdown because I need to press the power button for like 10 seconds in order to turn the smartphone on. Did someone experience this kind of problem recently?

I will try to clean flash the phone this week end in order to check if it is a software or hardware related issue.

Cheers
[Nexus 4 Android Development] mrk2815:
keep on coming to nitins builds.no one can keep nexus 4 alive longer then nitin.i dont know what magic he uses but his the magician in keeping the long term mako alive as long as possible.rocking 8.1 on the device
[Nexus 4 Android Development] nitin.chobhe:
Thanks!

To be honest, all the real work (on device trees) is done by Ziyan and LOS developer Voron00. I'm just using their base and making few changes. So hats off to them :good:

Nitin
[Nexus 4 Android Development] Spluwicho:
Nitin any progress on android 9 ?
[Nexus 4 Android Development] nitin.chobhe:
Yes, good progress but still need to fix some things

Nitin
[Nexus 4 Android Development] SnapShot86:
8.1 updates? or last... final 8.1 build?
[Nexus 4 Android Development] nitin.chobhe:
No more 8.1 updates. The one in OP is final one.

Nitin
[Nexus 4 Android Development] SnapShot86:
but not fix this.. maybe update or patch
[Nexus 4 Android Development] mrk2815:
nitin, question for you if you don't mind, will the nitrogen os 8.1 builds continue to get updates wwhile you work on a bring up for nitrogen os 9.0 for nexus 4 mako. what is the road map for the builds going forward.not asking for any ETA's just wanting to figure out your road map for builds going forward.
[Nexus 4 Android Development] fireillusion:
Already answered.

Two posts above #4862
[Nexus 4 Android Development] mrk2815:
thanks got it . will just patiently wait o se what nitin will be cooking in his development kitchens!!!
[Nexus 4 Android Development] tinynja98:
Hello, I'm trying to install the SINAI N4 kernel on top of NitrogenOS, but I get stuck on the Google screen right before the system boots. I have tried installing the kernel multiple times (ROM, then GApps, then Kernel), each time making sure to wipe everything (and no errors occured) except internal storage, but the same problem happens everytime (I get suck on the Google screen when I reboot). I have TWRP 3.1.2-0 installed and all the partitions are formatted as ext4, though when I press on "format data" I get this error:

Unable to wipe '/data' -- unknown file system 'auto'
Unable to format to remove encryption

I don't know if this is related? I do not get any error during the installation. Any help would be very appreciated!

Also, here's a log of an installation of NitrogenOS (2018-08-07), then OpenGApps Aroma (2018-08-21) and then SINAI N4 AOSP (2018-08-16).

P.S. This is a repost from the SINAI N4 thread as was suggested to me by a guy there.
[Nexus 4 Android Development] gc2712:
Have a look at post #3 at http://en.miui.com/forum.php?mod=viewthread&tid=2059785&mobile=2 and see if those instructions can solve the problem for you
[Nexus 4 Android Development] nitin.chobhe:
I see in the log that you are trying to flash "open_gapps-arm-8.1-aroma-20180821.zip" which is of the size 983 MB :eek:

I:operation_start: 'Flashing'
Installing zip file '/sdcard/Zen/ROMs/open_gapps-arm-8.1-aroma-20180821.zip'
Checking for Digest file...

How about following instructions in OP, boot the ROM first and then try and flash the kernel?

Nitin
[Nexus 4 Android Development] sudokamikaze:
Please, report kernel related problems in proper thread. Thanks :)
[Nexus 4 Android Development] tinynja98:
I had already tried to follow the instructions in OP, but I figured I'd try again as you suggested, but I still get the same exact problem as soon as I install the kernel. Here's exactly what I did:

- Wipe 'Dalvik/ART Cache', 'System', 'Data' and 'Cache' using TWRP 3.2.3-0

- Install NitrogenOS Oreo (2018-08-07), then GApps Zero by GZR Team (2018-06-28), then Magisk 16.7

- Boot successfully into system

- Reboot to recovery and install SINAI N4 (2018-08-16)

- Reboot and get stuck on the Google screen

Note: I know the Aroma GApps are not what was suggested by nitin but I like using it because I get to choose exactly which apps (especially face unlock) I want (and remove some if it tells me there is not enough storage space on system partition). I feel too many things are missing when using a Zero/Pico/Whatever GApps.
[Nexus 4 Android Development] SkyDX:
I installed the ROM successfully on my Mako and it works fine in itself but the GApps Zero don't work. I constantly get Google Play Services or Pixel Services stopped working errors. Any fix?
[Nexus 4 Android Development] cqloveqc:
Need to change to pico, and there is a compromise between rom and google service.

Because we can not flash larger gapps.
[Nexus 4 Android Development] SkyDX:
Ah I see, so these ones? GZR-GaPPs-arm32REv1-Nano-8.1-20180709.zip

I don't find any with Pico.
[Nexus 4 Android Development] mrk2815:
how about update twrp to 3.2.3 and then attempt this process. again
[Nexus 4 Android Development] DeadManInBlack:
Having an issue installing gapps, it seems to be thinking im on a lollipop SDK 22.

Done a clean install of 7th August OS then tried multiple gapps including Zero's all of which are expecting a higher sdk version.

Any help would be appreciated.

Using TWRP 3.2.3

*Edit all sorted must have been an issue with the OS zip I downloaded the first time

*Edit 2 sadly still having the random WiFi disconnects hopefully 9.0 will sort that issue
[Nexus 4 Android Development] agomez84:
Hi guys !

I have this small problem with incomming calls, it shows a black screen with status bar where I can pull it down and answer the call but the dialer remains hidden for some reason until I answer or the call is dropped
[Nexus 4 Android Development] TundraLK520:
When you answer the call, does the screen go blank irrespective of the distance? If yes then check your proximity sensor.
[Nexus 4 Android Development] agomez84:
No, it doesn't go fully blank, it shows the status bar on the top and instead of showing dialer app it only shows a black screen, then if the call is dropped you can see the dialer for a brief moment before it closes itself.
[Nexus 4 Android Development] nitin.chobhe:
Clean flash just the ROM and make a call. No one else is getting this error.

Nitin
[Nexus 4 Android Development] agomez84:
It was already a clean flash
[Nexus 4 Android Development] agomez84:
Ok nevermind.. It was actually the proximity sensor, in previous versions of the phone app it still showed the dialer but now for some reason it doesn't

PD: touch was replaced a while ago and proximity sensor always thinks there is something near unless I press the top left of the screen. If any of you know how to fix this I would appreciate it.

Thanks guys !
[Nexus 4 Android Development] nitin.chobhe:
Good that you found out reason for the error.

Nitin
[Nexus 4 Android Development] mrk2815:
nitin, i did se that on nexus 6 nitrogen you have a build out for android pie, .how close are you to having a pie build out for the nexus 4 mako for some of us to flash .just wondering.
[Nexus 4 Android Development] nitin.chobhe:
Nexus 4 is having issues with audio and calls. Rest of the things like Mobile data, WiFi, BT, Camera (pictures) are working . I'm unable to spend much time till this weekend. May be some luck in coming weeks :fingers-crossed:

Nitin
[Nexus 4 Android Development] mrk2815:
nitin, take all the time.we want to see a great rom out of the nexus 4 mako for android pie.i will patiently wait.at least i know what works and what needs work for a great bring up of android pie for nexus 4 mako.
[Nexus 4 Android Development] cqloveqc:
As what I have tried, nano not working, especially first time, you can use open gapps pick, after that, uninstall some system app, after that, you can use nano, but not the first time.
[Nexus 4 Android Development] MAX_hey:
So, one handed mode are included?

Thanks.
[Nexus 4 Android Development] aweber1nj:
Sorry, I did search, but it's 489 pages! :)

Is anyone else having trouble with GPS getting a fix? I have location set to High (or tested Device Only), and Location Services is either "trembling" or it's not getting a fix at all.

Installed from latest build (via instructions in the OP) in late July 2018, so I think it's "current". Are there any pkgs I should overlay/add to fix this?

Thanks!
[Nexus 4 Android Development] cqloveqc:
Do you have dataplan ?

With dataplan, GPS should be quicker, if not, maybe need to wait for a few minutes, you can use a gps test app to check
[Nexus 4 Android Development] mrk2815:
nitin, just wondering.i did see that there is now an experimental build through zyian's bring up of 9.0 pie for nexus 4 mako. .Are you going to use zyian's bring up and add 9.0 nitrogen features to unlegacy android 9.
[Nexus 4 Android Development] aweber1nj:
Thank you for the reply.

I do have a dataplan. I have run a test app while driving that shows my current speed. It often goes from 65mph to 0mph and then back to 65mph (a few seconds in each). I have never seen this behavior in other phones.

ALSO: I realized after my post that this ROM may have actually been updated since my flashing it. I am on build "nitrogen_mako-8.1.0-OPM4.171019.021.R1". I looked at the changelog, but did not see anything related to GPS or location services changes.
[Nexus 4 Android Development] mrk2815:
any new break through with 9 pie nitrogen for nexus 4 mako. Just wondering.
[Nexus 4 Android Development] Nathan4923:
Does this ROM have LTE enabled by default ?
[Nexus 4 Android Development] nitin.chobhe:
No
[Nexus 4 Android Development] Nathan4923:
Are there any oreo ROMs with LTE enabled by default?
[Nexus 4 Android Development] bgoel4132:
nexus 4 supports only a few band of 4g for which there is a specific thread from there you can try different modem for LTE may be it could work.

https://xdaforums.com/nexus-4/general/ref-mako-modem-collection-t2087227/page1
[Nexus 4 Android Development] mrk2815:
while you work on nitrogen 9 pie, more updates to android 8.1 oreo.
[Nexus 4 Android Development] nitin.chobhe:
No, there won't be any Oreo builds for any of the devices that I maintain. I do not have time to maintain 2 versions.

Nitin
[Nexus 4 Android Development] mrk2815:
nitin, totally understand due to time that you cant maintain both oreo an pie roms for nitrogen.so patiently waiting to try out a pie nitrogen rom.till then i will just stick with zyian's pie test rom and when you have yours ready for mako i will test yours as well for any issues as well.
[Nexus 4 Android Development] hamed_forum:
my soft key some time not work how to can correct this if hardware problm?
[Nexus 4 Android Development] nitin.chobhe:
Yes, that's hardware problem.

Nitin
[Nexus 4 Android Development] jluspo:
mine too
[Nexus 4 Android Development] hamed_forum:
if hardware problm can change location naghtive bar?
[Nexus 4 Android Development] nitin.chobhe:
You can try... but that's not the purpose of this thread. Post in appropriate thread.

Nitin
[Nexus 4 Android Development] anonymous1:
Appreciate you're working on Android 9, but will the bootloop on clicking data saver be fixed?

:highfive:
[Nexus 4 Android Development] nitin.chobhe:
No, I deleted the Oreo source; so the build that is posted is the last Oreo build :(

Nitin
[Nexus 4 Android Development] ByBLiK:
New assemblies Nitrogen OS 8.1.0 will no longer be? (
[Nexus 4 Android Development] zagzag99:
No. Nitin just said so.

Wait patiently for a piece of pie.
[Nexus 4 Android Development] mrk2815:
alsos waiting for a piece of that pumpkin pie for the nexus 4 through nitrogen pie .
[Nexus 4 Android Development] wallefclima:
[MENTION=5044214]nitin.chobhe[/MENTION] your Nitrogen ROM Pie you are testing is giving the video playback problem breaking too?
[Nexus 4 Android Development] nitin.chobhe:
I didn't build nitrogen our for mako. I had built aosp and I didn't check video playback. I was busy is getting the basics to work.

Nitin
[Nexus 4 Android Development] Talik13:
I have a problem every time I try to install the Gapps. Even on other ROMs (and I've also tried multiple versions of Gapps), it always gives me:

"Error 4

Installation aborted."

Any idea what this means and how to fix it?
[Nexus 4 Android Development] nitin.chobhe:
Read OP and use the gapps linked in there.

Nitin
[Nexus 4 Android Development] Talik13:
I did use the link provided.

In fact in every instance I use the provided Gapps link and it always gives me "Status 4"

I've only gotten it to work once buy using Open Gapps... but then it gets stuck at "Starting Android" on the home screen.
[Nexus 4 Android Development] nitin.chobhe:
You are missing something (or doing something extra) then. It worked for me and everyone else.

Nitin
[Nexus 4 Android Development] OverRide604:
This is what i found online:

So, try updating TWRP (I guess you are using TWRP for this?) to the newest version. Make sure youre trying to install correct gapps package, I mean architecture, ARM, NOT ARM64 or X86. If the problem persist, try flashing original, stock ROM, as far I remember it is Android 5.1.1? And then try all this steps again. So just go back to basics - like when you bought the phone. Nothing changed, locked bootloader, not rooted etc.

Cheers.
[Nexus 4 Android Development] dwombat:
I'm getting the same "Status 4" error. This is on a "new" Nexus 4. NitrogenOS is working. I've tried the linked GZR Gapps Zero revs 0-4, all yield the same result. I'm using CWM instead of TWRP.

It installed with TWRP. The error seems to be that the GZR Gapps is not validating...so in CWM you have to toggle zip signature validation to off. Can I assume the zip is safe if the signature doesn't match?
[Nexus 4 Android Development] OverRide604:
GZR Apps? WTF are this? Install GApps. Official Google Apps, just zipped into one file. Use THIS, just google apps without anything else, just make sure you choose correct architecture, and version - stock, pico, nano etc, this one is up to you. Download zip file, copy to Internal storage of the phone and install from recovery.

Never had any problems with Open Gapps, and this one are recommended in 90% of ROM topics. Of course, you have to install them having some Android ROM already installed.

When I change ROM I go to recovery (TWRP) and install chosen ROM, gapps and magisk in one go. Then delete cache/dalvik, reboot, and enjoy. First boot up will take some time (even 15-20 minutes - PATIENCE). I do not recommend installing gapps packages with a ROM which already has some Google apps "pre-installed". You will have two copies of the same app, like Phone, Contacts and so on, just different versions... So it can be confusing...
[Nexus 4 Android Development] dwombat:
That's what I'm use to doing, OP provided a link, figured I'd look at it.

I'll just clear everything and reinstall...prefer to have signed stuff.
[Nexus 4 Android Development] nitin.chobhe:
Hold your horses man!

Do you know system partition size of mako? Do you think that I've added the GZR gapps link in OP without any tests or experience with opengapps?? :silly:

Nitin
[Nexus 4 Android Development] Akhilesh S V:
Looks like you're new to this thread
[Nexus 4 Android Development] OverRide604:
Sorry, can't check if OpenGapps works fine with mako and your rom. My first custom rom installation, I was using installation guide from the beginning of the topic, but I remember reinstalling NitrogenOS, and then installing OpenGapps on top and everything was working fine. So. what do you mean? Other packages of gapps won't work on mako then?? What are the differences?
[Nexus 4 Android Development] nitin.chobhe:
Again, it's not about ROM. It is about size of system partition of mako. Search any mako thread and you'll find the details.

Nitin
[Nexus 4 Android Development] msm2020:
Hello,

How i can add multiple user, it's like allow for single user only, or i have some issue with my phone and version

Please help
[Nexus 4 Android Development] msm2020:
searching in all reply but seems there is no answer for this question

multi user accounts seems not available with this room
[Nexus 4 Android Development] ViciousDiplomat:
Bluetooth is not working even in Lineage os

Do you know how to fix this?
[Nexus 4 Android Development] nitin.chobhe:
It works in Nitrogen OS.

Nitin
[Nexus 4 Android Development] mrk2815:
any new news on a 9 pie build on nexus 4 .just wondering.
[Nexus 4 Android Development] nitin.chobhe:
No good news... I'm having hard time with mako.

Waiting for Ziyan to push some changes :(

Nitin
[Nexus 4 Android Development] mrk2815:
nitin totally understand .will keep on looking on your threads from time to time.i have now devices on your roms. nexus 4, nexus 6 and hopefully down the road hte pixel 2xl.
[Nexus 4 Android Development] nitin.chobhe:
Finally some good news.... :D

Everything (even camera and video recording, NFC), works except:

1. Video playback - Edit - I think I found a solution for this :fingers-crossed:

Nitin
[Nexus 4 Android Development] Spike`:
:D

can't wait to test it
[Nexus 4 Android Development] L3R4F:
Sweet!
[Nexus 4 Android Development] HumbertoC:
AWESOME,as always:D
[Nexus 4 Android Development] nitin.chobhe:
Just an update - I'm unable to find a fix for media playback :(

Videos work fine when played using VLC player and YouTube works in browser. But native gallery app and YouTube app can not play videos :confused:

Nitin
[Nexus 4 Android Development] bgoel4132:
can we test the build.. may be some logs and report would help you identify the issue
[Nexus 4 Android Development] nitin.chobhe:
I've got the logs and everything. If I can not fix it tonight, tomorrow, I'll post the build as it is and then you guys can have a look at it.

Nitin
[Nexus 4 Android Development] aradeth07:
Thank you for your continuous amazing work.

I have a problem on my N4, camera can't focus. Both auto or manual focus isn't working. I tried other camera apps but still the same.

Do you have a suggestion? Is it a known bug or is it only on my side?
[Nexus 4 Android Development] nitin.chobhe:
If you are on last Oreo build, then it works just fine. Something to check at your end.

Nitin
[Nexus 4 Android Development] wizmart:
Nitin, what about twitch, I tried on legacy 9 without success..
[Nexus 4 Android Development] kurtschmeichel:
Hi Nitin. I just installed your rom on my Nexus for my son, so he can have a guitar tuner and metronome app. Installation went fine, no problems at all. No root. Configured without SIM, wifi only. The phone is smooth, and Play Store, Family Link and Camera work fine.

Big thanks :)
[Nexus 4 Android Development] aradeth07:
Yes i'm using the last build, flashed last week. Looks like my camera is dead.

Thank you for your answer.