android - How can I gather wake lock information of my app? -


i want gather wake lock information app. perfect stack trace, periodicity , time of wake locks produced of app. tried read content of

/proc/wakelocks  

and

/sys/kernel/debug/wakeup_sources 

but information isn't enough , found files missing on devices. ideas? did work this?

update

https://play.google.com/store/apps/details?id=com.uzumapps.wakelockdetector example how app works?

update 2

so found solution this. using reflection can find instance of batterystats class needed information. problem wasn't work on android 4.4 , later google changed permissions.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -