yashsingh1/xdaforums huggingface dataset:
[G2 Original Android Development] zg85:
Works for me (D802) and I don't know why it's missing in CM WiFi framework..

Edit #1

I'm running custom CM ROM so I'm not 100% sure if THIS is the fix..
[G2 Original Android Development] dr4stic:
And there-in lay the problem. Also, seems like Ethan went ahead and responded in his usual incredulous manner...
[G2 Original Android Development] zg85:
:laugh:

Well.. Probably the only way is to build unofficial CM with this patch and wait for user reports :good:
[G2 Original Android Development] dr4stic:
*sigh*

I may try running a build with this and putting it up somewhere. But just for maybe like d802 or d800... Building takes forever as well as the upload.
[G2 Original Android Development] zg85:
I understand You perfectly :cool:
[G2 Original Android Development] Nisseh Beh:
How is battery life with this rom?
[G2 Original Android Development] dr4stic:
Files coming shortly...
[G2 Original Android Development] dr4stic:
New WiFi Disconnect Test Build

Hello folks,

The following builds are testing a patch to the WifiStateMachine (a core thing in CM) to check the setting mIsWiFiIpReachabilityEnabled before testing. [MENTION=5236920]zg85[/MENTION] is hoping this is the answer to everyone's prayers with the WiFi disconnect problem. The powers that be are not at all convinced this could even be the beginning of the problem, so we need as many people with the problem to test these builds for an extended period to see if they still have said problem.

I ran builds for d800, d801, and d802. They can be downloaded here: https://www.androidfilehost.com/?w=files&flid=69762

You should just be able to flash this over your existing nightly, so long as the nightly is recent. This build is full-on CM sources. And it is built with the following cherrypicked patch:

http://review.cyanogenmod.org/#/c/150015/

The usual caveats apply. Please make backups with TWRP before applying this zip file. I am not responsible for your device, your data, your relationship, or your sanity if something should go wrong.

Thank you so much for your help.

[MENTION=5236920]zg85[/MENTION] it'll be up to you to monitor the results as I've been trying to be missing these days.
[G2 Original Android Development] dongerado:
Thank you very much!

Since 2 hours no Wi-Fi drops!

So first impression is very good! :)
[G2 Original Android Development] Josh:
Works fine here,no drops since 2 hours :) looking forward
[G2 Original Android Development] Rangell11:
My wifi still dropping when the screen turned off.
[G2 Original Android Development] Calvin Gross:
1 hour no wifi drop... nice patch :highfive: D802
[G2 Original Android Development] Trixanity:
It would be helpful if you at least listed model and if you've made sure to enable "Always keep wifi on".
[G2 Original Android Development] Eselter:
New test build seems to really fix WiFi bug.

Thanks guys :)
[G2 Original Android Development] mohammad_203:
Some people say they have wifi disconnect. Finally last build fixed problem or not?
[G2 Original Android Development] Hbohd:
Don't you understand what these new builds by dr4stic are for? For TESTING if it fixes anything. Therefore, you, as a user touched by the issue, are OBLIGED to download it, use and report if the bug disappeared or not.
[G2 Original Android Development] Calvin Gross:
After 1-day test the patch http://review.cyanogenmod.org/#/c/150015/, wifi disconnection bug doesn't appear anymore.

Let's consider it as a fix! Finally!
[G2 Original Android Development] MachiavelliBs:
Almost 1 day and no troubles with wifi. Everything works just fine :)
[G2 Original Android Development] ulihh:
I can confirm the wifi bug is fixed with the test version. I have rekeyings every 10 minutes and no drops since the clean flash yesterday morning. I also checked the logcat, no disconnect events. So it's in fact IpReachabilityMonitor and not a driver issue. Congratulations!

Regards, Uli
[G2 Original Android Development] hteles:
Not a single WiFi disconnect since I've flashed the test build. Why is it still in need of code review?
[G2 Original Android Development] zg85:
Hooray !!!
[MENTION=2096805]dr4stic[/MENTION] :victory:

---------- Post added at 05:41 PM ---------- Previous post was at 05:37 PM ----------

:good:
[G2 Original Android Development] aaronDroid80:
I've been meaning to ask about this for a while now. What is the Live Lock Screen all about? Nothing changes when it's enabled, and there appears to be an issue with the toggle.

https://youtu.be/jJDP7SephD4

D800; June 18 build.

Sent from my gooey, toasty LG-D800
[G2 Original Android Development] errikosd:
Well done for the fix [MENTION=5236920]zg85[/MENTION]! I must admit I was cautious in the beggining, but after all it may make sense. IpReachabilityMonitor was introduced in Marshmallow (it's nowhere to be seen in Lollipop). Apparently it does not play very well with some devices.

Kudos.
[G2 Original Android Development] jrk190:
Wish we had a maintainer for all variants...
[G2 Original Android Development] wetbiker7:
Anyone with the LS980 tried this? Looked over the past couple of pages but didn't see any 411 on the model. I'm running ZVI. Any 411 on the newest build of CM and the LS980 would be appreciated. Preesh
[G2 Original Android Development] kindgott:
I'm on a nightly (19-05-2016) with a D802, would it be ok to dirty-flash this test build?

Thanks and sorry if it's a noobish question.
[G2 Original Android Development] berezker:
Wifi bug finaly fixed in the test version 18/6/16
[G2 Original Android Development] aaronDroid80:
LS980 isn't officially supported.

Sent from my gooey, toasty LG-D800
[G2 Original Android Development] wetbiker7:
Thanks for the heads up. I didn't think it was but wanted to ask and make sure.
[G2 Original Android Development] ProkuristB:
I did also flash the test version - so far no Wifi drops on my D802.

I clean flashed my device ~2 days ago.

Its performing much better than the stock version (only with some minor issues concerning the camera quality and the "slow charge" bug).

Thanks for your effort and the brilliant work! I would like to pay you 2 guys, [MENTION=2096805]dr4stic[/MENTION] and [MENTION=5236920]zg85[/MENTION], a beer (or sth. else) for your effort. ;)

Are the PayPal donation-links beneath your profiles still up 2 date?

If not: PM me.

Thank you for your good work! Keep it up! :good:
[G2 Original Android Development] berezker:
[MENTION=2096805]dr4stic[/MENTION]

Just a quick minor thing

I think you change the version of the title from 6.0 to 6.0.1
[G2 Original Android Development] qwertyu123:
Anyone has problems with the camera panoramic mode? Pictures compared to stock are awful, completelly blurry. It is something known?
[G2 Original Android Development] murok9042:
Use another panorama app from the play store

Gesendet von meinem LG-D802 mit Tapatalk
[G2 Original Android Development] zeta:
Good job guys! The wifi fix is working! When this commit will be merged?
[G2 Original Android Development] GigabitEthernet:
D802 on latest nightly, whenever I tap call in the phone app the phone crashes? This is with Open GApps.
[G2 Original Android Development] berezker:
Did you get the right type of gapps?

Was it arm or arm84 or which one?

And try to clear data from google services (Settings --> apps -->google services --> storage --> manage space --> clear data)
[G2 Original Android Development] jl10101:
http://xdaforums.com/showthread.php?p=67302211

Also, check app permission for telephone in settings.
[G2 Original Android Development] kindgott:
Hi Zeta,

In order to install this test build, can it be done dirty-flashing over an existing nightly or does it need to be done from a clean install with wipes and all?

Thanks.
[G2 Original Android Development] errikosd:
The fix is the following:

Go to settings

Tap Apps

Tap the gear in the top right

Choose app preferences

Go to default apps

Set the default app for phone

OR use a Gapps package other than Stock.
[G2 Original Android Development] frankbald:
Hi everybody, I have just read that there is a fix for the wifi problem (huge problem in the latest weeks for me), is this fix already included in the latest nightly?
[G2 Original Android Development] Humpfrey:
Not yet.

You can flash dr4stic's testbuild from here http://xdaforums.com/showthread.php?p=67371503

Cheers
[G2 Original Android Development] nihil39:
Hi, are there any known gps fixing problems with this rom? I'm having some issues with Resurrection Remix Rom (see here), based on Cyanogenmod.

I'm using a D802.

Thanks
[G2 Original Android Development] TSLNL:
Hey there, sorry to ask... but could anyone post their battery life?

I get -30% overnight with flight mode and greenify...

I clean flashed the test build and already tried factory reset.

Thanks in advance
[G2 Original Android Development] Josh:
Clean installed test build ,greenify only Facebook,sync off
[G2 Original Android Development] murok9042:
Try the app GPS Status & Toolbox from the Play store. There you can update the A-GPS data.

Gesendet von meinem LG-D802 mit Tapatalk
[G2 Original Android Development] ProLen:
5+ hours of SOT seems like magic to me. Tell me your little secrets.

I get 2.5 to 3 hours max, even on fresh install. Has never been different.

ROM works great btw. No issues for my usage.
[G2 Original Android Development] Treboeth:
Today I only got 2hours with 56% left.

The other day was mainly on wi-fi, but I always have sync turned off and screen at low brightness.

Don't use FB or other battery draining apps.

I do have Xposed/gravitybox installed for some tweaks, but nothing battery related.
[G2 Original Android Development] pawel_kd:
I got only 2% min - all night (10 hours) with Wi-Fi active.

Great ROM but still sound issues with VOIP applications (Viber, etc).

What a pity!

Verstuurd vanaf mijn LG-D802 met Tapatalk
[G2 Original Android Development] Nick N:
Hopefully this also solves the problem I have with data not reconnecting when I am in an area without data (the building at work is solid and has dead spots). It never reconnects until I turn data off and then on again. I don't have this problem on 30B stock or 12.1.

Still have the data reconnection issue on my D801, Wifi fix must be separate code.
[G2 Original Android Development] TSLNL:
I'm getting this... and there are no active apps or apps that use much battery... hmm anyone know how to solve it?
[G2 Original Android Development] dr4stic:
New WiFi Disconnect Test Build (Part Deux, the re-testening)

FYI: This build seems broken! Move along :(

Hello folks,

I would like to say thank you to all those who tested and, from all accounts, seemed to verify that the last change we made "fixed" the wifi disconnect bug!

Now, me and [MENTION=5236920]zg85[/MENTION] really need your help to test a new build. The last change would've disabled the problematic feature for other devices which had no problem with the feature. So [MENTION=5236920]zg85[/MENTION] went some rounds (and sample code) and ultimately landed on a new set of fleshed out changes that *SHOULD* still do what the last test build did (just does it a little differently). We desperately need you to verify that.

I uploaded builds for d802 and d800 here: https://www.androidfilehost.com/?w=files&flid=71868

The new test build incorporates the following patches:

http://review.cyanogenmod.org/#/c/150015/

http://review.cyanogenmod.org/#/c/150327/

http://review.cyanogenmod.org/#/c/150429/

When you guys report results, please specify the nightly date of the test build you are verifying.

Thank you all so much, and thank you [MENTION=5236920]zg85[/MENTION] for getting this *fingers crossed* done.

PS> To those wondering why only d802 and d800? These builds take a while and tax my hardware, and they're a pain to upload. There were 78 downloads on the d802, so that's gonna give me the most back for my buck in terms of results. As for d800 (which had the second most downloads at a grand total of 4), I own a d800, so that was a no brainer.
[G2 Original Android Development] Josh:
Dirty flash or? I'm on last test build 06/18 clean install.

---------- Post added at 10:16 AM ---------- Previous post was at 09:26 AM ----------

After 30 min,2 times wi fi drops on latest test build dr4stic 06/23 in area where 06/18 builds works well. I dirty flashed latest test build.
[G2 Original Android Development] dongerado:
Hello!

On this build Wi-Fi problems came back for me. Reconnection every 5-10 minutes.

Going back to your first release, which worked fine!

Thanks for your work!
[G2 Original Android Development] ulihh:
cm-13.0-20160623-dr4stic-d802:

06-23 13:56:06.031 1002 1824 D IpReachabilityMonitor: probing ip=10.173.0.1%23
06-23 13:56:06.034 1002 4162 D NetlinkSocketObserver: NeighborEvent{elapsedMs=361311, 10.173.0.1, [(null)], RTM_NEWNEIGH, NUD_FAILED}

...means wifi bug returned with the new test build.
[G2 Original Android Development] zeta:
Yea, you can dirty flash on the nightly
[G2 Original Android Development] Nick N:
Latest test build for D801 (not the most recent 800/802), single white line for wifi.
[G2 Original Android Development] Eselter:
I can confirm. WiFi drop bug return on latest test build.
[G2 Original Android Development] zg85:
[MENTION=2096805]dr4stic[/MENTION] value isn't overridden - framework-res.apk contains :

values/bools.xml: <bool name="config_wifi_ipreachability_monitor">true</bool>

Probably this value must be overriden by PRODUCT_PACKAGE_OVERLAYS not DEVICE_PACKAGE_OVERLAYS :eek:

Patch http://pastebin.com/DNhU0Ws3

Edit #1

Plase make another build with this commit and check value in framework-res.apk (or push apk here) :good:
[G2 Original Android Development] samuele94:
Resurrection Remix ( http://xdaforums.com/showpost.php?p=67446442&postcount=1647 ) framework-res.apk <bool name="config_wifi_ipreachability_monitor">false</bool> and seems wi-fi works without problems

Edit: Uploaded framework-res.apk->values->bools.xml
[G2 Original Android Development] dr4stic:
I actually left a build running overnight for kiwi (my present device) for that reason. In my tree, without any patches to that specific device to enable or disable that feature, it's what all the rest of the devices will look like. I simply haven't had time yet this morning (since I just woke up) to update the build on the device I'm using.
[G2 Original Android Development] hteles:
Sadly the same scenario here. Was working great in the first drstatic unofficial WiFi test version.

Regards.
[G2 Original Android Development] Keiv90:
Hi everyone, thanks for all you have done with this phone. I've flashed the latest test build but I confirm that wifi problem is present, hope my report will help
[G2 Original Android Development] zg85:
Good morning :laugh:

This patch should override config param properly :good:

http://review.cyanogenmod.org/#/c/150659/

values/bools.xml: <bool name="config_wifi_ipreachability_monitor">false</bool>
[G2 Original Android Development] zg85:
http://review.cyanogenmod.org/#/c/150327/

http://review.cyanogenmod.org/#/c/150666/

http://review.cyanogenmod.org/#/c/150667/

Finally merged !!!!
[G2 Original Android Development] dr4stic:
OK people, there's been a lot of activity with this today. I just wanted to give people a heads up.

We got attention (finally, omg... seriously, it's a ridiculous thing to believe). There are a series of three changes that *should* fix the WiFi connect situation.

http://review.cyanogenmod.org/#/c/150667/

http://review.cyanogenmod.org/#/c/150327/

http://review.cyanogenmod.org/#/c/150666/

The problem stems from the IpReachabilityMonitor. It is new with Marshmallow. At some point last year (2015-08-31, before CM even starting running MM builds) the problem was identified by the good people at CAF and a mechanism was made to allow enabling the IpReachabilityMonitor on a per-device basis. At some point later, the change was reverted/removed/whatever within CM and it shouldn't have been.

The changes above (in the order I listed them) 150667) sets the default to enabled (true) - because most devices have had it enabled all this time and we didn't want to suddenly blanket disable it; 150327) disables the feature for the G2; and 150666) adds the switch back to the android framework where it should've been.

I'm going to assume this is fixed, because the current code is based more closely on what we did with the test build that succeeded. The 2016-06-24 nightly SHOULD have the necessary patches for the fix. Please test it and let us know here if they still have the bug... at which point I'll just shoot myself and call it a day.

You guys should seriously, quite serious, thank [MENTION=5236920]zg85[/MENTION] for his persistence. He wrote enough changes and notes in the last two days that even I wanted to smack him with something sharp... and I usually have a relatively patient disposition.

Enjoy!
[G2 Original Android Development] zizuka:
CM changelog for 23rd build doesn't have the wifi changes. It will come in tomorrow's nightly according to changelog.

More info here https://www.cmxlog.com/13/d802/#cm-13.0-20160623-NIGHTLY-d802.zip

Sent from my LG-D802
[G2 Original Android Development] ulihh:
Yes, the patches are in 20160624, already flashed dirty, no more IpReachabilityMonitor :good:
[G2 Original Android Development] Indiant:
Working LG QuickRemote Port for CM13

Working [PORT] LG QuickRemote for AOSP MM on this rom. :good:
[G2 Original Android Development] hudarsono:
Hey There,

I am using LG G2 and cyanogenmod v20160317 snapshot. I experienced 2 issues only :

- WHen mobile data prefered switched to LTE, often has no data connection with exclamation mark in the icon. But when switched prefered to 3G, I can get data just fine. Which caused LTE unusable for me.

- When doing call with LINE, it keeps disconected with Microphone issue, which made it impossible to make line call.

I have tried to update to snapshot 20160418 but the dialer keep crahsing, so return back to 20160317. Anyone could help?

Apart from that 2 annoying issues, I am quite happy with this ROM.

Thank you
[G2 Original Android Development] xpissio:
Anyone else is having this bug? --> (https://drive.google.com/open?id=0B0T9jA_r9eUzOHVXZ3F3M2VVZjg)
[G2 Original Android Development] oblitus:
I have a problem with the 24th build. I can't connect anywhere with my cellular network. It shows an exclamation mark on the signal icon. H+ and LTE the same.
[G2 Original Android Development] errikosd:
Works fine for me. Try setting your carrier's APN settings again and reboot.
[G2 Original Android Development] ulihh:
Wifi auto-connect when entering?

Well, thankfully the main wifi bug is fixed and I'm just getting re-used to stable wifi connections like it was 2 years ago. What I noticed is that the wifi connection doesn't get up automatically when I enter my known wifi network areas, neither at home nor at work. I always have to turn on my phone to get a wifi connection. In sleep mode it doesn't connect to wifi. Can anyone else confirm this?

Regards, Uli
[G2 Original Android Development] pawel_kd:
I've got the same problem then I come back to home. I've to manually search the Wi-Fi network. Regards

Verstuurd vanaf mijn LG-D802 met Tapatalk
[G2 Original Android Development] nathanchance:
Thread cleaned. Please respect the OP's wishes and keep things on topic. Discuss common issues and problems in existing threads rather than here.

Nathan

Forum Moderator
[G2 Original Android Development] TheHaso:
Hmm, I was on build 0615,and had minimal WiFi drops through a full day (2-4 drops).

Today I updated to 0624 and the drops are gone, but a new issue started. Every chatting app like messenger or discord is reconnecting allways when I enter them, and drops the connection when I'm out.

Therefore I'm not receiving messages properly.

Anyone noticed similar issue with the latest build?

Edit: got a few reboots yesterday too :/
[G2 Original Android Development] MachiavelliBs:
[MENTION=4501808]TheHaso[/MENTION] i think this is from google play services , not sure but i was on stock lollipop with the same problem before 2 days
[G2 Original Android Development] divid3d:
is this rom fully functional ? Should I move from lollipop stock ? :)
[G2 Original Android Development] zizuka:
Not many would say a custom ROM is as stable/battery friendly as stock LG ROMs. Camera will take a hit on custom ROMs and some have sound problems.

Some say CM12.1 updated with new a build a few days ago works well for G2 so give that a try if you'd like :)

Sent from my LG-D802
[G2 Original Android Development] TheHaso:
Hmm, I will update my gapps package and see if it helps.
[G2 Original Android Development] Kri3tian:
Hi there

im with No Name rom, and that time i put a different kernel, now i want to make it clean.

In my case wich its the best option to install the CM? Get in recovery, wype/clean all and install the rom and then the gapps or i need install first the CAF bootstack?
[G2 Original Android Development] Josh:
If you came from stock Lollipop you don"t need bootstack,wipe everything except internal storage ,install CM ,gapps and you're done! Read FAQ on first page.
[G2 Original Android Development] zizuka:
Flashed latest nightly (25 June) with Lambda kernel and here are my thoughts:

Very very fast and smooth!

Not a single FC, crash, reboot or freeze.

Proximity sensor could really use some modifications. I have enabled prevent accidental wakeup, I put my finger on the sensor, double tab the phone and it still wakes up. This would

never

happen on a stock rom.

Bug I see with all MM ROMs: PC can't read files on MTP. It reads the phone, I can open the folder, but no files are shown. Original USB cable used. No such problem with stock ROMs. Workaround: use MTP while in recovery, PC then reads everything normal.

Any way to add quick shortcut keys when swiping up from navbar on CM ROMs? Check screenshot

Shout out to [MENTION=5236920]zg85[/MENTION] and [MENTION=2096805]dr4stic[/MENTION] for the love. Appreciate it.
[G2 Original Android Development] Josh:
Agree with zizuka. Battery and smoothness is awesome. What a about camera mods in future ,is it chance to make it better?
[G2 Original Android Development] peanutsz:
What if i came from CM13 and want to install Ressurection Remix? Same Process? I only ask because my D803 (canada) only goes to stock 4.4.2 so i had to flash bootstacks to upgrade to cm13. Would i need to flash bootstacks from cm13 again or just do what you said?
[G2 Original Android Development] Josh:
No you don"t ,read FAQ for RR rom and make backup of your existing rom if someting get wrong
[G2 Original Android Development] deimdos:
Hi there,

Check the notification bar, when plugged to PC by default is in "charge only mode", there you can select MTP/PTP

Cheers
[G2 Original Android Development] Josh:
CM13 nightly 06/24 works great and with lambda kernel latest beta N4 got excellent battery life . Now on 10 precent battery got 6.30 SOT
[G2 Original Android Development] bukszpan:
Hello All,

I have strange issue, everything was fine, but from some builds I have a problem with device booting. After clean flash my device is staying on "Android application update" screen. After about 50 minute it goes to OS, but when I do a restart of device again booting for long time and staying on android logo.

I don't know how to solve this problem, I was trying everything (all wips, all bootstacks, different version of gaps). Now I have the newest "Blastagator's TWRP" and Hybrid bootstack.
[G2 Original Android Development] zizuka:
Found it in developer options :D

Thank you.

And yeah battery is great. 2 hours sot, 79% left and battery is yet to be calibrated :)

Sent from my LG-D802
[G2 Original Android Development] runekock:
Sounds like a gapps problem to me. I suggest open gapps nano, and if the newest doesn't work, use an older one - even if it is several months old, it doesn't matter, because it will update itself automatically.
[G2 Original Android Development] bukszpan:
Thanks for answer, my problem is even when gaps aren't installed.
[G2 Original Android Development] AssassinGEO:
Time have come to leave my G2, even tho it wasn't even a year... I hate this phone.

Goodbye all. Wish luck to you all with your G2s! I hope you are happy with your phones, compared to me. Was nice to be a part of awesome community!