yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S 5 Unified Development] cal002:
If you can reproduce it and have time to capture and read through logs, check BUGBASH-1127 for previous discussion. Now I found this article which says Google's fused location provider uses gyro + accel, and according to logs in BUGBASH-1127 sometimes uses sensor batching. My theory is that this triggers a sensorhub firmware bug.

Does anyone have the problem without gapps installed?
[Samsung Galaxy S 5 Unified Development] fitittome:
I like that hypothesis, it fits with the observations. I have a test device that exhibits these symptoms, so I will spend a bit of time exploring it tomorrow.
[Samsung Galaxy S 5 Unified Development] Henki98:
Hi

It is possible fash los 14.1 on a galaxy s5 with modem and bootloader lollipop without fixing bugs or problems? (I have the last twrp installed)
[Samsung Galaxy S 5 Unified Development] valinor_7:
If you have latest TWRP, of course you can wipe system and flash LOS. You might have some bugs/performance issues that would be solved by updating to the latest firmware though. I updated my firmware a few months ago, but before that I was running firmware from 2015 and there weren't any major problems.
[Samsung Galaxy S 5 Unified Development] omgbossis21:
Total bummer over here, my screen now flickers intermittently when dimmed down low (the way I usually keep it lol). This is pretty much a day one model so I guess I'm lucky it lasted this long.
[Samsung Galaxy S 5 Unified Development] fitittome:
Broken gyros

OK, I have two phones where the gyros appeared not to work. One consistently, the other would occasionally work at first boot. Here's what I did:-

Rolled back the bootloaders and modem to CPG3 and CCPG1 respectively. That puts them at roughly Summer 2016.

Installed CM13.0-20161112 to avoid the update discussed in the BUGBASH.

Did not install Gapps.

Gyros worked on neither device.

So, I reinstalled Samsung Stock 6.0.1 (CQI6) and the gyros were still not working.

I think my gyros are broke. :(
[Samsung Galaxy S 5 Unified Development] fipsy:
Sad to hear! :(
[Samsung Galaxy S 5 Unified Development] cal002:
Gyros not working? Sad. But now I'm hungry. :)

Thanks for testing!
[Samsung Galaxy S 5 Unified Development] Johny81:
Camera HDR bug!

Camera HDR is not working in the new update! Knows anyone about this problem?
[Samsung Galaxy S 5 Unified Development] fitittome:
Mine works fine. Snap HDR by Marginz and LOS Snap.
[Samsung Galaxy S 5 Unified Development] Johny81:
It seems to work but REALTIME HDR option lost in Snap HDR by Marginz settings. I tried with wipe data/factory reset. i went back to 2017.11.30. build and there is working well.
[Samsung Galaxy S 5 Unified Development] O_oaa:
Still working on the FM radio. I've learned quite about about how fragmented the FM-side of Android is in just the last several days, and that's making things... interesting. However, I have managed to get some logs using ADB that I believe helps show the BCM4354 chip being utilized to invoke the FM radio functions albeit only with NextRadio. I don't yet know how to make heads or tails on where to go from here, but I'm assuming it involves moving some *.so's (and probably other things) from stock's /system into LOS's /system. Any advice is greatly appreciated!

My quest continues!
[Samsung Galaxy S 5 Unified Development] Brasscat82:
I don't know much about Android software, but I'm pretty certain you can't just make the S5 start receiving FM signal just by moving files around. It simply doesn't have a receiver capable of recieving the frequencies. Am I wrong? Please explain, briefly.
[Samsung Galaxy S 5 Unified Development] O_oaa:
I only have a G900P to work with, but its specific bluetooth chip, BCM4354, contains an FM receiver that is capable of actually receiving FM transmissions. Anyone with a Sprint G900P (there may be others), can flash G900PVPS3CQC1 stock (6.0.1) and install the latest NextRadio app to be sure (ensure you use the Basic Tuner with ALL data turned off and a headphone plugged in... none of the other FM apps I've tried work at all).

I believe there's some magic related to the binary blobs that relate to the bluetooth chip, but I'm unsure how to proceed with copying over the libraries to get the Basic Tuner in NextRadio to work for LOS 14.1. I'm looking for guidance on how to continue.
[Samsung Galaxy S 5 Unified Development] Amirk365:
Some variants have the radio modem and some don't.
[Samsung Galaxy S 5 Unified Development] O_oaa:
Again, G900P's do, others may not. My hardware does and does not keep me from figuring out how to get it working for my hardware.

Thanks!
[Samsung Galaxy S 5 Unified Development] omgbossis21:
I believe they all have the radio but some lack the antenna so their would be no reception.
[Samsung Galaxy S 5 Unified Development] O_oaa:
You are also correct. However, the G900P has such a connection and why I'm on a mission to get it working for this model.
[Samsung Galaxy S 5 Unified Development] phalkon30:
I thought that most phones needed the headphones plugged in to act as the antenna
[Samsung Galaxy S 5 Unified Development] fitittome:
I don't see a REALTIME HDR option. But it lets me switch to HDR mode and I can record video at 4K UHD (3840x2160). Isn't this realtime HDR? I think it works.
[Samsung Galaxy S 5 Unified Development] fipsy:
HDR stands for High Dynamic Range. It means that 2 or more different pictures are taken with different exposure and then merged to one picture to compensate for the disadvantages of the dynamic range (scale of contrast) of the camera. With videos this is not possible, so there can be no HDR video if you only have one camera lens. With multiple cameras, that works. This is then called realtime HDR.
[Samsung Galaxy S 5 Unified Development] fitittome:
Frankly, I don't care. He said it doesn't work and gives no info. I check it and it appears to work. Why not give FULL info, so someone can reproduce whatever the issue is? Grrrrr... :mad:
[Samsung Galaxy S 5 Unified Development] fipsy:
Never mind. You need two cameras for HDR videos. Two cameras also have other advantages. For example, noise compensation and better sharpness. Therefore, all newer and better phones have two cameras.
[Samsung Galaxy S 5 Unified Development] marchnz:
Resolved for me on 14/12 build. Thanks
[Samsung Galaxy S 5 Unified Development] cal002:
Newer CMOS imaging sensors can capture HDR in single shot, it was the novelty of the S5 camera. Thus it works for video and doesn't cause motion blur on photos. Here's a Samsung marketing blurb about it. Note it is a feature of the camera sensor and not just some post-processing trick.

Whether it works in LineageOS is another question.
[Samsung Galaxy S 5 Unified Development] fipsy:
I had never heard of that before. Interesting! But it's not "real" HDR if I read the article correctly. Different areas of the sensor work with different sensitivity and exposure times. This creates an image similar to HDR. The disadvantages caused by physical deviations of the sensor cannot be compensated this way. I always used open camera. This app takes 3 different pictures. One after the other. And in LOS camera app I don't see any difference between HDR option active or inactive. So maybe HDR really got lost in the last update as there have been changes to the camera!
[Samsung Galaxy S 5 Unified Development] javelinanddart:
I was working on this a little while ago, I scrapped my efforts as I got tired of fighting crashes all over the place. I may look into it again, but if I do, I will stop forcing ZSL on all the time, and that means if a user ever switches the ZSL mode, they need to reboot the device. It's a crappy situation, and I decided to leave it be.
[Samsung Galaxy S 5 Unified Development] fipsy:
I have massive problems with the new build 20171214 regarding wireless. My WLAN connection gets lost again and again. Sometimes it is not possible to restore the connection, or it is even indicated that no networks are available. Then I have to restart the device. When I was trying to stream a video to Chromecast, the WLAN connection was disconnected several times shortly after the video started. I guess it may be related to the update of the wireless firmware (bcm4358 / 7.112.201.6) in the last LOS update. Do others also have wireless problems?
[Samsung Galaxy S 5 Unified Development] javelinanddart:
That change does not affect our device, FWIW
[Samsung Galaxy S 5 Unified Development] fipsy:
Oh, I thought so. Because it appears in the changelog for the new build. So what could be the reason? I've never had such problems before.
[Samsung Galaxy S 5 Unified Development] javelinanddart:
Looking at the changelog, nothing stands out to me. I'm not sure. It's been a while since I've built, and atm I'm on stock because I was checking if FM radio was working, and I've been a bit too lazy/busy to put Lineage back on it.
[Samsung Galaxy S 5 Unified Development] omgbossis21:
Grab a logcat? Did you try clearing cache-dalvik? Maybe reset network settings?
[Samsung Galaxy S 5 Unified Development] fipsy:
I always clear art/dalvik and cache after flashing. I had this problem three times today. If it works for all others I will have to investigate a bit more. No problem. Just wanted to know if I'm the only one before spending time on that. Thanks a lot for your answers!
[Samsung Galaxy S 5 Unified Development] fitittome:
FWIW I have been seeing the problems you describe fairly constantly for some time, not just latest nightly. Only on certain access points though. A finger was pointed at 5Ghz Wi-Fi, but I think that was a red herring. It was as if the device was timing out during authentication, then cycling again. I recall that the SSID became blacklisted, which may explain why your reboot fixes it.

I notice it alot at kids football training where the signal is about 50%. Once a connection is achieved it seems to stabilize. I have a 3rd party Wi-Fi manager installed to turn it on and off by cell location, so didn't think it fair to shout about it here.

As for Chromecast, the kids left ours at the Grandparents on the last visit so can't check that till after Xmas. :(

edit: Just installed Android 8.1 on my spare Nexus 5X. :)
[Samsung Galaxy S 5 Unified Development] ShahabJafri:
Dec 14 nightly seem much better battery friendly than the previous versions to me.
[Samsung Galaxy S 5 Unified Development] systemcrash:
Can't say this was ever a problem for me. Although with this latest change (if it was this change which is responsible) I get the feeling that my battery life is slightly decreased. Haggert made a few comments that he could not remember why he initially applied the patch; to resolve some logspam or triage some other cosmetic problem in the logs which might point to something else. Still, one patch does not seem to fit all :/

How has the locked CPU patch worked for everyone else on the Dec 14th nightly?
[Samsung Galaxy S 5 Unified Development] liquidraver:
Anyone here could successfully encrypt the G900F?

I did a latest stock flash + full wipe and installed the latest TWRP + nighly -> encryption -> reboot every 1 or 2 mins

stock flash + full wipe + TWRP + latest nightly + opengapps pico -> encryption -> all data and everything lost, like a factory reset. phone seems to be encrypted (TWRP and boot asks for password, menu shows it's encrypted), but the unexpected factory reset made me suspicious

Tried older TWRP-s too. No luck.
[Samsung Galaxy S 5 Unified Development] mmtrt:
It is fixed,
[Samsung Galaxy S 5 Unified Development] paulcarroty:
Yo, fellas. I'm truing to install rclone to LineageOS and can't find fusermount and Fuse module for kernel. Should I use alternative kernel for Fuse?
[Samsung Galaxy S 5 Unified Development] fitittome:
cpu3 is always on for performance reasons, but it idles at the proper 300Mhz now. It's a Qualcomm thing, apparently. I think [MENTION=5795145]javelinanddart[/MENTION] was looking to see if he could amend something to do with power(?) and two cpus, which I have no hope of understanding.

---------- Post added at 02:41 PM ---------- Previous post was at 02:33 PM ----------

Seems OK here. 14DEC Nightly and TWRP 3.2.1. Are you sure Baseband and Bootloader are upto date?

---------- Post added at 02:46 PM ---------- Previous post was at 02:41 PM ----------

That's beyond me. But, I am certain that we fall back to using fuse if sdcardfs is disabled (ro.sys.sdcardfs=false). So I think there is support in the kernel.
[Samsung Galaxy S 5 Unified Development] mattnin:
I'm on the latest nightly on klte on a vzw phone. Wireless is stable for me.
[Samsung Galaxy S 5 Unified Development] liquidraver:
Bootloader version: G900FXXU1CQG1

Baseband version: G900FXXU1CQC2

Downloaded the latest firmware with TMH CSC code, and it flashed these.
[Samsung Galaxy S 5 Unified Development] fitittome:
Those seem to be later than mine! lol I dunno. Try the ones the dev has posted, which is what I am using. :) https://androidfilehost.com/?fid=817550096634787149
[Samsung Galaxy S 5 Unified Development] fipsy:
The background is that switching on and off the CPU needs extra energy. It's more efficient to let it run for some seconds than to switch it on and off all the time. So I think Qualcomm is here on the right side. ;)

FUSE is even the default if there is no "ro.sys.sdcardfs" line.

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

Me too! :D
[Samsung Galaxy S 5 Unified Development] liquidraver:
Got it working... you need to let the ROM "rest" for 1 to 24 hours (I always tried in the first hour after installing) :) I reinstalled everything from scratch, and only encrypted the next day. it worked.
[Samsung Galaxy S 5 Unified Development] fipsy:
I honestly believe that to be a coincidence. ;)
[Samsung Galaxy S 5 Unified Development] fitittome:
I think that I'm seeing these Wi-Fi problems where there is a problem getting onto the mobile service. But, as I have said before, I have a Wi-Fi cell manager installed too. It may also be associated with waking the device. I have seen this in the logcat.

12-17 22:17:34.272 D/ConnectivityService(828): NetworkAgentInfo [MOBILE (HSPA) - 148] validation failed
[Samsung Galaxy S 5 Unified Development] fipsy:
An interesting observation! I haven't been able to reproduce it yet. But yesterday the problem was reproducible over a longer period of time. Next time I'll look at the Logcat.

Which WiFi cell manager do you use?
[Samsung Galaxy S 5 Unified Development] Raynelfss:
My microphone didn't work after 14/12 update on the following apps (phone, WhatsApp, FB messenger... And others) I went back to 8/12 and it worked again. So I need you guys to check it out. I'm on G900P
[Samsung Galaxy S 5 Unified Development] O_oaa:
I've made a little progress on the FM radio front. I believe the NextRadio app is utilizing the FMRadio service (com.samsung.media.fmradio.internal.IFMPlayer) based on these logs:

12-15 15:31:04.851 12214 12214 I AdapterListing: BRAND: samsung
12-15 15:31:04.861 12214 12214 D FmRadioFramework: created listener48468
12-15 15:31:04.861 12214 12214 D FmRadioFramework: call init
12-15 15:31:04.861 12214 12214 I FMPlayer: Player created :com.samsung.media.fmradio.internal.IFMPlayer$Stub$Proxy@c41d87f
12-15 15:31:04.861 12214 12214 D FMRadioImpl: Player created
12-15 15:31:04.861 12214 12214 D FmRadioFramework: setRadioCallback()
{...snip...}
12-15 15:31:09.521 1882 2988 I FMRadioService: [FMRadioService] setListener :com.samsung.media.fmradio.internal.IFMEventListener$Stub$Proxy@adc0cbd
12-15 15:31:09.531 1882 2988 I FMRadioService: no of listener:1
12-15 15:31:09.531 1882 6749 I FMRadioService: registering low battery listener
12-15 15:31:09.531 1882 1882 I FMRadioService: FMRadioService:mLowBatteryReceiver android.intent.action.BATTERY_CHANGED
12-15 15:31:09.531 1882 1882 I FMRadioService: Low batteryWarning Level :1
12-15 15:31:09.531 1882 1882 I FMRadioService: Level = 55/100
12-15 15:31:09.531 1882 1882 I FMRadioService: Status = 2
12-15 15:31:09.541 1882 6749 I FMRadioService: AudioFocusListener registered

When I list the services running on stock, I see it running running:

shell@kltespr:/ $ service list | grep -i fm
104	FMPlayer: [com.samsung.media.fmradio.internal.IFMPlayer]

It's not running in 14.1, and the only logs that seem relevant are these:

12-17 19:43:48.317 3213 3268 I AdapterListing: BRAND: samsung
12-17 19:43:48.321 3213 3268 I art : Rejecting re-init on previously-failed class java.lang.Class<com.nextradioapp.radioadapters.HuaweiRadioImpl$1>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/huawei/android/hardware/fmradio/FmRxEvCallbacksAdaptor;
{...snip...}
12-17 19:43:48.322 3213 3268 I art : Caused by: java.lang.ClassNotFoundException: Didn't find class "com.huawei.android.hardware.fmradio.FmRxEvCallbacksAdaptor" on path: DexPathList[[zip file "/data/app/com.nextradioapp.nextradio-1/base.apk"],nativeLibraryDirectories=[/data/app/com.nextradioapp.nextradio-1/lib/arm, /system/lib, /vendor/lib]]
{...snip...}
12-17 19:43:48.329 3213 3213 I AdapterListing: BRAND: samsung
12-17 19:43:48.345 3213 3268 E AdapterListing: FmRadio implementation not found for device:kltespr

So, now I'm trying to figure out how to get this service running on 14.1. From there, it appears some bluetooth functions are called and some audio bridging (for lack of a better word) is configured, but the first step looks like getting the service running.

The march continues.
[Samsung Galaxy S 5 Unified Development] fitittome:
The impossible has happened........

Cor Blimey! The Filer App bug has been escalated to the Google Development Team! :highfive:
[Samsung Galaxy S 5 Unified Development] omgbossis21:
Those who have had the flickering screen issue, anybody fixed it? I'm considering looking for another s5 with a bad ESN but a good stack. Then the question is swap it myself or pay somebody? No clue on cost but not willing to upgrade right now.
[Samsung Galaxy S 5 Unified Development] fitittome:
I've used these in the past. LCD Display

Not for the faint hearted. It will take a few hours to do it. But at the end you will have a good screen and new mid-frame, so the outer edge of the device will be properly chromed. Bonus point. You will be in an elite group of S5 users with an attached and functional usb cover!

edit: It looks like that the screen on that link doesn't include the mid-frame, but you get the idea.
[Samsung Galaxy S 5 Unified Development] Pally01:
S5 mid frames are readilly available on Ebay too for $2 or $3 each. They are super easy to change once the display has been removed. I've done a few dozen....
[Samsung Galaxy S 5 Unified Development] fipsy:
The usb cover can be changed any time with a little screwdriver for about 2$.

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

The only problem is to re-apply the middle frame reliably to the display. That is anything but easy.
[Samsung Galaxy S 5 Unified Development] javelinanddart:
I was looking into whether or not we could safely remove this from the Power HAL (which is a library that handles various performance related hints, like screen on/off, video decoding/encoding, etc).

I talked to someone who knows a lot more with regards to why Qualcomm does what they do, and he said that Qualcomm doesn't hurt their battery life without good reason, so I decided to leave it be.
[Samsung Galaxy S 5 Unified Development] godofsalt:
... No, not yet

However, my issue is - Screen will have tiny, grey/green lines through about the lower half. Plus, it used to be only when charging, in last week or so, does it on battery as well. It will not change if you rotate the phone!

Replaced my screen over a year ago. Can't recall all the details, but it was a decent company, brand new!

So not too sure where issues actually lie at this point. It seems to be on either the lock screen when trying to open up the pin unlock. Don't really know What is the darn problem. Just know, it needs to be fixed.

Have taken several S5's apart, and fixed them. Screens mostly. Have totally taken 1 apart and changed out the Motherboard.

The easy fix is the usb cover. Don't even have to take it apart!
[Samsung Galaxy S 5 Unified Development] fipsy:
I think this is a wise decision as switching on and off the CPU takes more energy than letting it run for some seconds at 300 MHz (as I already said earlier in this thread). ;)
[Samsung Galaxy S 5 Unified Development] O_oaa:
So, I've repackaged several of the different stock firmware packages, and now I'm trying to figure out how to update a smali file to include some Looper logic:

12-18 02:50:02.603 3121 3175 W System.err: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()

I need to update this method:

com.samsung.media.fmradio.FMEventListener$2.<init>

to properly setup the Looper object, but I'm not sure how to correctly update the code. Any help on how to update smali (say by converting to Java and recompiling... I'm beginning to understand the smail format itself, but this is a major update to do in smali) would be appreciated. My Google-fu is not helping much at the moment.
[Samsung Galaxy S 5 Unified Development] ydevx:
Custom ROM for Galaxy S5 (AT&T)

Hello, I have a Samsung Galaxy S5 (AT&T).

If I root my device, will I be able to install the LineageOS custom ROM? I don't see klteatt listed above as one the compatible devices.

I read somewhere that the bootloader on AT&T devices is locked.

Does that mean I can't install any custom ROMs?

Any advice would be appreciated.
[Samsung Galaxy S 5 Unified Development] fitittome:
What is your exact Model No?
[Samsung Galaxy S 5 Unified Development] ydevx:
samsung-sm-g900a
[Samsung Galaxy S 5 Unified Development] fitittome:
You're right about the bootloader and its not supported here, but this might help:- https://xdaforums.com/att-galaxy-s5/general/guide-merry-christmas-heres-t3516196
[Samsung Galaxy S 5 Unified Development] rulex231:
Hi I need help

I have a SM-G900P(Sprint) S5 and when flashing ktledv the ril modem crashes and doesn't enable service with my GSM sim, it defaults to the CDMA settings and I would have to use the ktle build instead to get it working.

Has anyone got a solution for this problem yet? I don't use CDMA but the GSM only mode doesn't work properly.
[Samsung Galaxy S 5 Unified Development] Paul_Lunardi:
Hi all,

Just after an opinion. Has anything changed in the last week re memory management. I'm finding when using radioapp or TuneIn radio whilst paired up with my Bluetooth speakers that after a few minutes I'm getting the app closing and I need to reopen it.

Not sure whether I should send an email to the app developers, or whether it's an issue with how I'm using my phone or whether memory management has changed.

I've recently factory reset my phone don't have any mods just on the latest build 14 th December.

Thank you.
[Samsung Galaxy S 5 Unified Development] fitittome:
I can't see anything obvious that has changed. Maybe a logcat would help if it fails so rapidly. It may give a pointer.
[Samsung Galaxy S 5 Unified Development] Paul_Lunardi:
Ok sure when I tested it this morning it didn't happen but I will keep a close eye on it and look at the location.

Thanks
[Samsung Galaxy S 5 Unified Development] cal002:
Did you try jadx?
[Samsung Galaxy S 5 Unified Development] O_oaa:
After [MENTION=5795145]javelinanddart[/MENTION] mentioned it, I was able to correctly deodex the files to load into it.

Found that the FM radio implementation might have been done with the PILOT FM Radio SDK. The Sprint Samsung Galaxy S5 is in the list of supported devices, so I think I'm headed in the right direction. I'm going to see how this SDK works and if I can get the files I created from jadx worked into it. It might not even be necessary.

It's not necessary. Samsung appears to probably started working with that SDK but coded their own implementation to interface with the radio hardware. I'm trying to work all of these classes into a single project, but it's going to take some time.

I hope this is light I'm seeing at the end of the tunnel. I'll post all of my findings in detail once I'm finished.