yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] ahikmat:
please turn on the "Advanced mode" in Settings window, then show us the screenshot one more time.
[Android Apps and Games] netimen:
But it is already turned on
[Android Apps and Games] mmm286:
Congratulations for these app.

I'm trying to use with my xperia z5c with MM. I do adb tcpip 5555 and when I open wakelockdetector in pc, it hangs in loading screen.

could you help me please?

Thanks!
[Android Apps and Games] ahikmat:
have you looked at "Kernel wakelocks" ?
[Android Apps and Games] ahikmat:
PC version needs to be fixed. Currently it does not support MM.

if you already did "adb tcpip 5555" from PC side, then you can use non-root WLD on your android phone. You can download non-root testing version from here:

http://xdaforums.com/showpost.php?p=66208483&postcount=759
[Android Apps and Games] Syn Ack:
I successfully installed and loaded up everything to get this to work with Marshmallow without root, but kernel wakelocks don't work yet. Everything works though.

But the good stuff is in kernel wakelocks.. :/
[Android Apps and Games] almasy87:
Sorry, bit noob here :( would it be possible to explain step by step how to do this starting from zero?

I download this file, put it on my phone and install it, then go on Chrome apps and find "wakelock", and then do what? Or am I completely wrong? Anything else missing? I have no idea what ADB is.

I'm on MM 6.0 unrooted.

Thanks :)
[Android Apps and Games] ahikmat:
Working on the kernel wakelock issue.

It will be fixed very soon
[Android Apps and Games] ahikmat:
You are right,

Currently we are lacking some good tutorial to explain those steps.

I will make a ppt and share it soon.
[Android Apps and Games] tonyf7:
How do I use the Chrome extension? I just says "Kill Server" and "Refresh Devices".
[Android Apps and Games] MSK1:
Wow. I hadn't known this existed... bonus.
[Android Apps and Games] almasy87:
I can patiently wait for a good cause :)
[Android Apps and Games] netimen:
[IMG="here are new screenshots"]https://dl2.pushbulletusercontent.com/0lN3wyS466s28xuPykfXJmosuqjgDTfH/Screenshot_20160412-152603~01.png[/IMG]

On the other hand, if I add up all the kernel wakelocks the resulting value is too big :)
[Android Apps and Games] ahikmat:
I attached new apk in which kernel wakelocks fixed

please check it

View attachment app-release.apk
[Android Apps and Games] racingmatt1:
Got this loaded on my m9 but I still get the "unable to perform this task at this time" error. I'm also unrooted
[Android Apps and Games] ahikmat:
Here is the slides that explains above steps:

http://goo.gl/Yqdh2F

follow this and let me know if you have any problem with it
[Android Apps and Games] ahikmat:
follow this tutorial http://goo.gl/Yqdh2F
[Android Apps and Games] MSK1:
I did this. ... it worked for a day or so.

Now it comes up with "failed to Kishorn this task"

Why has this happened
[Android Apps and Games] gadgetrants:
Thanks for providing a super app. One quick suggestion: the icon/time value next to each app displays the wake time for the process under that app with the longest time value, correct? If so, it would be nice to have the option to display total wake time for all of the processes under each app, as an alternative to maximum time for the app->process. Either way thanks again!

-Matt
[Android Apps and Games] ahikmat:
You are welcome!

yes, it is correct, the app shows the longest occupied time,

thanks for your suggestion, we thought that it would be simple to display only the maximum one,

however, showing the total is more logical, we will consider this!
[Android Apps and Games] ahikmat:
Thank you!

You can either "Force close" the app to stop it completely from app settings,

or you can hybernate with Greenify(though you should have ROOT for doing this one as far as I know)
[Android Apps and Games] occtec:
Re: [APP] [2.2+] [Version 1.x] Wakelock Detector(new app for easier access to wakeloc

Awesome app, thanks a lot. One question in regards to disabling Google backup in settings. When I go ahead to do this it warms me it will no longer backup my Google apps which I use all the time and it will 'erase all data on Google servers'. Does that mean apps like Google keep and Google contacts, calendar etc will no longer sync to Google servers??

Thanks in advance, keep up the great work!! :)
[Android Apps and Games] ahikmat:
http://support.google.com/android/bin/answer.py?hl=en&answer=1663708

Here they say "If you uncheck this option, your data stops getting backed up, and any existing backups are deleted from Google servers"

however, I think Contact/Calendar are not included here, so you don't need to worry about that. For more details check above link.
[Android Apps and Games] Hironimo:
Helpful, but...

Hi.

Your app appears really helpful in finding out culprits.

However one thing I always noticed apps in this category lack is what to actually do this this data.

If you are an experienced android developer or user you might know what to do with the data, but novice users may not. (I'm somewhere in the middle of those two categories: I'm not entirely sure.)

Can you please provide a guide and background understanding - maybe in the form of help files in the app - or for starters as a response in this thread?

Android works differently than other operating systems (even though this also starts to change now) in that it removes apps from memory when more memory is needed and loads it automatically when there is enough space so it starts quickly when you need it.

This is why task managers usually do not make sense unless an app is bugs and needs a forced restart.

What this also means is that you cannot really control what's going on: Short of blocking an app entirely I see no generally good way of avoiding an app performing unwanted wakelocks, which is something most user's don't want or can if they wan to actually use that app.

For instance, when I started your app the top three apps when it comes to wakelock are Google Maps, Google+ and Google Search.

All three are a vital part of the phone that I don't want to miss.

So what can I do to avoid those apps performing so many wakelocks?

Does this app only display partial wakelocks, which is to say those when the phone (or rather it's display) is off but keep the CPU from entering sleep state? Or does it also include wake-locks that keep the display from going off?

If you find my questions are too basic then please refer me to a document or page that gives a thorough understanding on this topic.

Thanx!
[Android Apps and Games] nrgaway:
I agree. I know about wavelocks for a long time, but never know what to do with them. I think it will really help when the database option listing common user wavelocks and solutions are implemented [I really want this feature :)].

Also, a new widget could be created that only lists warnings when the app thinks there is a wakelock problem. I was having only 50% deepsleep with my phone, so I just reloaded it and now am getting 80%. I don't know if that is normal or not, so again if the app could warn my that I should be getting 90% and which apps are misbehaving with a solution from user database, that will be cool.

EDIT: Thanks for this awesome app. Can't wait to see future released with expanded features!
[Android Apps and Games] CharliesTheMan:
Re: [APP] [2.2+] [Version 1.x] Wakelock Detector(new app for easier access to wakeloc

The three apps you mentioned are notorious battery hogs. The best thing you can do if you have root access is freeze these apps with Titanium Backup when you aren't using them. If you don't have root access then uninstall them if you don't use them often.

Something to be considered not mentioned in your post is app settings. With most apps, you can go to the settings and disable location settings, reduce the frequency of the app syncing data, etc.

I agree with your post though most people do need some help. One thing the developer might consider since the information exists all over XDA is finding an existing thread and linking users to it with the OP's permission hopefully.
[Android Apps and Games] gadgetrants:
This is a really good point.

I think there are two intertwined issues here -- the first is "what does it mean when a particular app has a lot of wakelocks," and the second is "when I find a culprit, what do I do?"

Unfortunately the answer to the second question probably varies a LOT across apps. For example, I discovered that setting location on in Maps was a major problem. Fortunately, I was able to set location to "manual" and then let Backitude do the updating instead of Maps. This really made a big difference.

On the other hand, I think apps like Maps, Google+, or Search are used so frequently that it may be too much of a chore to freeze/unfreeze as needed. I'd have to think a bit, but maybe I have another few apps that I use once or twice a week, which may be better candidates for freezing.

Another issue is that for some apps like Maps, the underlying cause of the wakelocks is clear (e.g., it's checking location) which can be directly addressed by changing settings. Another major culprit for me, however, is Gmail, which is probably due to syncing activity. I suppose if there were some way to more systematically control sync rate (i.e., turn it on and off with a third-party scheduler app) I could reduce the wakelocks, but as it is I have no choice but to let it do what it wants (which sucks). In other words, I may know that some apps are a problem, but can't really adjust their behavior.

-Matt
[Android Apps and Games] Hironimo:
The three examples I provided are the ones I found in my case, but I know they change with my behaviour.

So my post was intended generally so the resulting discussion might help many people. The specific examples like location settings are valuable however and it is exactly such tips that should be assigned to the more important apps, so you can tap on a button like "tips for this app" and it will show collected data based on experience of the developer and maybe even by other contributers in some kind of rating system. WIth time more and more apps will be covered.

@CharliesTheMan

Thanx for the response. I am aware of Titanium backup able to freeze apps. That's what I meant with blocking apps in my post.

The point is - as gadgetrants mentions - with frequently used apps this might not make sense.

However there should be a general guide section on improving battery life in which this solution should be included since it can help with apps that a user does not use but still take up resources.

However your point of app settings Is a good one - and while I condsidered those I do not have enough experience to really know which can help - so your input on disabling location settings is appreciated, it does make sense.

However do you mean only gps or do all location settings need to be disabled?

Again however in this case is the question of usefullness: If I disable location settings the main use of Maps is disabled, right?

I have GPS disabled unless I use detailed tracking, but the others enabled usually.

@gadgetrants

You mentioned setting locations to manual. Where is this setting?

Google has recently (well, not really, was it with ics or with jb?) added support of controlling the use the network by apps running in the background to help limit the bandwith used.

I think this should be extended to other services as well like locations.

I think for advanced users it may even make sense allowing to disable each defined permission in the menifest of an app while an app is running in the background.

Come to think of it, I think diabling permissions defined in the manifest should also be allowed in the foreground since some apps are just asking for too much.

This would however likely require the app to be coded with this in thought to avoid crashes when some service is temporarily not available.
[Android Apps and Games] gadgetrants:
Maps -> Menu -> Settings -> Location settings -> Location reporting -> Detect your location / Set your location (manual) / Do not update your location

EDIT: BTW, setting your location manually to Bora Bora or Zimbabwe can amuse and astonish friends and family. LOL

-Matt
[Android Apps and Games] ahikmat:
Thanks a lot for making very detail overview,

We are working on this, In my opinion the visual demonstration(video) could give a quite clear explanation,

As we are adding more features, we plan to write a guide as soon as completing the current tasks.

For background understanding, We have presentation file at this time.

Yes, it includes Screen related wakelocks too,

It displays Partial , Window, Full wakelock types,

You can take a look at presentation slides in the main post. There is an explanation about the wakelock types.
[Android Apps and Games] ahikmat:
Yes, that is exactly what we are working on right now,

Widgets! It will be showing "deep sleep vs awake time" info inside battery shaped main icon.

Knowledge base!? we collected dozens of problem/solutions , and they will be available as a "tip" button inside expanded view.

Please be patient! We need time to collect and negotiate with OPs:))
[Android Apps and Games] ahikmat:
Wakelock detector got updated.

Changes:

* Fixed "device does not support battery statistics" (after adding Bluetooth permission this issue seems like not happening again)

* showing the total sum instead of the maximum time of app's wakelocks

* sorting wakelocks in expanded view
[Android Apps and Games] occtec:
Re: [APP] [2.2+] [Version 1.x] Wakelock Detector(new app for easier access to wakeloc

Hi, I seem to be having an issue with alarm manager, I have no set alarm and haven't even used it in a while. Can anyone verify if this is an issue or how I can disable this?

Cheers
[Android Apps and Games] ahikmat:
There seem to be no issue with your AlarmManager, unless it has too much wakelock usage.

This AlarmManager is different from default Android Alarm App(though Alarming apps use AlarmManager service)

There is a way to check which apps are registered to "AlarmManager" service through adb. more details
[Android Apps and Games] Elpatii:
Very practice as application who person verify his battery drain :)
[Android Apps and Games] ahikmat:
Wakelock Detector Updated to version 1.4.2

* The issue with "Your device does not support battery statistics" has been solved!

* Now it shows the total wakelock time for each app

[NEW]

Created sharable excel file to collect wakelock issues

Knowledge database
[Android Apps and Games] gadgetrants:
Um, did you mean to say: "It's a very practical application for someone who wants to verify battery drain"? :confused:

Wow, I am SERIOUSLY impressed. Thanks again for the great updates.

-Matt
[Android Apps and Games] kwankl:
I would also like a black version or theme. Thanks.
[Android Apps and Games] ahikmat:
Have you rebooted your phone during that time ?

If you rebooted, you've got to repeat the workaround.

Make sure that your phone's adb is not used by other resources
[Android Apps and Games] MSK1:
Yes I rebooted... (I think)...

I reboot relatively frequently so this is frustrating.

But definitely appreciate the efforts for this workaround.

---------- Post added at 11:39 AM ---------- Previous post was at 11:36 AM ----------

How do I check the phones adb isn't used by other resources?
[Android Apps and Games] ahikmat:
I don't know if there is a way to find it out.

but when some app connects to your phone's adb (via usb or tcp-ip) , at that time your phone shows popup dialog to confirm RSA.

If you not sure, in your Usb debugging settings of your phone, you can "Revoke USB debugging authorization"
[Android Apps and Games] almasy87:
I still cannot find my device. I've installed the .msi from the link you provided...

Any idea why? (I've got an LG g4 if that helps).

Edit: Since the WLD unlocker was saying I still need the adb drivers I went and searched for some specific to the LG g4 (if that makes any difference, I don't know.).

I think (?) it's installed now because it appears here:

but still no devices found when I open the chrome app.

EDIT 2: nvm got it working - I had to reforce the RSA key to have it recognized.

Will post back later if there is any issue :) Thank you for the explanation!
[Android Apps and Games] Syn Ack:
Galaxy S7 Edge on Verizon.

PowerManagerService.WakeLocks - major killer

75af000.uart - no idea what this is

wlan_rx_wake - seems to be a common issue on most android devices lately
[Android Apps and Games] ahikmat:
just my guess. "UART" wakelock seems to be related to bluetooth.

I also see it for the first time.
[Android Apps and Games] ahikmat:
Glad to hear the good news.

Some other users also reported this,

they also had a problem detecting LG G4 on Chrome extension.

what "nvm" stands for ?

could you add some more details about resolving this issue?

Thank you!
[Android Apps and Games] almasy87:
Nvm = never mind :D

My problem was that I had not gotten the first RSA key fingerprint request from adb.

I found the solution at this link http://androidforums.com/threads/lg-adb.885672/ on the post from iowabowtech. I followed his instructions with the sdk tools and then the phone was prompted for a first rsa key fingerprint.. after that the adb driver were properly installed so I used the chrome app, pressed the USB icon, got a second rsa key prompt. After that WLD worked.

By the way, the kernel wake locks still don't work, it says something like "impossible to start function." Is that limited because of no root or something is wrong?
[Android Apps and Games] ahikmat:
thanks for sharing that.

please get the WLD from this link:

https://play.google.com/apps/testing/com.uzumapps.wakelockdetector.noroot

and let me know if it still has a problem with kernel wakelocks
[Android Apps and Games] almasy87:
Thank you, the problem is solved and now they appear :)
[Android Apps and Games] ohmimpotence:
ugh I can get adb devices to detect through fastboot/adb on PC but I can't get the chrome extension or PC version of the app to detect. ok, had to be connected as camera it seems? I also tried a different usb port so I dunno.
[Android Apps and Games] ahikmat:
try to do it manually in command line,

> adb tcpip 5555
[Android Apps and Games] thekojac:
Working for me pretty good on my unrooted S7 Edge.

Only problem is that as soon as I disconnect the phone from my PC, it keeps telling me that it can't perform the action and to try again later.

I though it was supposed to persist until I rebooted my phone?
[Android Apps and Games] ahikmat:
it should persist until reboot.

after disconnecting from PC, did you disable USB debugging?
[Android Apps and Games] thekojac:
I didn't... I haven't touched any USB configuration settings after enabling debugging.

It's very strange. Only thing I can think of is a music syncing app I'm using (DoubleTwist) messing it up somehow.
[Android Apps and Games] robikonobi:
[MENTION=2813077]ahikmat[/MENTION] - great work in getting this to run without root! I installed the latest beta of wld lite via the play store and it is able to run and display wakelocks (including kernel ones) for my unrooted lollipop s6; however the reported stats appear to be incorrect when i have it set to track stats since last unplugged. The reported wakelock frequency for each wakelock is only a fraction of the actual wakelocks since it was last unplugged. Any ideas?
[Android Apps and Games] adma84:
The version you have attached a few versions seems to work with non-root, however, it's version matches that of the play store. The play store version does NOT work. Can you explain the difference between the two apps?
[Android Apps and Games] ahikmat:
Currently, Wakelock detector Light version does not display stats since Unplugged.

It is because the latest version of andriod dumpsys batterystats does not have "-u" option to retrieve stats since unplugged.

I could not find the workaround for it yet.
[Android Apps and Games] ahikmat:
The one which is avaiable in GooglePlay is Wakelock detector [Root]

It works only on Rooted phones.

Attached APK is Wakelock detector Light.

It is not publicly available in GooglePlay yet, it is being tested.

The main purpose of "Light" version is to make it work without Rooting.
[Android Apps and Games] adma84:
My apologies, I interpreted light to mean the free edition! It's working great by the way!
[Android Apps and Games] lucianus_luciferus:
just tried this and it works. thanks !

but i had to use the minimal adb command line because the chrome extension was showing no device.

also i was thinking (bare in mind i know nothing about coding and how this stuff works so i'm just guessing)

if you make the app show in the 'device administrators' menu thing, will that not be enough to work properly without root?

or maybe using the usage data access permission or the read battery statistics permission? or is android not letting you have access to these permissions?

sorry if this has been tried but i'm just trying to help :) i think we all want to help you make this work

great job making this happen btw

:good:
[Android Apps and Games] tclarkey:
Ever since I took the April security update this app stopped working.
[Android Apps and Games] ahikmat:
Hi, thanks for your interest.

Right, actually, Android had "BATTERY_STATS" permission was available for developers,

thus, detail battery stats like wakelock stats could be retrieved by developers and apps could display it easily.

But after KitKat update, Android took away this battery stats retrieval for unknown reasons.

As a result, many apps stopped working including WLD.

The workaround we are doing is to avoid this fence, and display wakelock stats without Rooting phone.

So far, there are 2 options:

- ADB (android debug bridge) needs to be turned on, and WLD connects and gets wakelock stats through adb

- Grant Battery_Stats permission with adb command line

The second option is better, as it works permanently. I tested on Marshmallow.

I will add more details on this later.

Please bare with me.
[Android Apps and Games] lucianus_luciferus:
cool.

i just had a look at the permissions for the Smart Manager app and one of them was this

is this what we need?

and when i tap on it it shows this
[Android Apps and Games] optimummind:
How do we grant Battery_Stats permission with adb?
[Android Apps and Games] Corduroy-21:
Tried to understand if it still works with no root and MM. Any clear instructions on this?
[Android Apps and Games] ahikmat:
in the latest version of Chrome extension for WLD has a feature "Grant battery_stats permission"

This feature is supported in Android Marshmallow and later versions.

Link for chrome extension:

https://chrome.google.com/webstore/detail/unlocker-for-wakelockdete/bgeplmmblegmdackkcemjkpngngocgjp
[Android Apps and Games] optimummind:
Thx.

And if we use the "Grant battery_stats permission" via the Chrome extension, the Wakelock detection mechanism will survive reboots?
[Android Apps and Games] Saadx78:
Nice app great work guys!
[Android Apps and Games] Vybramo:
in unable to grant permision on note 4 910F android 5.1.1 .. i cant click on button :D grant permision
[Android Apps and Games] mmm286:
Hi. Someone can say me what wakelock is

13960000.decon_f

Enviado desde mi SM-G930F mediante Tapatalk
[Android Apps and Games] ahikmat:
yes, it will be static.

when the permission gets granted you will see "thumb up" icon on chrome extension
[Android Apps and Games] ahikmat:
uhm.

if the grant permission does not work,

use the first option, switching USB->TCPIP mode.
[Android Apps and Games] bullerd:
Cant get WLD Chrome app to detect S7 Edge

I followed the instructions for using the new Chrome app. However when I connect my phone to the PC, the WLD Chrome app does not see my S7 - it just stays on 'no devices found'.

The S7 is seen by Windows, Explorer and Kies etc but not by WLD Chrome.

I have tried refresh device, unlplugged,, rebooted phone and PC etc etc. I installed both the Samsung USB drivers and the universal ADB driver but still nothing.

Any ideas?
[Android Apps and Games] optimummind:
Connect phone to PC, start adb from command line first & get your phone recognized, then open the Chrome extension. This worked for me.