yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Perseus:
When you hit refresh on Partial Wakelock screen, are there any Toast Notifications ?

In that case, remove BBs and then wipe Dalvik+Cache and then re-install.
[BetterBatteryStats] WettbackMartyr:
I updated to 4.4.4 the day it came out and BBS was Still working (v1.15). Since Google Play services updated yesterday evening is when I've been having the problem since.
[BetterBatteryStats] mlkjuggalo:
Must be something to do with play services causing issues I guess as I updated mine last night . Also it shows unplugged even while on charger.
[BetterBatteryStats] WettbackMartyr:
That's what I think is going on also. No version of BBS is working now for me on 4.4.4 with Google Play services 5.0.
[BetterBatteryStats] chamonix:
BBS does not depend on google play services so it's hard to imagine what happened there. Was the system app installed properly (ie bbs has the required perms)? a logcat would help a lot and avoid us speculating.

I will try to install gplay services myself to double check
[BetterBatteryStats] chamonix:
Alarms come from dumpsys and the rest from the app so missing alarms with the rest working points to a parser error. a logcat with debug options and a dumpsys alarm output as a file would help understand the cause
[BetterBatteryStats] sofia-captivate:
Heres my battery stats can someone check it please whyi get only 2h30 mins screentime only on s5 [MENTION=3639717]Perseus71[/MENTION]
[BetterBatteryStats] WettbackMartyr:
I don't get it either... But here is a main logcat, don't know if it'll tell you anything important but we'll see. http://pastebin.com/VM64NAVq
[BetterBatteryStats] Perseus:
Do you really need Samsung Push Service ? If not then freeze it please. Its not going to break any of your core functionality. Please Stop Gmail from Auto Sync. You can manually refresh from inside the Gmail app by dragging a finger from top to down.

Do you have a setting under wireless advanced settings to Keep it on during sleep ? If yes, set that to Never.

Since you have root, please apply [MENTION=4355376]Karpfenhai[/MENTION]'s Mod essentially it needs System Tuner App. Within the app, you go to Startups > Google Play Services. you'd need to click on the bottom Toggle to make it System Apps instead of User apps. Long Press on Google Play Service > Open > Details > Recivers. After that you basically uncheck all the entries that have the word CHECKIN or GCM. in its name. Reboot after you are done.
[BetterBatteryStats] It_ler:
5% battery loss in about 5 hours is not bad ... with wifi on and running all the time.

You can try with wifi turned off.

Here are your main partial wakelocks:

Instagram

XDA Free

Gmail

Uninstall/disable what you don't need all the time.

And disable Samsung Push. It produces a lot of Alarms on your phone.
[BetterBatteryStats] sofia-captivate:
How do i freeze the push service?
[BetterBatteryStats] Perseus:
Titanium Backup Root app
[BetterBatteryStats] It_ler:
Use Titanium Backup Pro app or just go to Settings > Application manager > All > Samsung Push > and click on Disable (or Turn off).
[BetterBatteryStats] BTT8:
I'm also having issues with no data showing up. Granted root access and installed as system app, yet nothing.
[BetterBatteryStats] BTT8:
Aw darn, then it didn't happen.

I tried but immediately get a FC :confused:
[BetterBatteryStats] sarveshvaity:
Yes, BBS is installed as System App, Root Features turned on and Root Access Granted as well... BBS broke for me after the Google Search Update Last night.
[BetterBatteryStats] WettbackMartyr:
Cannot save or share logcat from BBS. Force close when tapping save or share to
[BetterBatteryStats] chamonix:
That log is useless: it contains about 15 seconds of log, starting from boot.
[BetterBatteryStats] chamonix:
Then post of logcat of that error condition as well. If you don't know how to take a logcat I really can't help you
[BetterBatteryStats] WettbackMartyr:
I understand that. See my post right above yours. I can't pull a log from within the app itself. It is force closing on me.
[BetterBatteryStats] retired_mnbooze:
I agree about FCs while saving logcat from bbs. It began happening to me after updating to play services v5.0. It also persists after reverting to play services v4.4.52.

However, I grabbed a logcat via adb: https://dl.dropboxusercontent.com/u/1925566/logcat.txt

It did happen!!!

UPDATE: additional logcat of FC on save: https://dl.dropboxusercontent.com/u/1925566/logcat_fc.txt
[BetterBatteryStats] chamonix:
On reporting bugs

Post #1 contains details on the info needed if you want to help by reporting a bug. If you don't understand it refrain from posting incomplete information, someone else will reproduce and report. Reports lacking the relevant information will be ignored.
[BetterBatteryStats] u81:
BBS apk is only in /system/app and NOT in /data/app-priv

[MENTION=3639717]Perseus71[/MENTION]

Please excuse me for causing the confusion. My post should've read that " The BBS apk is only in /system/app and

NOT

in /data/app-priv as originally attempted/ recommended"

I will wipe the dalvik and cache right away.

I did indeed play music for 16 minutes as well.

I'll try to get another set of logs for tomorrow.

Thanks for your prompt responses.
[BetterBatteryStats] chamonix:
That logcat shows BBS retrieving data and I can't see any FC. What behavior am I looking at (timings would help as well)
[BetterBatteryStats] retired_mnbooze:
In logcat_fc.txt around line 2878:

06-26 14:21:55.056 D/AndroidRuntime( 5433): Shutting down VM

06-26 14:21:55.056 W/dalvikvm( 5433): threadid=1: thread exiting with uncaught exception (group=0x415e9ce0)

06-26 14:21:55.056 E/AndroidRuntime( 5433): FATAL EXCEPTION: main

06-26 14:21:55.056 E/AndroidRuntime( 5433): Process: com.asksven.betterbatterystats_xdaedition, PID: 5433

06-26 14:21:55.056 E/AndroidRuntime( 5433): java.lang.NullPointerException

06-26 14:21:55.056 E/AndroidRuntime( 5433): at com.asksven.betterbatterystats.data.Reading.<init>(Reading.java:121)

06-26 14:21:55.056 E/AndroidRuntime( 5433): at com.asksven.betterbatterystats.StatsActivity$4.onClick(StatsActivity.java:1173)

06-26 14:21:55.056 E/AndroidRuntime( 5433): at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:166)

06-26 14:21:55.056 E/AndroidRuntime( 5433): at android.os.Handler.dispatchMessage(Handler.java:102)

06-26 14:21:55.056 E/AndroidRuntime( 5433): at android.os.Looper.loop(Looper.java:136)

06-26 14:21:55.056 E/AndroidRuntime( 5433): at android.app.ActivityThread.main(ActivityThread.java:5137)

06-26 14:21:55.056 E/AndroidRuntime( 5433): at java.lang.reflect.Method.invokeNative(Native Method)

06-26 14:21:55.056 E/AndroidRuntime( 5433): at java.lang.reflect.Method.invoke(Method.java:515)

06-26 14:21:55.056 E/AndroidRuntime( 5433): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)

06-26 14:21:55.056 E/AndroidRuntime( 5433): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:611)

06-26 14:21:55.056 E/AndroidRuntime( 5433): at dalvik.system.NativeStart.main(Native Method)

06-26 14:21:55.056 W/ActivityManager( 626): Force finishing activity com.asksven.betterbatterystats_xdaedition/com.asksven.betterbatterystats.StatsActivity

06-26 14:21:55.746 W/ActivityManager( 626): Activity pause timeout for ActivityRecord{421dd1c0 u0 com.asksven.betterbatterystats_xdaedition/com.asksven.betterbatterystats.StatsActivity t3 f}

Oh, this is BBS v1.16.0.0 RC1 (installed in system with both approvals and root...)
[BetterBatteryStats] atif4ever:
com.google.android.gms....

What is this alarm.?

Why it wakes up my device all the time. It wakes almost 8000 times in a day.
[BetterBatteryStats] chamonix:
See THIS is the dream of ervery dev: a detailed bug report with all the data. Thanks mate!

#468
[BetterBatteryStats] carlese:
Guys does this work on a nexus 5 4.4.4? I installed it, tried to reboot but it doesn't show my battery consumption.. Unistalling and reinstalling doesn't work..
[BetterBatteryStats] chamonix:
yes, running on my test device, installed as system app of course
[BetterBatteryStats] Perseus:
[MENTION=5755676]u81[/MENTION] had originally posted two reports in #24057 Kindly take a look at those 2 zips please. They do have logcat.
[BetterBatteryStats] mdamaged:
Just in case anyone is curious, I tried BBS with Android L and not surprisingly, it does not work. I figured it wouldn't, I was just curious to as how it would fail, and now maybe I saved someone some time. It installs fine, or rather seems to, but no stats are gathered.
[BetterBatteryStats] u81:
[MENTION=3639717]Perseus71[/MENTION] and [MENTION=1330150]chamonix[/MENTION]

As per Perseus 'suggestion to wipe dalvik and cache, i did that and charged the phone fully and left it idle all night with wifi n sync off. the drain was only half a percent per hour. Then before i tried to get the logs i went into the alarm screen and there weren't any alarms showing nor any network stats and the network Still gave me the error "an unknown error occurred while trying to retrieve the stats".

I also noticed that deleted wakelocks again under kernel wake locks or partial wakelock,i do not exactly remember.

I verified that the root features were enabled, app had root permissions and was installed as a system app in /system/app . The bbs stats and dump were granted as well.

In any case just to check the other way around i uninstalled the app, rebooted the phone, put the app manually in /data/app-priv and rebooted the phone again. And sure enough the original situations returned whereby BBS STATS were granted and dump was not granted.

and i have reverted back to having the app in /system/app.

I tested that the alarms and network starts are absolutely fine on my wife's phone which is a Galaxy Note n7000 running slimroms version 4.4.2 build 4 stable.

Also for some reason i think i have actually seen the alarm and network work fine on my phone as well in the past, just can't get it to show up now for some reason.

I tried contacting the developer of the ROM but support for that Is really non existent. as i've said before that I also have issues updating the su binary.

So this might not be related to the app at all and in that case kindly excuse me for having wasted your valuable time, but if you think i can provide any more information that might help you troubleshoot this kindly let me know and i shall do the same

Many thanks for this great app and your tireless efforts.

Just 1 thing that i changed in the configuration is that i added alarms n network starts to the dump file selections

i do not know if that is the correct thing to do or not and if not please advise me and i will take that out
[BetterBatteryStats] Karpfenhai:
Hey there, I've followed the ongoing discussion about bbs not working on 4.4.4 and have to say there is no issue for me, I made a jump from play service 4.4.52 directly to 5.0.77 and the issue don't appear, so I recommend to update your play service and try again, regards.
[BetterBatteryStats] animefans:
On the other hand, I am on play service 5.0.77, and my BBS stat is not reporting, and can't save dump, and I am on BBS 1.16.0.0_B3

Maybe I will try the RC1 build...

EDIT: RC1 still not working (not showing stat, and save dump crashes) uploaded logcat when trying to save dump, and a screenshot showing system app is installed and no problem. BTW, I did the logcat after a reboot
[BetterBatteryStats] Karpfenhai:
Damned, so it must be something else then and probably not related to play services as assumed by Sven already...
[BetterBatteryStats] gaich:
Working fine with the ROM in signature (manually placed to priv-apps). GP services 4.4.52

Google search 3.4.16
[BetterBatteryStats] dead0:
It seems bbs does not work if u have Google search/now v3.5 installed. Unsure why search breaks it. I would have thought play services 5 would have caused problems
[BetterBatteryStats] carlese:
So this might be the problem.. Let's hope for a fix!
[BetterBatteryStats] jhuff83:
Could someone please take a look at this log. I flashed the new MOAR rom and have never seen the two wakelocks at the top before. Some people are saying modem related of the smd wakelock.
[BetterBatteryStats] Karpfenhai:
Can you try to freeze / Uninstall google search then`??

You might be right, its not installed on my system ;)

Funny coincidence...
[BetterBatteryStats] j1gga84:
My question again.

What about that nfinity %?

Regards

Sent from my GT-I9100 using german Tapatalk 4
[BetterBatteryStats] Perseus:
Please turn off Gmail Sync and refresh it manually from within the app. Follow the mod by [MENTION=4355376]Karpfenhai[/MENTION]. I have detailed the steps on last page.Change Kernel if possible.

I don't have Google Search either. I am on 4.4.4 and Google Play Service v 4.4.52 No problem here.

Are you able to see Alarms and Partial Wakelocks fine ?
[BetterBatteryStats] chamonix:
again and until proven wrong: BBS does not depend on any Google services and runs on a non Google Android phone. That does not mean that I pretend you have no problem but that I need data.
[BetterBatteryStats] carlese:
Tell me what you need.. I am on cl3kener purity 4.4.4,using code blue kernel 179 beta.. Tried unistalling and reinstalling bbs as system app but no luck.. Google search 3.5 and latest only services installed..
[BetterBatteryStats] dead0:
strangely I reverted google search back to 3.4 and BBS shows the stats as normal. im still running v1.15. its only when running 3.5, the stats are empty as it cant create a reference or it creates it but the google now launcher prevents it from displaying. if switching to say nova, then BBS shows the stats

ps im running c-rom 7.1 aosp 4.4.4 with code blue 1.76
[BetterBatteryStats] chamonix:
RC2 will fix the FC but in the meantime it would be great if you could collect a logcat by other means showing the 'no stats' situation as well as provide a corresponding dumpfile
[BetterBatteryStats] dead0:
would you mind installing search 3.5 to test my theory? but make sure u have another launcher installed to fall back on ;)

im also running play services 5 with search 3.4 and BBS is working fine
[BetterBatteryStats] an0n981:
This is very true, I use it on an android phone wothout gapps
[BetterBatteryStats] sahilkhurana:
Strange Issue

In my phone (LG Optimus G Pro), on CM based ROMs, I am experiencing huge battery drain and wakelocks. Even with the phone in Airplane mode, the drain continues (Phone is 100% awake, Deep Sleep state is never used)

Under "Partial Wakelocks", the total time just keeps on increasing, although it can't be attributed to any app (for which the time should increase). Time for all apps listed under Partial wakelocks is constant while overall time keeps on increasing and I am not able to debug the reason for the same.

Can anyone please suggest how this can be debugged further ?
[BetterBatteryStats] chamonix:
I suggest you check kernel wakelocks first. One reason for 100% Awake time could be a permanently held kernel wakelocks. If it not the case then provide a dumpfile together with a dmesg. In many cases permanent awake can not be attributes to a kernel wakelock there are hardware/driver problems involved that are often logged there
[BetterBatteryStats] chamonix:
A logcat would be better than any testing: we are looking for the cause and not the symptoms
[BetterBatteryStats] Perseus:
No I won't.

^^^^^^ That's why.
[BetterBatteryStats] u81:
Reinstalling ROM didn't make any difference. I never got a force closure either.

[MENTION=1330150]chamonix[/MENTION] - Many thanks for your kind response. I've never gotten a force closure for BBS. The only issue I see is that I don't see any information under Alarms screen or the network screen.

I will try and get logs from the app. I also tried logthis but that didn't work- as in the logs were only for a very short while and not complete. I've already enabled debugging. And while I hadn't said so specifically- I'm using RC1 currently.

I also wanted to let you know that I went ahead and formatted dalvik, cache, data and system and reinstalled the ROM, but I still can't update the SU on my ROM- just in case that is the issue- for which BBS is not responsible in any way.

I then reconfigured the whole phone and manually placed the RC1 apk in /system/app . Enabled Debug info to log + root features + granted SU permissions + BBS_STATS granted + DUMP granted.

Still no info under alarms screen and network screen- "unknown error occured while retrieving stats".

Will report back soon. Thanks
[BetterBatteryStats] carlese:
Can you point out how to create a dump file? I enabled debug and everything under dumpfile but what now?

Edit: bbs rc1 crashed when trying to share or save a log file..
[BetterBatteryStats] dead0:
unfortunately everytime when I try to get a logcat or dump file from BBS, the app crashes.

ive attached a log using catlog
[BetterBatteryStats] sarveshvaity:
I have the same issue going. BBS 1.16RC1 FC every time I create the dump or logcat on my rooted Nexus 5. Going back to the play store version 1.15 does not help either. If you could tell a workaround for the dump file and/or logcat, I can do it. As others have said, this started with the latest Google search update.
[BetterBatteryStats] Karpfenhai:
Plus I recommend to do the following within a terminal emulator or adb:

Su

Ps |grep z

This will show you possible zombie process which are causing the awake,

Processes named zygote are normal, the z for process state is the one to worry about.

I recommend a brief filesystem check of your storages.

Regards
[BetterBatteryStats] pikachukaki:
Too bad it didn't work on Android L.... I wanna check what is the miscellaneous drain...
[BetterBatteryStats] chamonix:
the L release is for developers. Feel free to fork the source and provide a pull request
[BetterBatteryStats] pikachukaki:
I love the irony in those posts... I just said it didn't work... I didn't demand it to work...
[BetterBatteryStats] chamonix:
on a side note there are new diag tools that may come handy until bbs runs on L and presents all that data in a more comprehensive and condensed way: http://developer.android.com/preview/api-overview.html#Power
[BetterBatteryStats] godlesplay:
something is wrong, stats doesn't reset after plug/unplug/reboot I tried clean cache of app too
[BetterBatteryStats] anuradha96:
Hey um having a wavelock named RILJ...what causes this ? Thank you
[BetterBatteryStats] retired_mnbooze:
After following along with the thread. I reverted my Google Search app to v3.4. BBS 1.16 rc1 is good again... Just another piece of the puzzle!
[BetterBatteryStats] chamonix:
could you plug / unplug and take a logcat after that. I'd like to see what prevents the references to get saved. A dumpfile would be great too so that we can check the timestamps
[BetterBatteryStats] godlesplay:
[MENTION=1330150]chamonix[/MENTION] ok I will do it tommorow when my battery will die ;d
[BetterBatteryStats] sahilkhurana:
Thanks a lot for the inputs. I was suspecting Modem issue as phone was dead hot and won't go to sleep mode at all. Tried to install other modems and ran into bootloops. No I am back up and running again but I am not sure if the modem install was successful (No errors in CWM though).

Will monitor the situation based on the inputs provided.
[BetterBatteryStats] j1gga84:
I am able to see everything fine but only if last setting is set to 'current', if I set it to 'boot' as you can see in attached screenshot I get these faulty view :confused:

Regards
[BetterBatteryStats] sahilkhurana:
By the way, this is the output of mount command for filesystem check.

rootfs / rootfs ro,seclabel,relatime 0 0

tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0

devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0

none /dev/cpuctl cgroup rw,relatime,cpu 0 0

proc /proc proc rw,relatime 0 0

sysfs /sys sysfs rw,seclabel,relatime 0 0

selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0

debugfs /sys/kernel/debug debugfs rw,relatime 0 0

none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0

none /acct cgroup rw,relatime,cpuacct 0 0

tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0

tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0

tmpfs /mnt/fuse tmpfs rw,seclabel,relatime,mode=775,gid=1000 0 0

/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,nosuid,nodev,relatime,data=ordered 0 0

/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,seclabel,nosuid,nodev,noatime,data=ordered 0 0

/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,resuid=1000,data=ordered 0 0

/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 rw,seclabel,nosuid,nodev,relatime,nodelalloc,data=ordered 0 0

/dev/block/platform/msm_sdcc.1/by-name/modem /firmware vfat ro,relatime,uid=1000,gid=1000,fmask=0337,dmask=0227,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0

/dev/block/platform/msm_sdcc.1/by-name/sns /sns ext4 rw,seclabel,nosuid,nodev,relatime,data=ordered 0 0

/dev/block/platform/msm_sdcc.1/by-name/factory /factory ext4 rw,seclabel,nosuid,nodev,relatime,nodelalloc,data=ordered 0 0

/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

tmpfs /storage/emulated tmpfs rw,seclabel,nosuid,nodev,relatime,mode=751,gid=1028 0 0

/dev/block/vold/179:33 /mnt/media_rw/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

/dev/fuse /storage/sdcard1 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

/dev/fuse /storage/emulated/0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

/dev/fuse /storage/emulated/legacy fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
[BetterBatteryStats] animefans:
One way I can think of that'll show the 'no stats' situation is to run the app, and wait for the app to show 'no stat', then take a screenshot

With the logcat showing the app starting, and the screenshot as "proof", that'll demonstrate the 'no stat' issue?

Obviously, the corresponding dumpfile can't produce until RC2 is out

Will this work?
[BetterBatteryStats] Perseus:
Wipe Data to BBS and its Cache. Reboot then hit App Refresh within the app.
[BetterBatteryStats] dead0:
u should be able to keep search 3.5 and have BBS working but you'll have to use a different launcher instead of google now
[BetterBatteryStats] Karpfenhai:
Don't worry about the fs check yet, first figure the mess of awake, phone running hot points to cpu at full speed, silly question you're not running the device on performance governor, don't you?

The /dev/block/vold/xxx:xx

Is your sd, seems the internal storage doesn't have a classic mount point it's hard to check but there's a trick, maybe I'll explain later.

Does the behavior start right after a reboot?

More details please.
[BetterBatteryStats] sahilkhurana:
I saw couple of wakelocks due to mmc. Anyways, have formatted the internal memory to see if it helps. The behavior starts after a reboot and CPU doesn't go into Deep Sleep mode at all. Only going till 384 Mhz state. Governor is ondemand. It is a LG Optimus G Pro running Cyanogenmod Snapshot M7.
[BetterBatteryStats] chamonix:
it is not about proving anything, it's about having the info about what goes wrong. This data will be in the logcat and there are tons of ways to get that information without using BBS to save the logcat.
[BetterBatteryStats] chamonix:
Once again: there are no dependencies between BBS and any other component like a launcher or search. A logcat or it didn't happen
[BetterBatteryStats] chamonix:
Ok here's what I can see:

- you have root but you have not installed BBS as a system app. Therefore the stats are retrieved by parsing dumpsys. I would not recommend using that way as parsing is error prone.

- BBS is retrieving the stats perfectly fine but for some reason the "from" and "to" stats are null so if you are not seing any data this is the reason.

I'd strongly recommend installing BBS as a system app.