We have an alert / warning about stuck wake locks in the new Vitals section of the Play Store Developer Console. The apps that have this alert are all audio apps and the offending WakeLock Tag appears to be the AudioMix lock. There is a note about apps that may need long-running locks, such as streaming music, which leads me to believe this warning can be ignored for these particular apps.
I'd like to get some verification on these particular vitals. If these alerts for locks such as AudioMix are a normal thing, can they be safely ignored? Also how are these vital statistics effecting our Play Store rankings, especially if a stuck wake lock for an audio app is considered normal?
Any information about this is appreciated.
Thanks
If you feel an app/service wakelock is running unnecessarily, you can simply tap on the specific entry and tap on the “BLOCK” button to stop it.
A partial wake lock becomes stuck if it is held for a long time while your app is running in the background (no part of your app is visible to the user). This condition drains the device's battery because it prevents the device from entering lower power states.
you can release it in onDestroy() of last activity that gets popped by activitymanager. And yes, you must release the lock especially if you are going to keep the screen brightness on, to avoid battery drain.
A wakelock is a powerful concept in Android that allows the developer to modify the default power state of their device. The danger of using a wakelock in an application is that it will reduce the battery life of a device.
Yes, you can safely ignore AudioMix lock if your app is streaming or is a music player (even is local), and it will not impact in your app's ranking or something like this.
According to the support page Monitor your app's technical performance with Android vitals, the issues are excessive wakeups (not a long-running lock), excessive Wi-Fi scans (background), excessive network usage (background) and other similar behaviors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With