yashsingh1/xdaforums huggingface dataset:
[Android General] joriq:
TY! :) As I previously said, everuthing is OK while bluetooth is off. But I need my phone synced and I need my Moto 360 connected.

Also, I am not a lone case, people are experiencing similar ~5000 alarms per day when using other smartwatches, like Galaxy Gear. Other people with same smartwatches are unaffected :eek:

So, the logs do not state what is causing the abnormal number of alarms?
[Android General] githyanki:
No, these logs only show that there are alarms, not why they are occurring. You'll need to take some detailed syslogs of the issue and work with rom developers or Google developers.
[Android General] joriq:
ok, too bad... I was hoping that it might be of use to discover the root of the problem. Thank you anyway! :)

---------- Post added at 01:50 PM ---------- Previous post was at 01:47 PM ----------

I wrote a lenghty thank you post, but the forum seems to be struggling. OK, so these logs did not show anything I did not know already :(

---------- Post added at 01:51 PM ---------- Previous post was at 01:50 PM ----------

I wrote a lenghty thank you post, but the forum seems to be struggling. OK, so these logs did not show anything I did not know already :(

---------- Post added at 01:56 PM ---------- Previous post was at 01:51 PM ----------

I wrote a lenghty thank you post, but the forum seems to be struggling at the moment, so it's gone. OK, so these logs did not show anything I did not know already :( :crying:
[Android General] inchvbeam:
Im not sure why "CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,}" isnt working. Any one has any idea? Sometimes my amplify app will crash while using it.
[Android General] MihaiSG:
Try CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]+
[Android General] DB126:
Crosspost: http://xdaforums.com/android/general/guide-0-0-hour-idle-battery-drain-stock-t2973588/post70392552
[Android General] inchvbeam:
Thanks I will not incorporate the {} and see how it goes.
[Android General] yousufchk:
[MENTION=5867207]v7[/MENTION] Can you help me with this?

Thanks in advance.

View attachment BetterBatteryStats-2017-01-06_052715021.txt
[Android General] inchvbeam:
This works for me "CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]+"

Not "CONTEXT_MANAGER_ALARM_WAKEUP_[0-9]{3,}" not sure why though :(
[Android General] claiphenter:
I realized that only first percent at 100% it last about 30mins onscreen. But after that, the battery drain faster than normal. any advice?

Tks for sharing,u guys
[Android General] DB126:
This is a battery management/reporting issue specific to your device, kernel and/or ROM. Outside the scope of this thread.
[Android General] kk-ftp:
Right guys. I have a Galaxy s7 edge. I found this post and it helped me from losing 1.5 percent /hr to 0.8 so almost halved my standby drain.

However, after using the OP's method along with apps and modules and recommendations i noticed that my WiFi will turn off during sleep (even when it's meant to ALWAYS be on).

Can i ask if anyone else had this issue? And if so what resolved it. Or does anyone know which service os responsible for turning wifi on/off.

I've had a look at other android forums and tried a number of suggestions but none of them work. There was mention about Google connectivity service but I can't find that on my phone. Can someone please help!

---------- Post added at 09:57 PM ---------- Previous post was at 09:01 PM ----------

I found the culprit in an app called forcedoze that turns off wifi when in doze!!
[Android General] Mohsin Pathan:
Is there any method like when we are on 100% battery we can backup some amount of battery for emergency purpose??? I think this kinda trick would be very helpful for everyone ?
[Android General] Portgas D. Ace:
You can use a power bank, but there isn't any method to keep some "spare battery percentage".
[Android General] knpk13:
Maybe you could use some app like tasker to automatically power off the phone once it reaches 10% (or how much ever battery you want to "back up").
[Android General] :
This could probably be possible at a kernel level, i.e. 1% on the screen would translate into 5% of the real battery capacity.

Phones like Nexus S and Galaxy Nexus had something similar but in the opposite direction. 100% on the screen really meant 95/96% of their real capacity, and there were mods to remove the limitation too.
[Android General] Portgas D. Ace:
So basically, this is some kind of "I will set my clock two minutes before current time, this way if I am late, I am still on time".

I don't see any actual advantage of such kind of thing. If you want some emergency battery, shut down your device as soon as it reaches a certain battery level (so it won't consume any further battery) or carry a power bank with you.
[Android General] yomiguy:
Great tutorial! I've copied some steps of amplify and I see much less wakelocks and alarms both in bbs and wld! :)

Great tool this amplify!

Enviado desde mi Galaxy Tab 2 mediante Tapatalk
[Android General] Priyabrata527:
can sm1 take a look at the dump file....and say which process are consuming battery in sleep..:D:D
[Android General] Portgas D. Ace:
The only thing I noticed is this alarm:

Alarms: 1, Intent: com.google.android.gms.analytics.ANALYTICS_DISPATCH

Limit it to 9999999 with Amplify.

The rest looks okay. How old is your battery? How is cell signal at your place?
[Android General] Priyabrata527:
battery is 2 yr old... cell signal status is in screenshot...plz tell how u r knowing which process is consuming battery..
[Android General] Portgas D. Ace:
For a two year old battery, the battery drain of 1.0% per hour is acceptable.

Your screenshot about signal strength is pretty useless, as it only shows the current one. Do you face regular network drops or is the signal stable?

Reading a BBS log isn't that difficult. Check the "wakelock" and "kernel wakelock" sections for processes with a high total time (for example more than two minutes). Identify the critical processes and search for them on the web. Most wakelocks are common on most devices, so probably there is an easy solution posted somewhere in this thread.

The same goes for the "alarm" section. Identify processes with lots of alarms per hour. Use the subcategory of each process to exactly identify the culprits (the ones with about 6 or more alarms). Most of those alarms can be limited, but search this thread for recommendations so that you don't limit critical alarms that are required for proper device functionality.
[Android General] Priyabrata527:
i face frequent signal drops...and thank u fr the info..:)
[Android General] Portgas D. Ace:
Frequent signal drops are also draining some battery as your device tries to reconnect to the network constantly in such a case. Therefore 1.0% per hour is good.
[Android General] wogooo:
Indeed, very useless. Powerbank and/or a second battery (takes less space and weighs less)
[Android General] :
Many people find the "clock trick" helpful so maybe there is something about it :p.

I do not use it myself though. Battery drain is not linear anyway and the percentage visible on the screen often does not reflect the reality. I still remember my Nexus S going for 3+ hours with just 1% battery (mostly in standby but still...).
[Android General] The_tomorrow_person:
Can it be disabled?? Or is it safe to disable it?

(Taking about wake:com.google.android.gms/.measurement.PackageMeasurementService)
[Android General] voroxda:
I have made the experience to limit com.google.android.gms.analytics.ANALYTICS_DISPATCH with Amplify caused a freezing of single screens for few seconds, so that I was forced to unset this parameter. Be careful.
[Android General] Portgas D. Ace:
Not for me. It seems that it depends on your Play Service version and device/ROM combination. Which device and which ROM are you using?
[Android General] voroxda:
S7 EDGE on Renovate custom rom 6.0.1
[Android General] voroxda:
Version of Google Play service
[Android General] Portgas D. Ace:
I guess, your ROM is TouchWiz-based, right? This might be the reason, as TouchWiz is known to cause several issues. But this is just an assumption, I may be completely wrong on this one.

Nevertheless, I will try to investigate further and unlimit the above discussed alarm to see if I will notice any difference in device behaviour.
[Android General] yakupTR:
Mobile radıo enable? What i can fixed? Xperia z2 ştock krnel. Existenz 5.6.5 mm?

D6503 cihazımdan Tapatalk kullanılarak gönderildi
[Android General] Bewildered Wolf:
There is no fix available for mobile radio active right now.
[Android General] voroxda:
You are right :svetius:
[Android General] :
Could you do it for Nougat because Xposed is not available.
[Android General] deathkid13:
Improvements

Can anyone help me on where can i improve on with regards to my battery? Thanks
[Android General] mikeprius:
I tried to greenify Youtube, calander, and photos and got a critical component. Does it just say this by default for system apps ? My calender I don't rely on specifically for appointment reminders, I just check it and remember for the day. Photos and YouTube I don't need any notifications. I was looking and Greenifyed most of my apps except email, phone, messenger.
[Android General] Bewildered Wolf:
You get critical component for the system apps , the pre-installed one.

So, there will be no harm greenifing them :)
[Android General] DEVILOPS 007:
Hopefully I can do this when xposed is on nougat
[Android General] inchvbeam:
Appreciate if someone can assess my usage:

https://drive.google.com/file/d/0BwZkIxfBjdQWT0JqeUFIQzVqU2c/view?usp=drivesdk

Using oos 3.5.4. done everything stated excpt for appsxposed because it didn't work on oos
[Android General] githyanki:
Yours looks good. Other than a little bit by Google play services, nothing much going on.
[Android General] inchvbeam:
Thanks. But sadly still drain 0.8% per hour... versus that of my redmi note 3 pro i can achieve 0.2%/ hr
[Android General] :
Are the two phones on the same carrier with similar signal strength? If not then that may be the culprit.
[Android General] inchvbeam:
yupp both the same carrier, but anw i search around and even v7 reckoned that oos is not that capable in battery mgmt.
[Android General] op3n:
is possible to freeze or limit wakelocks of facebook messenger while dont have net connection? i ask that bicoz when i dont use the net, the wakelocks are still there...for no reason. i dont want to greenify this bcs probably when ill turn on the net ill dont receive msgs from it
[Android General] Still-It-Cries:
Hey guys.

I limited most of the wakelocks from OP. Didn't block the location/gps services, because i sometimes use f.e. google maps.

Is it possible to disable them without having problems in google maps?

Thanks a lot for ur suggestions.

---------- Post added at 02:56 PM ---------- Previous post was at 02:43 PM ----------

BBS reporting log will be posted soon. Sorry but I have to post 10times to send an URL...
[Android General] DB126:
AFAIK there is no off-the-shelf tool that will adjust wakelock blocks/limits based on network connectivity. Best option IMHO is to Greenify FBM and then manually launch it after waking device when connected to network. Awkward for sure; depends on your priorities. Gotta decide if those FBM wakelocks are really creating a significant sleep drain; gotta measure. Extraneous wakelocks are meaningless when the device is awake unless one is trying to micro-manage power utilization.

---------- Post added at 04:05 PM ---------- Previous post was at 03:26 PM ----------

Not if you value a truely glitch-free experience. Consider toggling Google location services via settings as needed. On many devices keeping the hardware GPS enabled works reasonably well as kernel/ROM will only switch it on when required by an app/service.
[Android General] Still-It-Cries:
Thanks for ur fast reply. Helped me a lot.

Do u even know where that wakelock "audiodirectout" package 1013 comes from? I searched a lot but didn't find much. It could come from playing games without sound. If u mute it directly ingame. At this time it's my biggest wakelocktime (62 - 1:20h)
[Android General] DB126:
Wakelocks don't matter when device is awake; ignore it.
[Android General] Still-It-Cries:
Ok thx.

Does this wakelock only appear if the device is awake?

I didn't test it out yet. It seems like u know the behaviour of this ausiodirectout very well. Do u have more infos about it?
[Android General] DB126:
I know nothing of this wakelock. Test to see if: 1) it occurs when device is sleeping; and 2) does it trigger significant wake time and corresponding battery drain. If the latter can not be proven ignore it.
[Android General] Still-It-Cries:
Ok. U can get these infos from reporting log in bbs, right? Or from amplify itself?

Sorry if it's a stupid question.

---------- Post added at 06:34 PM ---------- Previous post was at 06:33 PM ----------

Or directly from my battery dlstats in device?
[Android General] Still-It-Cries:
http://cloud.tapatalk.com/s/588506963a6b2/BetterBatteryStats-2017-01-22_103443905.txt

---------- Post added at 08:24 PM ---------- Previous post was at 08:23 PM ----------

These are the stats.

Could anybody take a look at them.

Is there something to improve?
[Android General] danecr7:
Facebook Random Alarms

Hello guys, some weird alarms from facebook started to show up in amplify recently(Xd.ACTION_ALARM.com.facebook.orca. and X.06K.ACTION_BACKUP_ALARM.Mqttlite.com.facebook.ka tana and a lot more) and whenever I try to block one, facebook create a new one with a different number in it and in my amplify app they are more than 20 actually so I try to find a way to limit them all using a regex and I thought it might be helpful to others in xda battery life threads.

Here is the REGEX is found matching all the alarms:

X.([0-9]|[A-Z]|[a-z])([0-9]|[A-Z]|[a-z])([0-9]|[A-Z]|[a-z]).*
[Android General] TNSMANI:
For your information, I am using OOS 4.0.2 for the last three days with only Greenify to check the drain and last night, I was able to achieve 0.3% per hour drain on mobile data with WiFi off. I might have had better drain if one of the Sims (4G) had a better signal. But stuck with it till another tower in my vicinity comes up (promised within the next 30 days).

Tonight I will be checking with WiFi on.
[Android General] ryandigweed:
Is anyone using "Naptime" to configure Doze for Android 7.1.1? I ditched Greenify & Amplify for Naptime, but no one has posted any ideal configurations to follow, like how people have posted their settings for Greenify & Amplify.
[Android General] DB126:
I found Naptime to be unstable and opted to stick with Greenify in 'privilaged' mode for additional control. Amplify is not an option w/Android 7; no Xposed Framework (yet). In general native doze in Nougat does a pretty good job w/o further tweaking.
[Android General] inchvbeam:
wow! but oos4 dont have xposed right? like that how did you do the greenify or amplify settings? or u didnt do that but still yet achieve remarkable result?
[Android General] danecr7:
You can use Doze Settings Editor to configure it.
[Android General] ryandigweed:
Yeah amplify is not an option. How would you say it's unstable? I don't get any notifications of crashes, so i don't know. I have been a greenify user for years, but doesn't the root accesss require Xposed Framework as well? I thought naptime would have some advantage over Greenify since it has root access.

Wow, good to hear that the stock Doze does a good job! .. Unlike marshmallow LOL !

Thanks for providing this. :) The settings look similar to Naptime. What settings are you using?
[Android General] Portgas D. Ace:
Nope, Greenify also works without Xposed. Even root isn't required anymore in the latest versions, but root makes things easier for Greenify (auto-hibernation without opening the app detail windows everytime an app is hibernated).

In the end, it is everyone's own decision if they use Naptime or Greenify. I will stick with Greenify, as it allows me to hibernate apps permanently so that they won't wake up again.

Naptime itself will allow users to configure doze up to their own personal needs.
[Android General] danecr7:
This is what I do for the settings, the screenshot does not take the whole settings for the last one, SMS Temp App Whitelist Duration, I put it to 20.
[Android General] ryandigweed:
The figures are in Seconds right? I'm using "Naptime" which has the settings in Milliseconds, so i will convert the figures accordingly. :)
[Android General] DB126:
- with Naptime two of my three devices would fail to wake on occasion; one randomly rebooted; obviously not everyone experiences these symptoms

- Greenify does not require root or Xposed for core functionality but gains additional capabilities/refinements on rooted devices

- Stock doze on Marshmallow (Android 6) works fine once response to the significant motion sensor has been disabled which can easily be done with any of the tools being discussed

Edit: in fairness should note that my experience with Naptime is a bit dated and could have been influenced by other apps and/or device configs. I have not tried newer builds.
[Android General] danecr7:
They are in miliseconds in Doze Settings Editor too.
[Android General] Sachitoge:
Hey, alright i'll do it, it may take 2 days or so, once done i'll send you.

Is it okay if i let in idle when i sleep? (idle ~10 hours?) and light use of about 1-2 hours?
[Android General] v7:
That'll do.

Tapped from my furious Dogo ;)
[Android General] Sachitoge:
Btw, which part should i log? BBS = BetterBatteryStats, i get it, but i dunno how to export logs, and which parts should be logged? kernel & partial wakelocks alarms process etc that mean i.
[Android General] v7:
You'll see a share button on top.Click on that and tick Text Dump :thumbup:

Tapped from my furious Dogo ;)
[Android General] Sachitoge:
Oh yeah, i found it. Alright. Btw, keep in mind my battery is 7500mAh so don't think it's OEM stock batt :D it's 2.5x bigger then stock OEM batt.

I'll do it, charge to 100% today and at night i'll let it stay in idle in WiFi and let you see it.

with light usage, i'll use browser, messenger, light gaming (light 2D games) like flappy bird visual graphics.

See you tomorrow, it will be probably sent 2 u tomorrow, damn cant wait.

Right now, since i installed it, it went down from 63% to 56% with NOTHING doing in it! just few restart and some 10-30 minute screen on, and lost 7%, while without these apps, i usually get around ~2 hour/10% with very light usage like now, this is HUUUGE battery monster crap issue. AND, i get in total screen-on-time 10 hours for one day, when without these apps i get 2 days with 12 - 14 hours screen on-time with very light load on phone!

god damn, just doing everything i got for days researching experimenting yet cant understand why it drinks more juice when i kill apps wakelock hahaha so funny cuz when u kill wakelocks, it shouldnt drink more juice lmfao

it's like, people get some percent more juice while i loose instead :) anyway bro im very sorry for long post again as i might get mindf****d cuz of this bull**** battery monster drain :s cya tomorrow.

---------- Post added at 04:14 PM ---------- Previous post was at 04:02 PM ----------

Bro, one last question, i couldn't find icing as you mentioned, but instead of that, in services i got com.google.android.gms/.icing.service.IndexWorkerService

com.google.android.googlequicksearchbox/com.google.android.search.core.icingsync.UpdateIcingCorporaService

Should i block them? It's in "Services", after this it'll be done fully. Thank you!
[Android General] v7:
You should know one thing.Blocking the wrong service always does harm than good.So follow this guide to block or limit the safe services only.If you don't find the services I mentioned,leave it.

Never run into a bootloop yourself :thumbup:

Tapped from my furious Dogo ;)
[Android General] Sachitoge:
Bro, you musr know this, i did pug chargee wth 50% charge, i unplugged and bammm, battery got good like before, maybe it is lil bit better, loosing on light use (browsing, 2D light games, messaging) and it drops 1%/8 - 10min, so i am fine! It sure does MORE, so i recommend everyone to clear cache and fully charge to 100% and let it there extra, gets amazing! Thanks bro no research needs. U should tell eveyone to clear dalvik art cache and normal cache, reboot and fully charge, boom problem fixed!! :))

EDIT: Can you check those? Its crazy, should i do something or ignore it? RILJ is monster, it pops red in amplify which means it triggers it ALOT.

https://cloud.mail.ru/public/4yYdMfwfvf4D/Amplify

Here is folder of pics, help is appreciated cuz i dunno if i should ignore them or block few of them.

Thanks!
[Android General] tangcla:
Do you have any recommendations on taming Facebook Messenger (and by extension to a lesser degree, the main Facebook app)? I get ridiculous alarms with Messenger.
[Android General] v7:
I've given a guide to save some juice using my experience.Everyone here's aware of keeping their device clean from junk.It's just basic stuff.

It'll be a stupid act if I ask everyone to clean their Cache and reboot in a thread like this.

BTW I'm glad you fixed the issue :thumbup:

And regarding the screenshots:

High Numbers is Amplify doesn't always mean that they are causing the drain.You can use BBS to see what drains your juice.If you want me to take a look,post those dumps here :good:

Tapped from my furious Dogo ;)
[Android General] v7:
Facebook app is a real battery hogger.I've disabled AnalyticsService of both the apps.

And I've limited the alarms in the OP.

Can you post me some screenshots of the BBS alarms page.?

Tapped from my furious Dogo ;)
[Android General] tangcla:
I've got an issue at the moment, it seems Samsung Lollipop devices don't have alarms visible in BBS. This is all I see:

http://dl-1.va.us.xda-developers.co....jpg?key=rp5VWEdakB68ReYgGaO3Aw&ts=1432179934
[Android General] v7:
The link doesn't seem to work.

Tapped from my furious Dogo ;)
[Android General] tangcla:
See attached.
[Android General] v7:
I saw your poston BBS thread.Hope [MENTION=1330150]chamonix[/MENTION] will fix it.I can't do anything without knowing what drains your battery.

Tapped from my furious Dogo ;)
[Android General] oeusr:
[MENTION=5867207]vaisakh7[/MENTION] not sure if you have the cell standby drain that many lollipop users have, but another xposed module to keep an eye on is one that fixes this. CM posted a fix recently and someone on reddit made a quick fix using their commits:

http://www.reddit.com/r/xposed/comments/36uxdn/request_module_to_fix_the_mobile_radio_active_bug/
[Android General] v7:
Thanks for suggesting.Btw I'm not getting any cell standby drain.I'm running Stock 5.0.2 dogo.:thumbup:

I think it's much ROM related stuff.

Tapped from my furious dogo ;)
[Android General] oeusr:
Could be ROM or device specific maybe. I've tried CM12.1 and stock 5.1 on my moto x and had cell standby drain on both. I can try it and let you know!
[Android General] v7:
Test and report :)
[Android General] topbasework:
Which 1 it save to power nap
[Android General] v7:
Add the apps you need to be working while Screen OFF.Only the third party apps.

From your screenshot,assuming that to you'll need PUSH from all IMs

*WeChat

*Greenify

*Facebook

*Viper4Android
[Android General] v7:
[MENTION=6131391]Emmago[/MENTION] Setup Amplify as per the OP.You are getting 0.0% drain over 7 hours Idle time.Enjoy your battery life :)

Tapped from my furious dogo ;)
[Android General] Grzesiek1010:
Hmm not bad [emoji6]

Wysłane z mojego XT1095 przy użyciu Tapatalka
[Android General] v7:
[MENTION=4857544]Grzesiek1010[/MENTION] Next time post an idle dump.

Tapped from my furious dogo ;)
[Android General] v7:
[MENTION=6131391]Emmago[/MENTION] Just now I noticed that you had no data connection during the idle period.Take a dump with wifi/mobile data on.

Tapped from my furious dogo ;)
[Android General] closee91:
Just wanted to post this and say THANK YOU!! :D

But I wanted to ask if you could limit the alarms in the second attachment with amplify? Sorry if I've asked this before, I can't remember lol

Sent from my LG D851 running Blisspop ROM

If I helped you out, hit thanks!!! :D