yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S 5 Unified Development] curiousrom:
OTA Update 2019-12-16 Success - LineageOS 16.0 for S5 klte

Updated successfully to LineageOS 2019-12-16 (screenshot) via the built-in LineageOS OTA Updater a Galaxy S5 SM-G900M LineageOS 16.0 klte running build 2019-12-12 + Open GApps Pico + LineageOS AddonSU, no custom kernel or system mods of any kind & everything went smoothly as usual.

So maybe your problem with build 2019-12-15 is related only to the Galaxy S5 SM-G900V klte.

Or only that build date was problematic. :confused:

***
[Samsung Galaxy S 5 Unified Development] jdrch:
I'll try that build tomorrow.
[Samsung Galaxy S 5 Unified Development] faizal2090:
Same here, on SMG900F
[Samsung Galaxy S 5 Unified Development] curiousrom:
Setup description? Did you try build 2019-12-16 as posted above?

***
[Samsung Galaxy S 5 Unified Development] faizal2090:
I did a clean flash, install latest build and pico gapps and nothing else

Did I missed any steps?
[Samsung Galaxy S 5 Unified Development] curiousrom:
I don't know without any description of what you did exactly. Also missing the build date of Pico.

Check S5 super clean install & use LineageOS 16.0 build 2019-12-16 or newer.

***
[Samsung Galaxy S 5 Unified Development] rootkitty:
I'm planning to upgrade my SM-G900W8 from crDroid 4.2 (Oreo 8.1) to LOS 16.0 - Can someone please advise:

Should I go with the latest build?

Should I install MindTheGapps or Open Gapps (If so Pico/Nano)? Do I use Arm 32 or Arm64?

I'm planning to wipe Dalvic-Art/System/Data/Cache - I assume that I don't need to wipe the Internal storage?

I'm running TWRP 3.2.1-0-Thread says that's OK - any reason to upgrade?

Instead of using adb sideload, is it OK to:

1. Copy Lineage, Gapps, Magisk zip packages to the external SDCard

2. Using the install function on TWRP -install the Lineage, Gapps, and Magisk zip packages in that order

3. Power down and restart
[Samsung Galaxy S 5 Unified Development] Eklondh:
Anyone got snapchat working with EdXposed? I tried the snapchat bypass version but it literally did nothing, magisk-EdXposed-SandHook-v0.4.6.3_beta.Justins.Fork.-release.zip got me a bootloop and magisk-EdXposed-SandHook-v0.4.6.3_beta.Justins.Fork.NO.CUSTOM.MAGISK.-release.zip literally did nothing
[Samsung Galaxy S 5 Unified Development] kurtn:
Your plan is good. Updating twrp does not hurt. You can flash the img file inside twrp.

GApps if you need it is arm 32. Usually the smaller the better.

Instead of magisk there is addonsu from downloads extras, if you don't need modules, but only root.
[Samsung Galaxy S 5 Unified Development] curiousrom:
I prefer to install only LineageOS + GApps, boot to System, setup, then backup the clean install in TWRP & install a root method later.

See S5 super clean install & use LineageOS 16.0 build 2019-12-16 or newer.

***
[Samsung Galaxy S 5 Unified Development] dtr.:
I have had this weird bug too now for over 3 weeks just randomly goes to that blue screen + time
[Samsung Galaxy S 5 Unified Development] kurtn:
Read the following posts.
[Samsung Galaxy S 5 Unified Development] Reverse-anastomosis:
It isn't a bug, I already replied.

This is the flip cover. Go to settings and disable the flip cover.

See Disabling System Apps - FlipFlap, Smart Cover or S View.
[Samsung Galaxy S 5 Unified Development] Domnic0:
Hi. Great OS!! Is there a way to update the cameras features to take full advantage of the Samsung s5 capabilities within Lineage OS 16 or future Lineage OS versions? Thanks!
[Samsung Galaxy S 5 Unified Development] eurohunter:
I have attached the VM APN Fix file that I used to flash. For Virgin Mobile, this files gives us data connection. Without it there is 0 data connection (no 1x, no 3g either).

The LTE on Lineage 16 for some reason was tricky. I kept crashing carrier settings and reflashing the rom until I would have LTE. I don't know exactly what used to trigger it.
[Samsung Galaxy S 5 Unified Development] jdrch:
Thanks for your advice. 2019-12-16 + GApps 2019-12-17 is failing to boot too.

I'm gonna uninstall an app I'd installed on the working 2019-12-15 build and see what happens from there.
[Samsung Galaxy S 5 Unified Development] rootkitty:
For some reason I am unable to flash Lineage 16.0 to my SM-G900W8 - I am getting "Zip signature verification failed!" Errors.

Using TWRP 3.3.1-0 I did: Wipe / Advanced Wipe: Dalvik / ART cache, system, Data, cache

Then I went to install and selected the zip file and selected install.

I first tried with lineage-16.0-20191216-nightly-klte-signed.zip which was on the External SDCard.

When that failed, I used adb to load 'lineage-16.0-20191218-nightly-klte-signed.zip'' to '/sdcard/lineage-16.0-20191218-nightly-klte-signed.zip' and attempted to install it which again failed with the following output:

Installing zip file '/sdcard/lineage-16.0-20191218-nightly-klte-signed.zip'

Checking for Digest file...

Verifying zip signature...

Zip signature verification failed!

Error installing zip file '/sdcard/lineage-16.0-20191218-nightly-klte-signed.zip'

Updating partition details...

...done

I know that this file was not corrupted because I ran an sha256sum on file and it matches with the published values.

/sdcard # sha256sum lineage-16.0-20191218-nightly-klte-signed.zip

3bb51c2e0908fd9a54f5159afc591eaad18bc9bbb4c53624721e317fae8d608e lineage-16.0-20191218-nightly-klte-signed.zip

What am I doing wrong? I did not want to turn off signature verification without knowing exactly what is going on.

(Turns out that TWRP can't verify because it doesn't have the Lineage OS public key baked in, so it is necessary to turn off the verification.

The method for verifying the authenticity of builds is given here: https://wiki.lineageos.org/verifying-builds.html

TWRP can verify Open Gapps correctly and it is OK to leave the verify signature checked.)
[Samsung Galaxy S 5 Unified Development] jdrch:
I found the cause of my flashing problem: the VirusTotal app. Once I uninstalled that, everything booted just normally after installation.
[Samsung Galaxy S 5 Unified Development] faizal2090:
It works. Super clean install is the solution

Thanks :good:
[Samsung Galaxy S 5 Unified Development] MeisterManuel23:
Sooo I finally found a device where I could test NFC cuz using my roommates iPhone and Huawei phone NFC simply didn’t work (with the old and new battery) But using my camera for work which has NFC built in to send pictures to the phone it worked flawlessly.

As for the weight of the new battery, my friend used a high precision electrical scale from work and it measured a weight of 45.07 grams. So, in conclusion, it is actually a legit OEM battery that was worth the money. It’s from “Samsung-parts.net” in case someone needs a new one.

I’ve taken some pictures of the new (right) and old (left side) to show it. I’m aware that this ain’t the right thread for that topic but u could still link to the post for other threads regarding batteries.

As for the Adreno drivers, thanks for letting us know that they are outdated. Someone asked about it too after my previous post.

Phone’s running super stable now with the new battery and it even lasts for more than a day while taking pictures + GPS for navigating all day when sightseeing. (Not using LOS16 though)

And just before I forget: When calibrating the compass for navigation be sure to remove your case if u have any AND your (metal) watch like I do. I always wondered why calibrating the compass never worked, independent from the ROM. Wearing a big heavy metal diver watch and using a leather case with a small magnet isn’t the best combo...
[Samsung Galaxy S 5 Unified Development] rootkitty:
I managed to successfully install LOS16 on my SM-G900W, and I'm VERY impressed... runs really nice. Much thanks to Bruno & the other devs!

Now comes the question about whtat to do for a camera? OpenCamera really sucks.

I heard something somewhere about a Pixel camera... don't know if that is only for the Pixel phones?

Any chance of pulling a Samsung camera off of a stock rom (I think the last one was Androd 6.0)?

Suggestions?
[Samsung Galaxy S 5 Unified Development] Eklondh:
Ok so I managed to solve the snapchat problem.. I needed to pass safetynet and for that I need to turn on "Application list mode" in Edxposed and then blacklist Google play, Google play services and Google services framework.. Now it works fine :D

So what is up with boot times on this Rom? They are extreme it literally takes me like 2-3 minutes to reboot O.o Maybe another kernel would be interesting anyone tried it?
[Samsung Galaxy S 5 Unified Development] vlad3647:
Hi

I have the same problem, what VirusTotal did you used?
[Samsung Galaxy S 5 Unified Development] curiousrom:
VirusTotal App

VirusTotal on Android is garbage with tons of false positives.

***
[Samsung Galaxy S 5 Unified Development] jdrch:
https://play.google.com/store/apps/details?id=com.funnycat.virustotal

The web service is pretty good for files you've never seen before. The app is pretty unstable on One UI (I had to reboot my Note9) and as you've seen it causes boot issues on LineageOS. I didn't have any false positives with it.
[Samsung Galaxy S 5 Unified Development] vlad3647:
Sm-G900W8 doesn't boot ,any suggestion
[Samsung Galaxy S 5 Unified Development] curiousrom:
S5 SM-G900W8 Not Booting

The more troubleshooting info you include the more relevant help replies you will get.

See Re: SM-G900F always boots into TWRP after LOS 16 OTA update and the follow-up post below it about using logcat to find the cause of the bootloop, using Safe Mode & the TWRP app causing bootloop.

Starting from scratch and doing a S5 super clean install is the best for a trouble free setup.

***
[Samsung Galaxy S 5 Unified Development] rootkitty:
You haven't given us much to go on-are you starting from scratch or are you doing an update or what?

FWIW, I just installed lineage-16.0-20191218-nightly-klte-signed.zip with OpenGapps ARM / 9.0 / Pico found here:

https://wiki.lineageos.org/gapps.html

and the "Higher" Microphone gain mod found here:

https://xdaforums.com/galaxy-s5/general/mic-volume-gain-mod-s5-t3491483

with TWRP twrp-3.3.1-0-klte.img	9.5M	2019-05-20 09:18:40 EDT found here:

https://twrp.me/samsung/samsunggalaxys5qualcomm.html

If your phone isn't booting, I would start again.

Update TWRP to the latest

Wipe Dalvic/Art, Data, System, and Cache (I did NOT wipe the internal memory)

Flash LOS 16 and GAPPS

Reboot, and let the system stabilize.

Reboot into recovery

Flash the Microphone Gain fix

Reboot and install any apps and set up your phone.

You can either use ADB to push the files to your phone, or put them on a flash drive and use an OTG cable.

Since we have the same phone unless you have hardware problems you should be able to follow the same steps and things should work.

Hope this helps - Good luck!

---------- Post added at 02:26 AM ---------- Previous post was at 02:23 AM ----------

I managed to successfully install LOS16 on my SM-G900W, and I'm VERY impressed... runs really nice. Much thanks to Bruno & the other devs!

Now comes the question about whtat to do for a camera? OpenCamera really sucks.

I heard something somewhere about a Pixel camera... don't know if that is only for the Pixel phones?

Any chance of pulling a Samsung camera off of a stock rom (I think the last one was Androd 6.0)?

Suggestions?
[Samsung Galaxy S 5 Unified Development] Tombab:
I have one problem with this otherwise excellent LOS16. It appears that I'm unable to delete files from SD card. It looks like files are deleted and gone but they are back after phone reboot. Also after a while Gallery app somehow gets messed up and doesn't show any pictures. Rebooting solves this problem but all previously deleted pictures are also back. I have already tried to re-insert the card and reformat it but it didn't solve the problem. Seems like card is write protected or something, permission issue? But i can move pictures into the card, only not delete them which seems weird and apps should have permission to SD card. Card is not encrypted and I formated it as normal (not extended) storage. I don't recall having issue like this with previous LOS versions.
[Samsung Galaxy S 5 Unified Development] imarsh72:
Have just tested this ROM with 2019-12-19 build and been experiencing delayed SMS notifications about 4-5 minutes later ( am assuming it's the notification that's delayed and not the actual receiving of the SMS as when I wake the device it says how long ago in the top corner)

On a g900f with nano gapps no root no magisk no xposed . but disabled capacitive buttons and enabled nav bar.
[Samsung Galaxy S 5 Unified Development] curiousrom:
Messaging Notification Delay - Fix

The stock LineageOS 16.0 Messaging app (com.android.messaging) if affected by Doze & cannot be really whitelisted from battery optimization in Settings.

The workaround that I have been using since a couple of months on my S5 G900M without affecting battery life is to add com.android.messaging to the Whitelist user apps chapter as seen in deviceidle:

adb shell dumpsys deviceidle > deviceidle_before.txt

Fix:

adb shell dumpsys deviceidle whitelist +com.android.messaging

The response in adb should be:

Added: com.android.messaging

Note: this tweak survives updates.

See tweak with:

adb shell dumpsys deviceidle > deviceidle_after.txt

To remove Messaging from the whitelist:

adb shell dumpsys deviceidle whitelist -com.android.messaging

***

For testing in deep idle leave the device alone for at least 30 minutes & do not move it. Or use:

adb shell dumpsys deviceidle force-idle

And the response in adb should be:

Now forced in to deep idle mode

To get out of the force idle mode just wait for the SMS notification which may take up to 48 minutes in deep idle mode if Messaging is not properly whitelisted or less than 2 minutes with the fix above. Or:

adb shell dumpsys deviceidle unforce

And the response in adb should be:

Light state: INACTIVE, deep state: INACTIVE

Source: Android Developers > Docs > Guides > Optimize for Doze and App Standby.

***

If you did not setup adb yet see this XDA portal article What is ADB? How to Install ADB, Common Uses, and Advanced Tutorial (Windows, macOS & Linux).

***
[Samsung Galaxy S 5 Unified Development] imarsh72:
So are other SMS apps affected, or just the stock one, can't remember if I tried a different one, have gone back to a twrp backup
[Samsung Galaxy S 5 Unified Development] jiml8:
One of the most common failure modes for an SD card (or, for that matter, an SSD) is that it will stop writing. Nothing new gets written; nothing gets deleted.

Most likely, you have a failed SD card. Proceed accordingly.
[Samsung Galaxy S 5 Unified Development] Tombab:
Now that I have fiddled a bit more with this issue it seems that only Gallery app has some kind of problem with deleting photos. When I deleted same photos for the 10th time using file browser they really were deleted and didn't reappear anymore. I have also copied/deleted flashable zip files to SD card previously using bluetooth or usb cable without issues. Not sure what's Gallery app's problem because I checked and it has full permission to SD card. But just in case I backed up the files.
[Samsung Galaxy S 5 Unified Development] curiousrom:
LineageOS 16.0 Gallery App Bug & Camera > Micro SD Card

In LineageOS 16.0 the stock Gallery app has problems handling photos when in the stock Snap camera if > hamburger menu > Storage > SD Card is selected which will save photos & videos in: /storage/{Micro SD Card ID}/Android/data/org.lineageos.snap/files/.

You could try > Settings > Apps & notifications > See all apps > 3-dots > Show system > Gallery > Storage > Clear Storage + do the same in Media Storage & reboot. But that did not fix the problems on my S5 G900M.

It's a known issue. See this bug report: Snap (camera) when selecting SD stores somewhere where not visible in Gallery (after restart).

LineageOS S5 maintainer [MENTION=2693412]haggertk[/MENTION] posted this in that bug report a while ago:

Currently on my Galaxy S5 G900M LineageOS 16.0 klte build 2019-12-24 + Open GApps Pico + LineageOS AddonSU, stock Gallery shows only 731 photos & videos in the /storage/{Micro SD Card ID}/Android/data/org.lineageos.snap/files/ album while Simple Gallery Pro on F-Droid shows correctly 1,751 photos & videos which is the same number as seen in the stock Files explorer & a third-party file explorer. (screenshots)

Actually the Files album disappeared from Stock Gallery after an OTA update but was visible again after taking those 751 new photos & videos with the stock Camera.

For some reasons the number of photos in Gallery get resetted after an OTA update or reboot once in a while. :confused:

I used the stock Files explorer to format a new Micro SD card as Portable Storage when I clean installed LineageOS 16.0 which formats the card to the FAT32 file system by default as seen when using a card reader on a Windows 10 PC afterwards.

***

Re: SMS Messaging Notification Delay

AFAIK just the stock Messaging app is affected by Doze if the adb fix in Messaging Notification Delay - Fix is not applied.

In > Settings > Apps and notifications > Advanced > Special access > Battery optimization > All apps (from the drop down menu) > app's name > "Optimizing battery use" > tap & select Optimize or Don't optimize works to whitelist from Doze the user installed third-party apps.

Or search Settings with optimi to find the Battery optimization panel. (screenshot)

***
[Samsung Galaxy S 5 Unified Development] pmduper:
Happy New Year to you [MENTION=4122877]curiousrom[/MENTION], (and all other ROM hoppers), for your great support over the past year. You're a wealth of information.

Its been a productive year for our old device thanks to devs, maintainers and testers. I'm certainly curious to see if we can keep the dream alive thru 2020 :good:
[Samsung Galaxy S 5 Unified Development] ctp9:
Hi guys,

I'm running an older Haggertk build (lineage-16.0-20190209-UNOFFICIAL-klte.zip) on a Galaxy S5 and haven't received any new updates via the built-in Updater.

What should I do to start receiving updates? Do I need to flash the latest version of Lineage 16 manually?
[Samsung Galaxy S 5 Unified Development] Reverse-anastomosis:
A search of the thread for "unofficial" yields this post. It should be helpful

https://xdaforums.com/galaxy-s5/unified-development/rom-lineageos-16-0-t3850840/post79898629
[Samsung Galaxy S 5 Unified Development] curiousrom:
Updating Unofficial 16.0

The built-in Updater only works on official LineageOS to update to a newer build of the same LineageOS version. For example 16.0 to 16.0 but not 15.1 to 16.0.

"...Do I need to flash the latest version of Lineage 16 manually?" - Yes.

I wrote this post after flashing official over unofficial by haggertk: Official 16.0 for S5 2019-03-01 - Dirty Flash Report

After running that setup successfully for 2 weeks and making a fresh Google & WhatsApp Chat Backup, I did a S5 LineageOS Super Clean Install (Format Data (not wipe), wiping System, Dalvik / Art cache & Cache) & restored the Google Backup as soon as I booted to System the first time.

*****

Thanks :good: [MENTION=8628461]pmduper[/MENTION] for your kind words and all your Thanks :good: on some of my posts. :cool:

Happy new year to your family, you & all your friends.

View attachment 4915979

Happy new year also to all the people who see this post. ;)

***

Arghhh… you beat me to it while I was writing this post. :good::cool:

***
[Samsung Galaxy S 5 Unified Development] ctp9:
Thank you - my bad for not running a forum search prior.

At this time I will opt to do a dirty flash, while I wait for a stable release for a clean flash in the future.
[Samsung Galaxy S 5 Unified Development] curiousrom:
Official LineageOS 16.0 for S5 are Stable

I got exactly zero system crash or unwanted reboot on my S5 G900M LineageOS 16.0 daily driver in 9 months which is when I did that clean install.

Nightly is just a label for the 16.0 builds which are currently automatically built every day regardless if they are changes or not. They are stable & official, not WIP or beta.

That means always check if there are enough changes to justify an update.

For example in the changelog attachement there was zero changes between build 2019-12-23 an 2020-01-01 which is 7 builds later.

You can check in the built-in > Settings > System > Advanced > Updater > 3-dots > Changelog or in https://download.lineageos.org/klte/changes/

LineageOS Updater > 3-dots > Preferences where you can set the Auto updates check to Never, Once a day, Once a week or Once a month.

Many users update only once a month around the 15th. because of the monthly Android security bump.

For example: Android Bump Security String to 2019-12-05 in The Tubes!

BTW you can create a direct link to the Updater, Notification log & much more like to Privacy Guard Advanced for example with the LineageOS Settings widget (long press on an empty space in Home pages).

***
[Samsung Galaxy S 5 Unified Development] pru1:
What is current status of camera2 api usage?
[Samsung Galaxy S 5 Unified Development] curiousrom:
I don't know what kind of info you are looking for but try this LineageOS Gerrit search: https://review.lineageos.org/q/branch:lineage-16.0+(status:open+OR+status:merged)+camera2

Or this one limited to the S5 maintainer: https://review.lineageos.org/q/owne...e-16.0+(status:open+OR+status:merged)+camera2

***
[Samsung Galaxy S 5 Unified Development] pru1:
It looks like things were merged time ago but I suppose are disabled for G900FD.

My question comes from the fact that in OpenCamera I can only see 'Camera API: Camera'. I cannot make it using Camera2.
[Samsung Galaxy S 5 Unified Development] curiousrom:
Camera API - Galaxy S5 klte + Variants & Open Camera

You can get lots of details about the camera on Android devices with:

adb shell dumpsys media.camera > dumpsys_media_camera.txt

In which I can read for my Galaxy S5 G900M LineageOS 16.0 klte:

== Camera Provider HAL legacy/0 (v2.4, passthrough) static info: 2 devices: ==

== Camera HAL device device@1.0/legacy/0 (v1.0) static information: ==

API1 info:

Has a flash unit: true

Facing: Back

Orientation: 90

API2 not directly supported

== Camera HAL device device@1.0/legacy/0 (v1.0) dumpState: ==

The LineageOS Gerrit commits all link to GitHub.com/LineageOS.

In LineageOS/android_device_samsung_klte-common/camera/CameraWrapper.cpp:

camera_module_t HAL_MODULE_INFO_SYM = {

.common = {

.tag = HARDWARE_MODULE_TAG,

.module_api_version = CAMERA_MODULE_API_VERSION_1_0

So all the Galaxy S5 klte + Variants have only the legacy camera api 1. :crying:

The stock LineageOS 16.0 Snap Camera is faster on my S5 & that's why I use it most of the time but Open Camera is nice for advanced photography w/ all the focus settings, other tweaks & the customizable on-screen UI.

But Open Camera closes often when switching rapidly between settings which is rare with Snap.

Tip: Open Camera > Settings > More Camera Controls > toggle on Use Storage Access Framework then navigate to /storage/Micro SD card id/DCIM/Camera & Save Location.

In LineageOS 16.0 @ the present, in Snap camera if > Storage > SD Card is selected it will save in: /storage/{Micro SD Card ID}/Android/data/org.lineageos.snap/files/ and there is no way so far to use the traditional /storage/Micro SD card id/DCIM/Camera path which is a minor annoyance but affects the Gallery app as described in the LineageOS 16.0 Gallery App Bug & Camera > Micro SD Card post above.

***
[Samsung Galaxy S 5 Unified Development] sharktm:
if you have trouble with google play store not updating some apps (like youtube past the 30 july 2019 version), try updating them with aurora store: https://auroraoss.com/

it's the best open source google play store alternative right now, i succeded to update youtube to the latest version with it.