yashsingh1/xdaforums huggingface dataset:
[Android General] Celestial Fury:
Attach a BBS text dumpfile not BBS screenshots. Read Post #3.

All those limited location alarms and wakelocks belong to Google. Other apps don't use them. Google Maps and other Google apps use network location for a quick rough fix but certainly not for navigation as it's not accurate enough. Only GPS is.
[Android General] mt12345:
NO disabling 3G(4G)?

Any difference between 2G/3G (in areas where 3G is much weaker than 2G)

---------- Post added at 02:15 PM ---------- Previous post was at 01:44 PM ----------

other apps dont use google wakelocks but they use network location?
[Android General] f0xy:
Under alarms to block for 43200, you have one for Facebook exactly like this one, but this has added rti in. Is it the same and Facebook have updated it
[Android General] Anok38:
@ Celestial Fury Okay i'll post that tomorrow after the night =)

EDIT : i've attached the dumpfile thanks !
[Android General] ViperX85:
How to block alarms and wakelocks for Google Now/google App?
[Android General] mt12345:
(I dont limit anything).

after 16h I got:

ALARM_WAKEUP_LOCATOR - 6 aquired

NlpWakelock - 101 aquired

NlpCollectorWakelock - 3 aquired

So the 100+ wakelocks are trigered by 6 alarms only or some other alarms triggered it (how to check?) ?

I dont see ALARM_WAKE_ACTIVITY_DETECTION
[Android General] Celestial Fury:
Guide is based on wifi + 2G mostly. 3G uses more power even in idle so not likely to achieve the guide's target. Areas with low signal will cause more drain.

The answer is six (6) posts before yours.

Custom ROM? Drain caused by active android system processes in idle.

Amplify will show what app the wakelock / alarm belongs too. Then limit it.

Wakelocks will normally be trigered by the alarms of the same name. Usually only need to limit alarms and the wakelocks will settle down. If it's a different name then you'll probably have to use a logcat to trace what triggered what - this is not really needed. Different phones, different things seen.
[Android General] mt12345:
I want to limit the alarms not the wakelocks but I don't know what triggers what because the names don't match. I guess I need to use logcat.

Can one wakelock be triggered by many different alarms?
[Android General] Anok38:
Thanks for the answer man!

Nope I'm using the stock ROM of the LG G4 with Android marshmallow :/

Envoyé de mon LG-H815 en utilisant Tapatalk
[Android General] pikachukaki:
[MENTION=5401012]Celestial Fury[/MENTION]

I have alarms ending in 1,2,3 can i stop them too or only the ones ending in 4,5,6,7,8??
[Android General] Portgas D. Ace:
You can also stop them by using

ALARM_WAKEUP[0-9]{3,}

ALARM_WAKEUP[0-9]{2,}

ALARM_WAKEUP[0-9]{1,}

EDIT: [MENTION=4462941]pikachukaki[/MENTION]: I read your question again and you seem to have misunderstood something:

The number in the {} brackets does not indicate the last number of the wakelock, but the number of digits after ALARM_WAKEUP.

So for example, the regex ALARM_WAKEUP[0-9]{6,} will restrict all ALARM_WAKEUP with six digits, for example ALARM_WAKEUP123456 or ALARM_WAKEUP654321, not only ALARM_WAKEUP's that end on the number 6.
[Android General] azeem40:
Gonna post a BBS after doing what is said in the OP. Should be interesting to see what happens. XD
[Android General] LucentBirch:
Are there any orca (fb messenger) services that are safe to limit?
[Android General] Maave:
Excellent guide. Thanks for describing what the services and alarms do, which ones affect push notification. All the other guides just have a huge list of things to disable with no explanation.

Would bump charging affect the battery stats? If so maybe link it in the testing section.
[Android General] Celestial Fury:
Those were the days of testing. The number of seconds for limiting aren't some magical numbers either. This guide recommends just a simple and easy to remember 2H, 12H and 24H. If someone gives you some other number, it's just arbitrary and not a magical number but it's fun to see people going gaga like they've been given a winning lottery number.

I'm not a fan of micro managing and bump-charging is just that. It also says it isn't necessary and to just use your phone or you'll wear out your battery faster. As to whether it works, the last time I read that thread the CurrentWidget either wasn't available or didn't work. These days, if I have time I just slow charge the phone from the laptop and the battery seems to keep the charge longer that way.
[Android General] Maave:
I don't mean recommending bump charging, I was just wondering if it had an effect on monitoring the battery usage since the phone can "jump" battery percentage once it's unplugged.
[Android General] Oso Polar:
Hi!

Not exactly: this regex will restrict all ALARM_WAKEUP with six digits or more.

This is the behavior:

{count}

matches exactly count occurrences of the preceding regular expression;

{min,}

matches min or more occurrences of the preceding regular expression;

{min, max}

matches at least min but no more than max occurrences of the preceding regular expression.

So, this guide can be simplified a bit: if you have ALARM_WAKEUP[0-9]{4,} then you don't really need other regexps with higher number.
[Android General] Asiier:
Hi guys, this are my result of 6.30h of standby

There are also 2 Alarms which are not shown but I usually get:

"com.android.server.notification" I have got up to 20 wakeups or more of this alarm in a normal day

"aio.Spotify" of this one I can get in a normal day arround 5~10 wakeups
[Android General] junioramboy:
Hi [MENTION=5401012]Celestial Fury[/MENTION], here's my log. Wakelocks are fine but I'm getting a lot of alarms from Android. Could you please check.
[Android General] carlitobahsoun:
hi

can u plz take a look here ..thanks in advance
[Android General] BatDroid:
Most of the phones with spreadtrum processors comes with a deep sleep feature.

So,what u need to do is just install greenify.

But for others :-O
[Android General] Celestial Fury:
com.android.server.notification

com.spotify.music

Does it happen in idle? Otherwise it should be normal.

Screen On (): 1 m 22 s

No Data Connection (): 1 m 8 s

Alarms: 1, Intent: com.android.internal.telephony.data-reconnect.default

Alarms: 0, Intent: com.android.internal.telephony.dataconnection.DataConnection.DC-1.action_retry

Alarms: 1, Intent: com.android.internal.telephony.data-restart-trysetup.default

Alarms: 2, Intent: com.android.internal.telephony.dataconnection.DataConnection.DC-2.action_retry

Due to the similar times, did your phone try to turn on data when you turned on your screen? Maybe an MMS that needed to be downloaded?

system (Flyme system service) Uid: 1000 Sys: 57 s

rmnet0 (): 1 m 34 s

Awake (Screen Off) (): 36 m 10 s

Kernel wakelocks (wifi issues and I've forgotten what event0 issues are but I've mentioned them before in this thread)

wlan_rx_wake (): 9 m 13 s Cnt:(c/wc/ec)3582/155/3582 1.9%

event0 (): 4 m 56 s Cnt:(c/wc/ec)8650/132/0 1.0%

event2 (): 4 m 46 s Cnt:(c/wc/ec)8174/132/0 1.0%

event3 (): 4 m 41 s Cnt:(c/wc/ec)8186/132/0 1.0%

wlan_ctrl_wake (): 3 m 10 s Cnt:(c/wc/ec)1139/170/1138 0.6%

system (Android System): Uid: 1000 Sys: 1 h 53 m 58 s

kworker/u8:4 (0): Uid: 0 Sys: 4 m 37 s Us: Starts: 0

kworker/u8:8 (0): Uid: 0 Sys: 4 m 30 s Us: Starts: 0

kworker/u8:6 (0): Uid: 0 Sys: 4 m 5 s Us: Starts: 0

kworker/u8:2 (0): Uid: 0 Sys: 3 m 59 s Us: Starts: 0 etc.

Android system processes running wild. If it's stock then I'd say that MM isn't stable for battery drain.
[Android General] junioramboy:
Strange thing is, android processes run wild only happens when I'm connected to home WiFi. I'm on custom ROM, and the only solution I haven't tried is going completely stock.
[Android General] Asiier:
Thanks for the reply,

Actually when I did this test I left my phone where the WiFi connection is not really strong therefore half or more or the time my phone was using data connection, so I guess that I have left it near my router would have got better results.

I'm going to try to do a full day battery drain and see how it goes.

I'm not sure If I get those alarms in idle
[Android General] nametab:
Could anyone tell me what *alarm* is on amplify under wake locks log? 841 wake locks acquired.
[Android General] Oneplus#:
hi can i ask a question if i not found an alarm i can skip this or i must to add it manually?
[Android General] welder73:
Skip it and check alarms and wakelocks after a day or two,they don't show up all at once.
[Android General] Ph0z3:
Hey [MENTION=5401012]Celestial Fury[/MENTION]

If you don't already have them.... here are some I have added in another thread.

Feel free to add these to your OP.

ALARM

- com.google.android.gms/.lockbox.LockBoxReceiver @ 7200

- com.google.android.gms.common.receiver.LOG_CORE_ANALYTICS @ 9999999

- com.android.providers.calendar.intent.CalendarProvider2 @ 43200

- com.google.android.gms.icing.proxy.action.SMS_CHAN GED @ 1200

- com.pushbullet.android/.gcm.GcmFixReceiver = 7200

- com.android.server.action.NETWORK_STATS_POLL = 7200

- com.android.internal.telephony.data-stall = 86000

- android.content.syncmanager.SYNC_ALARM = 43200

- com.google.android.intent.action.SEND_IDLE = 43200

- com.google.android.location.reporting.ACTION_UPDATE_WORLD = 86400

WAKELOCK

- wake:com.pushbullet.android/.gcm.GcmService = 7200

- WeatherUpdateService = 7200 (2 hour interval)

- RILJ = 900

- NetworkStats = 900

- WeatherUpdateService = 7200

- NfcService:mRoutingWakeLock = 84000 (i do not use NFC or Bluetooth)

- AsyncService = 14400 (i prefer to refresh/sync G+ on my own)

- Checkin Handoff @ 900

- Checkin Service @ 900)

- WeatherUpdateService @ 7200 (cLock)

- com.google.android.gms/.ads.jams.NegotiationService

- WakefulIntentService @ 900

- wake:com.google.android.apps.plus/.service.PhotosAppTransitionService @ 7200

- fingerprint_scanner_local @ 41400

- dashclock_DashClockSer @ 900 (Dashclock Widget)

---------------------------------------------------------------------------------------

Here are a few more, if applicable...

Package Name: Push Bullet

Full Name: BaseIntentService

Allow every 7200 seconds (every 2 hours) [can safely go to 9600, but can cause sync issues]

Package Name = SlideIt Keyboard

Full Name = ServiceUpdate

Allow every 9600 seconds

Package Name = PushBullet

Full Name = GcmService

Allow every 9600 seconds

"Piktures" gallery app (if you have it)

com.diune.pictures.intent.action.MEDIA_CHECK

9600
[Android General] Asiier:
I guess this is as good as it can gets

Another thing is that I get the "android.com.server.notification" alarm also when the phone is in standby but only when I get notifications
[Android General] NickosD:
Any info on that?

Sent from my bacon!!!!!
[Android General] aryayush:
Thank you so much for this thread, [MENTION=5401012]Celestial Fury[/MENTION]. I have been immensely frustrated with my Nexus 5X's battery life and rooted it yesterday in a desperate attempt to find a way to reduce its background awake times without compromising on the functionality I rely on. I've just made most of the changes you've suggested at the beginning of the thread and hope to see positive results tomorrow morning. I reduced the location background location alarms to two hours instead of your suggested 24 and, depending on how well it works out, may have to reduce them further still. I rely on Google Now's location based background features and cannot have them stop functioning properly. Thanks for all your help.
[Android General] gilliantpham:
Dear [MENTION=5401012]Celestial Fury[/MENTION], here is my battery dump file, please kindly check it. Thank you.
[Android General] Celestial Fury:
Post #3 Last Line.

AND EVEN

XDA RULES 5. Create a thread or

post a message only once

.

Looking at your items, I doubt all of them drain during idle, some seem important, and some are already in the guide (some with warnings too) meaning you didn't look at Post #2, and the rest are mostly 3rd party apps.
[Android General] Celestial Fury:
Click on it in Amplify and see what app is shown as using it or use BBS to tell. IIRC, it's a generic placeholder name for certain alarms/wakelocks.

Textdumpfile doesn't show much so see Post #3 "IF Alarms & Wakelocks are already low..." and attach what's needed along with the corresponding text dumpfile.

GCM + SMS = SMS through data (MMS?). Don't mess with 'phone services' unless you have a specific reason to.

NfcService:mRoutingWakeLock (com.android.nfc.Nfc Service): 2 m 15 s

Were you using NFC just before letting your phone go idle? Best to clear recent apps before letting phone go idle.

Alarms: 27, Intent: com.facebook.rti.mqtt.e.g.ACTION_INEXACT_ALARM.MqttLite.com.facebook.orca

Alarms: 26, Intent: com.facebook.rti.mqtt.keepalive.KeepaliveManager.ACTION_INEXACT_ALARM.MqttLite.com.facebook.katana

Test the proper functioning of the app.

Alarms: 7, Intent: com.facebook.analytics.service.a.ACTION_ALARM

Limit anything analytic to the max if it drains or even if it doesn't.

Alarms: 19, Intent: com.google.android.intent.action.GCM_RECONNECT

Note that this affects push notifications.

Alarms: 11, Intent: com.microsoft.skydrive/.streamcache.AlarmReceiverForUpdateSyncRootService

Test limiting this yourself.
[Android General] smashedup:
Okay guys, something strange is going on here...

I did more or less everything the opening post suggested.

First night I had a drain of 1% in 8 hours. I don't know how convincing that is...

Anyway: Last night I lost 1,6% per hour and the device was in Airplane mode / Sync off / NFC off / BT off / GPS off...

In BBS I can't see what caused that massive drain... just a hand full of wakelocks / alarms, device was in deep sleep 99,7% of the time.

Any ideas?

Thanks in advance for your help!
[Android General] Portgas D. Ace:
According to your stats, AquaMail tried to sync (it's corresponding alarm has a count of 17). I guess it is a bad coding that creates a syncing loop even within airplane mode.
[Android General] QuantumFluxx:
Thanks!

3 hours> SoT+3G+WiFi after 14 hours> of 2G cell standby with data/WiFi switched off and battery saver active. 5% remaining at the end... Running the stock ROM on my G4, but it's been heavily modified -- more than 74 system APKs deleted and Google Play Services gutted. Google Now is still serving updates, everything seems completely stable. SMS, phone, and Google Cloud Messaging all unaffected. Very impressive...
[Android General] aryayush:
I'm getting tremendous battery life out of my phone after making most of the changes you suggested in the first post, and uninstalling Facebook altogether. I have run into one problem, however: I'm not getting any notifications from Google Inbox and it isn't syncing in the background either. None of the alarms, services and wakelocks we messed with throw up any hints either. Can you please help me locate the source of the problem?

While we're on the subject, Google Play Services crashed on my Nexus 5X a few times yesterday and hasn't done it since. I didn't limit the alarm on the first post the mentioned that it might hamper Google Play Services. I'm not too worried about this but if there's anything obvious that I'm missing, please let me know. Thanks.
[Android General] Portgas D. Ace:
Did you limit anything with a red cloud symbol? Limiting those alarms/wakelocks will result in delayed sync/notifications from their corresponding apps.
[Android General] mrrocketdog:
[MENTION=5901790]orville87[/MENTION] , is there anywhere on xda that you dont post/subscribe/help ?

thanks for sharing your knowledge & time.

"err on the side of kindness"
[Android General] aryayush:
Thank you for pointing that out, but as I said, Inbox refuses to throw up notifications even after I’ve turned on the screen. I’ve checked within settings and Inbox sync is enabled and shows up as having been performed less than a minute ago. I also checked within the app’s own settings and notifications are enabled there as well. I’ve disabled and reenabled them now, just to be sure.

Any other ideas? Should I try restoring to defaults in Amplify all the alarms I’ve limited that have the red cloud icon?
[Android General] Portgas D. Ace:
If you limit those alarms/wakelocks with Amplify, it doesn't matter if you turn on your screen. They will only run once during the pre-defined time period. Try to unlimit all wakelocks/alarms from the OP with a red cloud symbol and reboot afterwards. Then check whether you are able to receive Inbox notifications in time.

Most likely this issue arises because you have limited

android.content.syncmanager.SYNC_ALARM
[Android General] aryayush:
OK, let me give it a shot. Thanks.
[Android General] aryayush:
I've isolated the alarm. It's "com.google.android.intent.action.GCM_RECONNECT". Removing its limitations restored Google Inbox's notifications right quick. [MENTION=5401012]Celestial Fury[/MENTION] may want to add a note about this in the first post. I'm running the stock ROM. Thanks for all your help.
[Android General] Celestial Fury:
They're all in Post #2. Not #1. It's also there. In RED. With a cloud icon. Ctrl-F is your friend.
[Android General] aryayush:
Well, quite a few of the alarms there are marked with that icon but most others don't seem to make much of a difference to the push notifications for built-in apps, at least on my phone. I just figured that if it were mentioned next to this particular alarm that it disables Inbox notifications, that might save time for future users of the guide.

Just my opinion, of course. Feel free to do as you wish. Fantastic job with the guide!
[Android General] bimmermad:
Can someone please advise which alarms I should block.

Phronesis V6
[Android General] smashedup:
Thanks for your reply.

Last night I turned off IMAP sync in Aqua mail an the battery drain dropped from 1.6 to 0.2%/h. So it looks like you were right. I'm gonna do some more testing, also freezing Aqua mail to see if it get's even better. Aqua mail still has two wakelocks per hour, even with disabled IMAP.
[Android General] supermedo:
Can someone look at my dump please? I followed the instructions and had managed to get around 0.2%/h before, but now it got up to 0.8%/h and I can't find the reason. Thank you very much.
[Android General] Asiier:
Hey [MENTION=5401012]Celestial Fury[/MENTION],

What are your thoughts about the wakelocks, alarms and services that this guiderecommends you to block?

I don't know If you have already talked about it, is just because it tells you to block some wakelocks under the "Not Safe to Limit" in Amplify
[Android General] aidy.lucas:
Think you'll find he took his idea for his thread originally from this one and adapted it to suit check the date of the first posts.
[Android General] yoskor:
Be advice that limit com.whatsapp.alarm.AVAILABLE_TIMEOUT causes you to appear online when you're not even using the phone. My girl freaked out bc she thought I was ignoring her messages lol
[Android General] barbocorp:
My Idle Dump

Hello, can you [MENTION=5401012]Celestial Fury[/MENTION] look at my Idle dump please? I followed the instructions, I've left my phone Idle for about 8 hours and the battery lost 6%.

I'm using:

- Location services

- Google Now

How can I improve my battery life? Thanks!! :)
[Android General] Celestial Fury:
The ones that the guide advises you to - based on actual drain.

Why not Amplify it? That's the purpose of the app.

Alarms: 23, Intent: org.kman.AquaMail.ACTION_START_SYNC

Alarms: 8, Intent: android.appwidget.action.APPWIDGET_UPDATE

Compare the first 3 alarms recommended to be limited there with this guide and decide for yourself.

Does this still drain in idle? Might have some unique use cases for this (being seen online when you're not) though I can't think of any. What about com.whatsapp.messaging.MessageService.LOGOUT.ACTION? Seems like a similar function.

Sensors (): 31 m 24 s What app is using the sensors?

system (Sistema Android): Uid: 1000 Sys: 2 m 44 s

Alarms: 14, Intent: com.google.android.gms.gcm.HEARTBEAT_ALARM (affects push notifications)

Alarms: 4, Intent: ALARM_WAKEUP57979 (Amplify it with Regex function)
[Android General] mt12345:
(assuming GPS is off)

If I limit NlpWakeLock for 24h then change location and launch Google Maps I will be waiting nearly 24 hours to see my updated location. I can always tap My Location icon in Maps to force update (triggering wakelock). Is that correct?
[Android General] barbocorp:
Sensors (): 31 m 24 s What app is using the sensors?

system (Sistema Android): Uid: 1000 Sys: 2 m 44 s

Alarms: 14, Intent: com.google.android.gms.gcm.HEARTBEAT_ALARM (affects push notifications)

Alarms: 4, Intent: ALARM_WAKEUP57979 (Amplify it with Regex function)[/QUOTE]

[MENTION=5401012]Celestial Fury[/MENTION] thank for your response! :)

I've amplified ALARM_WAKEUPxxxx with custom regex, but how can I find which app is using sensors during idle test? With BBS? Thank you!
[Android General] mtwalther:
Sorry if this is a stupid question but how are you getting details of the wakeups in BBS? I'm only seeing this when I click on my com.Google.Android.gms
[Android General] Blade2014:
Which version of BBS are you using?
[Android General] mtwalther:
2.1.0.0 - both Play edition and have the XDA edition... There may be a newer XDA version though, honestly didn't check...

---------- Post added at 03:35 PM ---------- Previous post was at 03:22 PM ----------

Never mind... I installed 2.2 from the forum. Showing up now. Thanks.
[Android General] milojoseph:
Can someone help and check for me plz

https://db.tt/zBS4zJwT
[Android General] fragel:
2.2.0 XDA edition and it shows the details.

Edit: sorry, didn't see last line. ;)
[Android General] dyash93:
Using Moto g 2014 xt1068 - Blisspop Rom ..

I followed ur guide.. using amplify , wakelock detector and betterbatterystats.. till nw hve achieved around 1.1% max.... fr me its grt thnks to ur guide..

Wen i disable keep awake feature of Google Play Services Screen gets blacked out in smetym nd nvr turns on... i hve seen ppl dng d same and nt facing any problem..at all
[Android General] Celestial Fury:
You can force a refresh but there are several Google alarms/wakelocks that affect location for Google apps as stated in the guide.

BBS doesn't show detailed sensor use. Check android battery usage to see what apps were active for clues.

Awake (Screen Off) (): 11 m 25 s

Sync (): 2 m 11 s 0.4%

Sensors (): 4 m 21 s

NlpCollectorWakeLock (Google Services): 1 m 5 s

msm_hsic_host (): 4 m 8 s

Alarms: 24, Intent: android.content.syncmanager.SYNC_ALARM

Alarms: 19, Intent: android.appwidget.action.APPWIDGET_UPDATE

Alarms: 8, Intent: android.app.backup.intent.RUN

Alarms: 18, Intent: com.android.providers.calendar.intent.CalendarProvider2

Alarms: 8, Intent: android.intent.action.EVENT_REMINDER

Alarms: 8, Intent: com.android.providers.calendar.SCHEDULE_ALARM

10013 (Wifi) (com.opera.max.global.Opera Max): 1.0 MBytes

1.27 GHz (): 1 m 24 s

Then don't disable keep awake feature of Google Play Services. Different phones, different configurations, different idiosyncrasies.
[Android General] NickosD:
I have 100% usage of sensors at bbs. Battery stats and gsam don't show any app that have high usage. How I can what trigger the sensor on?

I thought it was the original case that wakes up the phone when I open the case, but it isn't.

Its not cerberus app either.

Sent from my bacon!!!!!
[Android General] miko999:
Thanks for the thread, it is great!

I followed all advices, but still have got about 4% drain during night. Could you please check my dump file.

Thanks.
[Android General] mt12345:
OK so I can limit everything (location related) to the max because I can refresh it on demand. Thanks.
[Android General] momomok:
Any recommended values for Location Alarms and Wakelocks?

Can't seem to find that in the guide
[Android General] NickosD:
Any ideas on the ones that says dhcp?
[Android General] cartman_73:
I've the same issue but only on some WiFi connection. I believe it relates to the router/configuration that you have.

Inviato dal mio Find7 utilizzando Tapatalk