yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S 5 Unified Development] curiousrom:
No setup info & no device info so difficult to troubleshoot.

Warning: don't install the TWRP app when offered in TWRP as it may causes bootloop because LineageOS is enforcing priv-app whitelisting rules.

FWIW my Galaxy S5 G900M with the most recent modem for it, running LineageOS 18.1 klte build 2021-08-15 + MindTheGapps-11.0.0-arm-20210412_124103 + Magisk 23.0 + TWRP 3.5.2_9-0 works great.

***
[Samsung Galaxy S 5 Unified Development] zimral.xda:
Same for me. Just the pure LOS. First one was one of my test phones. Short after applying the 20210815 build battery drain gets a little bit more intensive (rember this was one of my others running July build not showing this) This stops after the second full charge ! ???.

Just did my prod phone with same behavior. I assume this will go away after next charge. Crazy world. But no problem. It seems that the ROM is alive and need to arrange himself with the battery. 🤡👻🤖🎃🤓

THX Mr. Haggertk :cool:
[Samsung Galaxy S 5 Unified Development] g000n:
It's the SM-G900W8

I reflashed latest LOS 18.1 klte build and latest Gapps arm + latest TWRP

Still stuck in bootloop and booting into twrp
[Samsung Galaxy S 5 Unified Development] curiousrom:
S5 SM-G900W8 Bootloop

"Newest" or "latest" will not mean a thing for future readers after the next update so including the build date is good practice IMO. ;-)

Bugs may be created by a merged patch in a given build date for a given device & solved in an other build.

Could you post the name of the GApps file you installed?

For example: open_gapps-arm-11.0-nano-20210720.

Some GApps packages are buggy and were removed from the servers and other devs make other GApps packages.

If you upgraded from LineageOS 16.0 or 17.1 to 18.1 and did not remove screen & SIM lock before you did that may cause a bootloop.

Use TWRP > Advanced > File manager or adb and delete /data/system/locksettings.db then try to boot in 18.1.

Make sure you update your modem/bootloader as described in S5 Odin Flashable Modem & Bootloader because LineageOS 18.1 for the S5 klte family requires vendor's firmware from Samsung Android 6.0.1 for S5 otherwise expect failed to boot.

I wrote this for Windows PC users & LineageOS 16.0 because Odin is so much easier to use compared to Heimdall to flash TWRP but the same steps works for 18.1 & I prefer TWRP on my S5 G900M: S5 super clean install.

***

MindTheGapps was thoroughly tested including surviving OTA updates.

If you look at the Thanks and Credits chapter in the bottom of the page of https://gitlab.com/MindTheGapps/vendor_gapps there is a bunch of LineageOS devs mentioned as testers & other contributions. The same guys that you can find in https://wiki.lineageos.org/contributors.html

These extra apps included in MindTheGapps but not in Open GApps Pico can be disabled in Settings > Apps & notifications > Show all > 3-dots > Show system:

Android Accessibility Suite

Google (search app)

Markup

These included in both Pico & MTG can also be disabled in their respective app's info:

Android Auto

Google Text-to-speech Engine

Market Feedback Agent

The rest are core GApps.

***
[Samsung Galaxy S 5 Unified Development] Vini69:
Sorry for the late thank you for your much appreciated help, I have been away for a couple of days.

Agreed with the fact that "this is probably not the right way to do stuff" but indeed it works and I have been able to make a bootable image of my kernel, and running it without any issue so far !

Eventually @haggertk might shed more light on the process, more specifically the list of files included into the package, like boot.img-dt...
[Samsung Galaxy S 5 Unified Development] g000n:
open_gapps-arm-11.0-nano-20210813

and

lineage-18.1-20210815-nightly-klte-signed

and

twrp 3.5.1_9-0

---

Can I still flash MindTheGapps-11.0.0-arm-20210412_124103 via TWRP even though I flashed open gapps?
[Samsung Galaxy S 5 Unified Development] Boatshow:
I'm sure we're beating dead horses but you really can get the phone to drain almost nothing when idle. I unplugged it and went to sleep to test it. No fingerprint sensor, no gapps, nothing in the background.

This is kind of cheating though, I think most people would have at least one background app. If I leave my irc client running it drains some tiny percentages overnight.

P.S I wouldn't bother worrying about capping the charge to 80%, most phones already do something like this. There's a reason why 100% drains to 90% so fast, it's a lie.

P.P.S If your screen green flickers on low brightness, crank the screen to max brightness for a while. This warms up the display and fixes the flickering temporarily when you stop using max brightness.

If you're not using the device just enable caffeine mode for a while and leave it on a pure white screen.

To get a pure white screen you can fullscreen a "white screen" video somewhere and pause it.
[Samsung Galaxy S 5 Unified Development] curiousrom:
Re: S5 SM-G900W8 Bootloop

https://twrp.me/samsung/samsunggalaxys5qualcomm.html >>> twrp-3.5.2_9-0-klte.

See How to Update TWRP Using TWRP Itself

How did you get that bootloop issue in the first place?

OTA update, manual update, upgrade from an older LineageOS version, clean install, install over an other custom ROM?

AFAIK flashing MindTheGapps will not remove everything that Open GApps installed including the Open GApps update survival script.

You have a bootloop issue so why not start all over with a clean install?

See S5 super clean install.

Did you update the modem & bootloader?

***
[Samsung Galaxy S 5 Unified Development] Durchmesser:
Hi @All I updated lineageos from the updater as usual. But now I have a bootloop. Jumping back to the old image with twrp did not work.

Because I have ADB acces whil bootlooping I was able to export demesg:

Any Idea how to solve the Problem?
[Samsung Galaxy S 5 Unified Development] g000n:
I updated TWRP to 3.5.2_9-0-klte

I'm not sure how I got the bootloop, but I used OTA update, maybe it was from installing Universal SafetyNet Fix? https://xdaforums.com/t/magisk-v14-0-universal-safetynet-fix-universal-hide-v2-beta-5.3600431/ but I'm not 100% sure

I don't want to do clean install because I have data on the phone I need

and I have not updated the modem or bootloader, my galaxy s5 is SM-G900W8

EDIT:

I FIXED IT!

Universal SafetyNet Fix magisk module was causing the bootloop

I used Magisk Manager Recovery Tool V2.3 https://xdaforums.com/t/tool-aroma-magisk-manager-recovery-tool-v2-3.3866502/ to disable it via TWRP

Now that I'm back in my phone, how can I remove Open Gapps and install MindTheGapps?
[Samsung Galaxy S 5 Unified Development] curiousrom:
Re: S5 SM-G900W8 Bootloop

You did not mention that you installed Magisk + some modules in your bootloop issue device description. :rolleyes:

AFAIK that MAGISK MODULE ❯ Universal SafetyNet Fix is for ARM64 devices with hardware SafetyNet detection which does not concern the Galaxy S5 at all: "...with hardware attestation and unlocked bootloaders".

Anyway glad you fixed it & thanks for reporting back. 👍

For those who would like to try Magisk see Galaxy S5 LineageOS 18.1 - Magisk Installation.

***

Why fix what is not broken?

***
[Samsung Galaxy S 5 Unified Development] kurtn:
You can wipe system an data and flash lineageOS and MindTheGApps. No idea about dirty falshing.
[Samsung Galaxy S 5 Unified Development] zimral.xda:
I fear this will create a huge mess inside your phone. i cannot recommend this. As others said, do a clean install with whatever sort of gapps you like to have and then you will have a defined starting point again.
[Samsung Galaxy S 5 Unified Development] Lederhose:
Hello, I bought a SM-G900F, German Vodafone branded (supposedly not locked) with latest stock Android 6.0.1, it has G900FXXU1CQDA baseband which is from 2017. The firmware file recommended in the first post is G900FXXU1CSA1 from 2019. I saw that sammobile lists many newer firmware files from 2021.

I would like to use one with the most recent security patch level. Can I flash any of the files from sammobile, e.g. the newest one from a french carrier*? Does it matter which country and which carrier? Will LineageOS have issues with a newer firmware, or what are the reasons to recommend that specific file from 2019?

Does VoLTE work?

Are there currently any downsides of using TWRP instead of the Lineage recovery? TWRP is the easiest way to do a full backup of the phone, right? I have no user data, I just want some backup of the stock ROM / firmware. Are there legitimate files of the stock ROM available online? (That could be safer than my ROM on the phone from an unkown seller.)

Is it feasible to use a Xubuntu system to do all the flashing etc. or are there benefits to using Windows 10? I have neither one set up for the job yet. Windows seems to need more work to install drivers first?

* https://www.sammobile.com/samsung/galaxy-s5/firmware/#SM-G900F
[Samsung Galaxy S 5 Unified Development] Durchmesser:
Does anyone hav an idea in my case? (I do not use SafetyNet)
[Samsung Galaxy S 5 Unified Development] curiousrom:
OTA Update Bootloop S5 Model & Setup?

Missing setup description. See this post in the previous page & the follow-ups below it.

What do you mean by bootloop? Stuck in Samsung's splash screen (bootloader)? LineageOS animation logo? Boots to TWRP after a while?

Why not? Error message in TWRP? You need to restore only System, Data & Boot partitions. Boot is in fact the kernel on the S5.

How old is that backup? TWRP version?

Name of the folder in external SD Card/TWRP/Backups?

After a failed restore in TWRP & before rebooting: go to Home > Backup > Select Storage to external Micro SD card then > Home > Advanced > Copy Log to external SD card then you can connect to a computer to copy it as MTP is enabled by default in TWRP.

It will be named recovery.log. Rename it recovery.log.txt and attach it to a reply. Please do not copy/paste it like you did for your dmesg above.

You could search it for errors.

***
[Samsung Galaxy S 5 Unified Development] Durchmesser:
Modell: SM-G900F

SU: Magisk 23.0 flashed as ZIP

TWRP: 3.5.2_9-0 (meanwhile updated to this version)

Kind of Error:

- Infinity boot, sometimes it reboot to recovery.

- It permanetly shows the lineageOS Animation.

- ADB is working.

If I manually Flash, I go to TWRP and Flash the Image I downloaded from https://download.lineageos.org/klte .

The last three times, I used the Lineageos Updater.

Restored Backup also not work. Currently I think the Problem is in /data. But /Data is the case why wish to repair it.

Below again the data i got from demesg whil in infinityboot.
[Samsung Galaxy S 5 Unified Development] x2k13:
The last vendor (Samsung) security patch/proprietary firmware update for an unbranded german S5 is from 2017. There's no newer update, because EndOfLife.

There may have been later updates for different countries and carriers, like Deutsche Telekom (DTM) who actually had a last update in 2018/19 or something. But I wouldn't flash some possibly sketchy branded firmware on this device for no good reason.

The latest unbranded german firmware contains:

G900FXXU1CRA2 (bootloader)

and

G900FXXU1CQK3 (modem/baseband)

This is all you need.

By the way, VoLTE doesn't work on LineageOS 18.1 for klte, but does on stock 6.0.1. No idea why, maybe someone else can shed some light on this.
[Samsung Galaxy S 5 Unified Development] kurtn:
@x2k13 VoLTE does not work on any Samsung with AOSP based custom ROM. It's an issue with Samsung's strange proprietary implementation.
[Samsung Galaxy S 5 Unified Development] Boatshow:
I did some testing regarding bluetooth disconnecting. Seems like it's memory related. The bluetooth process crashes every time oom_kill needs to run. I can trigger it by scrubbing videos really fast in NewPipe.

Does that also happen on other Android devices with more RAM? 🤔

I tweaked the LMK to the "low" profile in SmartPack and doubled the zram target from 416 MB to 832 MB. Also tried removing Bluetooth from battery optimizations. Didn't help.
[Samsung Galaxy S 5 Unified Development] TlalocC:
Hello, the rom is very good, but the battery drains faster than in stock, also there are small drops of fps in videos example: facebook.
[Samsung Galaxy S 5 Unified Development] Zytrel:
Just a fair warning for anyone using BitGapps. Any version beyond R29 might (I'm saying "might" here as the dev is a tad arrogant and keeps insisting that I did something wrong) set your SELinux status to permissive. And so in a very bad way. To make any TWRP restore work again in SELinux enforcing mode, you have to format data instead of just wiping it.

I've tested this with a lineage-18.1-20210822-nightly-klte-signed clean install. Only way back is the above mentioned method otherwise you'll end up in a bootloop.

EDIT: Just to be absolutely clear: once you install it, you will have to format data to fix it. If anyone knows another way, please share.

EDIT2: You can downgrade from R3x to R29 with the following procedure. Backup everything (TWRP/internal SD). Format data, wipe system/dalvik/cache. Reboot recovery. Restore data partition from TWRP, internal SD from backup. Install latest lineage system/BitGapps R29. Flash the BiTGApps-selinux-enforcing script. Reboot.

EDIT3: Quote from the dev: "This is not an issue. It is made on purpose change."

I'm done with BitGapps.

Regards,

Zy.
[Samsung Galaxy S 5 Unified Development] TheHitMan:
You have bootloop with selinux package thats where i said you might have done something wrong. Because the package is duly tested on klte for confirmation.

Anyways i am reverting that bootlog function which change selinux state for everyone. With next release it won't update selinux state.

Thanks & Regards
[Samsung Galaxy S 5 Unified Development] BigPulco:
Just for information: I am using different ROM but still LineageOS based Q (RR Q) . I installed BitGapps R37 (it was the latest at installation time) and SELLinux became PERMISSIVE. Than I just flash the script " https://github.com/BiTGApps/BiTGApps-Files/raw/master/Tools/BiTGApps-selinux-enforcing_signed.zip " and result is SELLinux again ENFORCING.
[Samsung Galaxy S 5 Unified Development] Zytrel:
Yes, I already mentioned and linked the script in my post. In my case the problem was that with SELinux enforcing I ended up in a bootloop. So either there is a problem with this specific ROM or my phone was heavily borked. This has yet to be confirmed or refuted. In either case - as at least the change of the SELinux state will definitely happen (until the next version is released) - I thought it couldn't be wrong to mention the issue here and offer a solution for the fix. If it indeed was my phone, then just flash the script and be fine.

Regards,

Zy.
[Samsung Galaxy S 5 Unified Development] moreorless:
Did someone notice that new commit which might be included in the next update release?

https://review.lineageos.org/c/LineageOS/android_packages_apps_Etar/+/314900/

WTF? Why change to 4096m? The S5 has not nearly that amount of RAM and more cores involved with parallel might eat more juice.

I just accidently stumbled open it because there are so many commits and I saw the title "updated build settings for more aggressive CPU and memory utilization" and I thought to my self: What? more aggressive? That sounds not good.

I don't want to know how many other commits are being made which caused to make this rom suck the battery dry.

Just my observation and my opinion.
[Samsung Galaxy S 5 Unified Development] kurtn:
That is a big misunderstanding. It's a change in gradle. It's about how build servers will build the calendar app. No change in build result.
[Samsung Galaxy S 5 Unified Development] moreorless:
OK got it. Thank you for clarifying. I was wondering why the hell would one implement that but ok now I understand the context.
[Samsung Galaxy S 5 Unified Development] curiousrom:
S5 LineageOS 18.1 Update 2021-08-29 - Quick Tiles Long Press Crashing

Using the built-in Updater I OTA updated S5 G900M LineageOS 18.1 klte build 2021-08-15 + MindTheGapps + Magisk 23.0 + TWRP 3.5.2_9-0 to build 2021-08-29: everything went smoothly & GApps + Magisk survived the update.

There are no spectacular changes as you can see in https://download.lineageos.org/klte/changes/ but I did it anyway so I could post about it.

This issue is still present on my device after this update:

Thank you to the Lineage Team & Mr. haggertk for keeping our old S5 klte* up to date. :cool: 👍

***
[Samsung Galaxy S 5 Unified Development] Chris_0147:
improved battery life ?

I say this because when I tried it the battery drained even if I did not use the phone
[Samsung Galaxy S 5 Unified Development] curiousrom:
Very Low S5 Battery Usage @ Idle

The battery usage @ idle on LineageOS 18.1 for the S5 klte family is incredibly low since the day it was launched. 👍

Either you have bad Wifi or cellular signal or some rogue apps are doing stuff behind you back.

I attached some screenshots of GSam & BetterBatteryStats I made today after OTA updating to 2021-08-29 as described in the post above yours.

As you can see the battery drain was less than 1% total during the 7h54m idle test.

Details on setup & GSam test method explained in previous post: S5 klte LineageOS 18.1 Battery Usage @ Idle Test - Sleeps Like a Rock.

If you want to use both BBS & GSam like I did it's tricky. See my older BBS post here in that describes how to run a proper test without skewing the data in both BBS & GSam.

***
[Samsung Galaxy S 5 Unified Development] jenssa:
I’m at the brink of ditching my Norwegian Telenor Samsung Galaxy S5 SM-900FZBATEN, running on Lineageos 18.1 (klte), but I thought I should ask the forum for advice first. The basic problem is that it seems impossible to wipe and to factory reset it. The problem started when the phone froze after taking pictures, and when I tried to restore my backup in TWRP (from SD card), it froze and I haven’t been able to wipe, flash or boot after that. In TWRP it typically quickly freezes when I start factory reset (format data), and it often freezes in wipe (advance wipe), and sometimes reinters into recovery upon freezing. In Lineageos Recovery it goes through with the factory reset, but evidently it does not wipe it clean. The problem seems to be that it is unable to mount or recreate Data. Most of the time I can’t mount Data, and when it can at times be mounted, attempted factory resets unmount it. I’ve tried Repair File System (“Unable to repair Data”) as well is Change File System for Data to EXT2 and back to EXT4 several times, and mostly it freezes immediately, or if it doesn’t it reenters recovery (if I’m lucky). Often I need to reflash recovery in Odin to be able to enter it. I have also tried Repair and Change File System for System and Cache. I have flashed a new PIT file in Odin (checked and not-checked NAND Erase and Re-Partitioning in all sort of ways) as well as flashing the Lineageos18.1 numerous times in different ways (by Odin, TWRP, Lineageos Recovery). The internal storage usually does not show up on my PC, only the SD card does. I’m now wondering if it might be a hardware error. I have searched the web and see that the problem (“Unable to mount”) is well known, but mine seems especially obstinate. Does anyone know a remedy?
[Samsung Galaxy S 5 Unified Development] curiousrom:
S5 SM-G900F - Can't Wipe or Factory Reset

The best way to confirm or rule out a hardware issue is to flash the most recent stock Samsung manufacturer's OS for your S5 SM-G900F.

This will also update the vendor's firmware, modem, bootloader etc.

Their paywall policies varies apparently randomly depending on the device & age of the OS but I used both sammobile.com & updato.com to download stock Samsung OS. Some users recommend samfw.com.

They all have flashing instructions using Odin3 in their respective download pages.

It does not matter for which country as long as it's made for your exact model number.

Usually the more recent, the better.

Test thoroughly while on stock Samsung OS & write down or screenshot the working APN settings.

Then install the most recent TWRP version, backup the EFS partition then flash LineageOS.

Format Data is better than a simple wipe Data if you want a really clean install. (screenshots)

From TWRP FAQ: What is a data/media device?:

Format Data adds an empty encryption footer after the end of the Data partition for some future encryption related data if enabled.

Format data will destroy the content of your internal storage so backup to external SD card or computer before doing it.

Then Advanced wipe System + the caches before installing LineageOS.

I wrote this for Windows PC users & LineageOS 16.0 because Odin is so much easier to use compared to Heimdall to flash TWRP but the same steps works for 18.1 & I prefer TWRP on my S5 G900M: S5 super clean install.

***

Best practice is to leave it alone & keep the file system to the default created by the stock Samsung OS IMO as well as using the stock LineageOS File explorer to format the external Micro SD Card.

***

In TWRP you need to restore only System, Data & Boot partitions. Boot is in fact the kernel on the S5.

How old is that backup? TWRP version?

***

FWIW this is how I fixed a NAND memory issue on a S3 i9300 4 years ago & it still works fine to this day: S3 Black Screen Freezing Fix - Sudden Death Syndrome

***
[Samsung Galaxy S 5 Unified Development] ryan089:
esiste una modalità di risparmio energetico ultra? come Android 5

Translated by GT: is there an ultra power saving mode? like Android 5
[Samsung Galaxy S 5 Unified Development] inc0n3ck:
I have a question - I was previously using HavocOS and by comparing them, I noticed something that concerns me - when an app requires more resources as some point (e.g. ram), the app would freeze for a second and then continue running as if it's just a random lag in HavocOS, here, however, the app just crashes/exits. It's regarding a game called PokemonGo, could this be tweaked to have the same behavior as in HavocOS as the game is now unplayable because it often requires "something more" resulting in a crash? There's no prompt or anything to say "X terminated" or "X stopped working." or something similar - it just crashes and lends you to the home screen.

Using latest version of LineageOS 18.1 without any custom tweaks or kernels.
[Samsung Galaxy S 5 Unified Development] kurtn:
Really without tweaks? Doesn't Pokemon go need safetynet? Isn't that provided by GApps and magisk and hide and modules?
[Samsung Galaxy S 5 Unified Development] inc0n3ck:
Didn't know those were tweaks, sorry, then more accurate description - I'm with GApps and Magisk - all I'm using from Magisk currently is just "Hide", don't have any modules. It passes SafetyNet and everything works fine unless something memory intensive happens.
[Samsung Galaxy S 5 Unified Development] jenssa:
Thanks a lot for the good advice. I have now tried to flash the original firmware (downloaded from SamMobile and also another provider), and I consistently get FAIL. I guess the phone is broken. The fails are:

FAIL (size)

Complete(Write) operation Failed

All threads completed, (succeed 0 / failed 1)
[Samsung Galaxy S 5 Unified Development] curiousrom:
Re: S5 SM-G900F - Can't Flash Stock Samsung OS

Maybe it can be fixed by flashing a Pit file in Odin3.

Using this Google XDA forum site search; site:xdaforums.com odin FAIL (size) I found several happy feedback posts by S5 users in this thread: FAIL! (Size).

BTW copying the full Odin's log window & pasting it in a post or attaching a .txt doc is better IMO.

***