yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] RogueCoyote:
Please read my post more carefully. The linked screen is not the same as the screen shot that I posted. I have already installed BBS a second time after installing as system app. Thanks for trying to help though.

Update: Weird, I didn't do anything else but it is somehow working fine now. Restarted just to make sure things stayed as they should and they did. Thanks for the great app!
[BetterBatteryStats] tangcla:
Is it the "dmesg" option?
[BetterBatteryStats] abhkumar:
EventWatcher service?

I am running 2.1 B3 on 5.1.1. I saw that a service called "Event Watcher" spawns whenever BBS is launched. Is there any way to disable this service?
[BetterBatteryStats] tangcla:
I've exported all four files from BBS. Does this help?
[BetterBatteryStats] PeQuEsan:
I'm facing exactly the same problem as you (same screenshot, showing the system app is installed but perm not granted, same upgrade to 5.1.1, in my case totally stock, in a Nexus 5, SELinux in Enforcing mode)... I've read you finally got it working, but not how... Can you elaborate a little bit?

I'm currently using 2.0.0 RC5, and the recovery zip, as in-app button doesn't work (it' worked in 5.1.0). I've also tested last 2.1.0.0 B3, same results.

bye!
[BetterBatteryStats] Perseus:
Depending on what [MENTION=1330150]chamonix[/MENTION] needs, it could be that or the ADB Dumpsys output. Please review http://stackoverflow.com/questions/...-shell-dumpsys-tool-and-what-are-its-benefits
[BetterBatteryStats] RogueCoyote:
Hey, I think what finally got it working was moving the apk folder from system/app to system/priv-app. Try it out.
[BetterBatteryStats] :
Please dev upload BetterBatteryStats to Amazon.com, URGENT Request.

Hey there,

Please dev upload BetterBatteryStats to Amazon.com

Amazon.com is also a good android site, where you can upload pro version. And earn good money.

I will purchase BetterBatteryStats from Amazon.com, I have some limitations at Google Play Store.
[BetterBatteryStats] chamonix:
In a nutshell: Amazon is a closed ecosystem, refuses to support apps that require root, do not provide any support for dev to manage their apps...... I have no interest that Amazon earns a share in bbs sales but have no interest in supporting devs
[BetterBatteryStats] PeQuEsan:
If I use recovery zip, it installs base.apk to /system/app but then I can't move it to system/priv-app because there's another file called base.apk there (GSAM Battery Monitor root companion app).

If I use in-app installer, it says it has failed, but if you go to /system you can see a new .apk called com.asksven.betterbatterystats_xdaedition.apk. If I move this apk to /system/priv-app and fix permissions, then I get the screenshot you posted...

So... I'm a little bit lost now...

Desde Tapatalk..
[BetterBatteryStats] RogueCoyote:
I deleted both the base.apk and com.asksven.betterbatterystats_xdaedition.apk. I also had com.asksven.betterbatterystats_xdaedition but it is a folder as seen in the screenshot attached. It might be in data/app, that's what I moved to system/priv-app, left permissions as seen, and reboot.
[BetterBatteryStats] droidbits:
[MENTION=1330150]chamonix[/MENTION]

In continuation to a post I made sometime last week or so, the installation of BBS from Play Store went pretty smooth and I now understand how one has to make it as system app but then

return to Play Store

and update.

Thanks for your previous instructions.

I am posting a couple of screenies for you to give me an opinion

when you have time please

as I am still learning to decipher the app.

Well <please correct me if I'm wrong> do you see any problems with my screenies?

My interpretation is that with battery life of 18 hours <still 72% left> the phone was in deep sleep 86%, awake 14% and screen on 12%.

So this means that in 18 hours I only had 2% of wakelocks correct

?

That is pretty good right? Or do you see any hassles?

Regarding the second screenie on the partial wakelocks that is what I start to fail to understand.

What are all those alarms

and do you see any problems or how can I fix it please [MENTION=1330150]chamonix[/MENTION]?

WhatsApp keeps waking up <although t is Greenified> but I have today blocked it with BlissPop built in Wakelock Blocker.

Is this the right thing to do?

Thanks for the support and sorry about the questions but I am very low maintenance <customer> and I am just trying to understand the last details on your fabulous app.

Please guide me in whatever way you can please.

Thank you.
[BetterBatteryStats] chamonix:
based on that info you have an awake Ratio of 2% and a drain of 1,5%/h what is pretty good. To see if there is more potential please post a dumpfile
[BetterBatteryStats] droidbits:
[MENTION=1330150]chamonix[/MENTION]

I hope this is what you need. Thank you for clarifying this and as I said is just to understand what goes on. Also the Whatsapp awake issue has stopped since I blocked it with the ROM's built-in wakelock blocker...I have just checked and is not there accusing alarms anymore in the partial wakelocks.

*Sorry for asking but in the app>sharing options to post the dumpfile I could not find an option to share with XDA <only Drive, Inbox, etc.> Would that be possible in future or is it a no go? It would be great to share files directly from BSS to XDA*

Edit: Before you asked me for a dumpfile I rebooted my phone! I have recharged it full again and this dumpfile and logcat are from after

9 hours

"since charging". Enclosed are also

new screenshots

for the same time.

Thanks for giving me support!
[BetterBatteryStats] buffer overflow:
Finally, work in Paranoid Android 5.1.1 after failed several times in CM 12.1. :D
[BetterBatteryStats] Kirot:
Ok, I can't get this to work properly, I'm getting the error on the attachment

I'm running a Nexus 5, fresh update to 5.1.1 with wipe, stock, rooted, with xposed and BBS refuses to install as a system app, whenever I install and press on the option to install as system app nothing happens, I tried with the flashable zip and is still not recognized as system app, I already tried to remove and reinstall, installed the zip before installing the apk, installed version 2.0.0.0, version 2.1.0.0 variants B1, B2 and B3 , removed with titanium and reinstalled and is still the same, any ideas?
[BetterBatteryStats] droidbits:
deleted
[BetterBatteryStats] PeQuEsan:
I tried that, but my system partition is full (only 4,77 MB left), so I can't move BBS from /data/app to /system/app... :( In fact last 2.1.0.0 B3 apk is only 4,65 MB, but when I try to move it I get the error there's no space left... :(
[BetterBatteryStats] Pi3rluigi:
You can use Titanium, remove or move as user app something from system and you 'really done

Inviato dal mio MI 3W utilizzando Tapatalk
[BetterBatteryStats] PeQuEsan:
Yes. That's an option, but I would like to avoid it if that's possible...

But I would like to know why in 5.1.0 I could use in-app installer, and in 5.1.1. I can't, and also recovery zip doesn't work (which btw I haven't used for many time because in-app button was doing its job).

[MENTION=1330150]chamonix[/MENTION], any idea in this particular case? I'll try to find a log that shows what's happening.

Thanks a lot.

---------- Post added at 10:36 AM ---------- Previous post was at 10:28 AM ----------

WTF! I activated debug mode and open catlog to capture the log, and now the in-app button has worked!!!!

No idea what's going on... but it's done for me... :)
[BetterBatteryStats] hybrid2102:
Try to free space in \system first. For example, turn Google+ into an user app (with TitaniumBackup) and reboot.

Then try again... Good luck!

EDIT: as already stated by...
[BetterBatteryStats] mrQQ:
any idea?
[BetterBatteryStats] sreinst1:
I am on SGS2 (i9100) with SlimLP ROM. Battery drains ~5%/hour when the phone is not in use at all (screen off except for the ambient display). BBS report: http://pastebin.com/QHcSJzEs

How can I figure out from this report what is taking my battery so I can disable it?

In addition, I have a question about ambient display. According to the explanation in the Settings, ambient display is both for notifications as for waking up the phone when I pick it up. This means that some sensor must be on all the time to wake the phone, and I am not interested in that functionality at all - I'd like the screen to stay off when I pick it up. Is there a way to disable this part of ambient display? I do want to have the notifications though.
[BetterBatteryStats] Perseus:
You have posted only 1 Hour of Log. That's low in my opinion. Either way, you seem to be having Signal issues. Can you toggle airplane mode on and then immediately off ? Otherwise reboot the phone. Do this either at home or at work/School when you get there. Also try Karpfenhai's Mod discussed earlier in this thread.
[BetterBatteryStats] Kirot:
Before I go ahead and buy titanium pro, does it support moving system apps on 5.1.1?

Edit: OK, finally is working, I offered play books as a sacrifice to the angry gods of android and then used /system/app mover to get BBS as a system app, reboot and works

Thanks guys!!
[BetterBatteryStats] daltonhrrll:
Could anyone tell me if this wake lock is safe to block? Im referring to 'alarm' under the Google app.
[BetterBatteryStats] Perseus:
For One, you don't indiscriminately block alarms and wakelocks without knowing full well. That's invitation to system instability, particularly so in case Google apps.

Second, if you are asking a WakeLock Detector Question, Don't you think it might be a better Idea to ask [APP][2.2+] [v.1.5+] Wakelock Detector- What keeps your phone awake when it sleeps? I am sure you are aware you are offending Developer of THIS app, [MENTION=1330150]chamonix[/MENTION] by doing this ?

If you really must know, No it shouldn't be blocked. Although I can't see full details in the image, I bet its coming from Google Now. Any such block on Google Now is likely to materialize into complete instability.
[BetterBatteryStats] brooker88:
Anyone have any idea why BBS is so messed up? I tried restarting phone and its still acting crazy
[BetterBatteryStats] shaggyskunk:
I don't think that BBS is the issue - It's working perfectly fine for the vast majority of people - I'd look at your device for issues - BEFORE blaming a very well designed app!

Sent From my SM-N910W8 Running SlimLP 5.1.1 RRO Layers
[BetterBatteryStats] mdamaged:
Factory reset.
[BetterBatteryStats] brooker88:
Wld and gsam working correctly, that's why I thought maybe was bbs. nothing's changed in last 2 months so I'm confused
[BetterBatteryStats] sreinst1:
Thanks. could you point me to Karpfenhai's Mod? There are thousands of pages, and even just browsing through all of Karpfenhai's posts takes a very long time. And finally, I found one where he lists some screenshots for System Tuner, but it's so far back I don't even know if it's still relevant for my version of Play Services.
[BetterBatteryStats] augoza:
I'm confused. I installed BBS but when I open it, its only this, in the pic. Where do I see the stats?
[BetterBatteryStats] Kirot:
Reinstall the apk from the OP
[BetterBatteryStats] -earth-:
[MENTION=2338074]augoza[/MENTION]

Same problem" here .

SlimLp 5.1.1 with Semaphore 3.2.0
[BetterBatteryStats] mirco9:
Same on yuga cm 12.1.
[BetterBatteryStats] matrixzone:
Same for me on Android 5.1.1
[BetterBatteryStats] buffer overflow:
This problem is not private, it is a general one which is available in Android 5.Not very difficult or annoying to install twice. :) ;)
[BetterBatteryStats] mirco9:
I alleready tried to install twice. One app shows BATTERY_STATS Granted DUMP Granted. The other says i need to install it as system app.
[BetterBatteryStats] buffer overflow:
After you have installed the first time, you gave restart and reinstall application ?
[BetterBatteryStats] mirco9:
yes
[BetterBatteryStats] buffer overflow:
In that case, install Root Browser, copy BBS in system/priv-app give Permissions and insstall again.
[BetterBatteryStats] mirco9:
Thanks! Now it works.
[BetterBatteryStats] buffer overflow:
:good:
[BetterBatteryStats] Avishai1b:
https://drive.google.com/open?id=0B3O7L-B4-J7haURpck5RN3ZpaVk&authuser=0 [My bbs full stats]

Im using CATALYSM and ElementalX kernel everything is default. I tweaked the obvious (gps, google now, google search, nfc, sync is off at settings).

battery is draining very quick.

com.google.anroid.gms alarm above 70% (what is it?)

and I want to disable whatsapp auto backup (at 4am) is there anyway?

also the Playstore is taking a lot of precentage and all the settings are good (no auto update)

any suggestions?
[BetterBatteryStats] Sir_gpm:
0.9%/h is that bad in deep sleep?. This are the highest consumption;

*alarm* (com.android.vending.Google Play Store): 1 h 17 m 2 s Count:2 30.2%

*alarm* (Sistema Android): 1 h 12 m 42 s Count:55 28.5%

*alarm* (Teléfono): 1 h 12 m 11 s Count:123 28.3%

*alarm* (com.whatsapp.WhatsApp): 31 m 57 s Count:2 12.5%

Could I improve this?.
[BetterBatteryStats] timo74:
I've downloaded

BetterBatteryStats_xdaedition_2.1.0.0_B3

but I don't understand how to install it without root.....

there are many folders inside it , but the apk installer ?

thank you in advance
[BetterBatteryStats] buffer overflow:
This app works only with root. :)
[BetterBatteryStats] timo74:
ok

but i can not install without root or functionality has limited without root?

because i've the oldest xda edition 1.15 and work fine without root on Kitkat ( with limited functionality )

now i need a release that work on Lollipop ( without root )

thanks
[BetterBatteryStats] buffer overflow:
[MENTION=5324563]timo74[/MENTION] Check your Private Messeges. :D
[BetterBatteryStats] Roseysdaddy:
Running latest CM 12.1 nightly and latest 2.1 b3 of Better Battery Stats, I install, I give it SU permissions, I open the app, I install as a system app, it says success and I need to reboot, so I do. When I launch the app after a reboot I get a screen saying this is a companion app and serves no function at all. What am I doing wrong?
[BetterBatteryStats] stephanes:
I have exact same problem.
[BetterBatteryStats] buffer overflow:
Install again or see my post in page ago. #28463 :)
[BetterBatteryStats] aitvariux:
Anyone?

---------- Post added at 06:06 PM ---------- Previous post was at 06:04 PM ----------

Anyone?
[BetterBatteryStats] skem:
How can I prevent betterbatterystats from being uninstalled after every cm12.1 nightly update?

Much appreciated. Thanks.
[BetterBatteryStats] Genericxx:
Put it in backup script. It was described some pages back by me. Otherwise put it manually in /system/priv-app. But it won't survive Rom upgrade then
[BetterBatteryStats] fraser.dk:
It's not you, the app is broken in B3 - older builds will install and work as you expected. You can use the workaround a couple pages back or use the working apk instead.
[BetterBatteryStats] shaggyskunk:
Huh - Beta 3 is working just fine - Why would you say that it's broken?

Sent From my SM-N910W8 Running SlimLP 5.1.1 RRO Layers
[BetterBatteryStats] 1365597d:
thanks
[BetterBatteryStats] :
Please tell me I want to purchase but I have 1 limitation I can't purchase it from Google Play Store.

Please give me solution.
[BetterBatteryStats] fraser.dk:
Read the post I quoted. The companion app claims it does nothing. Normally you'd get the BBB app with battery stats and that's the expected behavior that isn't shown in B3, whereas in B2 it worked.
[BetterBatteryStats] aitvariux:
https://drive.google.com/folder/d/0B9deUgT65pOvTmkxRFBEdElFNEU/edit

More than 7 hours log .Rom sotmax ultimate stock v1 with stock kernel and only 20 min of deep sleep.Changed a lot of roms and kernels combinations with full wipe and no luck.Zygote is fine no zombies. Any suggestions?
[BetterBatteryStats] chamonix:
The logcal confirms:

Accessing Alarms in API mode as dumpsys has failed

Now the question is why does "dumpsys alarm" fail?
[BetterBatteryStats] tangcla:
I don't know :) but is there a way of forcing it to access alarms in any mode other than API mode?
[BetterBatteryStats] Nightshadow931:
How do I get rid of this?

It's killing me!

Sent from my GT-I9100
[BetterBatteryStats] chamonix:
No, bbs only uses api mode when dumpsys fails, except if you said otherwise in the settings.

The problem here is: why does dumpsys alarm fail.

A plain 'dumpsys' may help us finding the cause but my gut tells me that this chapter has been removed from your rom for whatever reasons
[BetterBatteryStats] tangcla:
What command should I do to capture the plain dumpsys?
[BetterBatteryStats] chamonix:
You can't
[BetterBatteryStats] buffer overflow:
Install other version of Google Play services.Before to install, read the notes. :)
[BetterBatteryStats] chamonix:
open Terminal, run 'su', run 'dumpsys > /sdcard/dumpsys.txt' and post that file
[BetterBatteryStats] FernBch:
Forgive me if this has been noted, I only skimmed through the last few pages.

I have been having an issue with BBS as of late where it won't install as a system app, nor will the download zip work. I have found a workaround.

I don't know if it is an Android 5.1.1 issue or if it is a CM12.1 issue (I have been running a CM12.1 based ROM). In order to get ANY app to install as a system app I have to use a file manager such as Root Explorer and manually change /system to R/W, and hit home (not exit). Once I do that I can install an app as a system app. It seems like a permission has changed that disallows apps from writing/installing to /system.
[BetterBatteryStats] shaggyskunk:
If you're copying the apk from xda to System Priv-App - Fix Permissions and Reboot - Don't install it while you're in System Priv-App

Sent From my SM-N910W8 Running SlimLP 5.1.1 RRO Layers
[BetterBatteryStats] gabrieln12:
Hello xda !

Does this app help my phone show the right percentage of battery ? Because I own an Vodafone Smart 4 Power and I have alot of battery drain.I tried all roms from all countries I have the same problem on all of them.Please if someone has a solution for this send me a private message.
[BetterBatteryStats] shaggyskunk:
This is what it shows you - And you can select other stats - ie: Kernel wakelock - Partial wakelock etc

Sent From my SM-N910W8 Running SlimLP 5.1.1 RRO Layers
[BetterBatteryStats] tsiftsism:
With last CM12.1 Nightlies (17, 18 and 23/5) i have battery draining caused by MediaServer as i can see in the Battery stats.

This entry is always in the 1st line of all apps causing draining, and one other thing i'm facing is that most of the times that i double tap the screen so to unlock the device i see the Media Player running (it plays randomly one of the audio files included in the rom).

Can you please read the dump file and the logcat attached and tell me if you can find what exactly my problem is, before i clean install another rom?

Ps. I don't have any any .mp3s in my device, i don't listen music with it. I only have an edited mp3 since forever as a ringtone.

Thanks in advance for your answers.
[BetterBatteryStats] gabrieln12:
So it does not show me the exact level of battery.It just shows some info on kernel/partial waterlock etc right ?
[BetterBatteryStats] shaggyskunk:
I use Battery Widget Reborn from the store

Sent From my SM-N910W8 Running SlimLP 5.1.1 RRO Layers
[BetterBatteryStats] OfficerJimLahey:
Edited to say, great app! Will definitely purchase when I have the Google Play cash again (down to pennies ATM).

So...Ran for almost 5 hours, as I had a nasty wakelock (or two) for CarbonROM 4.4.4. I followed a guide for the former, to no avail. No idea how to deal with the latter, maybe (hopefully) it is related to the former.

======================================================
Wakelocks (requires root / system app on Android 4.4+)
======================================================
SystemUpdateService (Google Play services): 4 h 39 m 38 s Count:1 99.5%
...
================
Kernel Wakelocks
================
"PowerManagerService.WakeLocks" (): 4 h 36 m 36 s Cnt:(c/wc/ec)0/0/0 98.4%

Here are my outputs (also attached)....

BetterBatteryStats:

http://pastebin.com/F9GGTNWG

Logcat:

http://pastebin.com/SsD4Q4eP

Any ideas? Many thanks!
[BetterBatteryStats] tangcla:
I've done that and it's given me a blank 0-byte file...

I notice that this happens on my Samsung Galaxy Tab S 8.4 as well, on Lollipop - never had a problem on Kitkat. Both are running stock rooted ROMs.

shell@trlte:/ $ su
su
root@trlte:/ # dumpsys > /sdcard/dumpsys.txt
dumpsys > /sdcard/dumpsys.txt
[BetterBatteryStats] W&Man:
Thanks for answer.

Here is my dumpfile and logcat.

View attachment logcat-2015-05-25_081642394.txt

View attachment BetterBatteryStats-2015-05-25_081642333.txt

And here what i see when tap on any app in "Alarms"

View attachment 3330409

Enabling the "Alarms using api" nothing changes.
[BetterBatteryStats] chamonix:
RC4 is up
[BetterBatteryStats] colinmcg71:
New app icon Looks great! =)
[BetterBatteryStats] chamonix:
what does 'dumpsys' say?
[BetterBatteryStats] Lownita:
I tried to install the play store version on chroma ROM, but despite saying the install as system app worked, it doesn't seem so. How can I check?

I tried with latest rc from this thread but it's pretty much the same, after reboot I get this when opening BBS:

Of course the app has root permission.
[BetterBatteryStats] FernBch:
I have the same issue. It seems that something has changed in Android 5.1.x and I cannot install any app as a system app.
[BetterBatteryStats] chamonix:
Have you tried what the dialog suggest (just before the first button)?
[BetterBatteryStats] mdamaged:
5.1.1 stock rom (as well as some custom), does not leave much room in the system partition, maybe that's it.
[BetterBatteryStats] amjath:
Guys, need help for optimising my wakelock. Please help

http://pastebin.com/nwAwAh7T
[BetterBatteryStats] mdamaged:
You need to paste from an editor which does not remove the newlines.
[BetterBatteryStats] FernBch:
Yes. What did work was to use Root Explorer, go to /system, mount as R/W, hit home (not exit), then install as system app. Upon reboot selecting the icon would open to the "companion app". I would then install it again and now it works as intended and is installed as a system app.

System has 1.93GB free space as reported by TiBu. My device is the SCH-I545 and I saw this issue appear a couple weeks back on CM12.1 after flashing a nightly around May 1st. It seems to affect any third party app that needs to write to /system. Another example is Avast Mobile Security. Since then I cannot write to /system to apply hard reset protection for the app. I could be saying it wrong but it's like permissions related to /system have changed and third party apps are being blocked from writing to it.
[BetterBatteryStats] mdamaged:
That is not system that is your whole sdcard, open a terminal and do a df and see what /system has free. But obviously if you did it and it fit, the space was not an issue, so it's academic.
[BetterBatteryStats] FernBch:
System reports 1.8GB free.

For what it is worth. For the most part nothing has changed. Same number of apps, same apps, etc. The only change is a newer CM nightly. That was when the issue showed. A month ago I could clean flash a nightly, install BBS (or any other third party app), and have it install as a system app, write hard reset data to system, etc. After flashing CM around 5/1 or so I can no longer do this without using the posted workaround. I have even gone as far as clean flashing something from April trying to get to the bottom of this. Funny part is a ROM from 6-7 weeks ago doesn't have this issue.

So you tell me.
[BetterBatteryStats] mdamaged:
Could you paste the image of the output of df? That's a lot of space just to be on /system, esp on lollipop.
[BetterBatteryStats] BigLisy:
After reinstalling it, it's working, but it still asks to install as system app. Am I supposed to do it again?
[BetterBatteryStats] FernBch:
As you can see, /system details are:

Size 2.7G, Used 901.5M, Free 1.8G, Block Size 4097.

I am not a developer and by no means claim to be one. I am also by far no stranger/dummy/whatever to this stuff, either. Started Hacking/modding/whatever Android devices since the days of the Moto DX/CM7........
[BetterBatteryStats] mdamaged:
I just never seen that much room on /system before, seems a waste, thanks for the screenshot.