yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] gwindlord:
From my experience this meant application cannot obtain root privileges.

You flashed the compation app, this will help to get some extended statistics. And now you should install the application apk itself - archive contains companion only, not the app.
[BetterBatteryStats] NOSTALGIA:
yep.. i tried that way.. and it worked.. wondered why its different now..

before i just install the app then set it as a system app then reboot and everything done.

now i have to install it as a system app then reboot then install the apk again...

i may have just been outdated.. thnx for the help everyone...
[BetterBatteryStats] jukyO:
What is your issue?

Drop was 1%:

Level lost [%]: Bat.: -1%(84% to 83%) [0.2%/h]

But this looks weird:

Deep Sleep (): 5 h 11 m 54 s 88.0%

Awake (): 19 m 1 s 5.4%

Screen On (): 30 m 41 s 8.7%

Seems those are your culprits:

*alarm* (com.android.providers.calendar.Calendar Storage): 1 h 9 m 40 s Count:0 19.7%

*alarm* (com.facebook.katana.Facebook): 1 h 9 m 40 s Count:1 19.7%

*alarm* (mobi.infolife.ezweather.Amber Weather): 1 h 9 m 40 s Count:0 19.7%

*alarm* (CyanogenMod System): 59 m 5 s Count:89 16.7%

*alarm* (com.whatsapp.WhatsApp): 52 m 42 s Count:14 14.9%

*alarm* (Google Play services): 30 m 55 s Count:89 8.7%

Try to disable wake up of those and keep awake in Privacy guard.
[BetterBatteryStats] Sincerity1993:
Privacy Guard? I wish i knew my issue, my phone battery goes down 30% per hour of just listening to music
[BetterBatteryStats] jukyO:
Tried CM12? Flash from scratch and test.

Privacy guard is built in CM.

Otherwise , maybe you have battery issue.
[BetterBatteryStats] Sincerity1993:
I don't like Cm, I'm using Resurrection ROM
[BetterBatteryStats] sydeu:
disabling wake up and keep awake does not help against these random *alarm* with nearly exact same times. I have this bug everyday with different apps and I tried blocking nearly all wake ups and keep awakes and the issue is still there with apps that are supposed to be blocked.

Here are the ones from yesterday and today (today is only 15 minutes so far but it usually ends up around 2h30min at the end of the day)
[BetterBatteryStats] jukyO:
So, it does not have Settings>Privacy>Privacy Guard?

If so, then, live with it. As you do not wanna try anything to resolve your issue.

With CM12 you would surely resurrect your phone.

And keep it from drainage.
[BetterBatteryStats] sydeu:
Resurrection Remix is based on CM 12.1 and does indeed have privacy guard, although it won't stop the *alarm* drain. It's the ROM I'm currently using, have had the same *alarm* problem on other phones and other ROMs also.

As you can see the apps have now increased their *alarm* time a little and they're still all exactly the same.
[BetterBatteryStats] jukyO:
Greenify.
[BetterBatteryStats] sydeu:
The problem is that it's different apps that does this everyday so I would need to greenify everything, but I'll install it now and block one of them that are doing it today and see if it's working! Will report back.
[BetterBatteryStats] bigknowz:
Drain has doubled

For some reason I tried M Preview 2 a couple of weeks ago. Flashed back to 5.1.1 and now average drain has gone from 1.3% / hour to 2.5% or more. I've tried 3 different ROMS, the Google Play Services drain workaroud, but no luck. Any thoughts appreciated.

UPDATE: 7/31 dump is from overnight in airplane mode, went from 35% to 25%
[BetterBatteryStats] Dark-Coder:
But i Have Root Privilege, in Super Su it's Added... :confused:
[BetterBatteryStats] Quadrider10:
What are causing the top 3 wakeup alarms in okay services?
[BetterBatteryStats] v7:
Location.

Tapped from my furious dogo ;)
[BetterBatteryStats] Luigi91:
Why is my phone awake so much? I have a nexus 6 and a lot of people are reporting 4-6 hours of SOT...

Edit: Could the wakelock be because of the signal quality?
[BetterBatteryStats] Quadrider10:
i have it set to battery saving in settings, and all my apps are greenified.
[BetterBatteryStats] jeremysherriff:
Reeeeaaaally?! Well, in that case, there's going to be a number of disappointed people posting in the next day or so, as it seems that that advice is being given out reasonably consistently at the moment (not just by me) lol
[BetterBatteryStats] hollal:
I tried earlier to recreate a virtual access point using Window 7's virtual wifi miniport adapter so that I could connect to my laptop's wifi connection and share it's internet but for some reason I'm getting an error when I try to enable ICS. I was hoping I wouldn't see the battery drain if I connect to what is essentially a different router but I can't seem to get it going like I had months ago :(

I guess it'll have to wait and I'll try it on my parent's router or something. Oh well. I'll post back with the findings in case it's useful.
[BetterBatteryStats] alfmetal:
hi

im wondering if your app, have an option to make android not to track the battery status at all, i dropped my phone and android thinks my batteries have always 1% or 0% left, when they are actually fully charged, the only way to make my phone stay on is with the power charger and/or usb cable . i tried diferent cables, batteries, chargers etc,. and it doesnt stay on

if i boot my phone into recovery mode with the battery only, the phone stays on for a couple days, so the problem starts only when i boot into android .

i tried diferent roms with no luck

if your app have this option , im buying it for sure, thanks.

im at work right now and i dont have my motorola triumph with me
[BetterBatteryStats] chamonix:
Unfortunately the answer is no. Whatever is reported to android comes from the kernel but the behavior when the battery level drop to 0 is userland. I'd recommend you first find out if your phone or your battery was damaged.
[BetterBatteryStats] tomsi191:
i have gone through half the pages of this thread(it's so long...) but i cannot find a solution for my drain. Please, please help me if you can.

As you can see on the screenshot below i have spikes of +800mA of consumption. These are rather frequent (eg twice or thrice per day) and usually happen after a dead start of the device. Also note i have seen the meter as low as 2mA at times.

Also here is a dump file 2 hours and 45 minutes after a reboot. You will note the big unexplainable difference between the wake and the screen on times.

dump file

Lastly i don't know if it's related but i have a weird bug on my phone that keeps my microphone muted at random times,which i believe to be a software issue but have failed to pinpoint thus far. Could this affect the battery performance?

ps:i do hope the links work correctly, it's rather difficult through the phone.

ps 2:@ the op great work on this app and supporting it,thank you so much
[BetterBatteryStats] karthiks:
My android phone (SGSII i9100 international version) loses 17-20% of battery overnight (7-8 hrs).

My normal battery usage check shows high usage for cell standby even though I had full signal throughout. I did see that a lot of awake even when screen was off.

So, I ran BBS overnight and found high counts of partial wakelocks for 1. ActivityManager-Sleep 2. Alarm Manager and 3. RILJ.

Any suggestions? Thank you for your time

Cheers
[BetterBatteryStats] suku_patel_22:
Sorry for being off-topic...

Dude could you post your wallpaper ... :)
[BetterBatteryStats] ManUtd07:
I'm getting similar issues with the same items at the top, along with SyncManagerHandleSyncAlarm.

Bought a new battery a week ago so hoping that would cure some drain issues. But after a week or so the phone is back to losing battery while seemingly doing nothing. Phone has dropped 5% since being off charger for 10 minutes without any use.

Running MIUI 12.9 on EVO. Tiamat 3.3.7 Kernel.
[BetterBatteryStats] tomsi191:
see here

that particular one i found on these forums but i dont have the link now,if anyone knows...
[BetterBatteryStats] y0.o!:
typing "biohazard android" in google gets me this site http://my.opera.com/ubuntunerd1/albums/showpic.dml?album=9637612&picture=131322592

Enjoy.

(sorry for going off topic)
[BetterBatteryStats] chamonix:
Unfortunately the link seems only to work if you have an account and I haven't. Could you please attach or use another place to drop it?
[BetterBatteryStats] chamonix:
Looking at your dump whatsapp and bln are the main causes for awake
[BetterBatteryStats] chamonix:
How about posting a dump?
[BetterBatteryStats] jeremysherriff:
Probably a crap signal, hunt around in the phone settings/info a bit and find the signal strength in dB. Mine's -65dB except in some bad places, where it's about -105dB. Battery drain is minimal until I go into one of those bad coverage areas.
[BetterBatteryStats] jeremysherriff:
This probably deserves its own thread..?

I don't know if a moderator can do that, or maybe just copy/paste into a new one and edit this post down to nothing but a link?

Anyway - my 2c at this point - uPnP "enabled" on the router may be responsible for some of the traffic, especially wakes - presumedly, the router needs to ping the device that asked for some port to be opened, to determine if the request is still valid. I know very little about uPnP so this is a guess... and I don't get wifi battery drain but do have uPnP enabled on the router.. so presumedly it would be app-specific behaviour.

I'll try and do some testing this weekend, although I don't know how. I'll start by installing wireshark (pc) and shark (droid) and go from there.
[BetterBatteryStats] hollal:
Just before I go to bed, I'd like to say that when connected to wifi, the WifiService kernel wakelock in BBS increments constantly and can be seen easily by refreshing BBS. This is with all syncing and data access turned off in Android settings.

I too will install Shark and try testing some ideas tomorrow.

EDIT: Tried for 15 minutes and whilst wlan_wake keeps increasing, no packets have been received in Shark.
[BetterBatteryStats] ManUtd07:
Does this work? I appreciate the help! Trying to do my homework and figure this stuff out but some things I just don't understand.
[BetterBatteryStats] CRXed:
There is not much info in your dump, do a dump after a charge to 100% or a disconnect from the charger and leaving your phone sleep.
[BetterBatteryStats] manpildo:
Your signal strength is unstable and horrible. For sure it has a huge impact on your battery.
[BetterBatteryStats] marknoll:
GPS...location...and radio(WiFi/data)
[BetterBatteryStats] Quadrider10:
is there any way i can help reduce the wake locks besides turning off data/wifi and location?
[BetterBatteryStats] lafila:
Hi there,

first of all, thanks for this amazing thread. It's really nice to see the community and the developer helping out each other with their curious acting phones.

So here comes mine...

Phone was clean flashed a few days ago and all apps have been restored from previous rom. This measure had been taken over the night and I noticed a few wackelocks which are pretty over the top in contrast to the rest.

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

Wakelocks (requires root / system app on Android 4.4+)

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

*alarm* (com.whatsapp.WhatsApp): 2 h 29 m 39 s Count:9 32,6%

*alarm* (com.android.chrome.Chrome): 2 h 29 m 39 s Count:0 32,6%

*alarm* (CyanogenMod-System): 2 h 28 m 5 s Count:166 32,2%

*alarm* (com.cyanogenmod.lockclock.cLock): 11 m 4 s Count:13 2,4%

Especially whatapp and chrome have exactly the same amount of uptime, while chrome has "Count:0" which is irritating me.

If anyone can tell, how to reduce the massiv amount of uptime without uninstalling, that would be real helpful.

I attach the whole log for those who need the other informations aswell.

Thanks in advance!
[BetterBatteryStats] sydeu:
I have that bug too, it will be different apps different days, you can see some of my screenshots a few pages back. Seems noone knows what's causing this though.
[BetterBatteryStats] v7:
Maybe you can try the Guide in my Sig.

Tapped from my furious dogo ;)
[BetterBatteryStats] sydeu:
I just tried blocking *alarm* in amplify, seems to be working but not sure yet if it has broken some functionality, will report back!

From what I've noticed I'm missing no functionality and all the *alarm* wakelocks are gone.
[BetterBatteryStats] googchrome:
Can someone please help me figure out how my phone battery level dropped 4% while device was still in 100% deep sleep? Below are the logs. Appreciate the help !
[BetterBatteryStats] graydiggy:
Are you serious? .5% loss per hour is incredible deep sleep battery life... You either are expecting it to never drain in deep sleep or are a troll. If you want any better, turn your phone off...
[BetterBatteryStats] x4sper:
Am I missing something here? I installed the app and it says granted battery stats and dump and this app has no functionality ? What am I doing wrong I'm on a nexus 6
[BetterBatteryStats] mdamaged:
Probably something.
[BetterBatteryStats] aoaleman:
Try moving the apk to system/priv-app and set permissions. Rw-r--r--
[BetterBatteryStats] x4sper:
Thank you sir!
[BetterBatteryStats] buffer overflow:
[MENTION=6283607]googchrome[/MENTION] 0,5%/h You are very funny guy...That kernel is build by Franco... :)
[BetterBatteryStats] gaich:
[MENTION=1330150]chamonix[/MENTION]

Tried to install Android 5.1.1 AOSP rom and found that some functions aren`t working - force English, for the instance, that`t why I cannot attach English screenshots. Something is messed up in graphs - there are no wakelocks, wifi and screen on charts (they should be here, I have used them), but there is the activity in Charging, GPS and Bluetooth - and I didn`t turnd them on. And, as far I can understand, the history table doesn`t correspond either.

View attachment BetterBatteryStats_History-2015-08-02_143051937.txt

View attachment logcat-2015-08-02_143104732.txt
[BetterBatteryStats] gaich:
I do know how to install it. I tell graphs don`t give proper info.
[BetterBatteryStats] chamonix:
Have you restarted bbs after switching languages? I just did the test here and it works.

Added #713 for the graphs, looks like Google yet again have changed the constants mapping the series to the masks to decode them (they do that a lot without clear reason). I will check the repo and diff the constants
[BetterBatteryStats] MoeBD:
I have replace my sim card and still face similar issue with GPSD

Find a dump and hope you can help me in what's the reason for it

whenever i use GPS and turn it off this problem occur
[BetterBatteryStats] googchrome:
lol...I'm sorry, I posted it in the wrong thread. This should have been in 0% [0.0%/h] Idle Battery Drain on Stock ROM thread. Any way thanks for taking time to look into this.

Below is the latest log -

---------- Post added at 12:30 PM ---------- Previous post was at 12:28 PM ----------

Yes and Yes sir, it is and it's pretty good.
[BetterBatteryStats] inspi83:
Hi all,

no one can help here?
[BetterBatteryStats] shaggyskunk:
You can also use Wakelock Detector along with BBS to get a better idea as to what is going on - I don't remember on 5.02 if WiFi is set to Always Scanning - but you can turn it off if it is - Also check your signal strength - If it's bad - It's always going to be hunting for a better signal - Apps like Google Now can drain the battery if you have "Ok Google" detection always "listening" - There's a bunch of apps that will try to refresh often - If you're running any of these - Put a limit on how often they do.... Hopefully this gives you some ideas

Sent From my SM-N910W8 Running SlimRemix v.2.5
[BetterBatteryStats] thiagomed:
Hi everyone... I'm in trouble with my S6, because I can't get into deep sleep. I've noticed that GPSD (Kernel Wakelock) it is causing this issue. Do you know how can I control/deactivave this kernel wakelock without lose GPS function? I read some posts that saying for rename GPSD in "/usr/bin..." but if you do that you'll loose gps function on your cellphone. If anyone knows what to do, I'll appreciate, I'm having a hard battery drain due to GPSD. Thanks

EDIT OBS.: I've noticed that when I turn Flight Mode On and reboot, GPSD is gone and my phone enter in deep sleep. I read something about select "WCDMA ONLY", but like the other solution I posted before, I don't want to loose other connections (LTE, GSM) and reboot everytime I want deep sleep right?!. Someone can help? Thanks

Cellphone: Galaxy S6 G920i

VIVO-BRAZIL

ROM: XtreSolite 5.1.1

Kernel: UNIBASE
[BetterBatteryStats] mdamaged:
Well going by the BBS dump you provided....oh wait...:eek:
[BetterBatteryStats] thiagomed:
I just reboot my phone and loose my BBS dump, I'll wait until night to post it! Sorry for my fault
[BetterBatteryStats] adlx.xda:
Love this app. [MENTION=1330150]chamonix[/MENTION] I have a suggestion (not demand): I think it would make sense to be able to filter out stats from when the screen was on, this could be a toggle, and when pressed, we would only see stats about the time the phone's screen was off.

I usually find myself having to do the math, and figured it could make sense for others, as usually we don't really care what is draining battery when screen is on, but rather when screen is off (and usually, leaving the phone off all day just to check what is draining the battery is not always an option...).

Not sure it's technically possible though.

Just my 2 cents. Thanks again for this wonderful app!

Sent from my OnePlus One with Tapatalk
[BetterBatteryStats] IODroids:
Here are my stats can you suggest some improvements (I need a good battery life)
[BetterBatteryStats] kmarc33:
unless I'm misreading something your stats are for 5 seconds. You might want to read the first post about how to submit stats, 5 seconds aren't going to tell anyone much. Short version, what I do, reboot, fully charge, unplug, leave overnight, get stats in the morning.
[BetterBatteryStats] chamonix:
If you enable the watchdog (advanced settings) references for screen off and screen on will be automatically created. With that feature I think you have exactly what you are looking for
[BetterBatteryStats] thiagomed:
13900000.decon_fb Kernel Wakelock, someone knows what it is?
[BetterBatteryStats] Saratoga79:
Maybe this can help: http://xdaforums.com/showthread.php?t=1179809&page=2922
[BetterBatteryStats] Rinoceros:
Maybe this will explain this wakelock. It seems to be screen on time.

Your link is pointing out to this same page, pushing the innocent one in an endless loop :cowboy:

Probably a wrong copy/paste?
[BetterBatteryStats] Saratoga79:
You are right buddy! My bad. Your link is the correct one I wanted to post. Thanks
[BetterBatteryStats] thiagomed:
Don't undertood
[BetterBatteryStats] Saratoga79:
Sorry, correct link: http://xdaforums.com/note-4/help/13800000-deconfb-wakelock-t2936445
[BetterBatteryStats] thiagomed:
Thank you, that helped me a lot! But if this wakelock is nothing, lli_pm_wlock anybody know what it is?
[BetterBatteryStats] Rinoceros:
Why not posting a logcat, so the experts here can have a real look instead of You just throwing some lines over the fence?
[BetterBatteryStats] Perseus:
Looks like something related to your cache or Art. Can you get into Recovery and wipe Dalvik and Cache ?

Instead of Logcat its more useful to see the overnight Idle Log text dump.
[BetterBatteryStats] Black_Stark:
guys. this is amazing app.

could anyone pls tell me how to delete inbuilt stock battery app from settings permanently and replace it by this wonderful app ?? pls reply.

cm11

galaxy ace plus
[BetterBatteryStats] haris1976:
i try install at sgs2 dirty unicorn 5.1.1 but still not yet working

i check this perrmission
[BetterBatteryStats] matrixzone:
Any idea why I keep getting this wakelock. I have almost deleted all apps from my phone

Alarm_wakelock_activity_detection??

I am on Android 4.4.2 with Locatin Settings turned off
[BetterBatteryStats] chamonix:
this is not a wakelock but an alarm. Notice it has the same number of wakeups as reconnects and the number is 2. I am afraid that you are looking in the wrong directions
[BetterBatteryStats] mikexmayhem:
Hey guys i need some help. I installed and used bbs for a day and then the next time i use it i see this. I uninstalled and reinstalled and flashed a removal zip and reinstalled and i cant get access to the app. Can anyone help?
[BetterBatteryStats] Sami Jildeh:
Just install it again while you already have what you have in the screenshot.
[BetterBatteryStats] mikexmayhem:
I have tried that. Mobile installer mentions installing or upgrading and this app already exists. I hit install. And then i get the same screen again
[BetterBatteryStats] mikexmayhem:
Well now it says granted lol. I just tried flashing the app install zip. But this is all i can get it to do :(
[BetterBatteryStats] FernBch:
I had install issues with the last two versions of BBS. What I did was install it fresh, open Root Explorer, set /system as R/W, hit the home button (don't exit Root Explorer), choose to install as system app, then reboot. After a reboot I would get the companion app screen and I would install BBS again and reboot. All was good after. Something changed with permissions and the file system with Android 5.x and it wouldn't allow some apps to simply write to /system but the above process works for me.
[BetterBatteryStats] mikexmayhem:
See i was thinking and trying to install it fresh but when i uninstall it it doesnt go away
[BetterBatteryStats] v7:
*Install BBS

*Grant Superuser permissions.

*Reboot

*Install the apk again on top of the existing installation.

*Open BBS.

*Grant SU.

If you don't succeed in this.

Manually move the apk to /system/priv-app and fix permissions to 644 and reboot.

Tapped from my furious dogo ;)
[BetterBatteryStats] MoeBD:
I have weird drain while the phone on airplane mode

Yesterday before i went to sleep had 31% and put the phone on airplane mode woke up 7 hours later the phone had 14% left

Help me locate my problem (dump attached)
[BetterBatteryStats] arubamon:
100% Wakelock for 5 1/2 Hours

Could someone help me decipher these bbs logs? My device is a Note 8.0 (GT-N5110) running the latest Pac-ROM 5.1.1 nightly, pac_n5110-lp-mr1-Nightly-20150714. I have everything greenified that I can greenify and have limited just about everything in amplify, besides the wakelocks that seem to break my google play services. According to bbs, for the past 5 1/2 hours, I'm losing 4.3% battery / hr w/ the screen off. I'm not getting any information from bbs that I understand, just that my device is wakelocking 100% because of PowerManagerService.WakeLocks, which as far as I can tell, is just a catch-all. Currently, while I'm awake, I've got the wi-fi and gps on. Before I go to sleep, I use ds battery saver to disable the wi-fi. Any help would be appreciated. Thanks

Note: This was happening a couple weeks ago, and seemed to resolve itself for at least a week or so, however, now it's happening again. I assume it's because of some app or apps I installed, but I'm unsure as to which. I noticed that the Internet Speed Meter app I installed has wakelocks going through the roof in amplify, so I disabled that service for now to see if that's the culprit.
[BetterBatteryStats] zetret:
Guys

I installed this on CM12 (Android 5.0.2). However I saw an issue with msm_hsic_host. I documented this here;

http://xdaforums.com/optimus-g-pro/help/lg-optimus-g-pro-cm12-5-0-2-battery-t3176122

I installed Blisspop 3.6 now (Android 5.1.1) - However, following the exact same steps for installing BetterBatteryStats v 2.1 - it just wont't work.

It says, successfully installed as System App. Please reboot.

After reboot, the app says, "This is a companion app to BetterBatteryStats. It was copied to /system and stays there to grant permissions that can only be granted to system apps. This app has no functionality at all. You may need to reinstall BBS to get access to the app."

I even uninstalled and reinstalled using the recovery ZIP.

Has anyone tested BetterBatteryStats ob BLISSPOP 3.6? Please help OP.

Regards
[BetterBatteryStats] gregferns:
THIS HAS BEEN EXPLAINED MANY TIMES... You need to go to playstore and click on UPDATE app... it downloads another version of the app and that one you can use as the one currently installed is for the system...