yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] mat_oli:
I'm trying to get the PC version of Wakelock Detector to work, but it keeps popping up the message "Device is not ready. Make sure your phone is connected and the USB (ADB) drivers are installed!"

I've installed ADB drivers, at least I think I have, I used the one I found here:

http://androidxda.com/download-best-android-adb-driver

Can anybody help out with this?
[Android Apps and Games] Traxex_:
26% awake doesn't seem to be good.

How to get rid of the Audiomix and Alarmmanager?
[Android Apps and Games] Monsieur_Bond:
I am not able to make it work on 5.0.2 Lollipop.

Whenever I launch the app it is showing no data.

Am I missing anything? I am using it on a non root Moto G.
[Android Apps and Games] sordna:
To reduce AudioMix disable touch sounds and screen lock sounds in settings. Also try disabling audible notifications in your email/gmail and any other apps that have audible notifications.
[Android Apps and Games] AA1973:
Since KitKat you'll need root access due to permission changes.

Solution for non root users https://docs.google.com/presentation/d/1r3VlhZIZVSufZlAeICJet6QBtyAF7z06_ysl1kUKME4/edit#slide=id.p
[Android Apps and Games] Pandawg:
What is *alarm*? I tried searching Google and couldn't find anything on it
[Android Apps and Games] Monsieur_Bond:
I already went through that slide, I can install terminal from google play.

What is the significance of command "adb tcpip 555"

If you know can you please explain how this is going to work? How this is going to show which app is keeping cpu awake?
[Android Apps and Games] pete101:
i have the strangest wakelock i can't figure out why it is happening.

I have a samsung tab 4 7 inch and i use wakelock detector to work out what is causing my phone not to sleep. i charge my tablet on and off when needed and from time to time for some inexplicable reason it refuses to sleep after i unplug it from the charger (but not every single time! only once or after a second charge) i can't figure out the pattern, i charge it once and unplug (by unlocking screen first always then unplug to eliminate that wakelock) and it'll be fine, then maybe my second charge that day i'll unlock it after waking it up first and then it'll have a massive no sleep time all red on wakelock detector.. i can't figure it out?

i thought maybe the usb port may be slightly damaged but even when i use a different charger and samsung cable the waklock does not go away it's completely red almost. the only thing that seems to fix it annoyingly is restarting the phone and then using adb terminal services and using the wakelock detector instructions how to use it with kitkat (it requires adb terminal stuff), after that it sleeps perfectly but this is really annoying having to do it every day or so plugging it into a laptop and running adb services and terminal.

can anyone explain why this fixes it and what is happening?

i've tried several things which don't work which normally work on my other samusng devices, powering up in flight mode with wifi off then switching wifi on.. doesn't work. trying a different charger different cable. same issue.

the wakelock it says which is causing the issue is powermanagerservice.display

could it be the pins in my samsung cable that's doing it?

i did notice it happened once on my notepro 12.2 too with same wakelock.. maybe because once it's there no matter what cable i use it stays until i clear it, but like i said i can charge it again with same cable and charger and it'll be fine, but then if i do it a second time later or third the issue comes back.. inexplicable.

could wakelock detector itself be causing this wakelock if powermanagerservice.display is at the top and actually running adb services with terminal emulator fixes it?

there;'s no way for me to check without uninstalling wakelock detector and relying on battery drain as a guide
[Android Apps and Games] pete101:
Im spevulating now it may be the cable contact points which is annoying because I only got it less than 8 months ago with my genuine Samsung car charger which is extra long .

What doesn't make sense is if I plug it back in then unplug it doesn't kill the wakelock but on my s3 it does. Reason I mention is my s3 had same issue too over the weekend and I could have sworn that I unlocked it before I unplugged. Maybe the cable is not recignising that the tablet is unlocked before I unplug and also I have os monitor running on the screen when I unplug which potentially could be the issue too.

I'll have to experiment with different cable first then see.

I pulled it out 6 times yesterday after 1 min to test it shich can't ve good for the battery.

Why does using adb terminal emulator reset it could it be the adb kill-server vommand that's fixing it?

Can I run it without being plugged into my laptop or would that brick the tablet?

It doesn't make sense why sometimes it's ok and orhers it isn't if it's a bad cable or connection it should happen every time or not charge
[Android Apps and Games] tonyafc:
I would like to know as well got high wakelocks but its showing no real info a few small wakelocks is all can someone let us know is there an update incoming
[Android Apps and Games] pete101:
Is it possible that i have a loose connection or something? Im using an oem cable only i tried changing the cable to a different one and seems ok so far but then it popped up again not sure why.

It charges perfectly but could when i remove the cable it still thinks it's plugged in?

It happens so randomly i can't predict but nothing fixes it not a reboot not into flight mode reboot or plugging back in with different cable unlock screen then unlock it literally will not go away unless i plug it into my laptop amd run adb services to get wakelock detector to run.
[Android Apps and Games] Portgas D. Ace:
Use Better Battery Stats as well, as it shows more services/information. Furthermore you can additionally have a look at the system battery monitor to identify possible culprits.
[Android Apps and Games] tonyafc:
Thanks for your response not a fan of better battery stats using gsam but wakelock detector is far superior when it works
[Android Apps and Games] pete101:
What does adb kill-server actually do?

It seems to be the fix every time i get a wakelock issue im having im trying to use cpu spy to see whzt is happening?

Why doesn't the plug unplug fix not work? Like after i do it with adb services it's fine for a few charges then it's bacK to square 1 do i have a slightly faulty mirco usb port pin possibily?

It charges fine everything else etc
[Android Apps and Games] PolliRuth:
I just recently got a new Samsung Galaxy S5 (unrooted, so I can't see all the stats I used to see in my JB phone!)

The battery life on my S5 has been very good with very few wakeups showing. However, just in the last few days I have noticed the battery dropping faster, and there are is an almost solid line of little wakeups all day long! I have tried everything I have learned here and it has not helped. I am hoping someone can suggest something I have forgotten or overlooked. All location and auto sync is off, don't use Facebook or the other battery hogs.

I am attaching a screenshot of my wakelocks. When wifi is on the wakeups are very few, and in airplane mode they completely stop. However when I am on data there are constant wakeups. My husband's phone shows mostly the same wakelocks, but wakes up FAR less than mine, showing 9% several days, in contrast to my 51%.

I don't know why this started so suddenly. I have uninstalled anything installed over the last couple of weeks, changed all settings to allow data upload as well as wifi, and anything else I can think of. It's driving me crazy!

Thanks in advance for any help or suggestions!!
[Android Apps and Games] abeledesma:
I have a Galaxy S5 currently running Lollipop Stock TW (5.0) and I've been using this app since KitKat (4.4.2) always with my phone rooted.

Yesterday I updated from PDA G900MUBU1BOA3 to G900MUBU1BOB3 and I can't get Wakelock Detector to work,it kepps asking for root permission, while it was working perfectly on BOA3 two days ago. Anyone knows why?

PD: WLD has Root Permission
[Android Apps and Games] notillas:
Happens to me as well, I have a g901f with 5.0.2, should be a problem of the app.

Hopefully it gets fixed soon.

:confused:
[Android Apps and Games] willcor:
hi ,

yes i also agree, in same boat as you .

Upgraded to.....Lollipop v 5.0.1 ........ ,BOC3 it suddenly stop ?

(Was working fine on LollIpop v5.0.1 ...BOB4 yesterday.)

.Also kept asking for root .( fully rooted N910F, SNAP )

Any member with additional info /pointers ?

thank you
[Android Apps and Games] raphTec:
Strange, since today it crashes every time I open it, no matter how the screen ist rotated...

Same stacktrace.
[Android Apps and Games] tonyafc:
It would be appreciated if the Dev could at least offer an update on lollipop support as for me personally this app is very important the rest dont compare
[Android Apps and Games] ayacs:
5 stars!!
[Android Apps and Games] Pandur2000:
Tells it needs root access, even after granting root after deletion of data and reinstall. BOB and BOC on note4 stock 5.0.1 dbt.
[Android Apps and Games] webwude:
No functionality with android 5.0.2. :(
[Android Apps and Games] dm96:
galaxy s4 i9506

worked perfect on KK, but on 5.0.1 L(stock samsung roms, only rooted and debloated) it has problems: works on DOA6, but on DOB5/DOC5 it has the same problem as Pandur2000 (doesnt see root)............ .... otherwise its one of the most usefull apps out there.
[Android Apps and Games] aschade92:
LOVE this app, but not working on Lolipop at the moment for me. Samsung G900A
[Android Apps and Games] BlackArtsInc:
It works fine on Xperia M C1905 with CM12 Lollipop 5.02 and also on Xperia Z1 Compact with rooted official KitKat 4.4.4 firmware. On CM12 sometimes you need to refresh it to make it show statistics but that's about the only "problem" with the app.

Not sent by me!
[Android Apps and Games] aschade92:
Has anybody gotten this to work on Lollipop? Or know of an alternative to find wake locks? I'm happy with the upgrade to 5.0 besides the fact that wakelock detector and exposed havent been updated.
[Android Apps and Games] Portgas D. Ace:
Well, Xposed has been updated, but is currently still alpha software. As far as I know there is no other possibility to identify wakelocks than installing BetterBatteryStats.
[Android Apps and Games] aschade92:
What version do you have installed? All I'm seeing is 2.7 experimental 1 version that was uploaded last June.
[Android Apps and Games] Portgas D. Ace:
True, the new version of Xposed for Lollipop has to be flashed through recovery at the moment, as it is in an early alpha stage. Depending on your Lollipop version there are two Xposed versions: one for 5.0 and 5.02 and one for 5.1. Both can be found on XDA. But as said before: it is in an early alpha stage, so there is a quite high chance for bugs. But if you want to try it, make sure you backup your system and know how to recover from bootloops and so on. And currently there is no support for Samsung devices running stock TouchWiz firmware or TouchWiz based ROMs, which might not be here in the near future.
[Android Apps and Games] Technical:
How to disable the autostart of the app? It does not appear in (some) autostart managers (like All-in-one Toolbox).

Thanks.
[Android Apps and Games] EuEra:
I downloaded from the play store and its not working it comes up with something about kitkat, i have working root, normally on grant. I changed to prompt and no prompt comes up when i launch the app. I converted to a system app but still no luck. Im on the samsung galaxy s6 edge.
[Android Apps and Games] Portgas D. Ace:
Yes, the app is currently not working on Android Lollipop.
[Android Apps and Games] imex99:
Not working on my rooted note 4.
[Android Apps and Games] BlackArtsInc:
Yes it does. At least for a lot of phones anyway. Xperia Z1 Compact stock Lollipop rooted locked bootloader.

Not sent by me.
[Android Apps and Games] dm96:
as i said, it works on s4 i9506 running 5.0.1 DOA6, but after a later build (DOB5,DOC5) it stops working.
[Android Apps and Games] tuan2195:
Your wakelock doesn't add up. Most are 1-2 seconds but the actual wake time is much higher. Is this just how it behaves in Lollipop? Because I have the same problem.
[Android Apps and Games] beebelo:
I see people reporting that Wakelock Detector doesn't work on Lollipop, but I was running it with--AFAIK--no problems on a Motorola XT-907 Razr M with CM 12 and 12.1 nightlies. Are the Lollipop issues device or ROM dependent, or am I just not seeing it? (I never got an error message like others have reported).

Also: Will the .apk from your supplied download link work without the Play Store installed? I wiped my phone to experiment with NoGapps. (Actually I was forced to wipe it due to a bad flash, but that's another matter)
[Android Apps and Games] Elbrin:
I tried earlier today to install and use the Wakelock Detector app from the Play Store. I will confirm that it did not work on a rooted S6 Edge (SM-G925V) Verizon variant running Lollipop. The phone has been rooted with PingPong root and is running the stock ROM. I am avoiding a custom ROM for the time being because I do not want to trip Knox.

A few minutes ago, I went back to the OP and downloaded the PC version. I can confirm that the PC version did in fact read my rooted SM-G925V phone as well as my non-rooted Galaxy Tab S (SM-T807V) Verizon variant running KitKat.

Sure it would be nice to have the app work directly installed on my device but at least now I can let my phone and tablet run for a little bit and then use the PC version to do a quick analysis before I decide which services or apps to turn off with Servicely (rooted phone) or Grenify (non-rooted tablet).

Boy, I wish we had a root for the tablet. :)
[Android Apps and Games] Elbrin:
Quick follow up.

I have been playing around with the PC version of Wakelock Detector and although it will give the basic analysis, it is not a replacement or an exact port of the mobile device version. Absent are the sleep state statistics and the settings menu with advanced features. As I said previously, it will give you a good basic breakdown of what is triggering the wakelocks and how long the app or service kept the device awake, but does not allow for a more detailed analysis. All in all the PC version is not a bad stop gap tool until, or if, the mobile version is fixed to work better with Lollipop and the newer Android devices.
[Android Apps and Games] daltonhrrll:
Could anyone tell me if this wake lock is safe to block? Im referring to 'alarm' under the Google app
[Android Apps and Games] electech13:
Hard to say with Google apps.. And this is the Google App itself.. It's an alarm.. And only 1x but 1hr and 7m is very odd.. You're on cpu screen there so I can only assume it was a longer period of usage for the app itself
[Android Apps and Games] anythingpoll:
Wakelock Detector doesn't work on my rooted note 4 sm-n910F. Any ideas?
[Android Apps and Games] Elbrin:
Like I mentioned a few posts above yours, try using the PC version to get a basic analysis while we wait for them to fix the mobile version. The PC version has been able to read and analyze both my SM-T807V and SM-G925V so that I can then use Servicely to monitor and close the offending apps and services.
[Android Apps and Games] aschade92:
Where do you download the PC version of WLD? Also is anyone else encountering an issue where the statistics are reset randomly?
[Android Apps and Games] Elbrin:
The link for the PC version is in the first post of this thread.
[Android Apps and Games] ¿GotJazz?:
WLD is not working on my rooted Samsung Galaxy Tab S 10.5" running stock 5.0.2. I just see an error about how Google changed things for KitKat which required rooting.

I am rooted, and not on KitKat.

Any solutions?
[Android Apps and Games] akaStric:
Hey, i installed the app normally but it wouldn't display Kernel wakelocks.

I uninstalled it, edited a flashable zip, installed to priv-app and now i get a "WLD has stopped unexpectedly" crash at start, and the app doesn't open.

Why a zip file? Because my HTC 820 is S-ON which means despite being rooted i can't edit /system stuff outside of recovery.

Any ideas ? is the app not supposed to be a system app? it worked fine apart from not displaying kernel wakelocks.

Also the zip file should not be the problem because it had BetterBatStats alongside WLD and that installed sucessfully and works.

One other interesting thing..as you can see from the attached screenshot, the app is 0.00B..no idea what's going on there..

HTC Desire 820 4.4.4 KK , rooted S-ON

Thanks :D

*****EDIT****

Oops.

Apparently the Appname.apk can't have spaces ("app name.apk > app_name.apk"). Noob me.

So i reflashed with a proper name and now it works, BUT...

now the "Kernel wakelock" isn't even on the list ... what am i missing guys?

****EDIT 2****

Kernel wakelock wasn't on the list because after the reinstall "Advanced mode" reset itself to off, which i missed ofc

Maybe it's time to do something else for a few hours xD
[Android Apps and Games] godutch:
Does anyone know of an alternative? BBB and Gsam only sort by wakelock not by apps, so it is very difficult to find the culprit apps... the dev of this app seems to be MIA

[MENTION=2813077]ahikmat[/MENTION]
[Android Apps and Games] aschade92:
I'm having the same exact issue.
[Android Apps and Games] FdeKlerk:
Solution.

Hi, I have added a zip file. Download it and extract the 3 adb files to the adb folder within the pc_version2 folder.

Once done kill the adb server "adb kill-server"

And then run "adb devices" and see if your devices ID is shown.

If it does show try the pc version. Mine works like this.
[Android Apps and Games] ahikmat:
strange problem: batterystats service not found

Hello everyone,

I am working on fixing the issue related to ROOTed phones.

Many ROOTed users complain that WLD is not working for them even though they grant the access.

However, when I tested on Nexus5 rooted it works without problem.

And, many other ROOTed users also are satisfied with WLD.

However, on some ROOTed phones like S4, S5, Note 4 and others it does not work.

WLD retrieves battery stats from "batterystats" service of Android via dumpsys tool.

>dumpsys batterystats

then, it parses this output and displays on screen.

This can work on non-rooted devices with a workaround.

before Android KitKat, WLD used to retrieve these stats by using Reflection. However, after Google changed the access for that service to System level, it got complicated. BBS resolved this issue by installing itself as a system app. But it needs reboot.

Anyways, the current issue is that >dumpsys batterystats on some ROOTed devices says "batterystats service not found" error.

Although, users say that it work fine with a workaround(adb self connect).

I ask XDA-developer members for help to resolve this issue.

- Why "batterystats" service can not be found even though it worked fine with adb workaround (https://docs.google.com/presentation/d/1r3VlhZIZVSufZlAeICJet6QBtyAF7z06_ysl1kUKME4)

is it possible that batterystats service is replaced or renamed while ROOTing device..
[Android Apps and Games] PIRATA!:
Yes, not working on S5, even if your place the app in priv-app folder: still saying it's not rooted.

Keep us informed about any success.

Tnx.
[Android Apps and Games] FdeKlerk:
Working on 5.0.2

Hi guys.

So just to inform those who would like to get this to work...

I have installed XtreStolite rom on my s6 edge and flashed the ViPER4Android-supolicy.zip file to get viper4android working (not the point).

The point is, after changing the SE status from selinux to permissive. My wakelock detector was working 100%

So for those guys on stock rom, try to flash custom kernel with SE set to permissive.

I AM NOT RESPONSIBLE IF YOU FLASH THE WRONG KERNEL!!!

[IMG="SE"]http://xdaforums.com/attachment.php?attachmentid=3387366&stc=1&d=1435816965[/IMG][IMG="wake"]http://xdaforums.com/attachment.php?attachmentid=3387367&stc=1&d=1435816965[/IMG]
[Android Apps and Games] ahikmat:
Install as System app

Testing WLD feature

- "Install as system app"

Feel free to test if you have ROOT access.

Share your results.

P.S: After installing as "system" app , you need to reboot your phone.

Basically, it copies itself (apk) from /data into /system/priv-apps

then, you should better revoke root access from WLD, because it does not need it anymore.
[Android Apps and Games] ahikmat:
Check the above post.
[Android Apps and Games] dm96:
Thanks, it is working now. Tested on s4 i9506 DOF1 with arter97 kernel.

Edit: Kernel wakelock is not working and the statistics are only for a few minutes. The phone was working for half an hour, it displayed 4 max apps, after a few minutes it displayed only 2 which were used only the last 3-4 minutes. I guess it is setted to work since last screen off, i turned on "statistic from last unpluged", seems to have fixed the problem. It displays many apps but the overall % is reseted.
[Android Apps and Games] ahikmat:
glad to hear that it is working.

we will do further testing

i will check kernel wakelock related issue
[Android Apps and Games] dejavu619:
Sometimes the app works but other times I get the "There are no available battery statistics yet, give it some time". Even though it's been a long time since I've unplugged my phone from charging and it's been on the whole time...
[Android Apps and Games] zordonas:
Hey guys,

My phone is awake 97% constantly.. Previous times i solved it with "wipe cache memory". Now it won't solve. My battery is getting drained so fast. Wifi and all applications closed, or greenified. Kernel is mostly awake from:

DPRAM, PowerManagerService.Display, main, etc etc.

Forum do not allow me to post picture as new user to show you. Any ideas??

Thanks !!
[Android Apps and Games] Portgas D. Ace:
Search XDA for "Better Battery Stats" (BBS). Install this app, grant SuperSU access, install it as system app, set reference to "unplugged to Current", reboot. Open BBS and check if it is working. Charge your phone to 100% and leave it idle (idle = do not use it or turn on screen!) for about 6 hours (recommended to do so over night). After this period open BBS immediately and click on the Share button on top. Save the file as .txt file and upload it here. This way I am able to check what is draining your battery and advice you for improvements.

Furthermore some information about your device and Android versions are helpful.
[Android Apps and Games] zordonas:
Will try to do what you said and post here... Thanks for your answer
[Android Apps and Games] ahikmat:
1.8.0 version of Wakelock detector has been released to Google Play.

you can get it from :

https://play.google.com/store/apps/details?id=com.uzumapps.wakelockdetector&hl=en
[Android Apps and Games] gandhidog:
Finally works on my galaxy s6, after installing as a system app. Thanks!
[Android Apps and Games] -zalo:
downloading new version .great app!
[Android Apps and Games] tonyafc:
It worked & then just stopped working again only shows a few seconds on apps here and there anybody else had problems?
[Android Apps and Games] svcongnghe:
Looking nice

update new version
[Android Apps and Games] zordonas:
I did everything you told me. I got the txt. Only if i knew how to post it here....
[Android Apps and Games] Portgas D. Ace:
Don't use an app like Tapatalk or the XDA app. Use a web browser on your PC and upload it as attachement. When you write a post, click on the paper clip icon and upload it as attachement. After you have uploaded it, return to the text box, click on the little arrow right next to the paper clip icon and chose the file to attach.
[Android Apps and Games] zordonas:
Thank you very much but there is no paper clip icon, or i'm totaly blind. Most probably i have not enough posts yet or something... As soon as I manage i will post it...
[Android Apps and Games] ahikmat:
new design for Wakelock detector

New icon pack for Wakelock detector

thanks to [MENTION=4536086]mdjurov[/MENTION] !