yashsingh1/xdaforums huggingface dataset:
[G2 Original Android Development] .wojtek:
OK, it just came to my mind (after looking at linked sources) - it passes, what looks like, an APN config of some sort and IP type. So maybe sAGpsInterface extension doesn't like particular calls so - would it be possible to add more debug around that to see what kind of offending data is passed that triggers the issue (and then as a workaround for now avoid calls if that match? I assume not all AGPS calls cause reboot).

Second thing - given the above - will it fail if the network data is disabled? Not sure about how AGPS works but it uses network data (even config is passed) - so if we disable network data it should not fail?

Another thing - if looks like this only fails if we want to get location and we are not currently using data so new connection need to be established and it fails - correct?

Last but one thing - is it the deepest source available or can we get sources of @

sAGpsInterface@ implementation that's actually used to get more debug from it (given it's not resolved I would be under the assumption it's again stupidly binary blob to which we only have access using JNI)?

And finally - if it's not possible to work around the issue would it be at least possible to add "advanced option" that would basically disable AGPS support? That way we could use high precision location without worrying about restarts...
[G2 Original Android Development] Toomkee:
i can confirm that
[G2 Original Android Development] berlen:
Do you meat this app? https://play.google.com/store/apps/details?id=b007.autorec2

Thank you very much for your help
[G2 Original Android Development] dr4stic:
I believe so. Honestly when I did it ages ago, the app wasn't in the play store. I know that the app eventually moved into the play store for easier access. My only worry is that you get the right app listing, and not someone lurking hoping to get malware onto your phone. Just make sure you use the one specifically for your model phone.
[G2 Original Android Development] .wojtek:
On the topic of GPS and weird restarts - I've just had a couple of them on... "device only" mode :/
[G2 Original Android Development] Toomkee:
i also have the same problems with other browsers. facebook is not loading properly even with firefox. i have the same issues on my LG OG E975.
[G2 Original Android Development] berlen:
Thanks ;) I am successfully rooted and I just updated the recovery. It is nice that in the process there was no need to wipe the current configuration. I just have 2 more questions:

- since CM12.1 is currently in nightly, I would like to ask what do you guys think is a stable and bug-free version with good battery life (compared to stock 5.0.2)?

- do you think I can use any of this google apps? :

Delta Gapps With Modular Addons: http://goo.gl/9TpKxi

Open Gapps Aroma: http://goo.gl/Icm2aT
[G2 Original Android Development] dr4stic:
Ummm, you DO have to do a factory reset, or cm12.1 will crash. You DO NOT have to wipe the storage. What I suggested was to take a full backup of stock before proceeding so you can restore it at a later date if you like :)

For me, I'd download the earliest nightly you can find right now, I think CM only keeps a few days worth. The last one I held on to for several days that seemed fine (other than the chronic crashing some of us are experiencing, set location to device only if you see this problem) was built around... 20150816. The ones from the last couple of days seem to have modifications to stagefright which are crashing a bunch more stuff than was wrong before.

I use tk_gapps with my d800, and I have used OpenGapps on other devices. Either is fine, really. Just remember that, at the moment, whenever you upgrade your nightly you'll have to re-flash the gapps otherwise they'll crash and crash and crash upon reboot. Therefore upgrading from the cmupdater in the settings menu is not a good idea.

Have fun :)
[G2 Original Android Development] Superlolz:
Is this stable for daily usage? And hows the battery life?
[G2 Original Android Development] Underworled:
Yes.

I got about 5h 30 min sceen on -20h usage

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Original Android Development] .wojtek:
Well, I have some java/c experience, but I lack knowledge about building whole image so I could test it :/

Same observation - when you switch to 'high accuracy' and then have restarts then switching to 'device only' wont help unless device is rebooted.

What I was saying with 'mobile data' is the 'cellular data transmission' - i.e. 'mobile internet' or if you go to settings -> data usage you can enable 'mobile data' i.e. internet over your celllular network.
[G2 Original Android Development] Mako0:
Goodmorning guys, I'm testing 25-08 nightly on D802...

Bluetooth not working (cant set to on) but no issues with GPS.. no reboots or FCs..

Very good battery life and performance.. 4h30m SOT and 1 day usage... LTE/wifi etc..

Even camera is not so bad.. I miss only qremote..

Hope for improvements..
[G2 Original Android Development] dr4stic:
Oh... building is easy. It's just a MASSIVE download. You'll wanna have a ton of space handy, and if your hardware isn't up to snuff, prepare for long compile times. You'll want to do it on Ubuntu, it seems to be the distribution that the CM folks prefer (ugh). I have an Ubuntu 14.04 (LTS) VM running specifically for that. I've done this on fedora/redhat too, you'll have to find other instructions on which packages to install as the wiki entry seems to cater to Ubuntu.

https://wiki.cyanogenmod.org/w/Build_for_d802

The wiki mentioned the get-prebuilts command at some point. I don't think that's valid anymore, but that's something you can figure out. Hopefully you have some linux experience.

I will say that we're trying to come up with a solution over the next couple of days though... So unless you're really curious about the process and really wanna do it... I wouldn't.

If you get it done, you'll want to cherry pick this patch:

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

It's the one we're working from at the moment. It's only marginally working(ish), and not the way we want it to... yet :)

Ahhh, that's a good point. I did a cursory bleary-eyed search and couldn't find much. I think the assistance happens outside of the internet stream, as part of the protocol to communicate with the tower. If that particular communication is happening over the internet stream over the cellular, then the AGPS data should be kept intact by the integrity checks built into tcp/ip.

I couldn't find definitive anything about that though. Might be worth trying, but I imagine turning off cellular data while you're out would suck for many other reasons.
[G2 Original Android Development] berlen:
Which build?

Thanks
[G2 Original Android Development] Toomkee:
build 20150827 seem to fix the problems with webbrowser, especialy chrome. only "problem" i srill have is that when i install viper4android with the high quality driver that my nfc toggle disapears and while trying to send files via android beam it fails. without the driver is seems to be no problem. any clues?
[G2 Original Android Development] .wojtek:
Thank you for the link to guide - looks like a beast so I'll hold for now and wait for your results :)

https://en.wikipedia.org/wiki/Assisted_GPS

it looks like there are two modes and one of them utilize celluar network to retrieve data over internet hence not only appropriate location of the towers but with that location some computeation on the server to retrieve quicker lock on the satelites, hence the call to open network connection with apn information to retrieve the data.
[G2 Original Android Development] gozzaa:
i know what bootloader iam using and what button combo i need to enter it

you can force a bootloop and try yourself, if you know how to do it

try not to offend ppl if you dont know what you are talking about

btw: this occurs with 20H bootloader at least for me
[G2 Original Android Development] Superlolz:
The charging is slowly, about 700 mA. Is there a way to fix it? Mabye a custom kernel?
[G2 Original Android Development] maydayind:
700? I never get past 200.
[G2 Original Android Development] dr4stic:
[MENTION=887111].wojtek[/MENTION] ... I'm not sure how but I'd like to get in touch with you outside of this thread... PM me please.
[G2 Original Android Development] bravho:
Last days a lot of random reboots (no real rebooting, I don't have to enter my pin code). Also suddenly I have a black screen... (accept status and navigation bar).
[G2 Original Android Development] dr4stic:
Are your reboots lessened by switching Location to Device Only?
[G2 Original Android Development] dr4stic:
Does not work, move along now...

OK, PLEASE read this entire post BEFORE proceeding. I'm not wild about doing this, but I don't know another way to get some exposure for an idea quickly.

NOTE: THIS MAY NOT BE A FIX!!! WE DON'T KNOW IF THIS WILL MAKE A DIFFERENCE.

This is an idea for something and we don't know if it'll work or make a difference. We needed to test a theory, but the bug doesn't hit me as often as some others on this thread. So I'd like someone more affected than me to try it out.

Please only try this zip file if you meet all of the following conditions:

You have the random reboot bug

it goes away if you set Location to "Device Only"

You get the reboots often enough that you'll notice if it's stopped doing it

Your phone is bone stock CM-12.1. No fixes, no patches from other threads.

Please, if you don't meet the above criteria, DO NOT chime in. It doesn't help to fill the forum with results from a system that doesn't match the problem we're trying to fix.

Obviously you should flash this at your own risk. I'm not responsible if something goes wrong on your phone. That being said, this is a single simple file and it didn't destroy my phone.

Flash the zip file from TWRP. Yes, it's small, it's replacing a very small library. Make sure your phone is back in "High Accuracy".
[G2 Original Android Development] bravho:
I'll give it a try!

>>> after a few hours, first real reboot...
[G2 Original Android Development] chewdaniel:
hmm.... never had any reboots until 27 build..... rebooted 3 times when i sent a call out... o.O
[G2 Original Android Development] Superlolz:
Help with that ?
[G2 Original Android Development] dr4stic:
[MENTION=6010049]bravho[/MENTION] Is your device stable on device only location mode?
[G2 Original Android Development] bravho:
Yes, but didn't test it for a decent time. Max a couple of hours, I use GPS quite often. And [MENTION=313982]home[/MENTION] the reception isn't good.

I'll try it. (device only)
[G2 Original Android Development] re1743:
Soft reboot on phone calls

When I'm on phone calls, phone will randomly soft reboot. I haven't been able to get logcat yet - will post when it happens next.

This only happens when I'm out and about on calls. Any advice?
[G2 Original Android Development] dr4stic:
Look through this thread, it's been discussed many times.

If modifying your location settings as discussed in this thread (and forcing a reboot) stops your problem, then don't bother with the logcat. The logs won't show anything other than that things crashed.
[G2 Original Android Development] re1743:
Got it, tried location to device only - the issue is that I don't have any issues when I'm not on calls.
[G2 Original Android Development] dr4stic:
Yeah, I know. I've mentioned that. I tend to see it the majority of the time on calls.
[G2 Original Android Development] bravho:
No... This morning a black screen (with navigation and status bar ok) after coming from airplane mode. (location device only) The problem is solved after a soft reboot.

Looks like all the problems happens when switching connectivity type (WiFi, instabel signal, GPS,...). It looks like a crash, sometimes the device "hangs" for a second before it crashes.
[G2 Original Android Development] Mako0:
So guys which build has reboot problem??

I'm on the same 25-08 build from day one and never had any reboots using gps, maps, weather widget with location, calls, aeroplane mode and so on...

Only issue is with bluetooth and (probably normal in cm) low volume..

I want to update because I need bluetooth, so I'm trying to undestand how latest builds works..

Any advice??
[G2 Original Android Development] berlen:
By the way, I was searching for alternative roms, without the current issues that afflict cm 12.1 and I found this http://xdaforums.com/lg-g2/development/rom-slimlp-alpha-0-4-t3135141

They claim "Reboots due to GPS fault is resolved" so... would it be possible to integrate this tweak in next builds?
[G2 Original Android Development] Jeik:
SlimSaber or Temasek CM12.1

Look for both on AndroidFileHost
[G2 Original Android Development] berlen:
Hi everyone I finally decided to flash this rom. No issues so far, the only thing I noticed is a very low mic volume when recording audio messages in WhatsApp if compared to stock. Is it a known problem? I read about low speaker volume, not mic rec. Is there a way to fix this? Thank you very much for your help
[G2 Original Android Development] Fobz:
Anyone missing tap2wake on the latest nightly 8/30?

Nevermind, its on the kernel level now.
[G2 Original Android Development] jl10101:
Does it increase responsiveness in your opinion?
[G2 Original Android Development] Fobz:
It feels the same.
[G2 Original Android Development] bonny_k-9:
I upgrade from 21 to 30 the number and I butlup. I had to do wipe data.
[G2 Original Android Development] S51B14:
Does anybody else have problems with Google Play Music stopping randomly, after a minute or two when playing music?

I have had this problem with CM12 and because of that I switched to Cloudy G2. With this Rom I did not have any issues, but after coming back to cyanogen the problem came back.

I enjoy this Rom overall but this thing makes me crazy. Especially because I use the all inclusive option, which I pay for.
[G2 Original Android Development] bravho:
Any news on these changes? Somebody tested it?
[G2 Original Android Development] Rybber:
I'm on 29-08 nightly and have experienced random reboots too. It usually happens when driving to work where I listen to audio books. I tried experimenting a little: If I turn off wifi before going, there is no reboots. So I suspect that the wifi is scanning and reboots occurs when it detects new networks perhaps.

Can anyone test if Wifi OFF prevents reboots??
[G2 Original Android Development] :
Yesterday I was getting ready for a long drive using phone GPS, I was about to get the fix on page 36(ish) to try but that had been marked as dead, so I updated to the nightly from the 30th. Astonishingly I haven't had any reboots since and the GPS was spot on.

Have had the device on high accuracy since
[G2 Original Android Development] DiegoDallaBattista:
It is possible to know how is battery life compared to the Cloudy G2/SRKG 2.0? Thanks
[G2 Original Android Development] jaboneros:
I made some pcmark battery benchmarks a while back.

cloudyG2 3.3 http://imgur.com/WLFkItk

cm12.1 http://imgur.com/kBbev14
[G2 Original Android Development] maydayind:
Made som charging test.

Samsung 2a charger max out att 16500mah.

Stock/random charger 200mah

But when I use the Samsung cable in stock/random charger itit givesit me about 1600mah
[G2 Original Android Development] Maxximo88:
Hi, I noticed starting from 26 August the Cyanogen Recovery is available to LG G2:

https://download.cyanogenmod.org/?device=d802

Nice story..
[G2 Original Android Development] Len:
I'm using this one;

https://github.com/lg-devs/bootstacks/tree/master/d802/lp (loki)

It's working fine with old rashed builds of 12.1
[G2 Original Android Development] Doc Sniper:
I have a problem with all sensors (and rotation) and camera, all this is not working. Anyone else? Or a solution?

Tested LP and KK baseband, no change.
[G2 Original Android Development] wq0913562:
Over there:

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

they are talking about something they want to fix tomorrow.

Question:

When someone is using the official LG G2 5.0.2 Lollipop stock ROM at the moment, would it now be possible to use the new AutoRec-Lollipop:

https://play.google.com/store/apps/details?id=b007.autorec2

and then flash the CyanogenMod 12.1 Nightly?

Or would that not work?
[G2 Original Android Development] che78:
The cm12.1 for lg g2 si caf?
[G2 Original Android Development] seanp25:
Is all the CAF stuff definitely merged here?

Or was it just the SELinux change that enabled nightlies and the CAF stuff still isn't ready for official builds?
[G2 Original Android Development] Alex93917:
New 12.1 is working great ! I come from LP Stock then CloudyG2 without any change of bootloader.

Rotation and sensors are working. No change of baseband. Only one thing is not working, the camera.
[G2 Original Android Development] jl10101:
Reduce overall volume to LP stock levels - PLEASE TESTING

The volume on this build is waaaay too high - like other CAF ROMs right now - why can't we just pick a volume and stick to it? The audio mods don't work with this either, they cause dialer to crash and a soft reboot

Edit:

Warning - I am not responsible for anything (blowing your speaker, headphones, ears etc) START OFF REALLY LOW as a precaution! THIS IS NOT FLASHABLE - you need to overwrite your current mixer_paths.xml * MAKE A BACKUP FIRST *

So I thought I would try to fix the volume issue. Please test my attached mixer_paths. It sets the max for all volumes at 60 (as far as I know this is LP LG stock value).

Let me know if anything is wrong please. Calls, music, youtube, headphones etc
[G2 Original Android Development] Vihru:
If i have stock. 5.0.2. Can i install cm 12.1 with twrp and it will work? Or i have cloudy g2 3.3.. How about this? I would like two roms :p
[G2 Original Android Development] Alex93917:
[MENTION=4658487]Vihru[/MENTION] : If you are on Stock, just install TWRP with Autorec V2 and flash directly CM12.1

If you are on CloudyG2, just Wipe and flash CM12.1 :)
[G2 Original Android Development] briand.mooreg:
Is screen rotation working for anyone?
[G2 Original Android Development] Alex93917:
[MENTION=4642434]briand.mooreg[/MENTION] : For me, it is :)
[G2 Original Android Development] briand.mooreg:
OK thanks, will maybe flash again.
[G2 Original Android Development] Doc Sniper:
Just for information:

Found out the sensors are only working on CM12.1 when the 30d (Vodafone?) bootstack is used, like the "recommended" one from: https://github.com/Drgravy/bootstacks

Other ROMs like Resurrection Remix (CAF) are working with other bootloaders as well, like 30b (Europe Open).
[G2 Original Android Development] sanodroid:
I had the same problem and I solved it this way ...

LG Flash Tool 2014 install 30b, control all the sensors, [TOOLS] One Click ROOT + TWRP Recovery, and cm12.1 gapps ...

and the phone will work properly
[G2 Original Android Development] antond57:
Sensors and GPS are working fine with the bootstack-d802-LP_30d-Bump bootstack.

So far the camera is not working.
[G2 Original Android Development] marn3us:
I am on official CM12 snapshot 5.0.2, what should i do to update correctly to 12.1 nightly without baseband/bootstack/etc issues? :)

Thanks in advance

Ps: note that i flashed cm12 right from stock 4.2.2 kdz so i think i have all JB stuff
[G2 Original Android Development] jl10101:
Camera fixes incoming!

Sit tight for tomorrow's nightly.
[G2 Original Android Development] Vihru:
I try to make cm12.1 dualbootin with cloudyG2 but it gives me some error when i flashing patched cm12.1.. Im just asking if somebody knows what is the problem in this case? Would be nice to get CloudyG2 and Cm12.1 working together..

script aborted: g2.verify_trustzone() failed to read current TZ version: 2

g2.verify_trustzone() failed to read current TZ version: 2
[G2 Original Android Development] Doc Sniper:
OK, got root on my Lollipoped 30b (5.0.2) ...

Which is the best way to install recovery and/or bootloader without bricking it ?
[G2 Original Android Development] wq0913562:
Anyone here who can answer those questions:

Does CyanogenMod 12.1 support double tap to wake (A.K.A "Knock On") on the LG G2?

And does device encryption work properly in CyanogenMod 12.1 for the LG G2?
[G2 Original Android Development] Jeik:
Yeah,we already discussed that. it Works,but TWRP is better.

Anyhow,did anybody try F2FS wit hthe latest nightly?
[G2 Original Android Development] bondaru18:
Hello! I have a problem with CM 12.1 , no Com Port, only adb interface! Any solutions? Thank you in advance!

[IMG="com ports"]http://s16.postimg.org/qnc3edqj9/sdsd.jpg[/IMG]
[G2 Original Android Development] winteum:
Hi!

I bought a new LG G2 D805 here in Brazil, used the TowelRoot, Autorec, did a TWRP stock backup, installed the 20150830-Nightly-D802.

Everything is working and smooths but I got some reboot while in a call and sometimes while using some apps. I've read in the last pages about location in device only and have set now it.

Some advices about how can I try to avoid the reboots?

Thanks!
[G2 Original Android Development] bravho:
They're working on it, but at the moment no solution. What I do is regulary switch to stock... (no real solution) I hope they can solve it :)
[G2 Original Android Development] Mako0:
It's very strange that I don't have reboots on my phone (25 and 29 nightly)..

Try to shut down "android device manager" options in Google Settings (remote location and remote erase)..

Like I said days ago, I'm using high precision mode GPS and never had any problems using maps, phone calls etc...

Hope that this issue will be fixed soon..
[G2 Original Android Development] winteum:
About what you said "They're working on it", how frequent do you suggest to update? Once a week, everyday?
[G2 Original Android Development] bravho:
I don't use cm 12.1 as a daily driver at the moment... (because of the random reboots) So I follow the thread on XDA and every now and then I give it a try.
[G2 Original Android Development] winteum:
You know I came from a Nexus 5. Before LG G2, I've tried the Moto X but I couldn't deal with Amoled. The LG G2 plus the CM12.1 is a great combo if it works. Do you use the LG Stock or another alternative firmware?
[G2 Original Android Development] bravho:
Cloudy 3.3, pretty fast, smooth and stabel (but no AOSP)
[G2 Original Android Development] winteum:
As I said I did TowelRoot and Autorec (don't know v1 or v2) above Kitkat LG Stock. Can I still try Cloudy 3.3?
[G2 Original Android Development] bravho:
I don't know, check the specific threads... (your model, bootloader, etc)
[G2 Original Android Development] re1743:
Got tired of the reboots (it doesn't stop unless I turn off wifi scanning always on)
[G2 Original Android Development] bps119:
I've had this issue as well on d800
[G2 Original Android Development] winteum:
They're fixing a lot of things every day, track the changelog. I have the wifi scanning off always so I don't know about it but since I set location device only I got still no reboots.
[G2 Original Android Development] .wojtek:
Comming back to this old commed. I was just curious - the fix is not in sight (it seems so) so what is the timeframe that dev is giving himself untill including that workaround? I know it's terrible, but again - it looks like the problem seems to be harder to crack than we thought so... maybe it would be easier to go that road (and as you've already stated - G2 is quite old device and lots of devs are leaving so maybe having a funcional/suable ROM would be better in the end?
[G2 Original Android Development] winteum:
About the G2 being old I want to tell that after my Nexus 5 being broken I've tried a lot of devices including Moto X, LG G3 and G4, Samsung S6, Z3 compact and more. Im my opinion the G2 even old is still the best "screen-battery-camera-performance-cost" combo device, at least until the next Nexus release soon.
[G2 Original Android Development] .wojtek:
Yes, that's true (that's why I'm using it ;) ). But! There's also no denying in devs migrating elsewere, and (as you noted) new nexus is just round the corner and should be at least as good as G2 (tho, wished it would come with sd slot, buuuut), and less hassle with AOSP variants...
[G2 Original Android Development] winteum:
Indeed! I agree with you.