yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] Italico:
Hi there!

Gonna try the ROM this evening, let's see how it goes!

Thanks in advance
[Nexus 4 Android Development] iainfm:
I had this problem with my N4 shortly after I got it. Turned out to be the screen protector I fitted covered up the proximity sensor (top left of screen, mirror image of where front camera is, on the N4, not sure about the N5).

You can try an app such as https://play.google.com/store/apps/details?id=com.tigermonster.proxfinder&hl=en_GB to check the sensor is working correctly.

---------- Post added at 10:06 AM ---------- Previous post was at 09:49 AM ----------

Hi,

Just wanted to thank the author for this great ROM. I've been stock android since I got my N4 at launch, and was really disappointed that it wasn't going to get the M release.

I flashed last night (from stock 5.1.1), and all good so far. Observations to date:-

I had to go through the apps (especially the google ones) to set permissions. eg Hangouts didn't have perms for SMS

My SMS messages weren't retained during the upgrade, but that may be due to the above.

The battery meter gave me a scare this morning - it dropped from 100% at 7.30am to 70% at 9.30am. The screen was the highest usage at about 6%, wifi disabled (I'm at work), location off. I think most of this was due to me using the phone more than usual (investigating, doing the permissions, rebooting etc), and since it's been dozing it's only dropped another percent or so in the last 40-odd minutes.

All-in-all I'm very happy with it. I love stock android, and I think this is the closest I'm going to get to it without upgrading to a new phone (Google: Make an N4 Mk2. Pleeeease!)

:)
[Nexus 4 Android Development] davide@10:
I love this ROM, but can anyone tell me a good kernel with dt2w support which works with this rom?
[Nexus 4 Android Development] prithvic:
Hey, As you are dealing with the camera, can you also have a look at this problem?(the link is to AOSP Issue Tracker)

The camera flashlight sync bug, that's on Nexus 4 since Camera 2.5 it's also on Camera 3.1 Some people say it's the Google Camera APK, some say its device drivers. If the issue is fixable then great but if not, can we get an idea to what is it related to?
[Nexus 4 Android Development] iainfm:
Wow, I was wondering why my camera shots were really dark recently!

Still early days, but it does seem that battery usage (or at least reporting of it) is a bit wrong on my N4. When dozing the drain is very light, but when using the device it drops rapidly.

I'm not convinced that it is being reported correctly though. The phone's stone cold, which wouldn't tally with high CPU usage, and it's always the screen that's top of the stats, using 2-6% or so. I've turned the brightness down sightly, but it's not made much difference.

Could it be that the M rom doesn't have the correct profile (or something) for the N4 battery?
[Nexus 4 Android Development] ganachoco:
I looked to support Google Camera 3, and I found something.

Google Camera 3 does not support 1080p video recoding on small(under 1080p resolution) screen devices. When recoding 1080p video, Google Camera 3 requires 1080p preview surface when recoding 1080p video, But nexus 4 can provide only 720p preview surface.

So 1080p video recoding is not supported on Nexus 4.

And someone says Android One device running MM also crash when try to switch video recoding mode.

It is not rom or hardware issue, it is a bug in Google Camera3 App.

When try to switch camera mode, I found another problem. When switch camera mode from picture to video, there is timeout error for preparing preview surface.

And I added small delay while switching camera mode, this issue disappeared.

And another issue is remained. Sometimes, camera orientation is set invalid in video preview. I have no idea in this case. :(

I performed CTS 6.0 releated camera features, and I can see that pass most of them. (some items are failed, but that items are not supported on nexus 4. so can ignore)

I recommend that don't use Google Camera 3. Most of new features in Google Camera 3 is depended on Android Camera Hal 3.2. but that is not supported by Nexus 4.
[Nexus 4 Android Development] ganachoco:
Some binary blobs are on git repository such as qcom proprietary.

I managed Android.mk only for Gapps and they are not manged on git repository, because it is updated very frequent.

And Android.mk is generated by my own script.
[Nexus 4 Android Development] ganachoco:
I can see same problem on Nexus 5 with Camera 3.1.
[Nexus 4 Android Development] jer_ying_fd:
Does anyone have any problems with locating the equaliser? I can't seem to find it in Play Music anymore :\
[Nexus 4 Android Development] dragos281993:
If you want the ultimate experience with a music player, forget a Play Music, and get PowerAmp from the the Play Store. It's cheap and probably one of the best things I spent my money on. And the equalizer is extremely amazing, no delays, etc. IMO it's simply the best one out there.
[Nexus 4 Android Development] alexandreantunez:
Some thoughts about 21/11 build:

- fast, smooth, stock feeling, in other words, stable.

- GPS on high accuracy isn't reliable sometimes. Switching to Battery Saving fixes it.

- Google Camera 3.1 keeps "force closing"

- No more issues at all

Outstanding work! [MENTION=6117313]ganachoco[/MENTION]
[Nexus 4 Android Development] MasterJam882:
Just set video resolution to 720p and it will work now!
[Nexus 4 Android Development] iainfm:
Quick update on my battery usage...

I had my N4 on a wireless charger last night, and got the sleep of death (first time with this rom, so a vast improvement). After rebooting battery life seems much more normal. No idea why though!
[Nexus 4 Android Development] xenyz:
I've been running this for a few weeks now, and I do get the sleep of death from time to time, maybe 4 or 5 times in the past month. No big surprise, it's a N4. :)

I've noticed something very interesting: Since Marshmallow, I only get the Sleep of Death shortly after removing the device from the charger.

I've since started using the device for a few minutes after unplugging the charger, not letting the screen time out. I'm interested to see if this method will solve the sleep of death issue in it's entirety (for me). There's really no scientific way to test it, but it's been over a week and I haven't had a SoD yet.
[Nexus 4 Android Development] srb2015:
I haven't had the SoD once since moving to this ROM, was on stock lollipop and getting it randomly a few times a month. Was just thinking this morning maybe we'd seen the last of it.
[Nexus 4 Android Development] :
Never had this "Sleep of Death" before on either the stock ROM from Google or this one. Could this be related to where it was bought from?
[Nexus 4 Android Development] iainfm:
I got my N4 direct from Google (UK) shortly after it was launched (second batch, IIRC). No SoD on Jelly Bean. I think it started on KK, but was fairly plagued by it on L.

[MENTION=3118524]xenyz[/MENTION] - do you mean wired or wireless charging? I've never linked my SoDs with charging. They happen randomly, but I've only just invested in a wireless charger.

Something else I've noticed with this rom - if I have the phone on something soft and bouncy, like a couch cushion or car seat, the screen comes on quite regularly as if small movements are waking it. If it's on something more solid (not moving, eg table) it doesn't.

Is this a feature I can turn off or calibrate somehow?
[Nexus 4 Android Development] :
That sounds like the Ambient Display "feature" of stock Marshmallow. Under the Settings app -> Display -> Ambient display

It's description is "Wake screen when you pick up device or receive notifications". I imagine it does detection based on all it's sensors so some movement on a couch or cushy surface may be enough to trigger the wake.
[Nexus 4 Android Development] mELIANTE:
It's the same as Moto X. My Nexus 4 doesn't behave like that though...
[Nexus 4 Android Development] xenyz:
Sorry it wasn't clear. I am using wired charging, not wireless charging.

I've never had trouble with charging before. And it didn't happen every time either. I just finally realized the once a week or so SoD always occurred on a fully charged and recently unplugged device.

I'm almost wanting to get a 'random' SoD to not get my hopes up:)
[Nexus 4 Android Development] iainfm:
Thanks for that - I've disabled the feature. Bit of a shame that it's one wake setting for picking up the phone and when notifications arrive. I'd have quite liked the screen to come on when I get messages etc.

My battery use for yesterday evening was pretty shocking (screenshot attached). I left work with nearly a full charge at 1600. I was driving from then until about 1830. Approx half of that time was with the phone on the seat next to me, and the other half with it in my jacket pocket. It was hardly used until about 1945, when I set off driving until 2030. After an hour stationary, I was driving again from 2130 to 2230. All of this was with the ambient display enabled, so I'll see whether having it disabled improves the consumption.
[Nexus 4 Android Development] iainfm:
At the risk of confirming to the world that I have battery anxiety, since leaving the house with 100% charge at 7.30am (with ambient display disabled, wifi and GPS off, and very little use), as of 9am the phone is reporting 89% remaining with approx 10 hours left.

Digging into the battery stats shows (with apologies for the formatting):

Service	% Used	mAh consumed

Android OS	2%	31

Google Play Services	1%	26

Screen	1%	20

Hangouts	1%	14

Android System	1%	13

Google App	1%	11

Gmail	1%	11

Total	8%	126mAh

Assuming the battery's capacity is still 2100mAh (I don't know how they change over time), that would work out as 6% used, but I'd expect a bit to be held in reserve.

So, the phone thinks 11% has been consumed, but its own stats work out at 'only' 8% :confused:
[Nexus 4 Android Development] :
Truthfully, after seeing your screenshot, Im not sure how much it would help since Google Play Services is the biggest offender. You might try disabling auto downloading app updates in the Play Store as well as notifications for updates. Play Services is used by MANY apps, not just Google ones. Sadly there isnt a break down (unless they changed things in Marshmallow and I havent noticed) of which apps are using Google Play Services the most. By default, Google also tracks your location, which you can see on a special Google Maps history page, so you might look into turning that off as well (Settings -> Google -> Location -> Google Location History -> (turn off)).

Now, in my experience, the Nexus 4 has always been bad about battery life. Ive had the N4 just before the N5 came out and the battery life sucked then for it when it was running Android 4.3 Jelly Bean R2. It may just be that you need to turn off a lot of services and features that you may not actually use that happen to be on by default.

Lastly, I am a very small, still learning app developer and created an app to turn on the phones screen when you get a notification if you still want to use that feature but find the Ambient Display to be too much of a battery drain from it's aggressive screen turn ons. I havent had the time yet to finish getting it prepared for Marshmallow (life, family, fulltime job get in the way), but Im still able to use it on my N4. Not sure if that is because Eclipse is force pushing it onto my phone or if because I have the Security feature enabled allowing apps to be installed from anywhere. Currently the Play Store listing shouldnt let you see it, but I can send you a Dropbox link to download it if you want. If you take advantage of one of the features, you will need to manually allow some permissions under Settings -> Apps -> (click gear icon in top right corner) -> App permissions -> Contact permissions -> (enable for Notification Monitor).
[Nexus 4 Android Development] iainfm:
Cheers for that. On closer inspection, I noticed that location was on, so the usage I'm seeing today is very similar to what I'd have expected from Lollipop.

I've switched it off for now, and changed the mode to battery saving.

Your app sounds good - I'm using Light Flow to blink the notification light different colours depending on what the alert is. I'd like to try yours though. Do you want to PM me a link?
[Nexus 4 Android Development] :
Tried sending you a private message last night but it apparently didnt. Do you have your preferences set so that members cannot PM you? Anyway, I dont mind if others try it out. My app is free anyway. I guess it is a good thing you didnt get it because I found more issues this morning that I think I have fixed. At the moment, I have had to remove about 3 features because of Marshmallow's permission model. Others on the interwebs think what caused me to have to remove features is a bug. There is a WRITE_SETTINGS system permission that you have to grant now and even if you do grant it, some settings such as the phone vibrating when you get a phone call and enabling/disabling the notification LED cause the app to crash if you try to change them.

Let me know what you think and if you get any crashes or notice any bugs.

https://www.dropbox.com/s/r1cgu3u2twbqx0f/Notification Monitor.apk?dl=0
[Nexus 4 Android Development] tendyfish:
Tried this method, root works but my battery stats get messed up ("battery % is 4075% , battery icon always indicating full") , would you know how i can fix???

thanks
[Nexus 4 Android Development] iainfm:
Hi, got the PM, but not been near my computer for a day or so. I'm going to try it tonight :)
[Nexus 4 Android Development] :
Weird. XDA shows that I have no sent messages, so that why I thought it didn't go through. You can download directly on your phone and install if you want. That is a link to the apk file. Once it downloads, open the Downloads app and click on it to install. If you haven't already, you will need to enable the "unknown sources" under the Security in the Settings app.
[Nexus 4 Android Development] Cizzle4:
Dont know if its already asked, but if i want to perform root on this rom? how i should proceed?
[Nexus 4 Android Development] matheusvilela:
Follow these instructions: https://www.reddit.com/r/nexus4/comments/3u3rzw/looking_for_a_completly_stock_60_rom/cxbomue
[Nexus 4 Android Development] Tournemine:
Hello,

This ROM is perfect for my mobile phone, thank you to the contributors of the project.

I followed the instructions for the compilation of the project that are at this URL

https://github.com/ganadist/device_lge_occam

Has anyone already managed to compile the project with these instructions?

I have always an error after the last command "make updatepackage"

....

target Strip: recovery (out/target/product/mako/obj/EXECUTABLES/recovery_intermediates/recovery)

Install: out/target/product/mako/recovery/root/sbin/recovery

make: *** Pas de règle pour fabriquer la cible « device/lge/occam/security/release-keys.x509.pem », nécessaire pour « out/target/product/mako/obj/PACKAGING/ota_keys_intermediates/keys ». Arrêt.

#### make failed to build some targets (01:30 (mm:ss)) ####

Anybody has an Idea?

I use VMware with the last Linux Mint.

Thanks
[Nexus 4 Android Development] ganachoco:
You must generate your own certification keys.

Please run genkey script to create your own key before build rom.

And I did not fill about gapps sections. And it is in TODOs
[Nexus 4 Android Development] Tournemine:
Thank you.

If I understand I will get a ROM without Gapps.

I'm testing right away.
[Nexus 4 Android Development] MarvinOl:
SIM Toolkit not working

First thanks on the great ROM!

I'm on 20151111 and am having problems with SIM Toolkit. In Estonia there is a government backed digital signature platform called Mobiil-ID (https://e-estonia.com/component/mobile-id/). Basically it stores 2 certificates on the SIM card that can usually be accessed thru SIM Toolkit in Android. The relevant wiki page is https://en.wikipedia.org/wiki/Mobile_signature, it is not that common but a few countries use it. All the banks in Estonia use it for authorization. But I can't seem to find/activate it on this MM ROM. I even tried adb installing a few stk.apk's I found, to no avail, they either refuse install or fail install. As far as I googled SIM Toolkit or STK should be part of Google tools (some sources mention it should be included in AOSP). Can the feature be activated on future versions of this ROM? I've been using it for a week with no problems (other than the missing SIM Toolkit).
[Nexus 4 Android Development] lolas7:
Hello,

Yesterday I flashed Fake nexus ROM 20151121 and it's awesome! I moved from Frank 6.0 and it was a right choice.

Everything works great, so far I haven't noticed any bugs (like the one with flashlight on Frank) - it's as stable as the stock ROM! Thank you very much, Ganachoco!
[Nexus 4 Android Development] el_charlie:
Great news,

Google dialer and google contacts are oficially out in the Play Store. Tried both apks from APKmirror and work great.

Cheers!
[Nexus 4 Android Development] Rock-86:
[MENTION=6117313]ganachoco[/MENTION]

Can you integrate Google Phone 2.3.12 and Google Contacts 1.3.07? :) I downloaded Google Phone and Google Contacts from APK mirror site, it is working like a charm on your rom!
[Nexus 4 Android Development] a3Dman:
Google has pulled them from the store though, I think they maybe had a major bug.
[Nexus 4 Android Development] el_charlie:
Do they update the included apps or the add another icons??

Cheers!
[Nexus 4 Android Development] Rock-86:
They update included apps.
[Nexus 4 Android Development] el_charlie:
I guess is time to move from Frank to Fake Nexus.

Here's my action plan:

1. Wipe data (without wiping media) on TWRP.

2. Flash Fake Nexus without the -w argument (data should be wiped as step 1).

3. Profit.

I know it doesn't support root and I need to flash a modified boot to allow rooting. The old boot.img no longer works. Does anyone know where I can find a working boot.img to root? I need root to restore my user apps with Titanium Backup (I don't restore any system data, only downloaded apps).

Cheers!
[Nexus 4 Android Development] bdasmith:
Look back one page :)
[Nexus 4 Android Development] el_charlie:
The reddit post?? Got it.

What that patch does is extract the kernel, patch it and install it again, right?

Thanks for your help.

Cheers!
[Nexus 4 Android Development] bdasmith:
Glad you found it :)
[Nexus 4 Android Development] ahzoe:
can i flash this rom with TWRP?
[Nexus 4 Android Development] wizmart:
Yes, if someone would post a backup with no account...
[Nexus 4 Android Development] DMA2013:
Wi-fi is always active in the graphic battery

Even though I turned off the Wi-Fi everywhere (geolocation and Wi-Fi), all I get is always active in the graphic battery. Even in flight mode. Why?

He does it with the version 20151111, the 20151121 version.

View attachment 3565130
[Nexus 4 Android Development] onurdroid:
I think it's general Android 6.0 bug. It's not related the rom. Even my stock Nexus 7 2013 has this.
[Nexus 4 Android Development] Jason761:
Is there f2fs support for this rom?
[Nexus 4 Android Development] dookie23:
Sorry for asking a n00b question... In the OP it says "If you are using stock factory image or already use this rom", the -w (wipe) option is not needed, does it mean I can just apply the rom zip file like a factory image?

I am a little confused... does that mean I don't need to unlock the the bootloader of the N4?
[Nexus 4 Android Development] el_charlie:
You'll always need to unlock the bootloader in order to use fastboot. Even for flashing a factory image.

Official OTAs can be flashed without unlocking the bootloader, tho.

If you're on stock 5.1.1 but your bootloader is locked, you'll need to unlock it and that will wipe your device. It doesn't matter if you use the -w argument or not. Better use it anyways because you'll start on a clean slate on Android 6.0 and your data is already gone.

Cheers!
[Nexus 4 Android Development] dookie23:
Thanks very much [MENTION=2299580]el_charlie[/MENTION].
[Nexus 4 Android Development] mariostar32:
If my bootloader is already unlocked ... will flashing this room will result in wiping my internal data like images...etc or it will just remove the apps like doing factory reset/wipe cache and dalvik cache in twrp ? ...One more thing XD .. can i flash the rom using twrp as an img becasue twrp has a feature to a .img file. Thanks in advance.
[Nexus 4 Android Development] el_charlie:
If you flash it with the -w argument, it will wipe everything. Like a new phone (or a factory image flash). If you don't want to lose media and you're currently using another custom rom (like I did), just do a factory reset in TWRP (the one that it doesn't wipe media) then reboot to the bootloader (you can from TWRP) and then flash Fake Nexus without the -w argument. You'll get the setup wizard, but all your pics, documents, apks, and everything else will be there, except apps and settings of course.

Cheers!
[Nexus 4 Android Development] mariostar32:
Oh thx for your quic response. I'm currently using another custom rom so I'll factory reset,wipe cache and dalvik cache.. then I'll flash fake nexus rom using twrp ... ty XD you saved me from loosing my data ^ ^ .
[Nexus 4 Android Development] el_charlie:
You're welcome.

Keep in mind that you can only flash Fake Nexus from fastboot. Do the factory reset from TWRP and then reboot to bootloader to flash Fake Nexus.

Wipe cache and dalvik is not needed at all because the dalvik cache is in /data, which is wiped. And the factory reset of TWRP also formats /cache.

Cheers!

BTW, I'm loving this rom [MENTION=6117313]ganachoco[/MENTION]. Great job! It's fantastic.
[Nexus 4 Android Development] Blockberd:
Sorry if this question was asked before but how long am I supposed to wait for booting after I installed that ROM with "fastboot update ..." statement?
[Nexus 4 Android Development] el_charlie:
As per OP and my experience, it takes about 5-10 minutes until you see the setup wizard for the first time. Be patient.

Cheers!
[Nexus 4 Android Development] Blockberd:
Thanks. In the meantime, I flashed the latest official 5.1.1 ROM, booted it and tried this ROM again. Works just fine! :)

Have a nice evening.
[Nexus 4 Android Development] alexandreantunez:
Is Miracast (screen cast) working for you, guys?

I have an smart tv lg 43lf6350 and it's not working.
[Nexus 4 Android Development] davide@10:
Me too
[Nexus 4 Android Development] alexandreantunez:
So I'm not the only one☺

I've flashed MinimalOS and it's not working also.
[Nexus 4 Android Development] Jason761:
Anyone have a fix for incorrect battery % after rooting?
[Nexus 4 Android Development] el_charlie:
You're using an old boot image to root. You can read few pages back to a link to reddit to a patch that patches your current boot.img and then flash SuperSU 2.52.

Or even better, flash the latest SuperSU 2.60 system-less root. You'll need to reflash Fake Nexus in any case. There's no need to wipe anything, just "fastboot update occam****.zip".

I've just tested the latest experimental SuperSU 2.60 and works great. It autopatches your boot.img and installs SuperSU but doesn't modify /system. Works great so far.

Cheers!
[Nexus 4 Android Development] Doriath:
Hmm just wondering - is this project still active? It seems there was no activity for almost a month now :(
[Nexus 4 Android Development] desireleß:
That's because of Google. :cyclops:

Nothing new.. ;)
[Nexus 4 Android Development] Doriath:
Well not really. The 21/11 release is still labeled as testing, could be pushed to stable even without anything new from Google :)
[Nexus 4 Android Development] jer_ying_fd:
But is it worth the effort to do it knowing that you will have to redo an unknown amount of work starting from some time this week?
[Nexus 4 Android Development] dookie23:
Android 6.0.1 should be released pretty soon I think. Android One devices already got it so Nexus devices should be next.

I have been running this rom on my N4 for only a few days but the stable release is running really well. I am not sure if it's just me, but it seems that this rom is snappier than the stock Lollipop. Everything looks and feels so fluid. :)