android - How to disable Doze for an app? -


the new doze mode on android 6 disables every useful background activity. have app, regularly woke device (even if no lock screen), kept partial wake lock, did scans , reported internet. not spy app - operation on purpose , known users of app.

right android 6 doesn't work anymore, because doze mode prevents final communication servers.

i found new setting under "battery", did allow me put app on list of app, did not support "battery optimization". in first tests seemed, making app run again.

after additional tests found, app not supporting doze, didn't work anymore in background.

isn't setting supposed disable doze particular apps?

details doze here http://www.androidpolice.com/2015/06/01/android-m-feature-spotlight-this-is-exactly-how-doze-reduces-battery-drain/

i encountered exact issue app requires accelerometer, gyro, , magnetometer operate in background , when screen off. android 6.0 doze prohibits application using sensors in realtime when screen off. adding app battery optimization whitelist did not fix problem app. making partial_wake_lock did fix issue sensors.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -