yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] PackElend:
Option was and is set. What else can I do?
[BetterBatteryStats] cswithxda:
I suspect the same. I'm having "no stats" on Alarms for both my 6P and Pixel XL. I recall that this all started when I switched from SuperSU to Magisk. Too bad it's the Alarm that's missing for me because it's my most used item to track down rogue apps on my phone =(
[BetterBatteryStats] PackElend:
me too :D, may [MENTION=1330150]chamonix[/MENTION] (BBS Creator & OP), or [MENTION=7408621]noc.jfcbs[/MENTION] share our knowledge with us. I've asked this question on endless places but nobody seems to able or willing to answer that.

Do you have a proper viewer what can filter the entries or do we have to live with plain text view

I installed only

ages but is still quiet active. Have to battery optimize it again.

Network Issues: Example, 'qpnp_fg_memaccess' has gone bezerk in Kernel Wakelocks on someones' device overnight and shows a stat like:

20'000? I can't follow you

I haven't set up all permission for an app as I installed them now it becomes a bit messy. I searching for an app what sets all permission (in privacy guard) for all user installed apps on deny. I will set permission for app when I use them and only those who are really necessary.
[BetterBatteryStats] fossils-n-dents:
I have no idea, thet's definitely a question reserved for chamonix. This seems to be a new issue for many.

The bond between developers and thier intellectual property runs deep. Don't expect an outpouring of info on how things work.

I'm living with plain text, as I view logs at work, or wherever I am.

In the dump file (Kernel Wakelock Section) you may see... Cnt: (c/wc/ec)= Count/ Wake Count/ Error Count. An irrationally high 'Count' sometimes is an indicator of a problem.

Ah, I understand. I don't know of such an app. I've always had a habit of dealing with an apps permission(s) as soon as I download it.
[BetterBatteryStats] vasujahagirdar:
Hi, hope this time, I got idle dump correct one!!

From 12.40 am to 7am ,,screen off, not touched device.

Attached files below.
[BetterBatteryStats] githyanki:
That dump is good.

. 5%/hr is pretty good, I'm sure the experts will have more feedback for you.

What is truecaller? It was a major source of wakeups.
[BetterBatteryStats] vasujahagirdar:
Thanks for feedback.

True caller app is used for identifying unknown calls. Yep I also noticed it is giving more wake ups !!
[BetterBatteryStats] fossils-n-dents:
Well done vasujahagirdar! Let's get started...

First...get rid of TrueCaller. Settings> Apps> TrueCaller> Force Stop> Clear Data> Delete TrueCaller.

Turn off Bluetooth.

Follow the instructions in this link...

https://xdaforums.com/showpost.php?p=73693320&postcount=32709

1. Download Greenify From Play Store. Use default settings.

2. Download ForceDoze from Play Store (Free). Use it's settings: 'DisableMotion Sensing For Doze'/ 'Ignore Lockscreen Timeout'/ 'Doze Delay' = 0.

3. Reboot to recovery, wipe Davlik/ Art cache, and Cache (Do this 5 times for each)...Reboot.

4. Create another idle run, and post your findings on this thread.

Your device already runs well, let's see can we get it to calm down a little more.
[BetterBatteryStats] katolink:
Hello everyone!

I have been reading for some time the posts in this thread trying to learn as much as I can from the in-depth knowledge shared by [MENTION=1330150]chamonix[/MENTION] [MENTION=4138220]fossils-n-dents[/MENTION] [MENTION=7408621]noc.jfcbs[/MENTION] [MENTION=5488402]Davey126[/MENTION] and other talented contributors and I can only begin my first post in this thread by expressing my most gracious thanks and deepest appreciation to all your incredible long-term insights and contributions. :good: It is guys like you who make xda such a valuable forum! :o

After many hours of quiet reading and patient endeavoring to take your precious advice on board, I shyly dare to ask your kind review of my dump file created on my rooted Galaxy S6 edge over the night. :D I have (hopefully) observed the requirements of making a proper BBS dump and I have also strived to implement most of the recommendations in the latest posts I considered relevant for my situation. However, needless to say, I am looking forward to a 'tailored' analysis and advice based on your findings.

Please let me know if you need further info from me or if I did something wrong - always open to learn and test new things!

Many thanks in advance!
[BetterBatteryStats] vasujahagirdar:
Thank u for detailed guide!! Let me try & report back!!! :good:
[BetterBatteryStats] patrickdrd:
I'm having huge problem to show the kernel wakelocks,

I'm not able to see them neither from wakelock detector nor from BBS,

the latter says the classic "no data have been collected yet",

while on the former I click on "install as system app" and the app crashes!

I'm on cm11, I even replaced superuser with supersu and the problem still remains,

same results, any help please?

p.s. I don't want to do factory settings and wipe my phone,

setup is rather complex and huge,

I would prefer some help on the problem
[BetterBatteryStats] katolink:
Have you tried the 'Kernel wakelocks using API' from /settings/advanced?
[BetterBatteryStats] patrickdrd:
yes, tried that too, same result,

all other options are working fine (sensors, partial, summary, everything),

only kernel wakelocks don't work!

---------- Post added at 14:01 ---------- Previous post was at 13:18 ----------

the strange/funny thing is that I've got another phone, that one is stock kitkat rooted with superuser,

in that one kernel wakelocks are shown in wakelock detector but still not in BetterBatteryStats,

so does this app work anyway or should I uninstall it (because it doesn't work for me in 2 phones! amazing!)

---------- Post added at 14:01 ---------- Previous post was at 14:01 ----------
[BetterBatteryStats] fossils-n-dents:
Hello katolink, all is fine with your dump! Let's begin...

'RILJ0' In your 'Wakelocks' section: turning off the 'Background Location Reporting' removes the RILJ wakelock and stops the battery drain. RILJ is responsible for providing approximate location (using cell tower identification). It maintains a wakelock to do so.

Go to Settings> Location> Google Location Settings>Tap Location Reporting and Location History, and switch the slider to off for each one.

One side effect of this change could be that Google/ Google Now might not be able to show location triggered cards. Better battery life, or extra features is your choice in this matter.

Disable Bluetooth/ Location when not in use. You have sync turned on, the trade off is features over battery life when using cloud services. You could have your cloud services 'Sync On Wi-Fi Only', or check thier individual settings to lower update frequency.

*Go to Google Play Store app, select Settings> Do Not Update Apps Automatically', you can update them manually.

Check all installed apps settings for features that lower update/ messaging frequency (One Telegram for instance).

Any app you don't truly need...delete it. Force Stop> Clear Cache> Delete the uneccesary app(s). This is the best way to increase overall system performance. Keep a clean house.

Follow the instructions in this link to get 'com.google.android.gms' alarms under control.

https://xdaforums.com/showpost.php?p=73693320&postcount=32709

*Always create a backup before disabling services.

Download ForceDoze from Play Store (Free). Use it's settings: 'DisableMotion Sensing For Doze'/ 'Ignore Lockscreen Timeout'/ 'Doze Delay' = 0.

Reboot to recovery, wipe Davlik/ Art cache, and Cache (Do this 5-6 times for each)...Reboot.

Create another idle log, post it to this thread, let's see what we have to tackle next.

Your device is operating wonderfully with what apps you have installed, and features enabled. Our goal is to aim for 0. 5% /h drain if possible.
[BetterBatteryStats] dejanxxxx:
My device not rooted I do how write and now I dont know did is good or not?

And when I wanted sleep google chrome, eject not found, chrome installed on internal memory.

I have Marsmallow 6.0 - LG K8 LTE 350n.

Did is good for Better Battery Stats? and what do now and how sleep some aplication ?
[BetterBatteryStats] mrjuniork:
Can u pls elaborate on this? There are tons of settings and I can't find the proper settings fitting your description.

That'd be great. Thanks in advance :)
[BetterBatteryStats] fossils-n-dents:
Make sure you have downloaded ForceDoze by Suyash Srijan (This app has no processes that 'Call Home')

1. Turn Off while Charging

2. Ignore Lockscreen Timeout

3. Disable Wi-Fi During Doze (Optional)

4. Disable Motion sensing For Doze

5. Doze Delay = 0
[BetterBatteryStats] rjm831:
I've same problem with rooted jellybean 4.2.2. Wakelocks show w/the other app but not BBS, regardless of BBS settings. I assume we have to go thru the whole ADB process (which I can't since I've no access to a computer). But you'll find all the instructions on how to do it at the starting posts in this thread. Good luck!
[BetterBatteryStats] patrickdrd:
it finally worked on my other phone (the one with stock Rom) at least, another question please, easier I think: what are considered good percentages for awake, kwl & pwl (I'm talking about the widget for example)?
[BetterBatteryStats] dejanxxxx:
Finally figure for dump file . The topic must be read......
[BetterBatteryStats] patrickdrd:
thanks, I tried both:

adb -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.BATTERY_STATS

and:

pm grant com.asksven.betterbatterystats android.permission.DUMP

(discussed here:

https://xdaforums.com/apps/betterbatterystats/alternative-to-installing-battery-stats-t3189333)

and in both cases I got error:

Operation not allowed: java.lang.SecurityException: Permission android.permission.BATTERY_STATS is not a changeable permission type

I even tried to install xposed and follow this suggestion:

http://repo.xposed.info/module/com.gsamlabs.xposed.mods.enablebatterystatspermission

but again no luck, installer says it's not compatible with my device :mad:
[BetterBatteryStats] chamonix:
Some vendors / kernel dev think it's a good idea to remove kernel wakelocks from the Unix file system or to use a borked format (eg LG does). Do you see /proc/wakelocks or /sys/kernel/debug/wakeup_sources. If no your kernel does comply to the Linux standards and you should switch. If the file is there and non empty please send it to me (as an attachment in order to keep all formating) and I will see if I can tweak the parser.

Even if I am blind I believe you are in the unlucky first case as obviously android can not read/parse the file either (no api KWL would be the result)
[BetterBatteryStats] gvelev:
can someone take a look at my dump file results? thanks in advance!
[BetterBatteryStats] katolink:
Many thanks again for your review, very helpful. I did all that (the GPS part had been already implemented before the first dump file) but, surprisingly the things got worse - please see attached dump file. Drain increased to 1.6% h, don't know why... :confused:
[BetterBatteryStats] rajkatiyar07:
I have done few changes according to your post. Please look into dump again.
[BetterBatteryStats] dejanxxxx:
Here my dump file, non rooted device.
[BetterBatteryStats] patrickdrd:
my 2 cents:

1) I found out that firebaseinstanceidreciever is used when an app wants to send you notifications,

so I enabled it globally

2) you can also include adactivity in activity and

3) firebase, appmeasurement in contentprovider
[BetterBatteryStats] fossils-n-dents:
Your dump file is quite curious as it does not give many clues to your issue leading to a rogue app.

Have you tried running in Safe Mode to see if the problem persists?

I would try 'Turn off Wi-Fi While Sleeping' or trying a static IP with your router. A few issues pont to your wireless modem in your 'Kernel Wakelocks' section. Wiithout over-analyzing, I would try these tactics first.

Sorry for the lateness, and your new issues. Let's start with using the backup you created before taking my advice (You did create a backup, correct?), and simply starting with the link I provided.

https://xdaforums.com/showpost.php?p=73693320&postcount=32709

Don't forget to reboot to recovery clear Davlik/ Cache...reboot.

*'PackageMeasurementReceiver' In Google Play Services 'Broadcast' section will have to be reset on every reboot.

*'PackageMeasurementService' In Google Play Services 'Services' section will have to be reset on every reboot.

We shall proceed slowly this time Again, my apologies.

In MyAndroidToolsPro, you must re-select these two selections on every reboot. Sorry for not informing.

*'PackageMeasurementReceiver' In Google Play Services 'Broadcast' section will have to be reset on every reboot.

*'PackageMeasurementService' In Google Play Services 'Services' section will have to be reset on every reboot.

If possible, reset your router (Turn off/ back on), and try setting up a static IP for 'wlan_rx_wake' issues in the 'Kernel Wakelock' section of your log. If that fails, revert back to your original 0. 5% /h configuration. The hardcore solution is to delete apps (Last resort for battery saving).

Let me know how it goes.

There is no information to be found in your log. Have you followed th instructions in the OP?

Funny you should mention that. I discovered 'Activity' a few days ago while trying to disable 'Words With Friends' insane ads after every move. I was still testing on other apps to make sure nothing broke before I reveal my findings.

Thank You So Very Much for accelerating the vetting process [MENTION=6532336]patrickdrd[/MENTION]. I shall update the list and give you proper credit for your research!
[BetterBatteryStats] 'Akira:
Can you point me in the direction of implementing the functionality in a kernel that does not have this directories in the system?
[BetterBatteryStats] dejanxxxx:
Yes, from here. xdaforums.com/showpost.php?p=72467976&postcount=32150

If I wrong, I follw instructions from first post. Which instructions I must follow?
[BetterBatteryStats] fossils-n-dents:
Try This...

https://xdaforums.com/showpost.php?p=67819528&postcount=4
[BetterBatteryStats] dejanxxxx:
I try this and write here in theard, eject me error, and the and when put command eject this in post

#32943.
[BetterBatteryStats] krzysiekb92:
Does it works without root?

Wysłane z mojego MI 5s przy użyciu Tapatalka
[BetterBatteryStats] Watanabe_You:
Yes it does. You just need to grant permissions via ADB, the first page posts will explain how.
[BetterBatteryStats] Oswald Boelcke:
@vasujahagirdar, @PackElend, @katolink: I apologise for not having replied to your quotes and mentions at all but I'm currently occupied with other, higher priority business and only very rarely on XDA. However, by a brief scan of this thread I realised you've received excellent advice and discussions, already. As soon as I can (but don't know yet when) I'm going to jump back into the boat.
[BetterBatteryStats] shaggyskunk:
For Shame - XDA isn't your highest priority - lol ????

You never need to apologize for having a life ?

Sent from my SM-G955W ??
[BetterBatteryStats] fossils-n-dents:
This should be better for you.

Keep in mind ADB is something you will have to research, and familiarize yourself with. Good Luck.

https://xdaforums.com/showthread.php?t=2588979
[BetterBatteryStats] dejanxxxx:
I have installed this ADB which you give me, I think ADB is ok on my pc install , see pictures. I have drivers corectly installed. You tell me that I dont have ADB drivers installed, that I dont have installed after adb devices show me error ? I really dont know what you mean ? Can you tell me?
[BetterBatteryStats] fossils-n-dents:
Looks good from here. Can you take a screenshot of the 'Error'?
[BetterBatteryStats] dejanxxxx:
I do how write in first theard charg phone on 100%, unplug and leave 1-4 hours. I check in settings dump file and go on share/save/dump file.

I confused did I give permission for work app? .

Here what screenshoot when enter command

adb -d shell pm grant com.asksven.betterbatterystats_xdaedition android.permission.BATTERY_STATS

I again charg phone on 100%, unplug and leave 1-4 hours, and go on share/save/dump file.
[BetterBatteryStats] fossils-n-dents:
If you've done the command correctly (This screenshot looks correct), the dump file should be located in root of the memory card.
[BetterBatteryStats] dejanxxxx:
Yes on SD card is located . Thans , I after again give dump file here. Thank you very much :)
[BetterBatteryStats] fossils-n-dents:
Awesome! You're welcome.:good:
[BetterBatteryStats] dejanxxxx:
Thanks :) :good:
[BetterBatteryStats] patrickdrd:
warning: ALL firebase stuff should be left alone, since it's related to notifications:

https://www.google.gr/search?q=fire...x-b&gfe_rd=cr&dcr=0&ei=1xfRWf-MNqHA8geclKrYCQ

I'm having trouble restoring the notifications on my one phone, on the other one I had a backup before playing with myandroidtools,

but on the other besides enabling all firebase instances, notifications still not working!

so, be aware people!
[BetterBatteryStats] fossils-n-dents:
Thanks, I did make a note of backing up your config before disabling services just in case. I will remove the updated post until further notice/ testing. Making backups before major configuration changes is always paramount to a successful recovery.

Delete MATPro, then delete messaging apps...Force Stop> Clear Cache> Uninstall (For each app).

Boot to recovery, wipe Davlik, then Cache...reboot, re-install apps.
[BetterBatteryStats] patrickdrd:
I didn't read your edit in time, I restored from the backup on the 2nd phone as well,

even though it was one month old and restoring the apps now from titanium backup,

I'm trying the procedure again on the 1st phone at the same time and

notifications haven't arrived yet, so it could be something else :S

edit: I remember I tried the edit steps though and they didn't work

edit2: also I deleted dalvik cache & cache at the same time, could this be the problem?
[BetterBatteryStats] mrjuniork:
Notifications working fine for me... With any kind of app..

And I disabled firebase for all installed apps.
[BetterBatteryStats] patrickdrd:
did you clear dalvik and cache in recovery and google play services cache?
[BetterBatteryStats] mrjuniork:
After disabling firebase for almost all apps, I cleared dalvik and cache for like 6 times.

I have never cleared GPS cache though..
[BetterBatteryStats] patrickdrd:
FirebaseInstanceidReceiver is definitely needed, I tested myself last night with notifications from inoreader,

when I disabled it I wasn't getting them, when enabed I did!

I took new and fresh backups and I'll try without GPS wipe and wiping dalvik and cache one at a time and I'll tell you results in a bit

edit: I disabled firebase too, without FirebaseInstanceidReceiver though

1st run: simple reboot, notifications are there,

2nd run: boot in recovery and wipe only dalvik, everything ok

2nd run: boot in recovery and wipe cache, ok

3rd run: wipe GPS data and cache (from phone settings and apps this time,

rather than using titanium's wipe I was using before, still ok)

4th step: reboot after wiping: still there!!

so, I don't know if it was the order in the steps I took this time or the

wiping (done differently from the phone than from titanium) but they seem to be working now,

off to apply them on the other phone
[BetterBatteryStats] katolink:
+1

The only app where I apparently lost notifications is Tapatalk. Though I don't know yet if disabling firebase is the culprit.

P.S. No trees were destroyed in the sending of this message; however, a significant number of electrons were terribly inconvenienced.
[BetterBatteryStats] Againstt:
Hello can someone help me with this, most of my partial wakelocks are all at the same time and my awake with screen of is pretty bad.
[BetterBatteryStats] patrickdrd:
I don't have a deep knowledge on the subject, but I don't think it's that bad
[BetterBatteryStats] dejanxxxx:
Here again dump file.

I hope that is good now.
[BetterBatteryStats] fossils-n-dents:
I haven't noticed any problems with your advice, however I will further test.

You must post an idle dump in accordance with the OP.
[BetterBatteryStats] patrickdrd:
just now I received your quote as a tapatalk notification, so this works as well :)
[BetterBatteryStats] fossils-n-dents:
Your idle dump must have less than one minute of 'Screen On' time in the 'Other Usage' Section. No touching the device during the idle run.
[BetterBatteryStats] githyanki:
When I had the same problem with all wakelocks having the same time, I had to clear app data on bbs.
[BetterBatteryStats] vasujahagirdar:
Hi, I tried again with turning off few things & tried to get ideal dump ,two nights ! But dump showing 3 or 1 hrs duration though I haven't touched phone for more than 6 hrs battery from95% !! Don't know what's going on!

So I attached one dump below, is it fine or not, don't know.

Another question even though I turned off wifi, bbs shows wifi running!! What it is?
[BetterBatteryStats] githyanki:
Try setting greenify to not put bbs to sleep. If that doesn't work, try setting bbs to not be optimized in battery settings. This should prevent force doze from blocking it.
[BetterBatteryStats] dejanxxxx:
You mean when charg on 100%, then phone work 1min and then dont touch phone 1-4 hours? You mean this?
[BetterBatteryStats] githyanki:
Charge to 100, unplug phone, but do not turn on. Let it sit idle for 6 hours, then turn it on and get a dump from bbs. That should only take about 20 seconds, but up to 1 minute is ok.
[BetterBatteryStats] jopherr:
ok here u go
[BetterBatteryStats] jeremysherriff:
Not easy to see what's going on here as it covers your day (afternoon and evening). Charge it before you go to bed, remove from charger and let it sit idle overnight. In the morning pull the dump file and post. Remember to change the view to "since unplugged" if you don't charge it fully.

It's also a good idea to read the dump file (or on-screen stats) and include your own thoughts on what the stats mean..
[BetterBatteryStats] jacky.toh:
AudioOut_1 wakelock is showing frequently on ICS only, it have nothing to do with music. However, I saw someone mentioned, we can reduce it by turn off the touch sounds, screen lock sound in System Settings -> Sound
[BetterBatteryStats] mattallica76:
Dump file was attached. As stated, it is a small sample time, but the sample is entirely while the screen was off and nothing else going on. It doesn't seem to have anything to do with music as it occurs while the phone should be sleeping, and yes I'm running ICS.
[BetterBatteryStats] yhrn:
Sorry, I can't help you with what AudioOut_1 is. But if you want to know if it is really a problem you need to provide a dump over a longer period of time. Just because you have a 6 seconds wakelock in 6 minutes does not mean that you will have a 1 minute wakelock in an hour.

Actually in the dump you provided it looks like your main problem is wifi network packages waking your phone up (wlan_rx_wake kernel wakelock). Still, you can't really make and conclusions from a dump over such a short period.
[BetterBatteryStats] chamonix:
No, it's definitely the rom. Batteryinfo is a background service of android that is accessed using a service binder. As the log shows the binder delivers null data from one point in time. This is a similar behavior to what we know from miui. A dev known what was been tweaked and who could answer my questions / check for what may be a bug is what you need
[BetterBatteryStats] mattallica76:
My conclusions are not based on this particular dump. Just the fact that the service is always at the top of the list. For example, in 14 hours of unplugged time yesterday there was almost 30 minutes of partial wake time caused by the service in question. My battery doesn't really appear to be suffering, but if there's a chance I can squeeze a little more out of it without sacrificing services I use then I'm all for it. I'll make sure to leave my phone unplugged tonight while I'm asleep and provide a larger log file for you in the morning.