yashsingh1/xdaforums huggingface dataset:
[Android General] justjr:
I'll take a look at UD have any configs for it.
[Android General] :
It is quite good but still impossible to go extreme without Xposed and Amplify (or PowerNap).

A good thing is that microG can work with Greenify to replace the Xposed-based GCM push so that it is possible to greenify apps and still receive notifications.

I have literally fallen in love with Velis auto brightness. It is very customizable, much more responsive to light changes, and also keeps screen brightness level usually lower than the default system adaptive/auto brightness.
[Android General] DEVILOPS 007:
Luckily for nougat users there is something like amplify called wakeblock. It currently only blocks wakelocks for now and only works on nexus devices but it works well for me. I've been building it for many roms.
[Android General] Ronii10:
Is it safe to limit these wakelocks?
[Android General] DB126:
Assume you are referencing the first two. I wouldn't unless they routinely fire while your device is sleeping with no audio playing. In that case it would be better to hibernate (or optimize) the offending app vs going after wakelocks.
[Android General] Ronii10:
Okay I'll leave it then thank you for the answer
[Android General] DallasBelt:
Thanks for the guide! I see a lot of improvement on my battery life!
[Android General] WuNgUn:
Are there any suggestions for screen-on battery optimization, besides screen dimming?
[Android General] githyanki:
Don't play video games.

If you get the idle drain under control, then you should have no apps draining battery unnecessarily. Then you'll have only the screen and active apps using the battery, so screen dim and no intensive apps.
[Android General] kk-ftp:
Thanks i did what you said regarding greenify (putting it back to normal doze) also already had doze in the go enabled. I did however greenify the bbm app and noticed that my battery went down to 0.5% per hour which is good, but I was hoping that I would still get Gcm pushes with the option enabled in greenify. It didn't work but works for WhatsApp. Any more tips?

By disabling amplify I'm asumming you mean to change everything back to default and then testing over a few hours?

Thanks for your help!
[Android General] DB126:
- nice find; 0.5%/hr drain is quite respectable

- don't believe BBM uses GCM for notifications

- no need to restore Amplify defaults; simply disable (untick) module in Xposed installer and reboot
[Android General] githyanki:
I can get WhatsApp to get messages properly only by backing up chats using WhatsApp's backup, Uninstall it, then reinstall from play store and restore your backup after setup.

It doesn't work for me very well if I use TiBu to restore WhatsApp. My messages get delayed until I open WhatsApp.
[Android General] DB126:
Unless I read it wrong I believe poster is getting WhatsApp messages/notifications; comment pertained to BBM.
[Android General] githyanki:
I understood. The point was that if you re-installed via TiBu, it may not work properly. Try uninstalling and reinstall via play store. It fixes similar issues I have with a different chat app not getting messages while phone sleeps.
[Android General] DB126:
Ah - got it. This is actually good advice for almost any misbehaving app. Thanks for clarifying :)

In this specific case I'm 95% sure BBM does not use GCM so app will not respond while hibernated regardless of Greenify's (Xposed) settings.
[Android General] zputnyq:
Yes BBM won't respon if it's greenified, I have ever tried it & BBM can't be greenified automatically because it uses its own services that keep it alive and awake, only manual greenify / force stopping it that can hibernate it.

If someone really needs it, its services have to be amplified to make it able working normally & save more battery
[Android General] Chlorophyll:
Need help.Please see the screenshot and tell me anything wrong with my battery performance

Installed Amplify and Betterbatterystat

Using Dr.ketan rom M12 with Ram kernel rc3 latest version

The screenshot showing my handset was in deep sleep with 60%

What does that mean?Battery draining in sleep mode?

Please clarify Thank you
[Android General] Chlorophyll:
Kernel wakelock screenshot
[Android General] :
There are many well-known tips such as dimming the screen down, turning vibration off, etc. If you want to go extreme you can try working with the battery saver turned on all the time :p. Something more advanced would be to play with your CPU frequency and governor settings.

Do not expect extreme savings though (except for the battery saver always on thing).
[Android General] DB126:
Screenshots are unhelpful. Post an idle log as directed below. While there read all preceding posts for general background.

https://xdaforums.com/android/general/guide-extreme-battery-life-t3095884/post65025167
[Android General] lumikin:
if i were you i'd start playing in synapse to see what can be done.
[Android General] WuNgUn:
Can you kindly take a look at my original dump file (which was 1% loss overnight)...

https://www.dropbox.com/s/f2o7ni62skiboea/logcat-2017-05-27_060637343.txt?dl=0

And my newest log, which loses over 4% overnight now...

https://www.dropbox.com/s/n8hoevywapofu9v/BetterBatteryStats-2017-06-01_045814902.txt?dl=0

I dunno what changed, other than OneDrive.

Thanks
[Android General] DB126:
First item is a logcat vs BBS dump; not looking at that. Latest log suggests a connectivity issue ... possibly email or a streaming service. Suggest clearing all data from Google Play Services and rebooting. The 0.8% loss per hour is high but not exceptional. Device was awake for ~30 min (out of 7½ hours) at low to moderate CPU frequencies/load. Somewhat typical for Android 7. You might find a tool like GSAM or the native battery monitoring tools in Nougat more effective at identifying the culprit(s). Good luck.
[Android General] WuNgUn:
Thank you! Wiped GP services storage and cache, deleted account, rebooted and reactivated account. Will retry tonight.

BTW, I was getting the occasional Google Play Services crash... Was likely doing that all night.
[Android General] ProudRed:
I am planning to combine this guide for amplify with this one. Is it going to clash ? or they can work well if combined ?
[Android General] Oswald Boelcke:
By one experience and knowing both threads and their OPs, they work well together. However, common sense applies and more important your desire, expectations, and wishes.
[Android General] DB126:
More bluntly stated the aggressive cocktails advocated in these threads often do not yield significant differences outside a small community of devices and users that fit the ideal profile. That is increasing true with newer devices and ROMs which are designed with power efficiency in mind. Tools like Amplify and Naptime can and do introduce bizarre side-effects that can be difficult to diagnose and address.

IMHO the greatest value of these threads is the methodology used to identify power/performance issues and the fantastic community support offered to those who need assistance. A new generic Rx probably won't work any better than the current ones.

Of course the title of this thread contains the word "extreme" which negates any argument for reasonable, mainstream solutions.
[Android General] ProudRed:
I am testing it. Lets see. I was getting Almost 5 hours of SOT at 50% previously. Idle time wasnt the best.
[Android General] zulfi984:
How do i increase my SOT on my unrooted vivo y55l.. Sorry for this noob question..
[Android General] DB126:
Turn down the screen brightness.
[Android General] WuNgUn:
Did another log... Worse! Phone awake almost 5% of the time when not in use. Email is a big user, but I didn't think it had to wake up from deep sleep to poll for new messages? I can handle setting it to 4 times an hour...

Can you please have a look again...? Thanks

https://www.dropbox.com/s/dyqn3ayx67occqj/BetterBatteryStats-2017-06-04_044807684.txt?dl=0
[Android General] DB126:
Same observations as before. Email was a significant consumer compounded by what appears to be poor connectivity (weak signals). Device must wake from deep sleep to poll for mail. Consider switching to a client that supports push mail if volumes are modest.

That said, a 13% fall off on ~19 min of wake time (over 7+ hours) with modest CPU usage is a bit high. Other thoughts:

- log was slightly tainted with 75 sec of screen on time; try using this method for a more accurate read

- fall off is often more extreme when a battery is fully charged and/or nearing depletion. Try capturing an idle log when the pack is partially charged (60-80%); the above method simplifies this process

- neither suggestion will reduce drain rates but may provide a more accurate (and consistent) picture of what's happening

- consider disabling WiFi during sleep; while that typically leads to higher drain rates it sometimes yields the opposite if AP signal strength/quality is the culprit.

- similarly, switching to 2G/3G during sleep can reduce power consumption if the cell/mobile radio is a big consumer

- note there were no big data consumers during sleep but a fair bit of system and app activity

- also possible battery is defective or nearing end of useful life; a USB charge meter can determine how much capacity remains; anything less than 80% reflects deterioration; most manufactures will replace packs that hold less than 50% of rated capacity

- please see previous comments which still apply
[Android General] WuNgUn:
Thanks again...

Using Samsung email....Is push notifications what I want on the app? Or server side....?

I configured checking mail every 15 minutes instead of "push". I noticed Gmail app uses only 15 minute polling as the most frequent option... No push option.

Admittedly, cell Sig is crap where I'm at right now. Also noticed Leandroid wasn't working properly. Will test again tonight after fixing Leandroid issues.
[Android General] DB126:
In general bundled email apps are mediocre at best. There are many fine options in the Play Store; I like AquaMail. Gmail uses proprietary methods for message polling and retrieval that are arguably more efficient than traditional approaches.

I probably won't spend much time with future logs as I have given you hints on how to capture an accurate log and what to look for. Your soft options are also bound by Nougat (no Xposed) and potentially an ailing battery. Good luck.
[Android General] Oswald Boelcke:
I guess it isn't easy to change a battery in the SM-G955F but I don't no the device exactly. I rather stick with my pretty mature i9305.

Regarding email: I came from K9-Mail to R2Mail2 (IMAP with push); I was already very satisfied with K9 but even more with R2Mail2 (ok, I'm on the pro-version). My experiences with this email client are fantastic especially regarding battery drainage despite not having it battery optimised and not grenified (due to push). My primary reason for switching from K9 to R2Mail2 was that it's one of the very, very few email apps that not only support PGP signature and encryption but also easily and very good S/MIME.

Did you also try to disable DHCP and to assign a fixed IP in your home WiFi-network?
[Android General] WuNgUn:
I'll try DHCP and static IP today... Thanks for the tip.

Battery in my phone is in good shape... Year old, and I rarely fast charge it. Usually 30+ hours of usage according to built in monitor.
[Android General] Oswald Boelcke:
Just advise if support in disabling DHCP and setting a static IP is required.
[Android General] zputnyq:
Hi guys,

Yesterday I created a regex for this alarm

com.google.android.location.fused.LOCATION_STATUS_ALARM_ACTION_ALARM_xxxx

This alarm appears after google play service updated yesterday to version 11.0.55 on my device.

Here is the regex:

com.google.android.location.fused.LOCATION_STATUS_ALARM_ACTION_ALARM_[0-9]+

With interval

41400 to 86400

Based on my testing it is safe, but I am not so sure since I only tested for one day.
[Android General] user2k10:
Deleted
[Android General] zputnyq:
For amplify
[Android General] erfan007:
What happens when i dont use amplify and use the inbuilt wakelocks and alarm blocker?
[Android General] DB126:
Depends on device, kernel and/or ROM. I would encourage establishing a baseline with no alarms or wakelock restrictions. Then try to improve upon the baseline with Amplify or other tools/techniques. Results may be surprising.
[Android General] erfan007:
I use redmi note 3 with NitrogenOS rom and agni kernel.

Google play services eat my battery
[Android General] DB126:
Again - you will need to do some testing to validate that claim. Simply identifying components is not sufficient to establish cause-effect relationship. Goole Play Services is often cited as the universal bad boy but often apps that leverage Play Services functions (presumably doing 'useful' things that benefit you) contribute to the nasty numbers displayed by various battery monitoring tools. That said, Google (Alphabet) ain't no saint and will happily burn CPU cycles harvesting personal and/or usage data that is of no direct benefit to you (ok - ads are more relevant and you get lots of geeky credit card offers). Unfortunately, it is becoming increasingly difficult to block such activity.
[Android General] DallasBelt:
How do we set that time interval in Amplify?
[Android General] erfan007:
Ok thanks, i guess i should acquire the stats by using betterbaterystats?
[Android General] zputnyq:
You can refer to the first page of this thread, there you will find it how to :)

https://xdaforums.com/android/general/guide-extreme-battery-life-t3095884
[Android General] DB126:
Sure. This thread is full of guidance on how to use BBS (although the tool itself doesn't matter much). See first half-dozen posts if new to the topic.
[Android General] DallasBelt:
Thank you. I already set it to 86400 seconds. I think I misunderstood the information given in your previous post. But thanks anyway (:
[Android General] SkaboXD:
If someone want better battery life, it's better to downgrade from Lollipop 5.1.1 to KitKat 4.4.4 because battery life is much better on KitKat.

On Lollipop my battery lasted only 3-4 hours, now on KitKat it lasts 5-6 hours. I use Samsung Galaxy S3 Neo.
[Android General] 4uvak91:
Anything to tweak more in amplify? I'm on CM13 reborn + stock kernel. Amplify + greenify + l speed + forcedoze.
[Android General] erfan007:
This is it,,,
[Android General] DB126:
While I don't question your personal experiences the suggestion that Android 4.4.x is broadly more battery friendly than Android 5.x is technially inaccurate and not supported by the huge body of evidence demonstrating the opposite. There are far too many factors in play to generalize across all devices, ROMs, kernels, app suites and workloads.

---------- Post added at 06:02 PM ---------- Previous post was at 05:49 PM ----------

Log includes over 11 min of active screen-on time which limited usefulness in evaluating idle (screen-off) battery consumption. That said, average drain was only 0.8% per hour including the 11 min noted above. No smoking guns, looks good for stock Android 7.x. Enjoy your device.
[Android General] erfan007:
Cool thanks, so i dont have any apps eating my battery without any tweaks, i have one more question, anyway to get more sot, i only get 5-6 hours sot from 100%.
[Android General] DB126:
SoT is subjective. That said, 5-6 hours is toward the upper end of reported ranges on mainstream devices excluding outliers.
[Android General] erfan007:
I am getting 8-9 SoT 2-3 months ago, so I assume my phone battery health is going down.

Well thanks a lot.
[Android General] githyanki:
Lower screen brightness is the best way. You could also experiment with lowering max CPU and GPU speed. After that, you can make sure that your not using any intensive apps.
[Android General] erfan007:
Everything is stock, well I play game most of the time,
[Android General] PamelaGirl:
Hello v7 and all,

Thank you for a most informative thread! I have trying to digest all this knowledge but with 1261 pages its taking some time, and yet I have already seem some improvements with battery life. I know there is more tweaking to be had but so far so good.

I immediately know my battery life is good when I reach for the phone and notice how cool it is to the touch...ehehe

Thanks!
[Android General] PamelaGirl:
Almost there!

Hello Good People,

After 6.5hrs unplugged and untouched my battery drained 8% after applying the tweaks from the first page.

Can someone please help me with some fine tune the remaining battery drainage?

T.I.A :)
[Android General] DB126:
Device was awake from 2+ hours during 6½ hour sampling window - not good. MailDroid and DomoPad/HousePad are suspect. Other thoughts:

- dump Memory Booster Pro

- configure Greenify for 'Doze on the Go" (especially important on Android 6.x)

- do Tasker and Titanium Backup need to be running?

- turn off auto-updates in Google Play Store

- lots of little contributors such as Live Wallpaper and Weather Clock updates

In a nutshell you have a lot going on with your device...much if it within your control. Take a look at the BBS UI and log (even if you don't fully understand it) to help identify potential drainers. Also suggest installing GSam which is a little more digestible for identifying apps that consume power.

Final suggestion: enable Watchdog processing in BBS so you can focus on alarms, apps, wakelocks, etc that occur between screen-off and screen-on.
[Android General] PamelaGirl:
Davey126,

Thank you for the quick review. I will take your advice and try to follow through on the points you mentioned. I'm getting closer!

Dump Memory Booster Pro as in uninstall it?

Thank you! :)
[Android General] Oswald Boelcke:
I'm fully content with @Davey126 suggestion, and I personally definitely uninstall Memory Booster. I recognised the alarms it raised, and wasn't somehow wandering after checking the permissions that app requires. I'd personally not install it. The one I use with its similar capabilities is SD Maid but I even suggest the Pro-key from Play Store.

You might want to concider to replace Maildroid by another email application. I realised in this thread that lots of people are very happy with functionality and battery drainage of Aquamail, which I never personally used. I used K9-Mail with satisfaction in the past, but changed to R2Mail2 month ago as it not only offers PGP signature and encryption but also S/MIME signature and encryption that I rather use. My R2Mail2 is set to IMAP pushes, it's not greenified and not battery optimised but I can't complain about its "fuel consumption" at all.

Finally, did you ever consider to assign of fixed IP in your WiFi-router to your device and to disable DHCP in the device?

But more important than all I said, please listen to Davey126's recommendations!
[Android General] PamelaGirl:
noc.jfcbs,

Thank you for the reply and advice.

1. I will remove Memory Booster and go back to using SDMaid Pro

2. I will reduce how often MailDroid checks for new messages

3. My router does have a fixed IP address. I will disable the DHCP on the device

Thank you :)
[Android General] Oswald Boelcke:
I was once interested into the "baselines" of my device, therefore I fully charged the phone and switch it off. After 5 or 6 hours, I turned it on again, and was able to see the battery drainage even with a "dead" phone and exactly that battery in its status. I now knew I unable to go below that percentage.

My next trial was to experience the drainage when the phone wasn't connected (and could connect) to any network i.e. in Airplane mode. I took an idle dump of more than six hours and was surprosed how much the kernel wakelocks had reduced (the ones you can't really do anything against except trying a different kernel).

Additionally, I've disable all auto-start-at-boot receivers for those applications, which don't require it. All my user apps are greenified except email and messenger ("Conversations") and they are both not battery optimised. None of my applications runs a scheduler or automatism, not SD Maid, not Titanium, only R2Mail2. I'm still young enough not to forget to get an app a procedure to run.

The apps I won't to have and remain on my device, but are only rarely used, are regularly frozen, and I only unfreeze them when I want to use them. Location is disabled unless I need it. I only use e.g. weather application who don't require the location service per se but are able to also find a location via a database.

Last but not least, please allow me to point you to a procedure by @Davey126 that certainly allows for the most accurate BBS statistics.
[Android General] PamelaGirl:
noc.jfcbs,

Thank you again for the additional advice! This will be very helpful and is very methodical at getting to the root of my battery drainage.

Much appreciated :)
[Android General] anunaym14:
Nougat Replacements

As we all know that xposed isnt there on nougat ....so [MENTION=5867207]v7[/MENTION] are there any nougat replacements for the apps used? Also, in servicely. I can only block "services" section of amplify right?
[Android General] peterlee928:
try myandroidtools
[Android General] 4uvak91:
[MENTION=5488402]Davey126[/MENTION] Can you look at this please?
[Android General] DB126:
[MENTION=7408621]noc.jfcbs[/MENTION] is overly generous in his complements; I have great confidence he is receiving my weekly checks. ;)

Kidding aside, you are receiving some great 'real world' guidance from a very thorough and open-minded individual. I will toss the following out for further consideration. Keep in mind there is no right/wrong; just different takes from different perspectives.

- R2Mail2 has earned much respect and is a great choice, especially for those concerned with privacy and/or security of email communications; I happen to not need those features in my current life and have settled on AquaMail

- Full network isolation is one of the best ways to prolong battery life and also the most impractical for many individuals

- Perhaps the second most effective generic action is to disable Google's (cough) "battery saving" location services is simply rely on the hardware GPS built into your device whenever possible which is very efficient - contrary to popular belief (assumption here is your device is reasonably modern)

- Most apps are well behaved and do not need to be frozen to conserve power; however there is a certain comfort knowing they can't start/run

- I take the opposite approach from [MENTION=7480345]nic.[/MENTION]jfcbs and only act on an app/service if it proves to be a bad actor. We have equally high standards IMO just different ways of enforcing them

- Use caution greenifying large numbers of apps that are not problematic; in my testing there is penality associated with such aggressive measures

---------- Post added at 09:50 PM ---------- Previous post was at 09:37 PM ----------

Log includes a 37 Mb WhatsApp download which is why I ignored it before. A (very) quick relook suggests kernel wakelocks contributed to the 27 min wake time which seem to be exasperated on some devices by CM ROMs (I have no proof of this aside from personal experience). Also see evidence of location services related wakelocks (try disabling Google location services) along with some FireBase analytics reporting.

I'm no fan of Amplify and wakelock limiting/blocking. Could very well have been a contributor to extended wake time. That said, could have also limited the damage. A better approach is to get rid of the culprits vs mask the symptoms.
[Android General] PamelaGirl:
noc.jfcbs the man! and Davey126 the legend!

I stand humbled and very thankful for the time and support you have provided on this forum and this thread. Its about sharing and learning everytime I log on, with the hope of gaining that knowledge and passing it on to the next person. Because of this thread I went from a 20% drain down to 8%. I have applied every advice given so I hope to reduce that 8% drain some more.

I appreciate your help and support and keeping the instructions in the "goldie lock zone"!
[Android General] 4uvak91:
Okay thanks. Yeah I have msgnig apps running all the time :rolleyes: So do you suggest to remove Amplify or is there another approach? What do you mean by this "A better approach is to get rid of the culprits vs mask the symptoms." ?