yashsingh1/xdaforums huggingface dataset:
[G2 Original Android Development] bernida:
Alright guys, I was able to pinpoint it down! :) tldr for a quick fix is at the bottom

Its related to the xtra files. These aid assistance data, a comprehensible explanation is here: https://wwws.nightwatchcybersecurity.com/2016/12/05/cve-2016-5341/

I believe the issue was patched in while GPS wasn't working anyway, thus nobody noticed:

https://review.lineageos.org/#/c/201140/

https://review.lineageos.org/#/c/201140/2/gps/etc/gps.conf

So as you can see, using xtra2 is not recommended anymore, but it seems our phone has problems with the xtra3grc.bin

Perhaps the file format or something is missing with the digital signature verification or whatever... Passing this to the devs :highfive:

Note how in commit 201140 https was not used, only http. But we can use https for xtra2 at least, so please don't just revert.

About ntp: Tried north-america, europe and pool only. Didn't make much of a difference, maybe 1-2 sec in lock time. Pool was the slowest, so I believe we can leave it at north-america. But obviously there is a big margin of error here, so I guess it doesnt matter

About glonass: I tried values 0x2 0x4 15 and 0 for A_GLONASS_POS_PROTOCOL_SELECT Didn't make any difference. But as you can easily confirm by yourself, we receive signals from GLONASS sattelites as you can see here (round dots = GPS, triangle = GLONASS)

So to formulate further development goals for this I'd say:

#1 fix xtra3grc.bin handling so our phone can use it (intermediate fix: use xtra2)

#2 investigate why we won't get a lock on GLONASS sattelites (edit: further investigation, it seems like this is a lineageOS issue in general and was disabled on purpose https://jira.lineageos.org/browse/BUGBASH-458)

sry 4 the long ass post, I'm glad we still have an active dev community for this phone, thanks to the devs and anyone in the community helping to make things better :victory:

TLDR:

from stock gps.conf, change:

XTRA_SERVER_1=https://xtrapath1.izatcloud.net/xtra2.bin
XTRA_SERVER_2=https://xtrapath2.izatcloud.net/xtra2.bin
XTRA_SERVER_3=https://xtrapath3.izatcloud.net/xtra2.bin
[G2 Original Android Development] eduardo9315:
this application changes the gps.conf automatically

https://play.google.com/store/apps/details?id=org.fastergps

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Original Android Development] Kapricornus:
Can you, guys, try this one?

It might fix remaining GPS issues

https://review.lineageos.org/#/c/208431/1/gps/etc/gps.conf
[G2 Original Android Development] bernida:
tried it, still doesnt work.

https works with xtra2.bin though

maybe some qualcomm driver/api is missing or buggy? I really don't know how/by which service the file is further processed internally, but seems like something is wrong with handling the new xtra3 format
[G2 Original Android Development] eduardo9315:
Test after change gps.conf and reboot.

10 seconds in app

It works well.

Enviado desde mi LG-D802 mediante Tapatalk
[G2 Original Android Development] Kapricornus:
And how do you verify that it works or doesn't?
[G2 Original Android Development] V1nokas:
Tried this but it didn't fix anything for me.

GPS works fine when using xtra2.bin.
[G2 Original Android Development] bernida:
0. change values in gps.conf

1. Flight mode

2. open GPS Test, quickly 3 dots -> AGPS -> Clear only

(close app and repeat just to be sure)

3. reboot phone, deactivate flight mode

4. open GPS Test

if "it works", on next GPS Test start: for a split second it will say in-view "0", then jump to 12 and quickly after to 21 (this is when the almanac data is injected I guess), 5-7 sattellites will immediately get locked, few seconds later -> location fix

with xtra 3 behaviour is as following:

open GPS Test, for a split seconds in-view "0", then jump to 16. (so apparentely SOME data is processed). But no signal strength bars on the sattellites. After >15s, one sattellite gets locked ("in-use"), quickly after this sattellites 2-3 get locked, but still no location, waiting another 1-2min -> location fix and introducing more sattellites

downloading the xtra3grc.bin with our without https through browser works
[G2 Original Android Development] Kapricornus:
Interesting, neither xtra3grc nor xtra2 downloads for me through browser when using https
[G2 Original Android Development] Boopie11:
Is internet connection needed every time you use the GPS Test app (with GPS Device only) or only the first time you use the app to get the xtras downloaded?

After rebooting the device, AGPS has to be cleared again?

Why we do not use the AGPS "update" feature, what does it does?
[G2 Original Android Development] bernida:
Fiddled around with flight mode and reboots and it seems that the xtra almanac data will be reset anyway on reboot (so my procedure wasn't even necessary)

the almanac data is cached for the session (at least a couple minutes). for example you get a lock etc, close the app, go flightmode and reopen the app, you still have the almanac data preloaded

(i believe the almanac data itself contains satellite position information valid for 7 days iirc)

[MENTION=4283595]Kapricornus[/MENTION] that is really weird. Every combination (https, http, xtra2, xtra3grc) does download for me
[G2 Original Android Development] Boopie11:
Interesting, and why are not we using

SUPL_HOST=supl.google.com

SUPL_PORT=7275

???

What are the differences between LPP_PROFILE = 0, 1, 2, 3 ?

# LTE Positioning Profile Settings

# 0: Enable RRLP on LTE(Default)

# 1: Enable LPP_User_Plane on LTE

# 2: Enable LPP_Control_Plane

# 3: Enable both LPP_User_Plane and LPP_Control_Plane

Does not seem self explanatory

BTW

Here is some info about xtra, xtra2, xtra 3

https://wwws.nightwatchcybersecurity.com/2016/12/05/cve-2016-5341/
[G2 Original Android Development] bernida:
we are using SUPL_HOST=supl.google.com SUPL_PORT=7275, just look at the stock gps.conf ....

I already posted a link to the xtra/2/3 article im my post on the last page, but yes, it explains it well.

about LPP profiles. These have to do with the approximate location you get from the carrier (i.e. network location, location services without satellites). I believe nothing needs to be changed there/its working as intended. I'm not a mobile network engineer though ;)

RRLP seems to be the protocol that is supported by the biggest number of mobile networks. See page 11 here

So I don't think this has to do with any of the issues were currently dealing with
[G2 Original Android Development] Boopie11:
Sorry, I meant to say in your post why are you not including "SUPL_HOST=supl.google.com SUPL_PORT=7275" in your config

https://xdaforums.com/showpost.php?p=75756898&postcount=684

About LPP " I believe nothing needs to be changed there/its working as intended" the stock value on the GPS conf is "LPP_PROFILE = 0" that means "# 0: Enable RRLP on LTE(Default)" why you changed to "LPP_PROFILE = 2" ?

I will check the mobile network article, thanks for you investigation work!

Gps config file seems to be very simple and complex file at the same time, and every device has it's own particularities
[G2 Original Android Development] jenda.69:
Could someone explain me... I flashed Lineage OS and some (recent?) files in the internal storage are just empty files, 0 bytes. Even today's Titanium Backup folder with backups created just before wiping old CloudyG2 system is just 0 byte file in LOS... Why is that?

I tried browsing some directories using Solid Explorer and found that these recent files are intact in /storage/self/primary but this directory probably cannot be accessed by ordinary apps.

//edit: Huh, I just tried Terminal Emulator and "Titanium Backup" directory show "permission denied" when trying "ls" command in /storage/emulated/0. But if I'm SU, "ls" shows info normally. So some files on internal storage are root only? I'd understand why it is TB directory... but e.g. Csipsimple directory is the same it definitely isn't app requiring root.
[G2 Original Android Development] bernida:
[MENTION=5378257]Boopie11[/MENTION] "my" gps.conf was basically just one I found in another forum on the internet and decided to give it a try. It worked for me and thus I shared it. I did not go through every setting and set it myself - at this point I had no clue what most of these settings are for, also I am not using this config anymore and wouldn't recommend it to anyone. (Even though everything worked fine)

Basically just use stock and only change the xtra thing would be my recommendation for now :)
[G2 Original Android Development] phkhphk:
Hello, after the last update there is a message

that charging is fast but it is very slow

Happens to someone else ?

d802

thanks
[G2 Original Android Development] gabrielmulle:
Hello guys,

So, I've been testing the GPS for the last days/week and the problem persists (delay of minutes to 'lock').

I also see I'm a little bit late, looks like the user bernida figured out the root cause of the problem.

As I don't know how to change the files, I'm looking forward to the next build *_*

Thanks bernida.
[G2 Original Android Development] Mrkblo:
Flashed the 28/02 build. GPS takes forever to lock to only 3 of 21 available satellites (more than 20 minutes, with clear view of the sky).
[G2 Original Android Development] nokiac:
Yes, I can confirm this GPS issue. Before the 28/02 build I had the 29/01 build which was working fine for me as far as GPS goes. I did a dirty flash of the 28/02 build and the GPS performance is exactly as described above by [MENTION=1953583]Mrkblo[/MENTION] . I did a clean flash by wiping system,dalvik cache ,cache and re-installing the 28/02 zip and Gapps and the issue persists.

Edit: THis is on a D800
[G2 Original Android Development] Kapricornus:
GPS problem will be solved in tomorrow's build
[G2 Original Android Development] zaibansari20:
Can you please add support for Korean Version F320 ?

Everything works fine with D802 Official LinageOS ROM with a F320 custom kernel ?
[G2 Original Android Development] frikisama:
Indeed, GPS works beautifully now. Thank you!

Only old problems left: no connection to GLONASS, and mostly broken compass when the device is encrypted. But as long as GPS is working I'm happy.
[G2 Original Android Development] Sly_North:
Thx. Is the last VS980 build (02-03) also containing the fix? Or shall VS980 users wait for the next in-two-weeks build?
[G2 Original Android Development] Kapricornus:
No, but I'll post a new build in half an hour
[G2 Original Android Development] nokiac:
GPS works fine now indeed on my D800. Google maps started working and navigating instantly when started now after the latest 03/07 update. Not sure how to check if Glonass is working . Thanks a lot Devs for this fix.
[G2 Original Android Development] Kapricornus:
Glonass is not working for G2 just as for many others. No need to check :)
[G2 Original Android Development] buaser:
I have problem with cutted first notification sound after making phone call. Please check this scenario, enable ringtones, make phone call, end call. Ask someone to write to you on FB messenger - is the notification sound played fully or only the part of it? Mine is heard only the second half... I have latest nightly, clean install on d802. I have disabled touch sounds so the notification may the first sound played after the phone call, but tested with enabled touch sound and the same problem.

Please check if the FIRST notification sound on speaker after call is played correctly, especially if it's short like FB messenger's one.

I came from CloudyG2 week ago and found this bug.
[G2 Original Android Development] Sly_North:
Thanks. The new VS980 build locks a GPS signal in about 12 seconds, nice improvement!
[G2 Original Android Development] _kayya:
Should we do a clean installation of today's build? Or do we just install over the previous version?
[G2 Original Android Development] i_mendes:
My wife have an LG G2 D802 just like me. We the latest build (07/03/2018).

None of us have a flip cover. We only have a back cover.

The thing is that in her phone, on Settings, she have a Flip Cover section, above 'Buttons'. I don't. But why that appears even when the phone doesn't have a flip cover?

Enviado do meu LG-D802 através do Tapatalk
[G2 Original Android Development] gabrielmulle:
I installed the last build yesterday and I can confirm GPS is working great, 100%.

I tested yesterday, GPS lock was instantly. Tested today again, lock instantly.

Thanks everyone for this fix.
[G2 Original Android Development] qwertyu123:
The Flip Cover section appears when the phone detects the flip cover magnet. Probably accidentally there was a magnet near your wife's phone (from her bag?) and that's why she has the section and you don't.
[G2 Original Android Development] i_mendes:
That makes sense. Thank you for your answer.

Enviado do meu LG-D802 através do Tapatalk
[G2 Original Android Development] pejicgoran:
Yes i notice too.Sometimes ring just half notification ton for message of viber.
[G2 Original Android Development] buaser:
Did you post it on JIRA when it was open for bugs?
[G2 Original Android Development] pejicgoran:
No.
[G2 Original Android Development] buaser:
Can someone post this bug to the bug tracker? Maybe OP [MENTION=4283595]Kapricornus[/MENTION] could help.
[G2 Original Android Development] i_mendes:
Hi.

If I buy a flip case with that little window on the front, it will work, like the original LG rom?

Enviado do meu LG-D802 através do Tapatalk
[G2 Original Android Development] n@vier:
[MENTION=4283595]Kapricornus[/MENTION] [MENTION=5586231]qwertyu123[/MENTION]

Just a request if it's possible: could you add the ambient display feature?

I saw and used this useful feature in some LOS based ROM (like AICP and RR) and I can confirm it works perfectly.

I think it would be great to have this feature built-in LOS.

What do you think about it?

Thanks in advance ;)
[G2 Original Android Development] Kapricornus:
No, LineageOS support for quick window is quite limited
[G2 Original Android Development] Kapricornus:
Have you seen it for G2?
[G2 Original Android Development] Kapricornus:
I don't care much about this bug
[G2 Original Android Development] buaser:
Is this bug only on our device or whole LOS?
[G2 Original Android Development] Kapricornus:
Likely it's LineageOS bug, but I don't have other LineageOS devices to verify
[G2 Original Android Development] Kapricornus:
Are there any developers among you that could help us make a switch to open-source RIL? It's a blocker for us to get Oreo.
[G2 Original Android Development] n@vier:
Yeah of course as I wrote I used it with AICP and RR on my G2
[G2 Original Android Development] qwertyu123:
As far as I know G2 Display panel doesn't support low power modes, so this means Ambient display won't be implemented, even if it's technically posible.
[G2 Original Android Development] n@vier:
[MENTION=4283595]Kapricornus[/MENTION] [MENTION=5586231]qwertyu123[/MENTION]

If you want to take a look for ambient display this should be the commit:

http://gerrit.aicp-rom.com/#/c/31859/

Thanks :svetius:
[G2 Original Android Development] Kapricornus:
I'm currently compiling a version with Ambient Display enabled. Give me a bit of time to see what can be supported and whether it doesn't have negative side-effects
[G2 Original Android Development] Kapricornus:
Actually works quite nicely for me.

Ambient Display will be disabled by default, you'll need to go to Settings->Display->Turn on display when notification arrives

I'm thinking of enabling it for the Wednesday's build
[G2 Original Android Development] _kayya:
When i enabled the antishaking mode in snap's video option, the application freezes and shuts itself. Is it my device specific problem or is it a bug? Is there anyone who encounter this? I have a D802
[G2 Original Android Development] i_mendes:
I have the same problem, too. Maybe it's a bug. I have a D802 Int.

Enviado do meu LG-D802 através do Tapatalk
[G2 Original Android Development] jenda.69:
I don't think OIS works in LOS.

But I have different problem with Snap camera... When using 4:3 resolution, it crops bottom of the viewfinder (above shutter button). For 12MPx photos it's about 300px lines which are on final photos but not displayed in viewfinder.
[G2 Original Android Development] pejicgoran:
[MENTION=705591]jenda.69[/MENTION] Try this camera.Replace it with root explorer
[G2 Original Android Development] i_mendes:
Now that this rom is quite stable, it's not possible to improve some LG G2 specific features? For example the Quick Window.

Enviado do meu LG-D802 através do Tapatalk
[G2 Original Android Development] desirexel:
Request

Can you enable network speed in statu bar setting? It would be nice thanks
[G2 Original Android Development] Wilson w:
The new feature is awesome. Thank you very much!!!
[G2 Original Android Development] n@vier:
[MENTION=4283595]Kapricornus[/MENTION]

I can confirm ambient display works great!

Thanks for your support you rock :good:
[G2 Original Android Development] JuraP:
Hi, guys, could you, please, give me an advice, which part of mixer.paths do I have to edit in order to LOWER in call volume when using headset/in ear headphones?? Because even on lowest volume it´s unbearably loud to me. Thanks a milion in advance!
[G2 Original Android Development] jenda.69:
This one is better but... it is missing setting to turn shutter sound off... :laugh:

I also found out that if I enable Expanded desktop for (original) camera, viewfinder is okay too.
[G2 Original Android Development] i_mendes:
Where is the update file? It should be in data/lineageos_updates like the previous updates, but now I have nohing there.

Enviado do meu LG-D802 através do Tapatalk
[G2 Original Android Development] Yoyo117:
[MENTION=2726463]i_mendes[/MENTION]: If you're looking for it in TWRP you have to mount /system first for whatever reason.
[G2 Original Android Development] i_mendes:
Don't know what happened. Tried three times and the fild wasn't there. In the updater I choosed not to delete the file after the update. Tried again. The file was there!!

Enviado do meu LG-D802 através do Tapatalk
[G2 Original Android Development] Both Barrelz:
For me this Rom runs like butter. However, I have experienced 3 distinct issues, which happen randomly. Wether these are ROM, Hardware or application based issues, I do not know.

1) When playing games I sometimes get slowdowns. I generally only play tower defense games and this problem becomes notable when alot of enemy are charging my lines. If this issue is to happen, a restart of the phone and replay of that game will normally run fine. Which suggests a memory issue.

2) When using YouTube app. I have noticed that if I switch through tabs (example is from home to activity or library) the page does not fill. I am left with the YouTube UI but with absolutely no fill, just a white background. Switching tabs does not redeem the issue and can only be resolved with app restart.

3) Using Google app to search. Sometimes the search results are unclickable. They react to finger press but do not open link. An app restart fixes this.
[G2 Original Android Development] Beastage:
Guys, what did I do wrong?! LG G2 802 , 32gb, was on version 30a (stock LP 5.0.2) .

1. rooted the device

2. used autorec to flash recovery

3. installed latest blastgator twrp

4. did factory reset via recovery

5. installed latest lineage, matching gapps micro, lineage su.

now phone is dark past LG logo, nothing happens, luckily I can still boot to recovery.

please assist, ty

OK! fixed it, flashed hybrid bootstack 5.1
[G2 Original Android Development] bernida:
try to FORMAT system/cache and then FORMAT data (warning, this will wipe everything including internal storage and saved recovery settings) and then copy and install the zip again. also make sure everything is ext4 file system
[G2 Original Android Development] Beastage:
nope didn't help :(

just tried mokee, same problem... noticed something weird! because this time I had usb cable connected after the LG logo , 11 new drives appear in my system :confused: , disconnect cable they disappear.

---------- Post added at 10:41 PM ---------- Previous post was at 10:35 PM ----------

OK! fixed it, flashed hybrid bootstack 5.1
[G2 Original Android Development] Sabahudin12:
UVC Support?

Is there a way to enable the UVC driver?
[G2 Original Android Development] Boopie11:
What is this?
[G2 Original Android Development] Sabahudin12:
It is required for an OTG camera.
[G2 Original Android Development] namitutonka:
LG G2 d800 is runnining LineageOS 14.1-20180314-NIGHTLY-d800

This ROM is liquid smooth and fast on my AT&T LG G2 d800. Everything works, bluetooth music and Waze in the car, wi-fi file transfer, root, Play Store, Alarm (woke me up this morning), OK Google voice command, etc. Thought I didn't have root, but it can be found in Developer options as [MENTION=4951070]nickname9[/MENTION] says here.

I went into recovery to use [MENTION=5031300]blastagator[/MENTION] 's TWRP 3.0.2-1 and easily went from to LineageOS by installing the following files:

1. lineage-14.1-20180314-nightly-d800-signed.zip

2. open_gapps-arm-7.1-micro-20180314.zip

3. addonsu-14.1-arm-signed.zip

Be sure to enable Developer options by tapping 'Build number' in 'Settings' > 'About phone'.

I also go to 'Settings' > 'Security' > and enable 'Unknown sources'

Pictures. :good:

Thank you [MENTION=4283595]Kapricornus[/MENTION]

4/13/2018 I really do like this LineageOS ROM, but have reverted to Lollipop 5.0.2 [(ROM-d80030b-stripped-v1.1-blastagator) with (xceed-kernel-bld14). Functionality is excellent in both ROMs, but it seems easier to get around in my older ROM.
[G2 Original Android Development] adrisanfe:
where can i find earlier builds?
[G2 Original Android Development] GalaxyVolvoZ:
Does it have any remarkable bugs or issues or is it good for normal usage ? How is the camera ?
[G2 Original Android Development] 9up!:
It can definitely be used as a daily driver. Camera is ok, at least it has one.
[G2 Original Android Development] adrisanfe:
someone?
[G2 Original Android Development] tasglxcore:
https://download.lineageos.org/d802
[G2 Original Android Development] adrisanfe:
i mean, earlier than that (for example, of 2017)
[G2 Original Android Development] tasglxcore:
Look this https://androidfilehost.com/?w=files&flid=131348&sort_by=date&sort_dir=DESC
[G2 Original Android Development] adrisanfe:
thanks for the help mate (but i have the same problem, autentication error on pokemon go) but thanks
[G2 Original Android Development] tasglxcore:
Use magisk not su
[G2 Original Android Development] namitutonka:
Everything is working. The battery life seems better as well, even without Xposed (installed on my other Lollipop ROM) with the Amplify module.

Installed Xposed 3/20/2018 with these steps:

1. From recovery, install (flash) xposed-v89-sdk25-arm.zip This file is both hardware architecture AND Android Nougat 7.1.2 specific.[/COLOR]

2. Reboot

3. Installed XposedInstaller_3.1.5.apk

4. Reboot

5. Installed Amplify, my favorite xposed module.

6. Ran Xposed Installer and activated the Amplify module.

7. Reboot

It works!
[G2 Original Android Development] Boopie11:
How much GB is taking "system" for you?? (Under settings - storage)
[G2 Original Android Development] namitutonka:
4.96 GB
[G2 Original Android Development] Sobek5150:
So I put this ROM on my wife's vs980, and we get terrible lag sometimes. Like 15 to 20 seconds to open an app. Sometimes it's fine.

I was thinking it was the kernel. Any suggestions? Came from an AICP build from Drgravy last May 2017.
[G2 Original Android Development] BELLOTTS:
Same here, try Mokee, Lag Will disappear!
[G2 Original Android Development] f1or:
My phone (d802) does not wake up on incoming calls since latest nightly. Anyone having similar issues? And a potential solution? Thanks
[G2 Original Android Development] Kapricornus:
Any specific scenario?

----

Also does anyone have a lot of audio noise when recording video/audio? Was it better on stock?
[G2 Original Android Development] csm1n:
You're doing a really good job maintaining G2.

But is there any chance to provide support for substratum oms in future builds?