yashsingh1/xdaforums huggingface dataset:
[BetterBatteryStats] Renton91:
Please, it's more than a month that I'm trying everything to found what causes these very annoying wakelock. I'm not begging for someone to fix, but at least someone who can explain how can I trace what causes them. I have looked for everywhere about those event wakelock but I've non found anything, through the ps command on terminal emulator I've only found that they are related to system_server process.

I really please, can someone tell me in which way can I know what is the cause of this issue? Thank you.
[BetterBatteryStats] godly967:
Yeah I was using the f-droid version, I just downloaded the one from the thread and it works perfectly
[BetterBatteryStats] Sir_gpm:
I was just in irony mood [emoji6] ....not complaining at all.
[BetterBatteryStats] Perseus:
Can you please post me a similar log with Location Service turned off and SYNC Turned off as well ? Get rid of BatteryGuru. Also Freeze/disable Google Search.
[BetterBatteryStats] Renton91:
Okay, I'll do for tomorrow morning.
[BetterBatteryStats] Ryphez:
I can't get it to ask for root, is there any way to force it to ask for root?
[BetterBatteryStats] guido_glx:
It's working perfectly, thank you! :)

Enviado desde mi GT-I9300 mediante Tapatalk
[BetterBatteryStats] Wh1t3Rose:
Move the app to system/privapp. Match permissions. Reboot. If it still won't then go to settings/Advanced enable root features
[BetterBatteryStats] greyhd:
Need some help. Running AOSP ROM 4.4.4 and Android.phone is waking up the device. Is there anything I can do? I have searched but couldn't come up with anything. Here are some SS. TIA

https://www.dropbox.com/s/eudllt0etlapnot/Screenshot_2014-10-15-17-01-39.png?dl=0

https://www.dropbox.com/s/8e6oc1n03qa18i8/Screenshot_2014-10-15-17-01-21.png?dl=0
[BetterBatteryStats] Wh1t3Rose:
Disable the checkin service and receiver. Or I recommend you get unbounced Xposed receiver and unbounce checkin receiver (set to 600secs). This is a much safer alternative to disabling the service itself. It just puts the alarms on a delay (eg alarm activates once every 600 secs)
[BetterBatteryStats] Dan33185:
Not quite 4 hours, hope this will be good enough though. Not sure what you will be able to get from this log, like I said, it's great as long as I don't use it, but once I start using the phone it drains way faster than it should, like enough to be dead within 1.5 or 2 hrs max.
[BetterBatteryStats] Karpfenhai:
Okay, from what I see it looks good, I recommend to buy an anker battery since yours could be old.

My girls sensation runs great with latest carbon, consider an upgrade it's worth it.

Regards
[BetterBatteryStats] p1eter:
Thanks, I'll try that.

---------- Post added at 09:05 AM ---------- Previous post was at 08:50 AM ----------

Sandman's fix worked for me. Move the apk from system/app to system/priv-app and reboot.
[BetterBatteryStats] Dan33185:
I'm using this one right now:

http://www.amazon.com/1900mAh-Battery-Sensation-18-Month-Warranty/dp/B0053EZJMC

I might try to recalibrate it though, see it that helps any.
[BetterBatteryStats] Wh1t3Rose:
Battery calibration does nothing. It is a myth busted by Google Engineers a few years back
[BetterBatteryStats] Unuce:
Look at this please :(

I have awake whole time :S
[BetterBatteryStats] -Zteam-:
Okey I tried to leave the phone alone for 4 hours (no reboot) at work yesterday, with sync and location turned off..no abnormal drain issues their either :eek:

So without using the phone for a while no drain seems to occur.

So today I did use the phone as normal (location and sync turned off, throught) and just took two logs, "screen-off" and "since unplugged".

I really hope, they can be of some use, otherwise I have no idea how to troubleshoot these issues.
[BetterBatteryStats] chamonix:
the question that I would ask at this stage is: how did the app get pushed to /system/app? Neither the in-app not the provided recovery zip does that
[BetterBatteryStats] Renton91:
I couldn't post it today because this morning as I woke up and turned on screen, it rebooted and I don't know why, so I'll try for tomorrow morning. Sorry.
[BetterBatteryStats] Ryphez:
I did this on my moto x, but it still won't ask for root. Trying a few different things now to see if I can get it to work. Any other suggestions though?

Edit: Figured out I downloaded the wrong version, trying the correct version now
[BetterBatteryStats] Wh1t3Rose:
The in app option puts it in system/app for me. Let me get a log
[BetterBatteryStats] Espasa:
Looks great, thanks!
[BetterBatteryStats] Osama Zabin:
don't know what it is exactly!

I disabled it's related provider/receivers using System Tuner, no more of this wakelock, and no side effects.
[BetterBatteryStats] p1eter:
Could Titanium have something to do with it? Is it a better idea to to reinstalled BBS manually after flashing?
[BetterBatteryStats] Karpfenhai:
There is no need to reinstall bbs after flashing if you prepare your system...

Hint:

You will find this suggestion multiple times within the thread....

Just check your /system/add-ons.d folder for an existing backup script and enhance it.

Regards
[BetterBatteryStats] p1eter:
That's great, thank you very much. Now that I'm aware of this I'll search back for more info. Is there a thread somewhere for this? Point me in the right direction, will you?
[BetterBatteryStats] chamonix:
That's the reason I asked : I can not affect the way titanium works but can make sure that the tools I support work as the should.
[BetterBatteryStats] j1gga84:
I have a rooted Samsung Galaxy Tab S 10.5 LTE (T-805) with stock android 4.4.2 but everytime I try to set it as system app the procedure fails. And as system app I cannot see alarms. The app says the device must be rooted :confused: What can I do? On my i9100 it works like a charm..

Regards
[BetterBatteryStats] chamonix:
See post #3 for an alternate way to install the system app using a recovery ZIP
[BetterBatteryStats] chamonix:
It's new and shiny

It's new and shiny and I hope you like the first beta of the new major release
[BetterBatteryStats] AutomaticFailure27:
Oh hot damn! She's a beaut! Love it! (Much excite)
[BetterBatteryStats] mdamaged:
It's, it's beautiful! Thanks!
[BetterBatteryStats] Perseus:
Ohhh. Its SHINY! Love this already! Thanks Sven!!

Just one Whiny NitPicking. I like the Black background.
[BetterBatteryStats] mondohow:
Thank you [MENTION=1330150]chamonix[/MENTION] this app has helped me tremendously and the new interface makes it even better. Haven't even had a chance to look at the other fixes or see what's been removed. Excellent work.
[BetterBatteryStats] vitoski:
Could you please let me know if I need to have external app / xposed to access App Ops (see screenshot). Whenever I click on it I get error saying Unfortunately Settings have stopped:(

I am on Android 4.4.4 stock Moto X rom.

Sent from my XT1052
[BetterBatteryStats] chamonix:
I wanted to look at material design for dark screen first but will definitely try to put a dark theme together
[BetterBatteryStats] Mistertac:
Great job man!!! Here's a look at the UnBounce Module which is Material design and that Dev just implemented a Dark Theme.

I think your amazing app here would look great in black! Either way thanks again!
[BetterBatteryStats] Karpfenhai:
Looks good so far, but the white does hurt my eyes badly... need a black one...

Just fyi, raw stats are not working, all values are shown as 100 percent, but I didn't reboot yet so it might be my fault.

The old system app got upgraded, no weird root issues for me.

Good weekend and many thx!
[BetterBatteryStats] gaich:
Don`t think removing graphs zoom was a good idea - I cannot see anything in graphs tab now:crying:

And still no multilanguage in v.2?
[BetterBatteryStats] chamonix:
I removed it for replacement not displacement, it's beta 1 so please be patient
[BetterBatteryStats] xdaillum:
New log posted.

Thanks. So I had only partially followed the instructions. All I was reading before was "you need at least 4-6 hours of idle time" - which I had, but didn't know it needed nothing else too.

Only thing is I did it, not sure if it will accurately reflect the wakelocks as it seems that my battery didn't really drop overnight. I'll give it a shot anyway. Have a feeling I might need to do it again.
[BetterBatteryStats] vitoski:
Hey guys and girls! I am trying to save some battery during phone sleep but currently struggle with 0.8% per hour in complete idle. Which is a lot in my opinion.

Would you please look at my log from last night? Phone was completely charged and left for 6h+ in idle.

Thanks!
[BetterBatteryStats] cornelito:
Kernel Wakelocks

Hi.

Can someone please help me figure out why am i getting such a huge battery drain over night with Airplane Mode on ?

Majority of wakelocks is down to Kernel Wakelocks - please see attached Log Dump from BBS.

Update : i have noticed that this only happens when Airplane Mode is on......

Thanks in advance !
[BetterBatteryStats] mdamaged:
I assume you're using tasker to do this (I do), if so. a couple of things to watch for, make sure the task is so that it does not loop, the way I do mine is it fires off and exits the task to turn AM mode on, then a separate one triggers at wakeup time to turn AM off, you do not want tasker staying in a task all night waiting to wake turn AM back off. Also, it's best to have those same tasks turn on and off syncing.
[BetterBatteryStats] bobby janow:
On latest L preview, which is extremely stable, I installed the last two versions and on each one the 'install as system app' fails. It acquires root permission but fails to install (it says) but then next launch it says uninstall which fails as well. I rebooted the phone and it actually seems to be working and is installed in priv-app. Here is a log of the errors.
[BetterBatteryStats] ciribaski:
Solved for me by pushing manually the app in priv-app folder and rebooting.

Before doing this make sure you have removed the user app

Hope this help
[BetterBatteryStats] bobby janow:
Oddly enough even though it said failed it was put in priv-app folder and on reboot it worked.
[BetterBatteryStats] AA1973:
Do you use Android L on MultiRom as secondary Rom?
[BetterBatteryStats] bobby janow:
Yes.
[BetterBatteryStats] gaich:
[MENTION=1330150]chamonix[/MENTION]

Sorry for asking again, is multilanguage still in developement?

And another thing - there`s no detalization for alarms in 2.0 dump files, although it is present in programm itself. Is it intended to be, or it`s just my phone?
[BetterBatteryStats] F308:
Even that is not precise description.

You didn't succeed to move or moved application didn't start ?
[BetterBatteryStats] F308:
Hard to give diagnose in blind but this sequence looks slightly weird, such things didn't work for me some times.

Try this:

Remove this apk at all.

Install as user's.

Move to /system/priv-app/

Check permissions to be the same as other apps around.

Reboot (without reboot /system and /data things sometimes don't work).

FYI:

(I am on KK 4.4.4, BBS during installation suggested by own initiative to be installed as system apk.)

Q:

Do you have Xposed BBS module installed ?

Not that I know what impact it can have, just asking.

Maybe it is possible to have it as user's apk if Xposed module will do root's jobs?

Who knows...
[BetterBatteryStats] AA1973:
That might be the reason. System can't be made "read only" on secondary Roms with MultiRom. That's stated in Tassadar's thread.

I don't know the exact installation routine of BBS, but if I had to do it manually, I would the following

Mount system R/W

Push apk to system(/priv-app)

Mount system RO.

As the latter is not possible on secondary Roms, that might be the reason for saying "Failed", although the BBS Apk is installed in system/priv-app

Please correct me if I am wrong.
[BetterBatteryStats] Karpfenhai:
Correct permissions are 644 owner and group root, it isn't that hard.. no need to install, just push the apk to /system/priv-app, you can do this via adb from recovery or via file manager if on twrp.

Good luck
[BetterBatteryStats] AA1973:
Sorry [MENTION=4355376]Karpfenhai[/MENTION]

That's what I already know. See here

http://xdaforums.com/showthread.php?p=56035996

That wasn't the "issue". The issue was why we get the " installation failed" message on secondary Roms although the apk is installed in system/priv-app.

Not that hard to read either. That's why I suggested that the error is produced by using L as secondary ROM in MultiRom, because system can't be made read only. And that was my main concern/idea.
[BetterBatteryStats] bobby janow:
Now I won't swear to it, but I had Slim as a secondary before this. I don't believe I got this error. I had to get rid of it due to space limitations but perhaps someone with a secondary not L could confirm.
[BetterBatteryStats] chamonix:
in the FAQ (post #3) there is a recovery zip to install the system app. This is the supported workaround in case the in-app install fails
[BetterBatteryStats] chamonix:
yes, multi language is still a goal but it requires a lot of preparations and thoughts. Everytime I touch a class I refactor / externalize but at the end I will need to put some extra effort. Plus I need to think of some strings that make no sense to translate, like eg 'Wakelock'.

About the alarms: I am not sure but I think the dumpfile never contained the details. If I am wrong please feel free to add a bug - if I am right a feature request - to the github repo
[BetterBatteryStats] chamonix:
from what I saw from another logcat the error occurs at the end of the sequence when recounting system to ro. That is weird but I guess I could do a more specific error handling:

- throw an error is the rw mount fails as the apk can not be copied

- issue a warning if the remount to ro fails (install was fine but reboot is recommended as system is in an undesired state)

please feel free to comment on issue #504 https://github.com/asksven/BetterBatteryStats/issues/504
[BetterBatteryStats] chamonix:
I am sorry to keep you waiting with B2 but I am facing issues with the current (final) SDK that forces me to refactor a few things related to changes from the preview. these changes broke parts of the compat library and I need to wait for feedback from the Google teams about fixing these or potential workarounds.

edit: typos
[BetterBatteryStats] bobby janow:
I'm seeing no alarm stats at all. Other such as partial are working fine. But then again I had problems with the system app install although it does seem to be there with the correct permissions. I'm thinking something is amiss with L and not the program. Preview version so I really can't complain. Once the release comes out I'm sure it will get sorted out. Is anyone else here running the latest 2.0 version with L as a secondary on multirom? I know there is a kernel issue with some root apps as there are now 2 kernels available with different permissive values.

edit: Flashed the "very" permissive kernel and now alarms are showing up once again.
[BetterBatteryStats] kidkaracho:
Can you specify which kernel you flashed exactly, please? Having the same problems running Lollipop.
[BetterBatteryStats] bobby janow:
Mobile now but vomer put it in the op of the L thread. Kernel by sykopompos not sure of spelling.

Here ya go: https://www.androidfilehost.com/?fid=95747613655048204
[BetterBatteryStats] xnap30:
Thanks for all the great work you've put into this. I've been using the XDA BBS apk for a while but I finally bought the version from the playstore yesterday.

Version 2 Beta looks promising but I'll wait for the stable and dark theme :)
[BetterBatteryStats] apfelstyle:
]

Device: Nexus 5

Android: Latest Lollipop preview

Problem: partitial and kernel wakelocks are not showing up. When I select alarms a message comes ("Batteryinfo service could not be contacted")

Say what you need to fix:)

Thank you for your hard work Chamonix!
[BetterBatteryStats] Karpfenhai:
[MENTION=1330150]chamonix[/MENTION], the 2.0 looks very promising but don't forget small display owners, the percentage could be smaller to not waste screen.

Get what I mean? Still no major issues found :)

Keep it up and many thx mate!

Regards
[BetterBatteryStats] Mikulec:
Same problem here, Nexus5 with latest L preview.
[BetterBatteryStats] Perseus:
Please for the Love of Almighty, don't quote super ginormous images of another person just to say you have the same issue. At the VERY least hide the image.

[MENTION=4927879]apfelstyle[/MENTION]

would you mind not Posting so big images ?
[BetterBatteryStats] Mikulec:
I was posting via ****ty tapatalk.
[BetterBatteryStats] cdzo72:
No matter... learn how to hide the images... it's a simple string
[BetterBatteryStats] bobby janow:
Flash permissive mode. In the op of vomers L thread.
[BetterBatteryStats] Perseus:
[MENTION=1330150]chamonix[/MENTION]

Loving the 2.0 Beta. Question. Did you get rid of the Google Analytics Setting ? So do we still have it or not ?
[BetterBatteryStats] kidkaracho:
Thanks for getting back!

Can not quote the link, but slowly working towards 10 posts :p
[BetterBatteryStats] Sir_gpm:
Love the material look :D
[BetterBatteryStats] apfelstyle:
For which Person is that?
[BetterBatteryStats] bobby janow:
Mikulic

https://www.androidfilehost.com/?fid=95747613655048458
[BetterBatteryStats] goldenboy48:
A great idea for you guys would be to run a list of worst performing apps by collecting data from users. Not only will it move the industry forward, you guys can make money too.
[BetterBatteryStats] sincerelym:
Thanks dude
[BetterBatteryStats] justmpm:
Sorry Everyone...but I did a small bit of thread cleaning. Please try to keep this important and busy thread on topic!

Thanks!
[BetterBatteryStats] TheInVisibleGoD:
[MENTION=1330150]chamonix[/MENTION] In Lollipop, is it the only way to obtain Alarm stats by flashing the full permissive kernel!?

I'm with chainfire's kernel (not full permissive) and not getting Alarms stats...
[BetterBatteryStats] bobby janow:
That's what did it for me.
[BetterBatteryStats] code010101:
This new release it's GREAT!!!

* OneX+ Tapatalk4 *
[BetterBatteryStats] apfelstyle:
For me also Partitial and Kernel Wakelocks are not showing up... Do I need for this also the full permissive kernel? Where can I get the kernel?
[BetterBatteryStats] shaggyskunk:
Are you talking about SELinux?

Mine is Enforcing - Both Partial & Kernel Wakelocks are displayed.

I'm gonna guess that you have BBS installed as a System app?

http://slimroms.net/index.php/faqandmanual/slimbean/120-kitkat
[BetterBatteryStats] apfelstyle:
1. Yes

I have it installed as a system app... Look at my post one page before, there you see that nothing is displayed
[BetterBatteryStats] mrQQ:
Is it normal to have 100% of no data connection and 100% of no or unknown signal for Galaxy S4? Happens all the time.
[BetterBatteryStats] shaggyskunk:
Well - If I understood you - You don't have to have any particular kernel for BBS to get the information - I'm running BBS on 4 different devices - with 4 different kernels - Conclusion = Doesn't matter what kernel you're running.

http://slimroms.net/index.php/faqandmanual/slimbean/120-kitkat
[BetterBatteryStats] apfelstyle:
I have 5.0 installed... Is someone else here with the same problem?
[BetterBatteryStats] swat4samp:
I have seen many people having that issue with chainfire's kernel. Did you flash fix for pie check? That will solve root issues on that kernel too.
[BetterBatteryStats] chamonix:
the new selinux setting from the latest images are still under investigation. I am working on an alternate approach to avoid to call dumpsys. it is implemented already but is not called because the info coming from BatteryInfo are less than what comes from dumpsys.

In the next beta I will call the alternate method if the primary fails. #505
[BetterBatteryStats] chamonix:
I have no idea to sell such info nor collecting data. What I am thinking of is a service to centrally collect dumpfile data (that's the main reason why it is available in json) in order to analyse it further. That would be a typical data mining / big data solution but I need time for that.
[BetterBatteryStats] chamonix:
there is no known link Btwn selinux and that data not being present. A logcat would help dig deeper.
[BetterBatteryStats] apfelstyle:
Logcat, dmesg etc: https://www.dropbox.com/sh/l9xedxdo8gmftrd/AABRFaQbVlsk0iRVU0UcJW_Ea?dl=0
[BetterBatteryStats] WastedJoker:
This won't work for me on G3. Continually shows 97% of my phone up time is in no signal even though that isn't the case.

Tried it on various versions of firmware.

Weird.
[BetterBatteryStats] TheInVisibleGoD:
With Lollipop, it looks like in order to get Alarm stats in BBS, it matters which kernel you have, since the policies (selinux) to enable those stats are enabled/disabled in the kernel!

Thanks chamonix, looking forward to it! ;)
[BetterBatteryStats] WastedJoker:
I'd already uninstalled the app!

I'll reinstall it and see what happens.
[BetterBatteryStats] chamonix:
if you are actively connected to wifi yes: no or Unknown Signal refers to the mobile data connection not being active
[BetterBatteryStats] WastedJoker:
:angel: That explains my issue then! I'd been on wifi all day.

I knew wifi would turn off my data.

I didn't know that wifi wasn't counted as a signal. D'oh.
[BetterBatteryStats] matejdro:
Same problem with bbs not displaying kernel wakelocks on 5.0 (October version). It does sometimes display partial wakelocks and alarms, but most of the time it shows just empty list and I have to just keep pressing refresh button until it decides to work.

Attached logs. Tried both 1.6 and 2.0, same problems.
[BetterBatteryStats] chamonix:
looks like /sys/kernel/debug/wakeup_sources can not be accessed. Does the file exist and is it public readable?
[BetterBatteryStats] jeremysherriff:
Sweet. I'll pick up with @rtfpessoa again and ask him to contact you directly if he can help. That more technical explanation is the limit of my knowledge but I have some (long-stale) coding experience and know what you mean. A dev will need the exact calls I think. I think a large part of it will be whether he can reproduce my fc's!

As I say the app seems to work most of the time now, so the remaining fc's may be more to do with my phone/other apps, this non official build, or some other specific tweak or screw up I've made.
[BetterBatteryStats] radicalgel:
Okie I shall try it. So do I need to uninstall Go Launcher or can I just change default launcher to TW or ADW?

Also, can someone tell me what exactly the 'AudioLockOut' process is?
[BetterBatteryStats] yhrn:
I'm guessing you mean AudioOutLock kernel wakelock - you get that one when listening to music as the phone can't go to sleep while doing that.
[BetterBatteryStats] CRXed:
I still believe that there is not much wrong with your phone.

com.sec.android.internal.ims = http://code.google.com/p/android-ims/

I would be more worried about "com.zomut.watchdog", which seems to cause a lot of wakelocks and you are still checking in to Google with some app.
[BetterBatteryStats] chamonix:
Just to make it clear: the FCs are to be fixed by me as those never shall happen. The real problem ist not the FC, that is just the symptom that I will take care of one I understood the conditions correctly. The problem is still that fixing the FC will result in an error of the kind 'data could not be retrieved' or 'connection to batteryservice failed' in response to an Android api call that internally fails. The cure I am looking for (and hope we can deliver) is to get the api deliver the right data on a constant and consistent basis. For that I need an insight into miui and as it's not open source the insight can only be given by someone who has access to the code/knowledge