Exclude app from using doze mode

suggest change
  1. Open Settings.
  2. Open Battery.
  3. Open the menu and select Battery optimization.
  4. From the dropdown, select All apps.
  5. Select the app to whitelist.
  6. Select Don't optimize.

The app then appears under Not optimized.

Check the whitelist with PowerManager:

PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE);
boolean ignoring = powerManager.isIgnoringBatteryOptimizations(getPackageName());

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents