yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] jjletho67:
Hi

I started using better battery stats with the previous version and it was working very well, but after the last update a lot of functions are no longer working and it says that it require root privileges (but it has root privileges!l)

I'm on a xiaomi mi2s with CyanogenMod 11. I use superuser to manage root privileges and it says betterbatterystats is requesting and obtaining root privileges so should be ok .

The functions I lost are:

1) in "other" stat I have only awake and deep sleep. No other states are showed

2) in "kernel wakelocks" I have several voices but they are all with 0%

3) in "partial wakelocks" nothing is showed

4) in alarms it says "this stat require root" but it already has root privileges ( superuser log file confirms that)

5) sometimes it crash while using.

There is something I can do ? Can I send you some info or logfile to help you in diagnosis those problem ?

Thank you very much!
[BetterBatteryStats] chamonix:
cm11 is android 4.4 based isn't it? in that case root is not enough, you need to install BBS as a system app (it should have offered you that)
[BetterBatteryStats] chamonix:
see the FAQ in post #3
[BetterBatteryStats] nicholaschum:
Searching around with no hits.

Installed the CWM version then updated to the latest 1.16 because I get the NOT GRANTED errors.

Ensured it's on /system/priv-app with permissions set.

Ensured SuperSU gave permissions to BBS.

It was working about an hour ago until I uninstalled a few apps including BBS.

Logcat

https://dl.dropboxusercontent.com/u/2429389/2014-07-19-19-28-29.txt

When I ignore the message and go into Processes, I get a FC, most likely due to the error, but that's shown on the logcat.
[BetterBatteryStats] chamonix:
your app is running in fallback mode as either the system app is not installed at all or not installed properly. As you wrote that you uninstalled bbs I assume you mean the system app so my recommendation would be: reinstall it
[BetterBatteryStats] nicholaschum:
Thanks for the response. Yes I realize it's running on fallback mode, I reinstalled it 5 times, and as I said before, after I flashed the CWM package, I installed 1.16 over it. I even unchecked fallback mode just to be sure - no diff.

System app has to be installed properly as it was CWM flashed and not in-app installed - with 5 different downloads.

My first time uninstalling it, I clicked on Uninstall Updates in Manage Apps, then when I opened it again, it said it was a helper app. I uninstalled that as well. Then when I tried installing it again, everything decided to mess up.

---------- Post added at 09:26 AM ---------- Previous post was at 09:12 AM ----------

A few screenshots just in case.
[BetterBatteryStats] stephg27:
My Gosh!...:eek: I would have prefered not to do again a Factory Reset after the one I did 2 days ago! :p For the re-installation of apps, as I wrote in the initial post ;), I always do it by downloading them from Play Store. Well.... I will consider if I have enough courage to do another Factory Reset, the flash via ODIN and reinstall and set parameters of all the app.

Can you just confirm me that the fact that Better Battery Stats only proposes "Boot" and "Current" for the "From" and "To" references, and always displays "Fallback to Boot", is due to my problem with the supposedly corruped battery stats info? :confused:

Unfortunately, the Settings app only has available the "Clean Cache", but not the "Clear Data". So I think it is not possible to clear the data for this app :(.
[BetterBatteryStats] chamonix:
Obviously something is really screwed up so I recommend a fresh start:

- uninstall the app and the helper app

- reboot and delete dalvik cache

- make sure there are no traces of bbs left

- install system app and check if the perms are granted (if they are not no need to go on and install the app, it won't change anything)

-> if after removing everything and reinstalling the system app it does not show the perms please provide a logcat after booting
[BetterBatteryStats] jjletho67:
Yes cm11 is android 4.4 based....but why the previous version of the app was working perfectly with root access, without the need of being installed as system app (and I used it with the same ROM versions) ???
[BetterBatteryStats] chamonix:
Since android 4.4 there is no way to access the battery stats with only root: either the system app or the battery stats xposed module are required
[BetterBatteryStats] nicholaschum:
'tis what I did just before you replied.

I'll post a logcat for booting then.

EDIT: logcat! https://www.dropbox.com/s/xdcobn4mdf9csbt/Log_2014-07-13_02-19-15.txt
[BetterBatteryStats] godlesplay:
yea, I know that it is difficult to say, and I didn't find anything useful in google
[BetterBatteryStats] chamonix:
The logcat does not show the interesting part about permissions. What does the helper app show about permissions when you run it?
[BetterBatteryStats] matrixzone:
Here is my log after deep sleep.. Please share ways to improve the phone battery.

http://d-h.st/LEh
[BetterBatteryStats] nabobcoffee:
S-VIEW fake. I just want to share something happened with me. So I purchased two fake sview cases from different suppliers. I started using the black one were I started noticing high battery drain. My phone didn't even last 4 hours lol. And the funny thing is that I didn't know what was wrong until I stopped using the black sview and switched to a normal case with no sview functionality. This when I noticed that the black sview had this battery draining issue. Then just for the sake of testing I started using the other brown sview case and I was surprised to see that the brown one didn't have any draining issues. I took it even further by switching the inside chip from the brown case to the back case and the draining on the black is gone after the switch. For any of you having issues with the s view especially the fake ones try a different supplier. Cheers Note 3
[BetterBatteryStats] Jsilver73:
Please can anyone help me to get stop Google play services - system update service starting on boot.

I have tried auto start manager, system tuner, disable service, and android tuner to disable this and works when I check the disable box but on boot of it goes again :eek:

Tried disabling boot complete as well but still it runs.

This is happening on cm based miui kk ROM.

Abby help with this would be amazing because I really like this ROM but really don't like having to disable services each time I boot into it to disable this stupid service that I don't even want :mad:

Many thanks for BBS :good:
[BetterBatteryStats] Karpfenhai:
Adapt these, system tuner only:

Be warned, it's might break update notifications from Playstore, don't forget to reboot after applying.

Regards
[BetterBatteryStats] Jsilver73:
Thanks, I don't like notifications from okay suite anyway so that's fine, I like wakelocks even less!

When I go into system tuner the screens I an looking at look completely different to yours, I have tried through start ups and app manager tabs but don't see acting that you are showing me. Please could you give me a step by step as I'm feeling very dumb right now :o
[BetterBatteryStats] Hopper8:
Hey mate hope you're well :) karpfenhai uses an older version of system tuner, which I also preferred. The new version works fine as well though, just the right settings are in a different place.

Go to: startups- long press Google play services - open - details. Then swipe between the various tabs to find the things karpfenhai has listed :)

Sent from my Nexu5
[BetterBatteryStats] Jsilver73:
Hey mate, thanks, yeah I'm well apart from pulling hair out combating silly wakelocks lol. Good to see you here, thanks for your help as always, trust you are good too :highfive:

---------- Post added at 01:00 AM ---------- Previous post was at 12:14 AM ----------

Thank you both - wakelock squashed :cowboy:
[BetterBatteryStats] reS28raM:
Are you planning to include a backup script for people like me who is running nightlies on AOSP? In the meantime if I make a flashable zip for the apk from the store (for myself only), all I need to do is to move it to /system/priv-app/ or are there other steps involved? Or alternatively if I write a backup script in /system/addon.d/ including the apk actually installed in priv-app will it suffices or are there other steps etc. Thanks and excuse me if it was already been asked.

Sent from my Nexus 5
[BetterBatteryStats] Karpfenhai:
Why don't you just add bbs to your existing backup script like many of us doing already?

To many trees in your forest? [emoji14]

Regards
[BetterBatteryStats] reS28raM:
I thought I wrote it, not sure if it was enough.

Thanks for the help... I guess lol [emoji14]

Sent from my Nexus 5
[BetterBatteryStats] GermainZ:
[MENTION=1330150]chamonix[/MENTION]

My launcher doesn't list BBS after pressing the button to install the system add-on and rebooting (it only shows the system add-on, which has no functionality on its own when launched, except telling me all permissions are granted).

I'm not sure if I'm missing something, but isn't BBS supposed to install an add-on under a different package name? Because all I see right now is the com.asksven.betterbatterystats_xdaedition package installed in /system/app, and nothing in /data/app.

It's as if BBS tried to install itself as a system app, though I can't explain why that would cause what I'm seeing.

Didn't see anything relevant in the Logcat during installation, though I can have another look or provide more info if you need it.

Edit:

The file in /system/app is 4.2M big. However. There's also another package in /system/priv-app/ which is about 600K big (the system add-on). Removing both and reinstalling BBS, then reinstalling the system add-on fixes my issue.

How or why BBS was in /system/app, I do not know. I didn't convert it explicitly, and I only used the main screen's button which, AFAIK, only installs the add-on.
[BetterBatteryStats] Karpfenhai:
You're right, seems I got your question wrong, so the better answer is,

No zip needed, no script either, just adding the apk from /system/priv-app to the existing aosp stock backup script is sufficient.

Sorry, my bad.

Regards
[BetterBatteryStats] reS28raM:
No probs, thanks bro. [emoji2]

Sent from my Nexus 5
[BetterBatteryStats] beautifulsun:
Why SINCE CHARGED option is never available? :(
[BetterBatteryStats] chamonix:
because your phone has not been fully charged since last boot so bbs does not see that reference
[BetterBatteryStats] beautifulsun:
So if I full charge and then reboot I lose the "Since charged" view?
[BetterBatteryStats] chamonix:
Correct. At boot time all counters and stats from the kernel and android get deleted so I have no other choice than making sure the bbs references are deleted as well
[BetterBatteryStats] itsLYNDZ:
Does anyone get anything from my BBS? It seems anytime the screen is on the battery just tanks. Thank you.
[BetterBatteryStats] chamonix:
I'd recommend that you update to the most current version of BBS and that you start by taking an idle reading
[BetterBatteryStats] matrixzone:
[MENTION=1330150]chamonix[/MENTION]

Thanks for this awesome app.

Need help in killing eventlogservice wakelock on the mobile.. Bit of Google hinted this happens because of removal of bloatware, is this true?
[BetterBatteryStats] chamonix:
I suffered from check-in service this week while roaming and with very poor reception. Disabling the search history in Google settings did the trick (after a reboot). I suspect the history to be somehow location aware
[BetterBatteryStats] matrixzone:
By Google settings you mean Google now? I don't have Google now or Google launcher on my mobile

Thanks for your response.
[BetterBatteryStats] CM17X:
No, is Google Settings, a gray icon with a G and a gear on it.
[BetterBatteryStats] matrixzone:
Google settings?? I can't find this in accounts.. Is this in browser?

I am using Samsung Touchwiz

Sorry for asking the basic question

---------- Post added at 05:54 PM ---------- Previous post was at 05:48 PM ----------

You mean Google play store? In there is only option to clear the search, no option to disable the search
[BetterBatteryStats] CM17X:
No, look up for this one
[BetterBatteryStats] Perseus:
Guys, please use HIDE Tags on large images.
[BetterBatteryStats] egore93:
Does any one know what causes MCS_HEARTBEAT? Plus how to slow it down. It's my 1 one alarm in goggle.gsm
[BetterBatteryStats] Perseus:
It is my understanding, that this is the internal clock on the chip. Not supposed to be relevant unless some app is counting the ticks before triggering something.
[BetterBatteryStats] andreiav:
Hello,

I tried multiple times to install the latest version as system app but it just says "failed". I also tried using titanium backup but this didn't work either.

In the alarms view it says "this stat requires root". I already granted root permissions.

I am using i9505 with CM11 M8. I haven't installed SuperSU and am using the built-in superuser app.

Any ideas?

Thanks in advance! And thanks for the great app!

Sent from my GT-I9505
[BetterBatteryStats] egore93:
So these are the two big ones. You think it's beautiful weather widget pulling from the internal clock?
[BetterBatteryStats] chamonix:
Read post #3
[BetterBatteryStats] Perseus:
No its not the culprit. But those widgets need to go.

Actually Google Play Service is acting banana with MCS.Search this thread for [MENTION=4355376]Karpfenhai[/MENTION]'s mod.
[BetterBatteryStats] egore93:
I went to the link, and it just puts me in his profile. What mod am I looking for? I looked at all the post he was in but came up empty on a mod.

Thank you for your time and help.

---------- Post added at 03:15 PM ---------- Previous post was at 03:07 PM ----------

Edit: Never mind I re-read it, and it says search THIS thread! ?

---------- Post added at 03:24 PM ---------- Previous post was at 03:15 PM ----------

I have already applied all those settings. This is what's got me confused. I do a lot of reading and figuring out on my own. There's usually always a answer to a problem and it may take reading to get it done. I like to search first ask later? I don't want to be that guy...
[BetterBatteryStats] Perseus:
sound strategy. I am afraid in this case I see wakelocks caused by those Receivers. So I guess they are still active. You are looking for this post.
[BetterBatteryStats] matrixzone:
Thanks finally found the option

Thanks for your help..
[BetterBatteryStats] joshdax2:
Can someone pls have a look at my stats? My phone has been literally awake all the time. :eek:

I have galaxy s2 with "s2 like s5 rom" which nothing has been modified except for the icons and themed apps. Kernel is philz. Disabled everything that can affect battery consumption in the settings like turning off location services, unchecking wifi network notification, turned off autosync, reducing screen brightness etc..
[BetterBatteryStats] gaich:
Apps like GTalk/Hangouts, GMail, Whatsapp (partially push), Facebook Messenger, etc, use google's push service (GCM) through a TCP shared connection on the port 5228 between your phone and google servers.

To keep this connection alive, android by default use a periodic heartbeat (a small network data packet) which is used to avoid the connection timeout.

Thus, this heartbeat is the way our phone is connecting to Google servers, sending heartbeat every 15 minutes (Wi-Fi) or 28 (3G), sending idle alarm and reconnecting to the service. You can see it in Google talk monitor (Developer tools in some roms, *#*#8255#*#* in some other).
[BetterBatteryStats] egore93:
Thank you! I checked all those in system tuner. I wasn't receiving any gmail notifications don't have Facebook, gtalk/hangout. I switched to Google edition ROM because its a asop base ROM. Touchwiz is just so bloated but I some of the features. I'm going to see how this new ROM plays with battery. I used system tuner I n this one also plus I froze Google search.
[BetterBatteryStats] gaich:
I totally disable Google services - if you`re, interested, I posted my exerience here.
[BetterBatteryStats] andreiav:
Flashed it. Worked perfectly!

Thanks!!

Sent from my GT-I9505
[BetterBatteryStats] Hopper8:
Hey guys, a little help here would be great... The BBS dump apart from NLP wakelocks, there are minimal wakelocks. However regarding the NLP wakelocks, is there a way to minimise those? I can't turn off location fully as my friend uses it, basically they need to be able to open maps and begin navigation without changing settings. They currently can do this and would like to keep it that way. Is there a way to cut down the amount of NLP wakelocks while still enabling navigation/maps? On my own phone I just enable location when I need (rarely) need it, but I'm kind of hamstrung cos it's not my phone.

Here's a screenshot to show just how bad the NLP wakelocks are...

Sent from my Nexu5
[BetterBatteryStats] It_ler:
Maybe better to post a complete dumpfile here.
[BetterBatteryStats] Hopper8:
Here it is: https://www.dropbox.com/s/2vju5k7w5skvq5r/BetterBatteryStats-2014-07-22_213000439.txt

I didn't post it, as not being my phone its after a days usage instead of an idle dump. Sorry :(

Sent from my Nexu5
[BetterBatteryStats] Perseus:
NLP is massively uncontrolled and misused by Google Services. There is no way to control the usage of NLP by Google Services without burning battery. Turning it on via a quick toggle in Quick Settings Panel is not such a big deal.
[BetterBatteryStats] It_ler:
Hmm ... as Perseus71 already said, it's hard to find a single app causing the NLP wakelocks.

But you can try to uninstall Maps as system app, reboot, then install it as normal user app from Play store and Greenify it.

That may help a little bit :fingers-crossed:
[BetterBatteryStats] CM17X:
Can you please elaborate the "no way to control NLP without burn the battery"? It freaks be up. I've managed to get rid of it but reading your reply makes me look back at it.
[BetterBatteryStats] Perseus:
Network Location Provisioning essentially is a software counterpart of the GPS Receiver chip on the phone. In and by itself, the process is innocent. It provides a location Co-ordinate when called upon to do so. It does this by reading the Chip's sensors. It will create an internal PWL to keep the phone awake till its done reading chip.

However, if some app, keeps calling upon this process to provide the precise location every second, the PWL will start balooning up. Now let's talk about the other side of the coin.

Google tried to integrate Google Now as much as possible with Core Android to reduce the size/footprint of the Google Search app. In order to do that, they have integrated the NLP Receivers in Google Play Service app. (Just like the GCM Receivers for Google Cloud Messenger). So Google Play service becomes a common backbone for all the apps to get unified place.

Now Play Service being bloated, took a life of its own. Even if you don't have Google Search on your phone, Play Service will keep polling the NLP Process. It will also go on to call in to the Mothership (I mean Google Server) periodically with this info. This is used to send Targeted Ads to your phone depending on where you are. This whole thing sucks the battery dry.

In addition to this, there is the newly introduced disastrous and super buggy "Scanning Always Available" option under Advanced wireless Properties. that adds more strain to this.

There are only two ways to effectively tame this rampant behavior.

1. Turn off Location Service. This makes NLP Process silent cutting off at source. Kinda drastic.

2. Turn off Google Location Reporting. This is in the "Google Settings" App. That turns off what I mentioned above.

Does that make sense ?
[BetterBatteryStats] Bl4ck3urn:
Do you know what the "com.google.android.gms.gcm.nts.ACTION_CHECK_QUEUE" alarm refers to?

I have searched the whole internet but didn't find any information :(

My thought is, that it has something to do with Google Play Services.
[BetterBatteryStats] Perseus:
Yes to Google Play Service. Its Google Cloud Messenger.
[BetterBatteryStats] dimm0k:
anyone know why there's such a large discrepancy between the two logs?
[BetterBatteryStats] Depressed T.Bear:
Hi, does anyone know why I get bootloops right after granting su permissions? :(

Uninstalling BBS makes my phone behave normal again...
[BetterBatteryStats] CM17X:
Yes. Clearly you did your reasearch.

The part that was buggibg me was the one talking about that messing up with NLP will burn your battery. I guess it was a misunderstanding.

For the record, on Xperia Z1, despite turn off location services and Google location, still won't stop the NLP wackelock, so my workaround was to disable everything about location. Profit is tangible now.
[BetterBatteryStats] Perseus:
Indiscriminate prevention of wakelocks will always result in chaos and even more drain.
[BetterBatteryStats] CM17X:
I got what you say, but is not my case. I was really careful about it. Now my Phone is awake for 2 - 24 minutes, depends the background procces i do with it, like phone calls or downloads. For me, it works pretty well.
[BetterBatteryStats] belloni:
Can anyone please help me!

I have the wakelock "Startingdockservice" every time my phone charges to about 95+%, and I can only get rid of it by restarting the phone..

It keeps the phone warm also as it doesn't allow the screen to lock down.. I lock it then it returns the screen on immediatly!

It's incredibly annoying, please help.
[BetterBatteryStats] chamonix:
I would suggest turning your phone off and cleaning the USB plug. If the problem persists it is clearly a bug
[BetterBatteryStats] andee39:
Several issues

Hi,

Hoping someone can take a look at my dump file. One of the issues I have is a poor signal, especially at the back of my house but not sure I can do anything about it. There are 3 modems available for my S5. I've flashed all of them and am using the one that is the least terrible. I read somewhere that there are some apps/mods available that could help with poor radio. I tried Intelli3g but it only seems to turn the radio off entirely (unless I missed a setting somewhere?) which I cannot do b/c this is my only phone and I have to keep it on all the time. One thing I did notice seemed kind of odd to me. I usually get 1 bar at the back of my house however, if I make a call or receive a call, it automatically jumps to 3 or 4 bars. Kinda like the signal is there but not? Never noticed anything like that on my S3. Does that seem right? :confused:

I think I might have some other issues also.

Thanks!
[BetterBatteryStats] mdamaged:
Try a femtocell.
[BetterBatteryStats] andee39:
Never heard of it. Will read up on it and hopefully it can help with the signal issue. Thanks!
[BetterBatteryStats] matrixzone:
I tried that but still event log wake lock is draining the phone battery
[BetterBatteryStats] CM17X:
Disable eventlog with android turner, reciever and service
[BetterBatteryStats] nabobcoffee:
My note 3 is giving me max of 4 hrs screen and after 12 hrs battery is dead. I heard other note 3 can last 3 days. To me I want it only to last a full day. I am sharing a sample of the 4% of battery usage knowing that I use (Facebook, WhatsApp, LinkedIn, three exchange accounts, Google drive) those are the major accounts that I use. I do watch one hour of movies during my way to work. Below are screen shots taken after 100% charge and 4% usage. Your help is much appreciated
[BetterBatteryStats] LucentBirch:
Is there any way to deal with it? On latest nightlies for my phone I've been getting like 50 per hour and its getting ridiculous...
[BetterBatteryStats] Andypandiiee:
When I attempt to install, it just says 'failed'. I flashed it using TWRP and when I open the app, everything is blank as seen here http://imgur.com/7O829JR
[BetterBatteryStats] joshdax2:
pls? anyone? :crying:
[BetterBatteryStats] fbf2201:
Your screenshots don't give enough useful information (too short time; no idle log -> high percentage of screen on time, call time). You need to provide a logfile. It's all written in OP.

And you shouldn't add screenshots of other tools in a dev thread, imo.
[BetterBatteryStats] mdamaged:
Seems you have a bug, it as well as a workaround is outlined here in post #3 and a possible workaround in #23 of that same thread.