yashsingh1/xdaforums huggingface dataset:
[Android General] IssLance:
Hey, I have a problem with my phone overheating during the night randomly. I have greenify (xposed), amplify and power nap installed and set according to this guide. It happened before, when I had only rooted greenify installed but maybe you will be able to help me. I'm using Xiaomi Mi3, MIUI 7. Before I went to sleep at 1am I switched my phone to airplane mode and turned off wifi. Tasker program turned on normal mode + wifi at 6am. I woke up at 7.

When I went to sleep I had 95% battery and when I woke up it was ~55, probably went down during that hour. Better Battery Stats shown that 90% of time the phone was using 980 mhz (not exact amount, I can't remember) of processor. I attach BBS log. Anyone see what could be possibly wrong here?

dropbox.com/s/vyxqqtl692brchu/BetterBatteryStats-2016-06-10_070428347.txt?dl=0
[Android General] hardwareadictos:
[MENTION=5656100]tnsmani[/MENTION] [MENTION=1931449]portgas[/MENTION] D.Ace here is the needed file according to post 6http://cloud.tapatalk.com/s/575aadbb282f5/BetterBatteryStats-2016-06-10_140353633.txt

Enviado desde mi ONE A2003 mediante Tapatalk
[Android General] cwburns32:
My apologies. Attached is a log from about 6 hours of idle time. Of course now those wakelocks have disappeared. I will monitor it throughout the day and report back here later this afternoon/evening. Thank you for your assistance!

EDIT: It appears as soon as it is done idling/deep sleeping that this Icing wakelock fires up and never stops all day. Any suggestions?
[Android General] Ad.Shk2:
Hi, can someone look at my log here? I've got a Nexus 6p and last night i lost 10% with everything done.

https://drive.google.com/file/d/0B-YehMCBHI-ndlUtWHFwd0lhQnM/view?usp=drivesdk
[Android General] f0xy:
I'm not an expert, but something has kept your device 'awake;screen off' for over 2hrs and what's resembling that is Bluetooth activity. Did you listen to music?

Regards

P.s You might benefit from using the context manager regex which is in this thread, just do a little search.
[Android General] Ad.Shk2:
Couldn't have been listening to music while sleeping :) Usually the only Bluetooth activity during the day is my phone is connected to my car for phone calls etc.

Anyway, i have added the regex for alarms in Amplify if that is what you are referring to.

And thanks for the response :) Usually V7 is very active and prompt, wonder where he is today....
[Android General] f0xy:
He's been away for a short while now. Think he has studying to do.

True :) each person is different :p

Hopefully someone can help you further pal
[Android General] :
Hey guys, could someone help me figure out a Google Play Music issue? Every now and then, sometimes takes days sometimes weeks, my downloaded music through the All Access subscription keeps getting deleted. The only thing I can think of is it's from something that I've disabled on Amplify or AppOps, or maybe PowerNap? I followed the instructions on the OP and only disabled what it said to, except ICING. Any ideas? I haven't been having any other issues with any Google app. Music is downloaded to the internal storage. Unless it's a bug in the rom, i haven't found or seen anyone else with this issue on the rom I'm using though. Thanks so much!

Nexus 6P on Chroma Rom and ElementalX kernel
[Android General] gaspariperez:
Is PowerNap necessary on Marshmallow (6.0+)?

For you with 6.0+ devices, do you use all these apps? What results are you getting?

I'm asking because of doze and all battery optimizations of Android 6.0+.
[Android General] Gopinath15:
Yup. Marshmallow takes bit of time to enter doze mode. Plus, you should keep it in idle. Sensors will disturb doze.
[Android General] TNSMANI:
This again is not an idle dump. Screen was on for more than an hour and calls were also made/received.

Read post#6 again and post a proper idle dump.

---------- Post added at 06:04 PM ---------- Previous post was at 05:48 PM ----------

You have only 0.2% loss per hour while idle. That is one of the better numbers on MM. If I were you, I would just carry on without adjusting anything.

Still, if you want to further tweak, you can limit

Alarms: 12, Intent: android.appwidget.action.APPWIDGET_UPDATE to 3600 where the updates will happen once per hour as against the 4 now.

You still have

Alarms: 4, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_304049. Did you limit it with regex?

Your sensors were active all the time:

Sensors (): 6 h 10 m 41 s 100.0%. Have you set up something affecting your proximity sensor? Check.

Apart from all this, upgrade to 0B6 of BBS (you have 0B5 now) and post a fresh idle dump.

---------- Post added at 06:24 PM ---------- Previous post was at 06:04 PM ----------

First of all upgrade BBS to 0B6 from 0B4.

You seem to have a lot of wakelocks from Google, Whatsapp, kernel wakelocks, Context Manager alarms, Heartbeat, Analytics etc. Did you carry out all the recommendations from the OP (except "icing" ofcourse)? There was also a download of 12MB while sleeping, from Google.

Check whether you have set limits as per OP and upgrade BBS. Then post an idle log after which someone will give you further advice.
[Android General] misterhong:
can u tell me what it uses for?
[Android General] Portgas D. Ace:
This will block all alarms that start with the keyword ALARM_WAKEUP, followed by some random numbers. It's Amplify's regex function.
[Android General] cwburns32:
Yeah I know the drain is great but I think I can get even closer to 0.0% lol. I won't mess with it much other than the suggestions you've made. I'll post another idle dump tomorrow after it idles overnight with the newer version of BBS.

I did limit CONTEXT_MANAGER_ALARM_WAKEUP in amplify - see attachment.

I do have doubletap2wake on I am sure that requires the sensors. I rarely use it. Probably can just turn it off? Other than that I can't think of anything that uses my sensors over night. Definitely nothing that uses the prox sensor.

EDIT: I still get the wild Icing - com.google.android.gm.Gmail wakelock and ContextManagerWakeLock - com.google.android.apps.maps.Maps wakelock which I thought I limited....again see attached.
[Android General] TNSMANI:
"CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]+"

Note the underscore after Wakeup and before the bracket. That is missing in your regex, so it is not working. Edit it.

Doubletap2wake-disable that and check. I was referring to not only proximity sensor, but any sensor. Proximity was an example.

Forget about icing. Though the number and duration seem to be high, it doesn't seem to drain battery that much.
[Android General] misterhong:
is it safe? will i receive notifications on time?not delayed.
[Android General] Portgas D. Ace:
Yes, it is safe to limit.
[Android General] Darksite93:
I still have the same problem ... The regex did not work now not only have many alarms "CONTEXT_MANAGER_ALARM_WAKEUP_ [0-9] +" plus I also have "com.google.android.gms.flp.EXPIRATION_ALARM_ [0-9] + "someone who has a solution for regex? I rebooted and statistics and still does'nt work :/ help me!!!

Enviado desde mi Moto MAXX mediante Tapatalk
[Android General] brutalhead26:
Will this modules conflict with synapse? My battery performance is good but wanting to improve it with this xposed modules. If and only if there will be no problems using it with synapse installed.
[Android General] LiL_Assassin:
Corrupted photo/document/anything causing media server to hang.... transfere everything over and completely wipe your device and start a fresh to see if it goes away
[Android General] donky kong 017:
Thx for your help.

I already tried to delete every possible media file and wiped all possible apps. Did not have the time to do a full wipe of phone. Will do that as my last resort.

Thanks again
[Android General] LiL_Assassin:
Not sure what you have... but have you got samsung default file manager??
[Android General] donky kong 017:
I have it installed by default yes. Used to uninstall it before for debloating, but for some time now i have both amaze file explorer and samsung one installed. But i just use amaze from beginning on. Should I try to uninstall the Samsung one again?
[Android General] LiL_Assassin:
Give it a go... I had nothing but issues with it. It still logged a file that I deleted with my other Explorer and it made it to crazy until I figured it out.. so try to delete it
[Android General] donky kong 017:
Thx. I just did. That was one thing i have not tried in the past. Drain is still on without a reboot. Will reboot to finish the uninstall but that will reset the mediaserver problem.

So I will report back if it comes back in the future or not
[Android General] Portgas D. Ace:
Please ensure that you do not have any space in between the keywords within the regex name. Currently you have two spaces, one before [0-9] and one after it.

Correct: CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]+

Wrong: CONTEXT_MANAGER_ALARM_WAKEUP_ [0-9] +
[Android General] Yaoshi_2000:
SM-T310 Battery Analysis Request

I have a Samsung Galaxy Tab 3 (SM-T310) that ... in my opinion ... has been draining its battery at a high rate. When the attached dump file was saved, the battery was draining at 1.1% per hour. That was after the Tab was charged to 100% and had been idle for 6 hours.

I must add that the battery intermittently drains (e.g., goes from 98% to 95%) when its plugged in and supposedly charging. I've calibrated the battery, but the "draining when plugged in" still recurs sporadically.

So, I question whether or not the battery is still good ... and I wonder if the attached log reveals anything.
[Android General] Portgas D. Ace:
Use Amplify's regex function to limit the CONTEXT_MANAGER_ALARM_WAKEUP.

Use

CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]+ and set it to 9999999
[Android General] max1411:
Omg 1.3 % per hour, probably AOD biggest drainer, i have installed superman rom and superkernel but didnt help: (:(:(
[Android General] Darksite93:
I was wrong to write to the post, I have it as it is without spaces, respecting the "_" between the words and the "+" at the end without spaces. Do not know is owed, but I've never been able to run the regex, the problem is that I have several alarms as well:

com.google.android.gms.flp.EXPIRATION_ALARM_[0-9]+

CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]+

android.net.netmon.lingerExpired_[0-9]+_[0-9]+

I've reset the statistics I uninstalled the application and re-install it. I have reviewed that have good root and clear that it's okay because I have other modules Xposed working well, but do not know why it does not work yet the regex. And yes he blocked one by one again alarms generated further. Any ideas??? [emoji37] [emoji37] [emoji37] [emoji37]

Enviado desde mi Moto MAXX mediante Tapatalk
[Android General] jaibar:
I have been using greenify, amplify, power nap, custom kernels and then some more of these apps such as forcedoze, naptime and whatnot, more or less since the first days those apps were available to purchase at playstore. And of course betterbatterystats to find who is the culprit for wakelocks and battery drain etc.

But still faced lots of 100% usage, no deep sleep, phone getting hot in pocket and whatever I did, after some time the 100% CPU always got back. Sometimes experienced some unexpected FOD (freeze of death) or a random boot.

Then I got tired of it all, did a clean install of rooted stock ROM and xposed. But, for the first time in a long long time, I didn't install the stuff that was always install first thing after flashing a ROM- no greenify, no amplify, no elementalx kernel etc. Just the modules that I can't do without (gravitybox, xprivacy, fsck etc.).

Guess what? Phone sleeps like a baby, only 1-2% drain overnight (heck, I don't remember when was the last time I could actually leave the device without plugging into charger overnight without fearing it'll be drained at least some 10-15%, if not worst), no more wakelocks and battery drain is just as good as ever.

No, I don't get more than 2.5 hours SOT or some fabulous performance magic- but I never did get any more than that anyway, and since I don't play games with the device and consider myself an "average usage" user (some phone calls, texting, some casual browsing, music here and there, posting a little in xda and so on)- the phone does keep enough juice throughout the work day until late night, usually getting to the 15% mark by 22:00-23:00.

Sometimes it's worth a try, just to refreshen things and remember how simple things can be as good as any.

Nexus5 MOB30M, and about a a dozen of xposed modules.
[Android General] intruder16:
That's cause of a fresh install. Check your battery stats after a few days.
[Android General] jaibar:
I have been on this configuration for several weeks without any problems so far. Last update- MOB30M- I dirty flashed on previous month's build a few days ago, so I can't really say that I'm on a clean install anymore, just stock+xposed and some other root apps such as adaway, afwall etc. Oh, and I always used to disable "OK Google", limit Google services, location and all that crap- now I don't touch it and occasionally enjoy using this stuff :)
[Android General] donky kong 017:
Obviously that did not help. I guess there is just one more thing to do. A full wipe. After countless things I tried I think there is nothing to try anymore ?
[Android General] SoulOnFire:
Can someone take a look at my BBS dump. I feel like it is pretty good, but there is still something that is keeping my phone awake while screen off. Any help please.
[Android General] Darksite93:
well ... it's a very good idea ... I do not know why sometimes strangely if I get good performance, but not in others, the battery is properly calibrated and suddenly out of nowhere alarms ... I will take into account the flash of zero but in the meantime ... I do not understand why I do not work the regex when introduced, placed as it is without other spaces with signs as they should be and yet ... not ... keep hoping blocks for someone to give me some other idea, still ... thank you very much[emoji1] [emoji1] [emoji106]

Enviado desde mi Moto MAXX mediante Tapatalk
[Android General] Portgas D. Ace:
Do you have an AMOLED display? Otherwise AOD is pretty useless in my opinion.

Alarms: 746, Intent: com.samsung.android.app.aodservice.ClockTimer.TICK -> again, around one alarm per minute. Either you keep AOD enabled and accept a battery drain of 1.3% per hour or you turn it off and check how battery drain is without AOD enabled.

Beside this, you have several kernel wakelocks. Try another custom kernel, maybe even another custom ROM.

Update BBS to the latest version (v2.2.0.0), available in the BBS thread here on XDA

Screen On (): 6 m 2 s 1.6% -> try to reduce this number to less than a minute when you save the BBS log file

Wifi On (): 6 h 23 m 31 s 100.0%

Wifi Running (): 27 m 19 s 7.1% -> your WiFi has been turned on, but hasn't been connected the whole time. WiFi scanning is known to drain some battery.

Alarms: 7, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_111928 -> use Amplify's regex function for this one. I have posted the exact regex several times, just check the last few pages of this thread.

All other things seem to be okay.

*sync*/media/com.microsoft.skydrive/eM_ADDR (com.microsoft.skydrive.OneDrive): 54 m 54 s Count:5 10.2%

10279 (Wifi) (com.microsoft.skydrive.OneDrive): 334.0 MBytes 99.5% -> OneDrive has been actively syncing stuff, thus draining quite some battery

*sync*/com.google.android.apps.plus.content.EsProvider/com.google/eM_ADDR (com.google.android.apps.plus.Google+): 12 m 32 s Count:7 2.3% -> Google+ sync, you can disable it if you don't really need it

Alarms: 4, Intent: com.google.android.gms.analytics.ANALYTICS_DISPATCH -> limit this one to 9999999

Alarms: 36, Intent: com.facebook.rti.mqtt.e.f.ACTION_INEXACT_ALARM.MqttLite.com.facebook.orca -> FB Messenger being quite active, you can limit it if you don't rely on instant push notifications

Alarms: 19, Intent: dk.tacit.android.foldersync.full/dk.tacit.android.foldersync.lib.receivers.ScheduleAlarmReceiver -> FolderSync checking for new schedule every 30 minutes. If you are okay with it, limit it to 3600 (one hour).

Beside this, you have several location-related alarms, that are in the guide. Limit them and check if you lose any functionality.
[Android General] giusemc:
Is there any backup and restore way for this app rather than manually input single by single ??
[Android General] Portgas D. Ace:
First, don't quote an entire huge post like this. Use

[/ HIDE] tags if you have to or simply quote the member you want to adress by using the "@" sign.

Second, this has been discussed before, but as every setup differs for each user, it is wiser to just limit all things one by one or don't limit some things at all as the user depends on it instead of restoring a backup file. This is just a guide, not an ultimatively wisdom of truth.
[Android General] mayotube:
Found out that limiting "icing" wakelock FCs Google play services and chrome.

I am on i9505 Optimized-CM 13.

Gesendet von meinem GT-I9505 mit Tapatalk
[Android General] DB126:
Yep - exactly mirrors my experience across multiple devices. I do have a few of these tools still installed on a couple devices but use them in very limited ways and only when there is strong, repeatable evidence that an app, service, alarm, wakelock or whatever is disruptive and there is no other way to curb the bad behavior. I then use the tool best suited to handle that particular situation. Been running with the same roms for months only applying security patches as needed. Screen off battery decay and SOT are quite acceptable. My devices are streamlined, reliable and productive. In many cases simple is good.
[Android General] RoyanArt:
Okay, ill try it

What does Icing do exactly? I tried googling it but couldn't figure it out.
[Android General] marbertshere:
Not really sure but I read somewhere it may have something to do with Google's location acquisition framework. Definitely a Google Play Services thing and definitely a pain in the ass.
[Android General] earth08:
Please look into this log
[Android General] hhhfdq:
Can i limit it in amplify
[Android General] Portgas D. Ace:
*sync*/com.google.android.gms.people/com.google/@gmail.com (Google Services): 5 h 18 m 21 s Count:15 92.1%

*sync*/com.google.android.gm.email.provider/com.google.android.gm.legacyimap/@yahoo.com (com.google.android.gm.Gmail): 17 m 19 s Count:9 5.0% -> Gmail related sync, which keeps the device awaken all the time. I don't know why this happens, but you could try to turn off auto-sync for Gmail while you don't use it and use an app like Synker to sync your accounts in a scheduled manner.

Alarms: 76, Intent: com.rim.bbm.ACTION_PLATFORM_WAKEUP_ALARM

Alarms: 22, Intent: com.bbm.BBMService.HealthCheck -> BBM was quite active; if you don't rely on instant push notifications from BBM, you can limit both to 3600

Alarms: 15, Intent: com.boxer.email/.service.AttachmentService$AttachmentWatchdog -> Boxer email was active; same as for BBM: limit it to 3600 if you don't rely on instant push notification

You could limit GCM_RECONNECT, but you will face delayed push notifications if you do so. The rest can't be limit without losing functionality or breaking things.
[Android General] cahyonegoro:
it seem that i can't post reporting log here, why?

and about the reporting log.txt is it always new updated (change) when i turn device on or it's change when i charging and discharged?
[Android General] david_inuk:
Can anybody help me with this please?

Kernel Wakelocks !!! wakeup_sources !!!

================

PowerManagerService.WakeLocks (): 2 h 2 m 45 s Cnt:(c/wc/ec)5/0/0 99.9%

APPS_RIVA_BT_CMD (): 1 h 48 m 50 s Cnt:(c/wc/ec)2586/0/2586 88.5%

Thanks a billion!
[Android General] Portgas D. Ace:
PowerManagerService

APPS_RIVA_BT_CMD seems to be related to Bluetooth connection. Check if you had any Bluetooth connection enabled.
[Android General] david_inuk:
Thanks for this. Google did tell me that it's bluetooth, but it continued even after I turned bluetooth off

Has anybody any thoughts about the first one?

It seems to be linked to *alarms*
[Android General] Portgas D. Ace:
Check your location settings. Open the three-dot menu on top right and check if Bluetooth scanning is enabled.

Did you read the linked article in my previous post? PowerManagerService is a placeholder for all partial wakelocks combined. Could you upload an idle log file according to post #6 so we can have a closer look? With only the spare information you gave us, it is quite difficult to give any comment.
[Android General] david_inuk:
Thanks so much for your response.

I'm on 5.1 so don't have bluetooth scanning.

wiping the cache seems to have gotten rid of the powermanager issue, but the Bluetooth still keeps the phone awake if it is enabled. If however I disable bluetooth, the phone sleeps nicely! How can i work out whats keeping the bluetooth awake. I've removed all linked devices, but it made no difference.

I did and yes i know it's a placeholder! I'll post a new log file later which may help somebody work out why my bluetooth is going nuts.
[Android General] NotesOfReality:
Excuse me guys,am I the only one having problem with Amplify on a CM13/MM rom since the Amplify 3.3.7 Target SDK is 21 and the one for MM is 23?
[Android General] Darksite93:
Well... I'm using amplify 3.3.7 on resurrection remix "based on cm13" and very functional... Only don't work (in my case) is the regex :/ y don't know why :/ my SDK is 23 on MM

Enviado desde mi Moto MAXX mediante Tapatalk
[Android General] NotesOfReality:
Can you please tell me whether you are using SuperSU or not? Where is your busybox installed?
[Android General] Darksite93:
well ... SuperSU comes by default already in the rom, what I did was upgrade to the latest version of SuperSU (in xda is the zip) and busybox i use for titaniumbackup. And busybox installed on sbin [emoji102]

Enviado desde mi Moto MAXX mediante Tapatalk
[Android General] Yaoshi_2000:
I implemented the setting above, however there has been no improvement. The most recent log is attached.

What do you think?
[Android General] Portgas D. Ace:
Wifi On (): 17 s 0.1%

Wifi Running (): 8 h 37 m 15 s 100.0% -> that's strange, the WiFi On time should be greater than or equal to the WiFi Running time. Maybe ask for help in the BBS thread.

Alarms: 45, Intent: com.google.android.location.ALARM_WAKEUP_ACTIVITY_DETECTION -> limit this one according to post #6

Alarms: 13, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_103371 -> ensure that the regex function is set up correctly, maybe use CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,} to solve this

Alarms: 8, Intent: com.google.android.location.reporting.ACTION_UPDATE_WORLD -> you can limit this one to 7200 and check if you encounter any issue during daily usage
[Android General] NotesOfReality:
Which rom are you using?
[Android General] Sjain11:
Do I need to UNOPTIMIZE Greenify, Amplify, PowerNap FROM DOZE [ MARSHMALLOW]?

Somebody please tell
[Android General] rolarocka:
What's the best method to disable completely doze? Is it possible? With greenify i don't really need doze at all... Doze keeps delaying my messages... Thanks

Oneplus One
[Android General] Darksite93:
I use resurrection remix based on Cm13 on Moto Droid turbo (MotoMaxx) Why??

Enviado desde mi Moto MAXX mediante Tapatalk
[Android General] Portgas D. Ace:
For proper functionality, yes.

You can try Naptime to tweak Doze to your needs. You could also whitelist the appropriate apps within Android's battery settings so that they don't get dozed at all.
[Android General] stazz83:
Hi guys! I've implemented the settings from the opening post and have created an overnight log using the BBS v2.2.0.0B6. Could someone please take a look?

I have a Moto X Play 2015 and am on an unofficial CM 13 (v9.7) by Temasek with Optimus kernel r11.

Thanks!http://cloud.tapatalk.com/s/57638c0b6e991/BetterBatteryStats-2016-06-17_073039266.txt
[Android General] Portgas D. Ace:
I answered your question here.
[Android General] mele80:
3% is quite great, but if you want to reduce You can disable skype , i dont think theres nothing else.