yashsingh1/xdaforums huggingface dataset:
[Android General] miltonwkw:
Used to be 0.1%/h throughout the night but it's now draining at 1%. Please help me check what's draining the battery.

TIA :)
[Android General] passport619:
You guys ever just put it in ultra saving mode??
[Android General] Portgas D. Ace:
qpnp_fg_memaccess (): 4 m 2 s Cnt:(c/wc/ec)154/59/0 1.1%

wlan_rx_wake (): 3 m 58 s Cnt:(c/wc/ec)1750/136/1749 1.1%

qpnp_fg_update_temp (): 2 m 53 s Cnt:(c/wc/ec)116/46/0 0.8% -> check this thread for a possible solution

Alarms: 4, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_1746546 -> use Amplify's regex function (use CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,} and limit it to 9999999)

Alarms: 1, Intent: com.garena.gas/com.banalytics.BAReportService -> limit this one to 9999999

Alarms: 20, Intent: ALARM_ACTION(3391) -> related to WeChat. You could try to set up a regex function as there are several of those kind of alarms in your log. Use ALARM_ACTION([0-9]{3,}) , limit it to 7200 and check if you encounter any issue (delayed push notifications, for example).
[Android General] knpk13:
My idle drain is really inconsistent. I have a whole bunch of BBS log files ( from 0.1% per hour to 2% per hour) but I'll just post the latest one. I tried to fix the problem by limiting AudioMix and AudioIn to 999999 and using Poweramp's custom wakelock to play audio while the screen is off. I did that because according to gsam, most idle drain comes from system(adsprpcd) and the included wakelocks are the 2 I just mentioned and limited. Even after that, idle drain fluctuates a lot.

Here is my latest BBS log. I can upload more(the best and worst and longer or shorter time periods, if needed)

BBS and 3C don't report system(adsprpcd) drain like gsam does, so I'm not sure what the problem is.

Can anyone take a look? Having this issue for a long time.

Edit:

Im using a Oneplus2. latest versions of official cm13, Boeffla kernel, systemless root, system xposed, viper4android, amplify, greenify(aggressive doze enabled), and more. Tell me if you need any other details. I have a fair amount of apps and mods.

Also I just discovered something called a regex function in amplify by reading the forums, by I'm not sure how to use it properly. Will read more and try to learn. I haven't tried limiting anything else yet, maybe I'll try limiting GMS as the thread talks about it a lot.
[Android General] Portgas D. Ace:
Your log shows lots of location-related alarms that can be limited according to post #4.

Alarms: 16, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_121278 -> this is a typical example for the utilization of the regex function. A regex function can be added via the alarm section within Amplify. Just click on the rectangular symbol in the action bar and enter CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,}, then limit it to 9999999.

This will block all alarms which name start with CONTEXT_MANAGER_ALARM_WAKEUP_, followed by a sequence of numbers (0-9) with 3 or more digits.

Beside this, you have some kernel wakelocks. Did you tweak Boeffla kernel by yourself or are you using the default values? I am currently also running Boeffla kernel, with Governor set to zzmove and battery extreme yank. No issue so far.
[Android General] knpk13:
Cool, you have an OP2 as well?

Thanks. Understood. Will read up on it. Right now, in Boeffla kernel, everything is default except thermal config which is set to extreme and charge rate is 2000mA. ZRam is disabled. Also I allowed kcal settings overwrite in boeffla and use savoca's colour control app to change the values.

Anything else I can do? Any comments on the system(adsprpcd) thing? I attached a screenshot.

Battery extreme yank is the name of the profile right?
[Android General] Portgas D. Ace:
I have a OnePlus X, Boeffla kernel is also available for this one. I do not tweak kernel beyond the default settings as they are already excellent, so I can't give you any further kernel-tweaking recommendations.

Concerning the adsprpcd issue: check this thread.
[Android General] knpk13:
I see. Yeah I've actually already checked that thread and many other links and tried those solutions. Didn't work. Thanks for your help though. :highfive:

I may have to start again with a clean flash.

About the kernel, I'm not asking for kernel tweaking recommendations, you mentioned I had kernel wakelocks and I'm pretty sure my settings don't touch kernel wakelocks. Can amplify control kernel wakelocks? From what I've read so far, I think the answer is no, but I'm not sure.

[MENTION=5901790]Portgas D. Ace[/MENTION]

Edit: I depend a lot on Google location history. Will limiting any location wakelocks described in post #4 affect the functioning of location history while my phone is idle?
[Android General] Portgas D. Ace:
You are right, Amplify can't control kernel wakelocks. But some of those wakelocks might occur when you tweak your kernel beyond the default things. But most likely those are kernel wakelocks related to connection (Bluetooth, mobile network, WiFi).
[Android General] Ad.Shk2:
Fresh Log here, custom Kernel installed as recommended. Still getting around 1% per hour and lots of wakelocks. Somebody mind taking a look here?

https://drive.google.com/file/d/0B-YehMCBHI-nLXE3eDJlajBiUVE/view?usp=sharing

Also, any solution for Icing yet?
[Android General] Portgas D. Ace:
Screen On (): 3 m 23 s 1.0% -> try to minimize this time, save the log right after you turn on your screen

wake:com.cyanogenmod.eleven/.MusicPlaybackService (com.cyanogenmod.eleven.Music): 44 m 25 s Count:0 12.6% -> did you use Apollo during idle period?

Some kernel wakelocks, please refer to this thread for a possible solution.

Alarms: 9, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_113737 -> use Amplify's regex function (CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,} and limit it to 9999999)

Limiting the "Icing" wakelock has been reported to crash Google Play Services and other Google-related apps on latest Play Service versions, but some users reported that they do not have such kind of issues. Try to limit it - if FC's occur, unlimit it again.
[Android General] MatschBirne:
I have a drain of 1.1% per hour. Could you please take a look at my log?
[Android General] Portgas D. Ace:
Lots of kernel wakelocks, try a different kernel or refer to this thread.

Alarms: 1, Intent: com.google.android.gms.analytics.ANALYTICS_DISPATCH -> limit it to 9999999
[Android General] MatschBirne:
Going to try this out, thanks!
[Android General] Eversmile23:
Some clarifications and suggestion sought.

Hi OP,

[1] I want to understand the difference among (i) CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,} ,

(ii) CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{4,} and (iii) CONTEXT_MANAGER_ALARM_WAKEUP_[0-9] set to '9999999'.

[2] What is 'com.google.android.gms/.lockbox.lockboxService' and 'com.android.cellbroadcastreceiver/.CellBroadcastAlertService' I found in 'Services' section in 'Amplify' . If I disable these 2 services, what are the problems I may face?

[3] I am posting the BBS dump txt file along with some screen shots. Please observe these and provide any suggestion that may further improve my battery(stand by time.)
[Android General] Ad.Shk2:
Never ever used Apollo ...

Ill check that thread out.

Should I place the Regex in the Alarms section of Amplify or the Wakelocks section?

Yeah I know, limiting Icing was giving me issues so had to delimit it. Was hoping that someone may have arrived at a solution for it..

Thanks for the help, Ill get back to you with a new log in a day or 2.
[Android General] Portgas D. Ace:
Since Android Lollipop, the successor of Apollo is named Eleven. Maybe you used this one. If not, try to freeze it or uninstall it, maybe hibernate it with Greenify.

Regex is for blocking alarms.
[Android General] Ad.Shk2:
Never used it either. Wasnt showing up in Apps. So removed it with TiBu. Thanks.
[Android General] Victorman86:
Thanks. I flashed stock kernel. "wlan_rx_wake" wakelock have the same time. But night battery drain is 1-3% instead 9-12% for AndroPlus kernel.

Now I have another trouble. Push notifications from Email app don't work properly. There are no mails when phone sleeping. Sometimes mails come when I unlock device and the screen lights up. Sometimes mails come only when I update manually in the app.

PNF app not help me.

com.sonymobile.email and com.sonymobile.exchange apps added to PowerNap active list.
[Android General] xRoNoKx:
I am facing notification delays and I believe doze is what's causing it. I have uninstalled amplify, greenify and powernap on a clean flash of various roms including stock. The whitelisted apps do not get notifications when my Nexus 6P is dozing. Notifications arrive during the when device wakes up from doze or if I pick it up or turn on the screen. I have noticed this with hangouts, pushbullet, viper and gmail. I have turned off battery optimization for these apps. I have tested with both regular doze and aggressive doze(ForceDoze). I know this isn't strictly battery life related but I am really hoping to get some help. Not reliably receiving notifications is very problematic.
[Android General] Portgas D. Ace:
1 CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,} will limit all alarms of CONTEXT_MANAGER_ALARM_WAKEUP_ with 3 or more digits. So you don't need CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{4,} as this is included in the CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,} regex

2 com.google.android.gms/.lockbox.lockboxService is related to Google Device Manager, you can disable this wakelock by disabling Google Device Manager. com.android.cellbroadcastreceiver/.CellBroadcastAlertService is related to CellBroadcast. You can disable this app with Titanium Backup for example, if you don't rely on it.

3 See below

Level lost [%]: Bat.: -1%(100% to 99%) [0.1%/h] -> already awesome :good:

Alarms: 41, Intent: ccc71.at/.receivers.phone.at_mA_receiver -> related to 3C Toolbox. Any specific reason why you use this app?

Add Google Play Services as well as Android System to Power Nap's whitelist.

Add Google Play Services to Doze's whitelist.
[Android General] doubleho:
the cmasystemupdateservice is killing me....does anyone know how to disable it???

---------- Post added at 06:56 AM ---------- Previous post was at 06:53 AM ----------

hi I hv read through the link but still do not know how to disbale the receiver.....
[Android General] Victorman86:
Google Play Services and Android System are whitelisted in Power Nap.

Where is Doze's whitelist?
[Android General] Portgas D. Ace:
Settings -> Battery -> three-dot-menu on top right -> Battery Optimization

Set it to "don't optimize" for Google Play Services as well as for all apps that should be allowed to deliver push notifications while phone is in Doze mode.

In addition, try to add Google Service Framework to Power Nap's whitelist.
[Android General] xRoNoKx:
Google Play Services is optimized by default on my current ROM. I have added Google Services Framework to whitelist as well. When I enable Powernap I make sure to whitelist Android System too. I have added screenshots from battery opmisation, powernap and amplify. None of the whitelisted apps is greenified. Even if I uninstall greenify, amplify, powernap and disable forcedoze, my notifications are still delayed by doze.
[Android General] tet-bundy:
i use mediaserver killer for adsprcd or whatever. and i do feel like that one impacts battery life. subjective of course!

Gesendet von meinem ONE E1003 mit Tapatalk
[Android General] Portgas D. Ace:
Did you recently switch your ROM and restored apps with Titanium Backup?
[Android General] xRoNoKx:
Whenever I switch ROMs I restore a few apps with TiBu. Call log, text messages, Xposed installer and Xposed modules including Powernap and Amplify, data for - Tasker, Nova Launcher, Adaway, BBS, SwiftKey, UC Browser, Poweramp, Pocketcast, Lux Auto Brightness, My Data Manager, XDA Lab, PerfMon and Viber. All other apps I download from Google backup.
[Android General] Portgas D. Ace:
I just came across some report of a user with exactly the same issue, but with Threema. He restored apps from backup and got delayed notifications or no notifications at all. Here is what he did:

Try to backup the relevant apps with TiBa and uninstall them afterwards, then reboot your device and re-install those apps from Play Store. Restore your data with TiBa and check if this solved the issue.
[Android General] xRoNoKx:
Viber, Amplify and Powernap and Xposed Installer are the only relevant apps I can think of. I never restore Hangouts, Pushbullet and Gmail from Titanium Backup. I will uninstall relevant apps and report back. Thank you!
[Android General] Portgas D. Ace:
Relevant apps = those with currently delayed push notifications.
[Android General] xRoNoKx:
In that case it would be Hangouts, Viber, Pushbullet and Gmail; although Viber is the only app I restore from TiBu. I mentioned Xposed modules since I use them to limit wakelocks from non-whitelisted apps.
[Android General] Portgas D. Ace:
You restored Hangouts, Gmail and Pushbullet from Google Backup, right? This might also cause some issues. A clean installation from Play Store in combination with restoring the app data from TiBa is always a good start.
[Android General] xRoNoKx:
Uninstalled Viber, Pushbullet, Gmail and other Xposed related apps. Rebooted, reinstalled and restored TiBu. Can't uninstall Hangouts as it's a system app( I'm on Pure Nexus 6P with Pure Nexus Gapps). I will test if it worked and let you know. I am very grateful for your help. Thank you!
[Android General] Portgas D. Ace:
You can uninstall Hangouts: use Titanium Backup, it can uninstall system apps.
[Android General] magarto:
Turned off BT but still close to 50% of battery lost tonight

http://cloud.tapatalk.com/s/57762fb158f1a/BetterBatteryStats-2016-07-01_083147559.txt
[Android General] Portgas D. Ace:
Several kernel wakelock, refer to this thread for a possible solution.

Alarms: 6, Intent: CONTEXT_MANAGER_ALARM_WAKEUP_171011 -> use Amplify's regex function to limit those (CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,} and limit it to 9999999)

You might also be affected by the MobileRadioActive bug, see this for a possible solution.
[Android General] magarto:
I added CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,} before, don't know why it is showed again.

Thanks for the fix, will try it.
[Android General] Portgas D. Ace:
Check your regex again, maybe a typo like WAKEUPS instead of WAKEUP.
[Android General] pvnsai73:
Do u have any idea about this context manager alarm wakeups I already had some settings in regex
[Android General] Portgas D. Ace:
CONTEXT_MANAGER_ALARM_WAKEUP_ is the successor of the infamous ALARM_WAKEUP. Read a few posts back for the new regex function.
[Android General] xRoNoKx:
I did that too. And have tested for last couple of hours with ForceDoze and regular doze. Notifications still will only arrive during maintenance window.
[Android General] pvnsai73:
U mean like this?
[Android General] Portgas D. Ace:
Yes. But you can delete all of those, use CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]+ instead. It's more or less a universal regex for all of those CONTEXT_MANAGER_ALARM_WAKEUP's.
[Android General] Adevem:
chanced upon this thread and am exploring the xposed modules.

so can I generally follow the OP's details or is there a more updated guide?

thanks!
[Android General] Portgas D. Ace:
It's for national broadcasts in case of emergencies.

The OP is not 100% up to date, I would recommend to read through the last twenty pages, as there are recent things that have changed and discussed. The OP is currently still busy with studies and will hopefully return in the near future, so some things from the OP are outdated. But overall, this is still a good guide.
[Android General] lepa71:
Can somebody look at mine? This is drain in airplane mode. I have 7000 zerolemon battery in my S3 i535 running TW 4.3 and it could be that the battery is just getting old.

https://drive.google.com/open?id=0Bw...VdxcnNxbGp3SEk

Thanks
[Android General] Victorman86:
Google Play Services is in Doze's whitelist. Google Service Framework is in Power Nap's whitelist already.

Email notifications are still delayed .
[Android General] jinderation:
i have LG G4 most of the commands in amplify i checked i didnt have why ? these below i dont have on 5.11 lollipop jan2016 updated,

com.android.internal.telephony.data-stall

com.oasisfeng.greenify.CLEAN_NOW

android.net.ConnectivityService.action.PKT_CNT_SAM PLE_INTERVAL_ELAPSED

com.google.android.apps.hangouts.CLEANUP_DB

com.pushbullet.android/.gcm.GcmFixReceiver

com.diune.pictures.intent.action.MEDIA_CHECK

LocationManagerService

ALARM_WAKEUP_LOCATOR(com.google.android.gms.nlp.AL ARM_WAKEUP_LOCATOR)

ALARM_WAKEUP_CACHE_UPDATER

ALARM_WAKEUP_BURST_COLLECTOR(com.google.android.gm s.nlp.ALARM_WAKEUP_BURST_COLLECTOR)

com.google.android.gms.location.fused.GPS_ALARM_BA LANCED_ACCURACY

ALARM_WAKEUP_ACTIVE_COLLECTOR

ALARM_WAKEUP_PASSIVE_COLLECTOR

ALARM_WAKEUP_BURST_COLLECTION_TRIGGER

LARM_WAKEUP_ACTIVITY_DETECTION

com.google.android.location.reporting.ACTION_UPDAT E_WORLD

wake:com.pushbullet.android/.gcm.GcmService

SyncService(Package: Push Bullet)

ai(Package: Push Bullet)

ae(Package: Push Bullet)

AsyncService

JobSchedulerHack-com.facebook.analytics2.logger.LollipopUploadServi ce

UploadServiceLogic-com.facebook.analytics2.logger.LollipopUploadServi ce

*job*/com.facebook.orca/com.facebook.bugreporter.scheduler.LollipopService (com.facebook.orca.Messenger)

com.google.android.gms.analytics.AnalyticsService

com.google.android.gms/com.google.android.location.internal.GoogleLocatio nManagerService(Location Service)

com.android.gms.Feedback.FeedbackService(Breaks Play Games)

com.android.gms.ads.AdRequestBrokerService

com.google.android.gms/com.google.android.location.network.NetworkLocatio nService(Location Service)

com.google.android.location.geofencer.service.Geof encerProviderService(GPS Service)

com.google.android.gms/com.google.android.location.copresence.service.Pro ximitySettingInjectorService

com.facebook.orca/com.facebook.analytics.service.AnalyticsService
[Android General] Bei60:
What are these wakelocks?

com.facebook.katana/com.facebook.conditionalworker.ConditionalWorkerService

com.facebook.orca/com.facebook.mqttlite.MqttService

com.musixmatch.android.lyrify/com.musixmatch.android.services.ScrobblerService

com.facebook.katana/com.facebook.browser.lite.BrowserLiteIntentService

com.google.android.keep/.microapp.WearableDataChangedService

Thanks
[Android General] donky kong 017:
Hi,

That's my idle dump from bbs.

Can someone have a look please?

Thx

Cheers

http://cloud.tapatalk.com/s/5777651e7a462/BetterBatteryStats-2016-07-02_084731658.txt
[Android General] Tuxedo75:
Sorry but why have to whitelist googleplayservices In PowerNap?

Inviato dal mio D6603 utilizzando Tapatalk
[Android General] ichigo696:
Because if you don't, apps can't receive GCM notifications.

e.g. you won't receive whatsapp notifications during stand-by
[Android General] Jojobojo100:
Any idea how to improve? ☺
[Android General] Tuxedo75:
Mmm....

I whitelisted WhatsApp so napped playservices that was my primary drain problem...

Inviato dal mio D6603 utilizzando Tapatalk
[Android General] ichigo696:
It shouldn't work, why don't you exactly follow the steps in this guide and then report a BBS idle log?

It's more easy to help that way.
[Android General] eqxteh:
Hello,

When i look at application permission tab location request of maps google play services and android system keeps running everytime.

I guess these apps didnt behave like this before and it eats battery more.

When i look at Amplify Context Manager Wakelock wakes up device 2500 times.

Gps is closed and google location history is closed. In Google settings all of the location things is disable including google history.

I mega wiped and flashed completely stock and same, installed cyanogenmod without gapps same.

How can i get rid of this problem any ideas ?

Thanks in advance.
[Android General] TS50:
oneplus 2 cyanogenmod

heres my log for oneplus 2 with cyanogenmod, i have noticed idle battery drain is terrible with cyanogenmod, was around 2% per hour, since implementing the steps in the guide it's closer to 1% per hour but it still seems like too much.

any help much appreciated.

https://drive.google.com/open?id=0Byh09lEpUwCyQ01vQ1Znb3U5bkU
[Android General] pvnsai73:
Ok all are fine but still lost 8% anyidea how to improve the idle drain attaching bbs log
[Android General] mele80:
✭[GUIDE][07-02-2016]Extreme Battery Life Thread(Greenify+Amplify+Power Nap)✭

Anyone else experiencing problems with mobile data? Im using setting as in OP and apps using data sometimes doesnt work until i switch data off/on. Only one that seems to be working always is tuga browser. All other just complains that no data or internet available.

Is this related to amplify at all?
[Android General] MostaphaHida:
http://cloud.tapatalk.com/s/577a9c54d8e41/BetterBatteryStats-2016-07-04_192442376.txt

Can someone have a look on my log.Thanks in advance
[Android General] doubleho:
hi does anyone else have the cmasystemupdateservice wakelock?been looking for a fix for a month ,tried to disbale and ebalve systemupdateservice but that doesn't always work

I m using nexis6 5.1
[Android General] haiderrkhalid:
Hey guys I'm fairly new to the world of infinite possibilities with amplify, and I was wondering if any of you could help me out

Are there any wakelocks in this screenshot that can be limited safely? (I do use GPS for navigation from time to time, and I've read that limiting icing causes problems with Google play services? Is there any way around that?)

Also, I tried finding what *launch* and ContextManagerWakelock did, but I wasn't able to find a definitive answer.

Any ideas?

Running Resurrection Remix 5.7.0 on my Galaxy S5
[Android General] iubjaved:
Hi,

Download "BetterBatteryStats" , charge your phone to 100 percent, unplug it and leave it like that for 6 hours or so then take a battery stats dump, or check which wakelock is draining battery. There are wakelocks that doesnt affect battery that much even you see it on top.

If you take a dumb and put here, then others might be able to help you.

Also if you think you are getting less SoT than expected, then you can follow the OP, it will help you improve your battery life. Its all explained there. Give it a good read.

GL
[Android General] v7:
Update the BBS app to 2.2.0b6 and get me another dump. Don't forget to turn on wifi :)

___

v7

XDA Assist
[Android General] v7:
Get me a dump :)

___

v7

XDA Assist
[Android General] v7:
Hey folks,

I've been through some tough time in my life!I had some financial issues and sold my OnePlus2 :( And had no Internet at home.Now it's somewhat settled and I bought the OnePlus3.I'll be active from today and will be updating the thread in 2-3 days :)

My sincere thanks to everyone who helped out when I was away.Special thanks my bud [MENTION=7526205]Portgas D.Ace[/MENTION]!Thanks a lot champ :)

Let's continue squeezing more juice ;)

___

v7

XDA Assist
[Android General] krazy23:
Okay, thanks man I'll do it tonight :highfive: (still 11am gmt+8 haha)
[Android General] pvnsai73:
Bro v7 plz have a look at my log
[Android General] v7:
Looks fine.How old is the cell?

___

v7

XDA Assist
[Android General] TS50:
Hey V7,

Here is my log for oneplus 2 running cyanogenmod, since implementing the steps in the guide standby battery life has improved dramatically.

If you can see anymore room for improvement it would be much appreciated.

https://drive.google.com/file/d/0Byh09lEpUwCyQ01vQ1Znb3U5bkU/view
[Android General] v7:
Read FAQ in post #6 and get me a dump :)

__

v7

XDA Assist
[Android General] max1411:
Hey guys can u take a look, many thanks
[Android General] pvnsai73:
Exactly 2years....bought on 2014 june
[Android General] Annunneo:
Is anyone using the new alpha version?
[Android General] v7:
Do you have an sd card inserted?

mmc0_detect wakelock is held when the OS constantly searches for the sd card.Try reinserting the card and get me another dump

___

v7

XDA Assist
[Android General] v7:
0.8%/hr drain on a 2 year old cell is not bad.There's nothing to tweak :)

__

v7

XDA Assist
[Android General] max1411:
Yeah i have it, will reinsert it and do the test this evening again. Many thanks