yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S 5 Unified Development] jenssa:
I'm making some progress thanks to your links. I have now been able to flash the firmware together with PIT file and Pass - for two different PIT files. But it still will not boot. Perhaps I haven't got the right PIT file? I have tried to extract the files from the firmware, but it only contains one binary so the method I have found on the internet does not apply (it requires four binaries, and convert the one that shows in css to a zip and extracts the PIT from it.) What would the PIT file be called in the firmware with one binary? There are no PITs among the extracted files. Also, I'm unable to flash a bootable recovery, which might have helped. As my progress is so slim, my suspicion that it is a hardware error is not weakened. I have exhausted all the options known to me, but perhaps you have one more suggestion? (I really appreciate the help you have provided).
[Samsung Galaxy S 5 Unified Development] x2k13:
Did you try to find the firmware for the coutry you need as a split set? Should be 4 single files, like:

I used these to flash a newer modem and bootloader via Odin, worked good so far. Thing is, when I tried to flash the same version just as one big file, like in your screenshot, it always failed, no clue why. The single files flashed w/o problems. Maybe that could help you as well.
[Samsung Galaxy S 5 Unified Development] jenssa:
I have searched the internet for days for a four file set, but can't find anything. If anyone knows about such a set, I would be much obliged.
[Samsung Galaxy S 5 Unified Development] Not-Aus:
Look here, maybe that can help you:

[LINK]

https://xdaforums.com/t/rom-officia...e-g901f-lte-a-g906s-k-l.3534283/post-70452245

[/LINK]
[Samsung Galaxy S 5 Unified Development] x2k13:
This is where I got my 4 file set from:

All models of Samsung Galaxy S5 Duos series – Fan club Sfirmware.com

Samsung Galaxy S5 Duos a complete list of devices of the series. A description and a complete archive of firmwares for all smartphones, tablets, smart watches and other devices of the Galaxy S5 Duos series.

sfirmware.com

My SM-G900F is listed as Duos but I don't think that's correct. Anyway, have fun searching.
[Samsung Galaxy S 5 Unified Development] Nobby1960:
Download SamFirm Reborn from here. Look at my attached screenshot - type in: Model SM-G900F - Region TEN

Check the boxes: Auto, Binary Nature, Check CRC32, Decrypt automatically

Now press Check Update, you see all informations. Start the download and wait until all procedures are ready. You get a zip archive with all four single ROM files in it. Good luck!
[Samsung Galaxy S 5 Unified Development] jenssa:
Thanks a lot! I have now downloaded the two roms listed for my phone, and one is with four binary files (edited). New edit: I couldn't wait until the morning and flashed the four binary file. It passed! Still the phone doesn't boot, but now I see some light in the end of the tunnel. Thanks to all you good people for advice!
[Samsung Galaxy S 5 Unified Development] jenssa:
Thanks! It is the same fil as one of those I downloaded from Samsung fan club. I flashed it last night, but the phone will not boot. It runs the Samsung recovery for a short time, but it seems that it is aborted before completing erasing and fixing the file structure. Now I'm out of ideas.
[Samsung Galaxy S 5 Unified Development] jenssa:
Thanks for the nice link!
[Samsung Galaxy S 5 Unified Development] Boatshow:
PSA: lineage-18.1-20210829-nightly-klte-signed no longer displays "Network May Be Monitored" in the quick dropdown menu on my phone. This message used to trigger if you added stuff to the certificate repository. I've always had one self-signed certificate added so I would see that message constantly.

I don't see this mentioned in the change log so I'm not sure if it's intentional.

LineageOS Downloads

download.lineageos.org

If it's intentional I have more screen estate I guess. Woohoo!

Example image taken from Stack Exchange to show what I'm talking about. The warning would take up some screen estate if it's there.

came back on reboot, was a bug
[Samsung Galaxy S 5 Unified Development] jenssa:
I'm not sure if this problem belongs in the thread, although it started with lineageos 18.1 problems. But if I may: I have now tried to recover the phone for a week without success. Flashing the firmware now always passes, but it doesn't boot. Sometimes the stock recovery starts, typically aborts, but occasionally offers me to factory reset, wipe cache etc. It then displays a Status 7 message:

E:Error in /cache/recovery/sec_csc.zip

(Status 7)

I believe it means that the system partition has been modified, and I have flashed with Re-Partition and PIT files numerous times, and also flashed without ticking it.

I'm now unable to boot into TWRP or Lineageos Recovery. I started on installing Heimdall on another laptop, but ended up with nonfunctioning USB ports upon running Zadig (without having a clue as to what I was doing!). Does anyone know how I can restore them? Maybe Heimdall is the way to go, but I find it rather complicated to install and use.

Any advice would be appreciated.

Edit 06.09.21: It wasn't too hard to flash in Heimdall - I flashed a recovery first, but also the whole firmware. What confused me initially was that the phone did not show up in the device list in Zadig as Samsung composite device but as MSM8960, but connecting and disconnecting the phone as I watched the Device manager on the laptop verified that this was indeed the phone. In flashing the whole firmware I only swopped the stock recovery with TWRP. Heimdall said all flashes were 100% successfull, but still it did not recover my phone. Recovery could be entered after the phone had rested all night. I was able to see that Data was not mounted, but the phone froze upon ticking it and got stuck in a boot loop. It doesn't enter into recovery anymore. Basically, no improvement achieved compared to flashing in Odin. Are there resources in Heimdall for fixing this? Or maybe I should finally consider the phone dead?
[Samsung Galaxy S 5 Unified Development] inc0n3ck:
so is this tweakable? because if some apps have aggressive memory management, they get automatically turned off
[Samsung Galaxy S 5 Unified Development] curiousrom:
klte: No Update 2021-09-05

FYI the build klte 20210905 failed as you can see here in the LineageOS automated builder so better luck next week.

***
[Samsung Galaxy S 5 Unified Development] Kevindiepenmaat:
Hi there

I am having the issue that my Bluetooth is crashing. It gets turned off automatically and o am not able to turn it back on. Then I am forced to reboot the phone and then it works temporarily. Roughly 5 hours then it happens again.

Battery optimazation was turned off while for testing.
[Samsung Galaxy S 5 Unified Development] Nobby1960:
Is your device rooted, have you installed Viper4Android sound mod? V4A is great, but can be the reason for Bluetooth issues in some case.
[Samsung Galaxy S 5 Unified Development] Kevindiepenmaat:
No mine is not rooted, I did not flashed the antenna firmware mentioned in the OP though.

I figured it wouldn't make a difference.

I searched in this topic and there was a post mentioned that multiple people had this issue as well. No solution mentioned unless I missed it.
[Samsung Galaxy S 5 Unified Development] bersem:
from sammob...

SM-G900F BOG

SM-G900F EUR

SM-G900F LUX

SM-G900F NEE

SM-G900F O2U

SM-G900F PHN

SM-G900F VDS

SM-G900F VIA

KLTE_EUR_OPEN_HIDDEN30M.pit

or maybe:

KLTE_EUR_OPEN_HIDDEN50M.pit

Good luck. Hope u didnt fully bricked your NAND ( emmc )

Be careful !! At your own risk !!!

regards !
[Samsung Galaxy S 5 Unified Development] Chris_0147:
it is possible to install Android 5 in the latest available boot loader I also have a question what is the Android 6.1 ROM with the latest possible security patch
[Samsung Galaxy S 5 Unified Development] Nobby1960:
Yes, indeed. If you search for it in Google you find many users who have this bug. Not only AOSP based ROMs are affected. There is nowhere a viable solution.
[Samsung Galaxy S 5 Unified Development] Nobby1960:
The latest security patch for Samsung Android 6.0.1 came in August 01 in 2017.
[Samsung Galaxy S 5 Unified Development] Chris_0147:
No I mean cyannogen or lineage os 13 with the latest security patch since I want to test Android 6.0.1 aosp
[Samsung Galaxy S 5 Unified Development] Nobby1960:
Oh sorry, that was a misunderstanding.
[Samsung Galaxy S 5 Unified Development] Kevindiepenmaat:
That would mean that it is version related. My father in law uses the same phone but then with LOS 17 ( if I am correct or else it is 16) and does nkr have the issue.
[Samsung Galaxy S 5 Unified Development] Nobby1960:
I've hardly found this in an other forum after hours, it fixed my Bluetooth issue on crDroid 6.10 (Android Q) - I don't know if it works with this ROM:

Settings > About Phone > Device Name - type in an other device name and confirm it.
[Samsung Galaxy S 5 Unified Development] Zytrel:
The only thing I can think of you could try is increasing your zRam amount, using a tool like FKM or a kernel tweaker of your choice. Note that having root is a requirement. In FKM you could try setting "Kernel Settings -> Memory -> zRAM size" to 512 or 768 mb. Note that post boot zRam size modification is a pita and you will need several attempts until it will apply successfully.

EDIT: I've been informed of another option to tweak zRam, HEBF, which allegedly is a lot more reliable at resizing zRam post boot than FKM. (Thanks to jmh2002 for the tip)

WARNING: Only try the below if you know what you are doing! If your phone explodes it's your fault. ;)

IF the above remedies the issue a way to apply it permanently would be modifying your "/system/vendor/etc/fstab.qcom" (I simply use FX File Explorer with the Root Addon) and change the default "zramsize=25%" for "/dev/block/zram0" (line before the last) to the desired amount of MB in bytes (MB * 1,048,576). So for example "zramsize=671088640" for 640MB which is also the value in the attached fstab.qcom, and which I found to work quite well with my bloated system.

In case you reflash/upgrade the firmware, this change needs to be reapplied.

Regards,

Zy.
[Samsung Galaxy S 5 Unified Development] jenssa:
I think I'm out of luck. The second .pit file is included in the firmware for Telenor (TEN), but I did try the first of your suggestions too. Still stuck in recovery boot (nothing happens). I tried the efs, and it made it try boot kernel, but with no more luck. Perhaps I bricked the NAND, as you suggest. The source of the problems might also have been a hardware error (since it suddenly started to freeze out of the blue).

I have a different question: I'm considering buying another Samsung S5 (same variety) and wonder if I can safely restore the backup of the lineageos 18.1 with gapps and all content from my bricked phone? I would perform a clean wipe (advanced wipe + factory restore) before restoring. I have the TWRP backup on my sd card, but I'm slightly worried that I cannot transfer the backup from one phone to another. Are these TWRP backups tailor-made for the individual phone or will all phones of the same variety pass?
[Samsung Galaxy S 5 Unified Development] x2k13:
I see no reason why it wouldn't work as long as the phone is the exact model as before. Copy the backup to a USB stick, formatted as FAT32, directly connected to the phone via USB-OTG adaptor, then insert it in the new phone. I always do backups on a stick, better portability and faster than any sd-card.
[Samsung Galaxy S 5 Unified Development] bersem:
I agree with @x2k13 but im not sure because of serial number... Dont restore your EFS backup if u have made it on your old phone.

Its a bit weird. Odin flash was successfully..

Thats really sadly. Did u tried to flash the Stock 4 parts ROM with the option "NAND erase All" ticked and .pit file ( without "clear EFS" ) ?

Second : Are you sure this stock rom ( TEN CSC ) was on your phone?

Try NEE ( Nordic Europe ) Stock ROM + KLTE_EUR_OPEN_HIDDEN30M.pit:

NEE-G900FXXS1CQD2-20170505133541.zip

Regards !
[Samsung Galaxy S 5 Unified Development] jenssa:
I have flashed the 4 part rom with Nand erase all and .pit file, and without, in all sorts of ways, and I have done so for TEN as well as now also for NEE. The same sad result, so I've been toying with the idea of jtag repair, or even replacing the eMMC, but that's way beyond my skills, so I guess I'll rather go for buying another sm-900f. Thanks for your concern, I am really grateful for all that I've learnt from your advice. Though it's frustrating not to succeed, it's also fun to get a glimpsy of the technology inside one of the prime gadgets in modern life.
[Samsung Galaxy S 5 Unified Development] Kevindiepenmaat:
Well for sure worth testing. Thanks and I'll let you know.
[Samsung Galaxy S 5 Unified Development] bersem:
Ofc a NAND (eMMC) or JTAG repair would solve your problem, but its not easy to replace it without skills lol

If you want try this file to rule out a corrupted ROM file.

https://drive.google.com/uc?export=download&id=10kAJYIrbTF6wYmCnrR9Gb_KKfPuuauHt

Second :

Create your own recovery ODiN flashable .tar file (use the Stock TEN ROM recovery.img file) and flash it with 50MB hidden .pit file:

https://xdaforums.com/t/script-tool-how-to-create-a-tar-md5-file-from-img-for-odin.2446269/

If it doesnt help, buy another cheap S5 and restore your Nandroid backup.

Regards !
[Samsung Galaxy S 5 Unified Development] sinkoo1979:
does anybody know how to stop the mobile network battery drain?

Thanks in Advance
[Samsung Galaxy S 5 Unified Development] curiousrom:
S5 Low Mobile Network Battery Usage @ Idle

A recent modem & vendor's firmware may help: S5 Odin Flashable Modem & Bootloader.

Make sure there is no apps, Play Store, F-Droid, etc updating or using data behind your back. See screenshot of GSam > Phone Radio.

You can also use > Settings > Network & internet > Mobile network > App data usage.

Make sure you have a good stable cellular signal. See screenshot of GSam > Charts > Phone Signal.

For example @ home I get a 40~50% LTE signal while I get a 100% H+ signal and the latter uses less battery @ idle.

I compared the default > Settings > Network & internet > Mobile network > Preferred network type > GSM/WCDMA/LTE to GSM/WCDMA preferred. That may be different on a S5 CDMA model.

See screenshots of BetterBatteryStats which says Great signal for H+ with Level lost [%]: Bat.: -3%(87% to 84%) [0.4%/h] compared to Good signal on LTE with Level lost [%]: Bat.: -5%(87% to 82%) [0.8%/h].

The screenshot of GSam on H+ says -0.5%/h because I made the screenshot after the screen was on for 29 seconds and that was long enough to skew the stats a little bit.

The last screenshot is of GSam > Charts > Phone signal when my network provider had issues with the local cellular towers.

All battery tests done on a Galaxy S5 G900M LineageOS 18.1 klte build 2021-08-29 @ the present + MindTheGapps + Magisk 23.0 + TWRP 3.5.2_9-0.

***

Screenshots with battery usage less than 0.1%/h while on Wifi @ home: Very Low S5 Battery Usage @ Idle

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 do 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:
Thanks again! Unfortunately, the new rom-zip didn't change anything, nor did the recovery.tar.mp5, so it looks like I'll have to buy another SM-G900F and restore Nandroid backup from the old.
[Samsung Galaxy S 5 Unified Development] sinkoo1979:
Thank you very much

will try later

Update: still the drain very high.... Can't get the idle battery drain below 1.6 per hour.
[Samsung Galaxy S 5 Unified Development] zimral.xda:
Hmmm, if my S5 breaks down, i will definitely not buy another one. Unfortunately i have 3 in total 🙀 i like the S5 but i dont want to put money in this old technology
[Samsung Galaxy S 5 Unified Development] x2k13:
Did you backup the efs partition before you went on that adventurous journey? That partition is the most essential one because it stores all the info to make your phone work as it should.
[Samsung Galaxy S 5 Unified Development] curiousrom:
Re: S5 Low Mobile Network Battery Usage @ Idle

Bad cellular signal, rogue apps using data in the background, dying battery or you are doing something wrong.

You don't provide any setup description, screenshots or logs and do not even say where you got that "1.6 per hour" number from so it's impossible to troubleshoot. ¯\_(ツ)_/¯

Try zipping and attaching a proper BBS dumpfile to a post in the BBS thread and maybe a local expert can help you.

I am attaching a BBS dumpfile I captured (via Share to email) before taking the BBS screenshot for the post above where you can see: Great signal for H+ with Level lost [%]: Bat.: -3%(87% to 84%) [0.4%/h] .

Good luck!

***
[Samsung Galaxy S 5 Unified Development] curiousrom:
S5 LineageOS 18.1 Update 2021-09-12 - Quick Tiles Long Press & Call Forwarding Crashing

Using the built-in Updater I OTA updated S5 G900M LineageOS 18.1 klte build 2021-08-29 + MindTheGapps + Magisk 23.0 + TWRP 3.5.2_9-0 to build 2021-09-12: 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 to test some of the Changes so I could post about it.

The commit libril: initialise RIL_CallForwardInfo to 0 when requesting status does not concern the S5 klte family even if it's listed in /klte/changes/.

This is confirmed by haggertk today in the bug report discussion Call Forwarding - Call Settings Error - invalid MMI code.

In the LineageOS stock Phone app > 3-dots > Settings > Calls > GSM call settings > Call forwarding just made my S5 lose the network connection: no service as seen in the screenshot.

Edit: this commit is now Merged and will be included in the next update. :cool: - Maybe haggertk's commit msm8974-common: libril: initialise RIL_CallForwardInfo to 0 when requesting status will fix it but it's not merged yet. The label Active top left of that page means that it's still under review @ the present.

***

I wanted also to test Make battery clickable again in quick QS status but pressing on the quick QS status clock or battery makes the System UI crash on my S5.

After rebooting: same issue when pressing on the quick tiles Wifi, Mobile Data, etc while trying to get to the respective settings panels.

If I do it once, the Home page & status bar re-draws but I do it again the message System UI keeps stopping pop-up as seen in the screenshot.

In a logcat I can see:

--------- beginning of crash

09-12 04:21:12.523 923 1158 E AndroidRuntime: FATAL EXCEPTION: AsyncTask #2

09-12 04:21:12.523 923 1158 E AndroidRuntime: Process: com.android.systemui, PID: 923

09-12 04:21:12.523 923 1158 E AndroidRuntime: java.lang.RuntimeException: Can't create handler inside thread Thread[AsyncTask #2,5,main] that has not called Looper.prepare()

Could you guys test this & report please with your setup description please? 🙏 @haggertk said in the bug report linked above that he can't reproduce the issue. ¯\_(ツ)_/¯

***

An other minor annoyance: I use the stock LineageOS Trebuchet launcher and shortcuts created with the LineageOS Settings widget, to a webpage created with Chrome & shortcuts created with the app More Shortcuts v1.3.2 all disappeared from the Home page after the OTA update as you can see in the screenshots.

Could you guys create some shortcuts with the Settings widget before updating to see if they survive? You can long press the Settings icon > Widget icon.

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

***
[Samsung Galaxy S 5 Unified Development] g000n:
I'm getting the same issue on my SM-G900W8, which modem & vendors firmware should I download?
[Samsung Galaxy S 5 Unified Development] curiousrom:
See the firmware link in post #1 of this thread or in the post you quoted: S5 Odin Flashable Modem & Bootloader.

***
[Samsung Galaxy S 5 Unified Development] jdrch:
Sep 12 build is causing TWRP to bootloop during dirty flash. Any ideas? Or hopefully this can be fixed in the next build (it's happened and been fixed for previous builds).
[Samsung Galaxy S 5 Unified Development] curiousrom:
TWRP Bootloop - Log?

You don't give any setup description which makes it difficult to troubleshoot.

What happens exactly?

Does it reboot to the Samsung logo bootloader splash screen then gets thrown back to TWRP or reaches the LineageOS boot animation then back to TWRP or never gets out of TWRP like you said: "causing TWRP to bootloop"?

Attach a TWRP recovery log to a post maybe?

FYI if you Sideload or flash manually you can check the TWRP log for errors: after flashing in TWRP & before rebooting: go to > 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.

You can open /external_sd/recovery.log with Wordpad or Notepad++ for example & check for errors and/or rename it recovery_log_your_username.txt & attach it to a reply.

Zip it if the attachment fails which can happen on XDA these days.

***

Possible cause: corrupted download, old TWRP version, Gapps package with bad update survival script, TWRP app if selected when offered in TWRP, custom kernel, Magisk module issues, etc.

I OTA updated my S5 G900M to 2021-09-12 klte successfully as posted above and that's like a manual dirty flash except that it's done automatically via an OpenRecoveryScript running in TWRP.

Did you try with an older build or via OTA?

***
[Samsung Galaxy S 5 Unified Development] Zytrel:
Greetings,

I also cannot reproduce this on my SM-G900F with LineageOS 18.1 klte build 2021-09-12, BitGapps R29, Magisk 23.0 and TWRP 3.5.2_9-0. Both clicking on the clock and battery work flawlessly. Might be an issue specific to the M variant. :(

Regards,

Zy.
[Samsung Galaxy S 5 Unified Development] Zytrel:
The 2021-09-12 build works fine here. However bootlooping after a dirty upgrade can sometimes happen. Try wiping System/Dalvik/Cache and reinstall the current (or previous) version.

Regards,

Zy.
[Samsung Galaxy S 5 Unified Development] zimral.xda:
Hi, i updated to 2021-09-12 yesterday evening coming from 2021-08-15. Current config is SM-G900F german/european version, no vendor brand, using pure LOS rom including LOS recovery. No gapps, no magisk, etc. I had the UI crash once with one of the August builds, but it seems this has gone away for me now. Read this thread too late so i cant create shortcuts. Will try with next update if i remember... :)
[Samsung Galaxy S 5 Unified Development] x2k13:
On my device, the standard launcher, Nova Prime, got reset out of the blue and Trebuchet was set as standard instead. I had to reinstall it and load a backup to get it to work again. No clue why. Working again until now, so no biggie.
[Samsung Galaxy S 5 Unified Development] jenssa:
I only had the Nandroid backup in TWRP, and it didn't allow a restore. Wouldn't the efs partition be included in that backup? If so, then I do not understand bersems advice above for restoring the old backup on another phone (I have already bought one, waiting for it to arrive shortly): "Dont restore your EFS backup if u have made it on your old phone." How could I avoid doing that if they're part of the Nandroid backup of the old phone? (So much for my understanding of these matters!)