I am looking for android system API implementation for avoiding Doze for particular application. Rather requesting user to confirm adding in whitelisted app for doze.
What is system API for stoping Doze for an App on Android Marshmallow
Asked Answered
I don't think it is possible without user interaction. Check this answer: https://mcmap.net/q/131627/-how-to-whitelist-app-in-doze-mode-android-6-0 –
Trilemma
Compare the package name and you could avoid it –
Resistance
Thanks but I am looking for more clean approach.I am sure it is not public must hidden somewhere in android source :) . –
Caffey
© 2022 - 2024 — McMap. All rights reserved.