yashsingh1/xdaforums huggingface dataset:
[Galaxy S 5 Android Development (Snapdragon)] ecotje:
Battery drain

[MENTION=5888226]Néocray[/MENTION], the bottom-line is that when your bootloader revision is below the required CQA2 (and thus the need to upgrade the official Samsung FW), it's advised to first validate and possibly to restore the battery life on the updated official FW to whatever your original battery performance was (about 60 hours in my case)

before

moving to a custom ROM. In my case, it turned out that simply flashing the latest available ROM for my region (with or without factory reset), yielded in battery life that was merely 5 to 6 hours, even after letting it settle for a few days. So I went back to the FW I started from (PHN-G901FXXU1CPF6-20160711155451 in my case), did a factory reset (without it, the ROM would not offer any updates at all!) and then installed each upgrade proposed (3 consecutive upgrades in my case), each time wiping cache etc. . As it turned out this process resulted in the one but last available version. That process yielded in good (~48 hours) but less than original battery life. So next I then calibrated the battery, deleted Chrome etc. (and other things described in my post above) until battery life was close enough to the original 60 hours.

After that I flashed the 1202 ROM, I did one more battery calibration and battery life went up to 72+ hours (yesterday 75 hours and 5% battery left).

I am not smart enough to figure out what exactly went wrong when directly flashing the latest ROM using ODIN, but clearly there was some synchronization problem between FW(data), Android OS/kernel/blobs (e.g. my phone died depleted when Android displayed over 50% battery capacity). In addition, I saw very high phone radio/standby and WiFi battery consumption. It just IMHO did not make any sense to figure out the problem on this ROM (and waste the developer's time) if I was not able to achieve stable & good battery life on an official & recent ROM.

Since you are on a different ROM, I can't tell if you can (or need to) replicate completely the process I followed, but you can definitely validate the battery performance on a recent BOG ROM first. If that is up to par, I would assume that, like in my case, it only will get better, or at least we will be able to eliminate a whole series of possible issues.

Ewald

---------- Post added at 09:16 AM ---------- Previous post was at 09:04 AM ----------

Friday I asked my spouse to let her phone's battery drain below 5% to be sure ultra power savings mode kicked in, but I was not able to reproduce the touchscreen problem on the 1202 ROM. The touchscreen was very responsive and I could not fault it in any way (games, Sudoku). Any specific touchscreen operation that failed which I can try to reproduce?

Same here, Volte is off and no way to turn it on. But my carrier does not support Volte, maybe that has something to do with it too.

I also noticed there is no /system/CSC folder and phone info apps display CSC as empty. Don't know if there is any relation there.

Ewald.
[Galaxy S 5 Android Development (Snapdragon)] Néocray:
@ecotje : OK so maybe I have made this wrong.

Because I have reinstalled original ROM yesterday, with the latest BOG available (which is G901FXXU1CPF6_G901FBOG1CPI1_BOG), but no update was available. The battery life expectancy was the same, around 10 hours. And the battery depletion was still huge while in use.

This morning, I put back the NAND backup, because I can't stay on original ROM for days, as those days, I have very few window of opportunities to not use my phone. :/

Same here.

But the effet kicks in below ~15% in my case. When the battery is further depleted, the screen response becomes increasingly erratic.

The phone remains usable however, but for Google Maps, in which map scrolling is impossible, even with small movements. I ended once in the middle of Pacific while scrolling in my neighborhood. (And I don't live in French Pacific islands.)
[Galaxy S 5 Android Development (Snapdragon)] ecotje:
I know what you mean, I ended up borrowing a GS7 for my spouse for a few days while trying to fix this problem... According to Sammobile, there is indeed no newer version for BOG, which means your bootloader is below the required version. However the NEE version has a G901FXXS1CQD2 ROM, dated April 2017. If you factory reset your NEE ROM that had proper battery life, did it not offer updates? That would IMHO be the safest & fastest route. Alternatively, you could flash my original version:

https://www.sammobile.com/firmwares/galaxy-s5/SM-G901F/PHN/download/G901FXXU1CPF6/79310/. After a factory reset, it will offer upgrades, but probably good to validate battery life first. I use Titanium to rapidly restore user apps and things like contacts, call logs, sms messages, wifi pwds etc. so in about 1 hour I have a fully operational phone. If phone radio & WiFi are the top consumers, it's most likely a FW issue, if it's Google play services/wakelocks, try uninstalling Google Chrome.

I had a similar experience with the GS7. My GS7 has around 120 hours battery life on official ROM, the one I rented for my spouse was an exact same model, but when I flashed the same FW as I have, battery life was only 18 hours. :rolleyes: Only when I went back to the original FW of the phone, upgraded from there, and then removed Chrome, Play & Play services (comes pre-installed with the ROM), calibrated battery and then reinstalled Play (from apk) and Chrome, I had around 100+ hours of battery. Frustrating!

Ewald
[Galaxy S 5 Android Development (Snapdragon)] toonami2011:
U

Sorry muy friend i miss this word "Root"

So, how i can root this room, i have the model sm-g906s

How i can install xposedFramework i get bootloop wen i flash the latest Su openscript with TWRP
[Galaxy S 5 Android Development (Snapdragon)] WannabeDeveloper187:
Flash addon su for lineage through twrp

You can control root status in dev settings then

Install xposed app first, then flash framework through twrp

Voila
[Galaxy S 5 Android Development (Snapdragon)] elDiabllo:
After those bugs that I mentioned earlier and can't find a solution, I found another 1 quite frustrating...

I can't send sms. I can't find the path to edit sms service center number. Anyone can help me with this issue? Or that I mentioned earlyer (volte, wifi calling)

Thx
[Galaxy S 5 Android Development (Snapdragon)] tni.andro:
[MENTION=1585352]ecotje[/MENTION]

This ROM doesn't include the modem / baseband firmware (which is also responsible for WIFI and GPS). This firmware is stored in separate partitions (NON-HLOS.bin in /dev/block/mmcblk0p1 and modem.bin in /dev/block/mmcblk0p2).

If you install/update an official ROM, it includes the modem firmware and will by default overwrite what you have.

There are Samsung/Qualcomm libraries which this ROM includes (the most current versions available), which handle parts of the baseband / WIFI / GPS functionality (and talk to the firmware) and they are not always completely backward compatible. It's certainly possible to get a mismatch...
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
Resurrection Remix 5.8.5 20180319

New release for kccat6 and lentislte.

Heads up: Given that the RR team decided to abandon the nougat branch completely, I made an effort to pull in all ASB patches since December, not only the kernel patches. So this release comes with all (January, February and) March ASB[1][2] patches, as far as they affect Nougat.

Therefore, this ROM will claim an Android security level of 2018-03-05, and rightfully so.

For those of you keeping track of the sources, I pushed everything to github. Just replace the RR platform manifest with https://github.com/github-cygwin/rr_platform_manifest.git and run `repo sync --force-sync'. This replaces some repositories with the LineageOS version, and some repositories with the versions from https://github.com/github-cygwin/ (all of them start with "rr_").

Corinna
[Galaxy S 5 Android Development (Snapdragon)] ecotje:
[MENTION=5288329]tni.andro[/MENTION]

That explains the issues you can have moving from (an outdated) official ROM to a/this custom ROM. But how to explain the problems with battery life and FW/Android OS synchronization when straight flashing a recent official ROM versus a step-wise in-ROM upgrade ? I noticed similar disconnects between software and FW on pure official ROMs that were not curable by a factory reset. My initial guess was that it could be related to (tripping) Samsung KNOX, but I managed to have similar problems with a borrowed S7 that never ran anything but official ROM. Anyhow, all is running fine now and the spouse is extremely happy! No way she is going back to official ;)
[Galaxy S 5 Android Development (Snapdragon)] sunirmalya:
Thanks Corinna - thanks for all your great work and really happy with your ROMs always really robust
[Galaxy S 5 Android Development (Snapdragon)] Néocray:
Well, the thing is that I never ever had as much battery life as you claim. The best I ever had was around 2 days idling, but most of the time, it was just over a day, with moderate usage.

And when the battery drain appeared in November, the firmware was unchanged since several weeks. Chrome was not installed (since I don't use it).

I have flashed latest modem and bootloader (CQC1 and CQJ2, respectively). But nothing helps, the battery drain is still here.
[Galaxy S 5 Android Development (Snapdragon)] Néocray:
[MENTION=1585352]ecotje[/MENTION] :

Merci beaucoup.

About the battery, yes, I have already thought about a possible over-wear, but i) it is more or less identical with a spare battery I have and ii) I can't find an app to check the battery wear level. It already exists for laptop batteries with Battery Bar.

However, the two batteries I have are 4 or 5 years old, so it doesn't harm to buy a new, fresh replacement.

As for you other advices, I have applied everything you said yesterday. By the way, MyAndroidTools behave quite bad on my device. The app crashed each time I switched something, so it was quite annoying. And DisableService is largely deprecated.

Anyway, I will try for some days, but for today, it is not convincing. The battery life has marginally improved (from 8-10 hours in idle time to 10-12), but a fair number of apps are now malfunctioning, some have even stopped working. (Like the one we use in France to pay car parks, now that the pay-and-display park tickets are disappearing and the car parks monitoring has been privatised.)

I think that I will give a try with a proper clean install this week-end.

With latest bootloader and modem and clean install, if there is still battery drain, I guess that the only cure would be a stake.
[Galaxy S 5 Android Development (Snapdragon)] Witja99:
Hello all

I installed before last and now I updated to last version of this ROM . In my G901F are two most annoying things: no possibility to change brightness (it is still on max) and battery draining in use. What is interesting when phone connected to wifi and no LCD use, battery use is few percentage over night. But during normal work - internet, mails, other apps (no games) battery utilization is 1-2%/min and phone became hot. In my opinion it is not due to old battery, in earlier stock ROM I can normally use for 2 days.

Before first ROM change I made full wipe, I'm not use chrome, from google aps is only play store and calendar.

Any advice? Is it any LCD brightness path available?
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
PREVIEW: Resurrection Remix 6.0.0

Hi guys,

I made Resurrection Remix 6.0.0 preview builds available for kccat and lentislte.

Please note that this is not yet ready for prime time, neither in terms of device support, nor in terms of Lineage and ResurrectionRemix features.

This is still Work In Progress.

Don't use as daily driver unless the functionality is ok for you.

I won't take bug reports yet.

Working:

Audio

Bluetooth

Camera

Deep Sleep

Display

Encryption

Fingerprint

Google Play (with clean install, and a bit bumpy at installation time)

GPS

Hardware Keys

IR

Lights, Torch

NFC

RIL

USB

SELinux

Sensors

Wifi

Not working yet: Everything else. Most notably

Camera (Quality issues, the good old Flash problems with Snap, use Open Camera instead)

RIL (sometimes doesn't come up after boot, rebooting necessary)

There's some unidentified battery hog.

For some reason ResurrectionRemix 6.0.0 doesn't support hardware buttons yet. They work, but they are not at all configurable.

Have fun,

Corinna
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
ResurrectionRemix 5.8.5 20180413

New release for kccat6 and lentislte.

Heads up: Given that the RR team decided to abandon the nougat branch completely, I pulled in the April ASB patches myself.

For those of you keeping track of the sources, I pushed everything to github. Just replace the RR platform manifest with https://github.com/github-cygwin/rr_platform_manifest.git and run `repo sync --force-sync'. This replaces some repositories with the LineageOS version, and some repositories with the versions from https://github.com/github-cygwin/ (all of them start with "rr_").

Corinna
[Galaxy S 5 Android Development (Snapdragon)] sunirmalya:
thanks Corinna - much appreciated..
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
I made new Resurrection Remix 6.0.0 preview builds available for kccat and lentislte.

This is still Work In Progress.

Only use as daily driver if the functionality is ok for you.

Basically, everything should work now, bugs not withstanding.

Important Notes:

Audio: the missing headphone jack problem should be fixed.

Camera: I switched back to Camera2 since Snap is just buggy. There's a good chance that Lineage will provide OpenCamera at one point, but this may be a long time off yet .

Make sure to perform a factory reset if you already installed the previous Oreo preview build. Otherwise you may end up with a broken Camera.

The support for hardware buttons is still missing from RR 6.0.0.

That's it for now. I'll be very busy with non-Android stuff the next few weeks so it may be a while until I can come back. Nevertheless...

Have fun,

Corinna
[Galaxy S 5 Android Development (Snapdragon)] gainram:
Having an error 7 trying to install rr 6. It says it's for device kccat6 bu my device is kccat6. Please help. Thanks.
[Galaxy S 5 Android Development (Snapdragon)] GalaxyTroll:
The camera is broken for me on the latest oreo rr even though I did a factory reset. In the previous build the camera did work.

When the camera issue is fixed I'll most likely switch over to the oreo builds permanently, the oreo builds are already stable enough (no crashes so far).

By the way does anyone know an alternative to the rr nougat wakelock blocker? For some reason the built in wakelock blocker is gone in oreo.
[Galaxy S 5 Android Development (Snapdragon)] Toutatis_:
I clean flashed with latest OpenGApps pico package (04-27)

Audio with headphone is fixed indeed, however I'm getting a black screen when I launch the stock Camera app. It was working fine on previous build(s). Anyone also has this problem?

.6.0.0 test builds have been very stable for me overall, keep up the good work. :good:
[Galaxy S 5 Android Development (Snapdragon)] gainram:
Edit: succesfully flashed by deleting 'asserts' on updater-script. Can confirm camera doesn't work.
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
RR 6.0.0 20180429 preview builds (camera fix)

I made new Resurrection Remix 6.0.0 preview builds available for kccat and lentislte.

This is still Work In Progress.

Only use as daily driver if the functionality is ok for you.

Camera fix:

The RR repos are still missing four important LineageOS patches to support the old Camera HALv1. The affected RR repos are quite different from the Lineage repos so I have to apply those patches manually. And I simply forgot to do that for the 20180427 build :eek:

Notes (same as with 20180427):

Audio: the missing headphone jack problem should be fixed.

Camera: I switched back to Camera2 since Snap is just buggy. There's a good chance that Lineage will provide OpenCamera at one point, but this may be a long time off yet .

Make sure to perform a factory reset if you already installed the previous Oreo preview build. Otherwise you may end up with a broken Camera.

The support for hardware buttons is still missing from RR 6.0.0.

Have fun,

Corinna
[Galaxy S 5 Android Development (Snapdragon)] Toutatis_:
Camera works fine with this build, thank you for the quick fix :good:
[Galaxy S 5 Android Development (Snapdragon)] sanj00k:
same problem with error 7. this package is for kccat6. Both on 20180427 and 20180429. Do we need to edit every updater-script from now? or am i doing someting wrong?

btw. thanks for the work, Corinna
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
I'm sorry, but I don't know what the problem is. It works fine for my kccat6 so I'm puzzled. I'm unavailable for a while but for the records it would be nice if you could explain what check fails exactly. The updater script checks for a property. What property is that and what value does this property have for you.

Corinna
[Galaxy S 5 Android Development (Snapdragon)] sanj00k:
I've found what the problem was. Upgrading to the latest twrp helped, my bad, didnt think about it at first.

Thank you for response and your work :)
[Galaxy S 5 Android Development (Snapdragon)] GalaxyTroll:
The latest oreo build has been amazing for me regarding battery life (0% overnight drain and about the same SOT as nougat) but there are still some issues with the camera. When taking a picture with the front camera via whatsapp and then pressing the back button to dismiss the picture makes my phone reboot, this does not seem to happen with the back camera. There seems to be an issue with camera flash as well, camera2, footej camera and opencamera all crash when using the flash mode. The flash light remains on after taking a picture with flash but the picture is not saved, after this the camera doesn't work anymore and a reboot is required in order to fix it. Another minor issue is that the wake-up delay when pressing the power button on the phone is slightly longer than on nougat but this seems to be an issue with android 8.1 in general.

The rom is still amazing though. Performance and battery life has been great for me and the stability besides the camera issues is also great. We are able to run android 8.1 on our 2014 device thanks to [MENTION=3419717]cvxda[/MENTION] !

Edit: For some reason when on wifi my standby drain is absolutely garbage (10% drain in 2h 45m). I think google play services is the culprit. Sadly I can't block the wakelocks anymore because the wakelock blocker is gone for some reason in rr 6

Edit2: Using doze for GMS magisk module seems to have fixed my wifi standby drain issue
[Galaxy S 5 Android Development (Snapdragon)] sanj00k:
Can confirm, battery life is great, about 1-2% overnight. Got some rare app crashes, some minor lags, some widgets wont work, camera problems, but everything else is working fine, so for a preview buils thats pretty awesome, thanks Corinna
[Galaxy S 5 Android Development (Snapdragon)] tiritibambix:
All right, my S5 just died, so I'm leaving this thread.

Thank you [MENTION=633777]Corinna[/MENTION] for maintaing this rom.

Hope you had a good coffee/beer/whatever with my (too) small donation.

Have fun guys ;)
[Galaxy S 5 Android Development (Snapdragon)] Allen kao:
How to use this rom install sansumg gear

HI does anyone know how to use this rom intall sansumg and connect gear 2 :confused:
[Galaxy S 5 Android Development (Snapdragon)] sanj00k:
Samsung gear 2 should work with any android devices, it even works with ios, so you should have no problems with this rom
[Galaxy S 5 Android Development (Snapdragon)] Allen kao:
Yes I also think it can work but when I install sansumg gear App , The App show it`s wrong version and can`t run then the app close immediately....

So.... :crying:
[Galaxy S 5 Android Development (Snapdragon)] sanj00k:
read this post https://xdaforums.com/gear-s2/help/gear-s2-classic-lineage-os-t3705562
[Galaxy S 5 Android Development (Snapdragon)] Allen kao:
Thanks....

So sad:crying:
[Galaxy S 5 Android Development (Snapdragon)] cesar2012:
Batterie Drainage

Dear users who uses RR-N-5.8.5-20180413.

Batterie drainage is a common complaint from those who uses the Galaxy S5 (4G+)

I found out that the *.apk: Autorun Manager (i.e.4.3.97) is a very good tool to STOP unwanted en unnecessary 'Services'!!!!

Especially the opition in the app calles: recommended advanced modus gives you the opportunity to stop those services!!

Since I use this app and stopped most used app services my battery ( 5years old..) can be used for almost 48 hours without recharging!!!

Use this 'tip' for your advantage!!!

regards; Bart from the Netherlands (an enthousiastic Galaxy S5 (4G+) user.......
[Galaxy S 5 Android Development (Snapdragon)] andreoide:
Hoi Bart

How nice it would be to share with us WICH services you are stopping resulting in a two-day-battery-life?

:cowboy:
[Galaxy S 5 Android Development (Snapdragon)] cesar2012:
I would advise to try the program by yourself and find it out.

Maybe I explained it to general but the program mainly stops the 'recievers' of the different apps on your phone...

Try it out by yourself: Autorun Manager!

Greetz
[Galaxy S 5 Android Development (Snapdragon)] TomTrom2.0:
How do I root my phone again? Can I use magisk again or something similar?? I was reading that this RR isn't compatible with magisk etc.
[Galaxy S 5 Android Development (Snapdragon)] thetester:
Magisk works. It's included in the last release.
[Galaxy S 5 Android Development (Snapdragon)] Blerdo:
DRM widevine

Hello,

I can not see video because of missing DRM widevine.

Is there a solution ?
[Galaxy S 5 Android Development (Snapdragon)] TomTrom2.0:
I'm using the latest 5.8, it's not there. I read that it was removed because of issues.

Can I install it individually? Or does it need to be installed with the rom.
[Galaxy S 5 Android Development (Snapdragon)] maanteel:
[MENTION=8894585]TomTrom2.0[/MENTION] I would adopt following, in TWRP first flash the great Rom by cvxda, then 2. opengaaps, then magisk.

So you did 1. and 2. , so flash Magisk now :)
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
Works fine for me in cm-14.1.

Are you talking about lineage-15.1 by any chance? I think I have a solution for this but I'm still working on it.

Stay tuned,

Corinna
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
RR 6.0.0 test build 20180601

I made new Resurrection Remix 6.0.0 preview builds available for kccat and lentislte.

Basically, everything should work now (including Widevine DRM), smaller bugs not withstanding.

Have fun,

Corinna
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
HEADSUP: Switch to Oreo really soon now

I'll switch my daily driver to Oreo within the next couple of days, no matter what, and I will only provide Oreo builds from now on.

As much as I hate this, I just can't keep up with two versions, Nougat and Oreo in parallel, for any longer period of time. I just don't have enough spare time for this, sorry.

Keep calm and carry on,

Corinna
[Galaxy S 5 Android Development (Snapdragon)] thetester:
Thank you so much upgrading had been working flawless. Only needed to reflash opengapps due to the new Android version. DRM info shows widevine working. Test streams also, but e.g. the waipu.tv app does not. Support there blames custom Roms with missing DRM keys.

Don't know if it's a lineage DRM bug or just a faulty app.
[Galaxy S 5 Android Development (Snapdragon)] schwatter:
Can someone confirm this still existing whatsapp audiobug?
[Galaxy S 5 Android Development (Snapdragon)] thetester:
Could only test wifi call not volte, but can confirm bug still exists. No audio transmission...

Your second reported bug (crash/reboot phone after pressing back button when taking picture in whatsapp with front camera) also still exists.
[Galaxy S 5 Android Development (Snapdragon)] cvxda:
I'm not ever going to install What's App, but I do use Signal. I just tried voice calling over Signal as well as receiving and playing a voice message, and both work fine. So for now I blame What's App.

Edit: The aforementioned Front Camera problem doesn't exist either with Signal.

Corinna