yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S 5 Unified Development] alexbelgium:
[MENTION=2693412]haggertk[/MENTION] [MENTION=7043628]Rocthrower[/MENTION] [MENTION=7193924]rcmaehl[/MENTION] [MENTION=8187951]CStadler[/MENTION] [MENTION=7978913]fitittome[/MENTION]

Dear all, I know that I have posted this before but the attached gps.conf (from this thread) decreases TTFF by 10 times.

I had to zip the file to be allowed to upload it

Median TTFF (4 repeats):

- current GPS.conf : 89.5 +/- 57 sec

- new GPS.conf : 9.5 +/- 4 sec

My setup : G900F, modem CQK3 (or CQC2), latest LOS 15.1, calculated using the GPS test app after clearing aid data, with MMC/MNC 20601

Raw data TTFF : current gps.conf (88, 200, 91, 80 seconds) ; new gps.conf (10, 17, 7, 9 seconds)

Repeatability : exactly same values as when I did the test mid-January
[Samsung Galaxy S 5 Unified Development] fitittome:
Not disputing what you have done, but I found it nigh on impossible to verify all this. The thing is, even in the post you linked to, 'high accuracy' gets in the way of valid testing. If it works for you, great, but I tried it and didn't really get much difference. haggertk has said before that a lot of this is to do with your carrier.

I did find that using more local ntp servers helped and using A-GPS data helped too, but from a cold start (pulling the battery) and using 'device only', it was two minutes for the first TTFF.
[Samsung Galaxy S 5 Unified Development] alexbelgium:
Removed
[Samsung Galaxy S 5 Unified Development] Dr.N@:
Is there a way to update bootloader without pc
[Samsung Galaxy S 5 Unified Development] Keller0088:
And try to format your sd or try with another one! :D
[Samsung Galaxy S 5 Unified Development] haggertk:
You still failed to note the most important information -- your mcc/mnc pair.

There are values in that gps.conf file that will absolutely break GPS on certain carriers (Verizon, for instance).

But let's ignore that for a moment, because I'm pretty sure I found the root cause for GPS fix performance differences between N and O.

---------- Post added at 07:05 AM ---------- Previous post was at 06:56 AM ----------

The port of these to lineage-15.1 needs to be completed:

https://review.lineageos.org/#/q/topic:legacy-camera-hal1+(status:open+OR+status:merged)

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

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

Starting with N, Google separated the mediaserver and cameraserver processes for security reasons. Unfortunately our ancient blobs don't understand that process separation. It took a while to get this implemented in N and then Google refactored the stagefright code in ways that complicated the backport. And it doesn't help that we are all busy and HAL1 recording hasn't gotten to the top of our priority list.
[Samsung Galaxy S 5 Unified Development] tramjens:
maybe with chainfire flashfire
[Samsung Galaxy S 5 Unified Development] msprenger:
Yes it might work but it is saver to use a PC.
[Samsung Galaxy S 5 Unified Development] fitittome:
The easiest way to find this info is here:- Settings>Network & Internet>Mobile Network>Advanced>Access Point Names>Tap your access point name and scroll down to the MMC & MNC values.
[Samsung Galaxy S 5 Unified Development] kal4metal:
another bug I found is that bluetooth speakers don't work. They connect as they should, but there's no sound whatsoever..
[Samsung Galaxy S 5 Unified Development] CStadler:
Thank you!! It works really great, my gps is even faster now, great job! The first magisk module i tried made my gps work but now its even faster
[Samsung Galaxy S 5 Unified Development] fitittome:
But contributes nothing to making the core OS reliable for all the other users, which is the whole point of this unofficial build and the purpose of this thread.

edit: OK that was probably out of order. It's just that the dev was saying that if your GPS was failing to get a lock he wanted to know the net network numbers so that he could understand what was going on. Can you gather that information and post it please!
[Samsung Galaxy S 5 Unified Development] CStadler:
No worries, i was just glad to have gps working, i dont use it much but when i need it i need it.

I asked how to take a gps log a bit back in the thread, i have no idea how to, i don't have knowledge on the gps hardware or values, but the values from the gps.conf file helps.

How/where do i get the network numbers if the gps doesnt lock?
[Samsung Galaxy S 5 Unified Development] haggertk:
I will be uploading new builds this (my) evening. I'll make a rare announcement post, but I will want everyone to first try those WITHOUT any kind gps.conf hacks. If it is still "broken" for a subset of people after that then I will want to collect this kind of data.

Hint - this is what I'm looking at: https://review.lineageos.org/#/c/208723/
[Samsung Galaxy S 5 Unified Development] Ilovejessica:
Thank you. Do u know why it would say that even tho my device is kltespr? Any official rr rom or los rom I've ever tried worked fine
[Samsung Galaxy S 5 Unified Development] Jimekus:
I have one particular BT audio dongle that does this and I have to restart it. I always thought the problem was in the dongle not the Android.
[Samsung Galaxy S 5 Unified Development] haggertk:
Ok, so I uploaded most of the new builds; the rest are still uploading and I'll import after I'm done running.

Please don't flash/edit gps.conf, I really want a clean read of GPS lock performance. In my testing, this returns the lock performance to what we had with N.

If after testing you still have problems locking (multi-minute delays), please provide me your mcc and mnc pair values. It can be found in either your APN settings page or dial *#*#4636#*#*->Phone information->find them at the bottom of the display. If you are in this situation (takes forever to lock on the 20180307 build) AND have a gps.conf update that "fixes" things get that to me too.

If you are going to talk to me about GPS not locking and aren't on 20180307 then I'm going to consider your comments invalid...

Builds are in the usual place.
[Samsung Galaxy S 5 Unified Development] KazuDante:
has anyone else experienced a weird screen flicker bottom half of the screen while the screen is on but at low brightness ( say around 9-15% screen brightness ) on the 05 build ?
[Samsung Galaxy S 5 Unified Development] Keller0088:
It happens to me with every rom, even samsung roms, I took the phone to the service to see if they can fix it... It seems now that it is a general problem not only my case, happens with J7 also, but my case was getting worse every day, even with 80% bright it was still flickering :rolleyes:, they said a month... I hope they fix it, I will let you know :);)
[Samsung Galaxy S 5 Unified Development] 10goto10:
Screen flicker can be caused by faulty screen or battery. Lineage's lowest brightness is lower than stock TouchWiz. Backup, then wipe and flash old build to see if it happens there too. I can't confirm that bug on mine.

Btw, I'm not sure whether this worked in the previous build or not, but I can't play music off my microSD (formatted as NTFS) with the default music player and other apps. (Poweramp works though!)

Has anyone experienced the same issue?
[Samsung Galaxy S 5 Unified Development] haggertk:
It's almost assuredly selinux. As opposed to asking you for a logcat, because drafting sepolicy can be like wackamole, I'll make an effort to remember to format my sdcard as NTFS this week. I will admit to verifying/fixing vfat, exfat, ext4, and even f2fs (vomit), but I didn't look at NTFS.
[Samsung Galaxy S 5 Unified Development] 10goto10:
Thanks! That was my hunch as well, am gonna try selinuxmodechanger to see if setting it to permissive fixes it. EDIT: Bingo! SELinux's such a double-edged sword...

I formatted my SD card to NTFS for (meta)data integrity purposes. Back when 14.1 had buggy sdcard support, I tried it out of curiosity and it seems to have worked well (if a little slow.) Btw, your TWRP build doesn't seem to support mounting NTFS...

On the bright side, built-in camera HDR works now!
[Samsung Galaxy S 5 Unified Development] KazuDante:
danm so it might really be a hardware issue then , guess my lcd dying:crying:
[Samsung Galaxy S 5 Unified Development] Keller0088:
Hmm maybe, IDK, asa i know sth ill tell you mate :D
[Samsung Galaxy S 5 Unified Development] droidian5:
[MENTION=258484]hager[/MENTION]tk Thanks for all your hard work on our old device.

On clean flash of 3/5 I am experiencing random issues with LOS not finding/recognizing my sim card. Not a big deal as a restart usually brought it back. When I dirty flashed 3/7 it wouldn't recognize the sim at all. Clean flashed 3/7 with official gapps and got the same so I clean flashed again without gapps and first boot it recognized sim but lost it again on a reboot. Sorry no logcats as I am using this as a daily driver and have only a short time to play with it. I might have some time this weekend to get some logcats.

Otherwise loving O and was loving the 3/5 and 3/7 versions as they boot sooooooo fast!

SM-g900v

MCC 311

MNC 480

G900VVRU2DQL1 baseband

magisk 16 :o

currently on 2/16 as it is the most stable for me.
[Samsung Galaxy S 5 Unified Development] haggertk:
Ok, so I'm pretty sure that I know exactly what's up your service. My G900V on VZW is perfectly stable, but I think that's because I'm encrypted which slows down my boot just enough (wat!?!? yeah). I'll stop with that little "public test" that I've been performing from here out...

Edit:

And yes, this is one of the only times that I'll pay attention to a report when someone mentions magicstick.
[Samsung Galaxy S 5 Unified Development] droidian5:
LOL glad I said something! I have yet to encrypt, probably should be doing that too.

I also have the flickering on the bottom part of the screen and it is green on 3/5 and 3/7. It was perfect in 14.1 after the tweaks were implemented to not dim the screen as much as it was initially. Got to the point that I actually forgot about that being an issue.

Thanks again hagertk!

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

:o
[Samsung Galaxy S 5 Unified Development] culiacanazo:
Long ago i researched it because i had it too, it's more widespread than one would assume, and it's nothing that we did that caused it (except maybe the tinkering, but not any given rom/mod/kernel, etc. So worry not.

However, because it IS an annoying problem, as a last resort and almost against my will, i installed a screen brightness dimmer (which is actually just an overlay, i.e., you can SEE it in a screenshot); after that, problem "solved" (or at least handled).

To wrap it up, you should know i sold it for unrelated reasons, got me eventually an identical one down to the lack of scratches/dents/cracks, and this one hasn't got it :)
[Samsung Galaxy S 5 Unified Development] alexbelgium:
New build GPS is perfect! TTFF of 10 seconds.

MMC/MNC 20601 , latest build , no custom conf
[Samsung Galaxy S 5 Unified Development] fitittome:
Yep, not quite 10 seconds, but amazingly quick. One more item 'put to bed'. Now I need to study why your zip helped you, but not me. My MMC/MNC 234/20 doesn't seem to be on that commit, but half asleep at the moment.
[Samsung Galaxy S 5 Unified Development] haggertk:
Because the default was updated as well. The problem is that the O platform does not look at all at the gps.conf for XTRA servers. If your mcc/mnc doesn't match a specifically identified then it uses the default values/ one.

Edit:

Why it helped him and not you? It's conceivable that his carrier is supplying data that can aid in aGPS computations, injecting it into the modem. His configuration allows for certain features related to that. Now, I'm not all that willing to chase that to the ends of the earth - if the defaults behave reasonably for a certain carrier then I would prefer to stick with that because, as you can see, it becomes a maintenance hassle on updates.
[Samsung Galaxy S 5 Unified Development] NeoTrantor:
Black screen at boot / Lock screen issue with system profiles

Hi there,

first of all: thank you for the great ROM. For me it works pretty smooth except for two things:

1. I get a pitch black screen at boot - only notification / quick settings drawer is visible. However there is a workaround for this. If i enable flight mode in quick settings and reboot the phone the issue is gone. I can then disable flight mode and use the phone as usual.

2. In system profiles I can disable the Lock screen but unfortunately "don't ask for PIN or password" doesn't work. It still wants my PIN with this setting enabled.

*edit*

Just found this which is exactly what I'm experiencing. Seems to be related but I wonder why this is still an issue in current 15.1 builds.
[Samsung Galaxy S 5 Unified Development] fitittome:
:D I just wanted to get

my

head around what was going on. I can normally test things in a fairly methodical way. :angel: But, trying to get an handle on what was going with this GPS issue lead to immense frustration and tantrums. :mad:

Mainly, I think it was, because the only GPS Status app that I could find that, in any way, managed the A-GPS data was closed source and I couldn't see exactly what it was doing.

I think with hindsight the app *may* be using its own source for the A-GPS data, independently of the OS. What with O not reading the gps.conf in its entirety may well have fudged the issue.... This just confirms that I just do not understand things well enough... but I'm learning ....

Anyway, hats off for getting to the bottom of it. :good: :highfive:

---------- Post added at 09:38 AM ---------- Previous post was at 09:23 AM ----------

I got this dirty flashing the 25FEB Nightly over the 16FEB Nightly, I never came across it before. I could only resolve by a clean install of 25FEB, subsequent dirty flashes have been ok.
[Samsung Galaxy S 5 Unified Development] startas:
Wow, from 10 minutes it takes on lineageos 14.1 to 10 seconds ????? But still i dont understand what happened to gps technology, my 15 years old nokia could catch gps signal in max 5 seconds in all conditions (like nokia e52), and now phones take 10 minutes to catch gps signal, and it requires perfect conditions...
[Samsung Galaxy S 5 Unified Development] alexbelgium:
It took longer due to an issue (agps data couldn't be extracted). In the latest ROM it should be solved and quite fast. 10s is on my carrier but anyway it should be less than a minute (as on stock)
[Samsung Galaxy S 5 Unified Development] Bubka3:
Has anyone had an issue with device contacts disappearing? I've had it happen twice already. I literally just unlock the screen and all my contacts have disappeared, randomly. They are device contacts -- I am not using Google for contact storage. This has occurred on lineage-15.1-20180225-UNOFFICIAL-klte, fresh install and then imported 20 contacts.
[Samsung Galaxy S 5 Unified Development] fitittome:
Yes, I have now you mention it, maybe. Mine are also device contacts, also without gapps. I have a .vcf backup on my sd-card, so just imported them again. As I have flashed a few times in the last week I just thought i had overlooked something........ I haven't gone 'looking' for a problem.....
[Samsung Galaxy S 5 Unified Development] Couchy:
[MENTION=2693412]haggertk[/MENTION] Any tips for debugging non-working LTE on CDMA? I don't see any obvious errors in the logcat when switching from 3G to LTE.
[Samsung Galaxy S 5 Unified Development] fitittome:
Is this of any help? https://xdaforums.com/galaxy-s5/help/galaxy-s5-galaxy-note-3-sprint-help-t3698708
[Samsung Galaxy S 5 Unified Development] Couchy:
Probably should have mentioned I've covered all the basics - got the latest baseband (G900PVPS3CQD1), latest LTE sim available, and all was well on 14.1.
[Samsung Galaxy S 5 Unified Development] fitittome:
OK, but post something up there anyway, Paul knows his RIL stuff.
[Samsung Galaxy S 5 Unified Development] Couchy:
(deleted)
[Samsung Galaxy S 5 Unified Development] :
[MENTION=2693412]haggertk[/MENTION] [MENTION=4770483]afaneh92[/MENTION] when comes the official Lineageos 15.1 for Klte?
[Samsung Galaxy S 5 Unified Development] emk2203:
Has someone feedback about battery usage with the latest 20180307 rom? I have 20180216 at the moment, and the battery lasts four full days (!) in standby, with just a daily check of the device and one or two app updates in this time. I would hate to sacrify this.
[Samsung Galaxy S 5 Unified Development] LazyGuy1:
Don't ask stupid questions. Read the previous pages and see what's going on here.

Answer: HAL1 isn't yet supported on our device yet (I guess, because we have a "legacy" device). That's why we won't get official yet. But soon, we will! Be patient.
[Samsung Galaxy S 5 Unified Development] addy75:
Any idea where to search for the new baseband?

One problem: Google messages (SMS) needs heavy battery. It's about 35%. Ich installed unoffical gapps. 15.1 from 2017.03.08 is installed, Cache and dalvik was cleared. I try to make the needed logcat, any idea how to make it only for the messages app?
[Samsung Galaxy S 5 Unified Development] bhfyouth:
the battery works for me aprox 6h with using it all time fb tw ig wa and so on ... but my main issue is that my bank app is not working anymore just telling me some error close or reopen send feedback dont sure if app or 8.1 :/
[Samsung Galaxy S 5 Unified Development] maksxania:
Use Magisk for root and check magisk hide at magisk manager settings.
[Samsung Galaxy S 5 Unified Development] Hectorin347:
Is anyone else experiencing issues with calls? I can't call anyone, when the call interface appears, the call finishes suddenly

EDIT: If a logcat is needed, how can I get a logcat?
[Samsung Galaxy S 5 Unified Development] emk2203:
Call functionality

Calls work without problems with 20180307 here. Logcat: https://xdaforums.com/showthread.php?t=1726238
[Samsung Galaxy S 5 Unified Development] bhfyouth:
nope not working still same **** :confused::confused::confused:
[Samsung Galaxy S 5 Unified Development] Hectorin347:
So you recommend to clean flash my rom?
[Samsung Galaxy S 5 Unified Development] msprenger:
How do you get this???
[Samsung Galaxy S 5 Unified Development] CStadler:
What is HAL1? Is it an AOSP HAL or what HAL are we currently using?

---------- Post added at 12:06 PM ---------- Previous post was at 12:04 PM ----------

Try to use Universal SafetyNet Fix (USNF), flash it after flashing magisk
[Samsung Galaxy S 5 Unified Development] zlust:
Hellow dev can you add tweak for game tnx awsome rom
[Samsung Galaxy S 5 Unified Development] LazyGuy1:
It's the Camera HAL :D, forgot to mention.
[Samsung Galaxy S 5 Unified Development] fitittome:
I think this explains what's going on. https://source.android.com/devices/architecture/hal-types

I am guessing that the HAL1 work is taking the existing Legacy HAL (which has been deprecated in 8.0) and wrapping it up so that it presents itslf to the 15.1 OS as a passthrough HAL which is supported.
[Samsung Galaxy S 5 Unified Development] CStadler:
Oh, i thought we're using camera HAL 3, or is it used on los14.1?
[Samsung Galaxy S 5 Unified Development] ddjr:
I can't seem to get past setup wizard has stopped. I've deleted the ROM, downloaded it multiple times, always clean flash... Anybody have any ideas?
[Samsung Galaxy S 5 Unified Development] mop09737:
Are you using last TWRP version?
[Samsung Galaxy S 5 Unified Development] ddjr:
3.2.1
[Samsung Galaxy S 5 Unified Development] CStadler:
If you installed gapps, go into the gapps zip and remove setupwizard_default.apk then do a clean flash of the rom and flash the gapps
[Samsung Galaxy S 5 Unified Development] LazyGuy1:
[MENTION=2693412]haggertk[/MENTION]

Are you able to use the Heart rate sensor on Oreo? Because with any build i've tried, it seems to be it is not working at all. So, maybe my device has a problem as anyone here don't say something about the "hr sensor"?
[Samsung Galaxy S 5 Unified Development] swiftbones74:
That's a touch wiz thing I think.

See if this is helpful

https://xdaforums.com/galaxy-s5/unified-development/mod-t3528866/page6
[Samsung Galaxy S 5 Unified Development] fitittome:
Try it on the latest unofficial nightly, if it fails, post a logcat. Someone mentioned it before and

supplied a logcat

, it showed permission problems but I don't know if they have been fixed.
[Samsung Galaxy S 5 Unified Development] LazyGuy1:
It shows this:
[Samsung Galaxy S 5 Unified Development] LazyGuy1:
I used that guide, there is the "measure pulse" button, but the sensor isn't working. Thanks for helping out anyway!
[Samsung Galaxy S 5 Unified Development] emk2203:
Worth a try. I did a clean flash fwiw.

---------- Post added at 05:13 PM ---------- Previous post was at 05:09 PM ----------

Did a clean install via adb

It's not a daily driver, wanted to see how far I get

Checked only a couple of times, did the playstore updates, nothing else

That's it in a nutshell. And the battery is less than 3 months old and a premium brand, not a fake Samsung one or a 5yr old real Samsung one from storage. But I am impressed as well.
[Samsung Galaxy S 5 Unified Development] haggertk:
We are not.

And it's almost like I've explained the whole HAL1 thing in the last two days...

https://xdaforums.com/showpost.php?p=75804408&postcount=2035
[Samsung Galaxy S 5 Unified Development] addy75:
Lucky guy ;)

My Messages APP eats out 36% of battery. After 6-7 the battery ist empty. LOS14.1 lasts ~22h same using
[Samsung Galaxy S 5 Unified Development] haggertk:
The sensor works just fine, at least for me (see attachment).

Your logcat very clearly shows the issue -- whatever app you are using is trying to access the sensor without holding the android permission to access the sensor ("com.samsung.permission.SSENSOR"). If you can get the full app name (com.sec.android.something) then you should be able to manually grant access with:

$ adb shell pm grant APPNAMEHERE com.samsung.permission.SSENSOR
[Samsung Galaxy S 5 Unified Development] startas:
What does mobile network carrier have to do with gps ??? GPS is a piece of hardware that is not tied to carrier in any way.
[Samsung Galaxy S 5 Unified Development] LazyGuy1:
THANKS!!
[Samsung Galaxy S 5 Unified Development] ItsMeShouko:
Which app is it?
[Samsung Galaxy S 5 Unified Development] fitittome:
Only you know that! What are app are you using? If you goto settings>apps you should see the app name at the bottom of the screen. e.g. com.fsck.k9
[Samsung Galaxy S 5 Unified Development] ItsMeShouko:
I was talking about screenshot posted by [MENTION=2693412]haggertk[/MENTION]
[Samsung Galaxy S 5 Unified Development] haggertk:
https://play.google.com/store/apps/details?id=asd.vector.sensor
[Samsung Galaxy S 5 Unified Development] LazyGuy1:
The app is called Sensor Check, get it from the Play Store
[Samsung Galaxy S 5 Unified Development] ItsMeShouko:
Thank you [MENTION=2693412]haggertk[/MENTION]
[Samsung Galaxy S 5 Unified Development] fitittome:
lol. Didn't see that on my mobile! My bad! :) It's curious that my sensor app

https://f-droid.org/app/com.mustafaali.sensorssandbox isn't requesting permissions at any point. You cannot grant permissions in the UI if they aren't requested. Its behaviour is different from what I remember in 14.1.

edit: no behaviour is the same in 14.1. My sensorssandbox request no permissions. The one haggertk suggested requests the body sensors so will work out of the box.
[Samsung Galaxy S 5 Unified Development] 10goto10:
I'm getting 1%/hr battery drain on airplane mode, which is slightly lower than 14.1 (the proximity sensor on my device doesn't stay on when the screen is off anymore, which is nice!)

Is there any reason for you to be using Google's Messaging app instead of the built in one? You can use smaller gapps packages which don't include it or exclude it with a .gapps_config file if you use OpenGapps....
[Samsung Galaxy S 5 Unified Development] fitittome:
My spare has nine days to go, its been on standby for three! Way to go 15.1. Its been doing nothing btw just sat there with mobile & wi-fi on.