Disabling Optimizers and Memory Cleaners

Some Android devices have an "optimizer" or "memory cleaner" that prevents Locale from running.

THESE INSTRUCTIONS ARE NOT EXACT. With over 17,000 different Android models from all over the world, every device is a little different. If you don't see the exact same things as listed here, poke around in the Android Settings or on the home screen for an app that might be the "battery saver", "optimizer", or "memory cleaner" options. There might even be multiple options.

The manufacturers like to move the options around (and reset them after OS upgrades), so that you're less likely to change them.

Samsung

Note that Samsung intentionally keeps moving and renaming these settings every few months, in order to make it difficult for you to turn them off. Our instructions are pretty much guaranteed to be incomplete, so please use your brain to look for settings that look suspiciously similar.

Also Samsung tends to reset these settings after system updates, so you might have to re-check them after updating your phone.

  • Android 9:
    • Whitelist Locale from the memory cleaner
      1. Open Android Settings
      2. Choose Device Care
      3. Choose Memory
      4. In the top right corner, tap on the "…" menu
      5. Choose "Apps That Aren't Checked"
      6. At the bottom of the screen, select "Add" and choose Locale to exclude it from being closed
    • Disable battery saver
      1. Open the battery settings
      2. Choose Power mode
      3. Select "Optimized"
      4. Uncheck the box for "adaptive power saving"
  • Android 7: Open Android Settings > Device Maintenance. Under Unmonitored Apps, choose Add Apps. Add Locale to the list. Repeat this for any plug-ins for Locale.
  • Android 6: Open Android Settings > Smart Manager > Battery. (On some models, Smart Manager is on the home screen instead of under Settings). Under the App Optimization section, tap Detail. Tap on Locale in the list of apps. Select "Turned off for" to disable. Repeat this for any plug-ins for Locale.

Huawei

  • Android 7:
    • Allow Locale to run when the screen is off: Go to Android Settings > Battery > Close apps after screen lock. Find Locale in the list and make sure the switch is set to off.
    • Whitelist from memory and storage cleaner: Go to Android Settings > Memory and Storage > Storage Cleaner.
      • Under Memory Cleanup, uncheck the box next to Locale.
      • Under Cache Trash, uncheck the box next to Locale.
      • Tap the gear icon in the top right corner. Chose "Memory cleanup whitelist." Scroll down and check the box next to Locale.
    • Disable Battery Optimizations: Go to Android Settings > Apps. Tap the Gear at the bottom for Settings. Go to Special access > Exempt from battery optimization. Tap Allowed at the top and choose All apps. Scroll down and find Locale and set to Allow.
    • Lock Locale in Task Switcher
      • Open Locale
      • Open the Android Task Switcher (the third button in the bar with back and home).
      • Tap the lock icon for Locale to keep it from being closed.
  • Android 6:
    • Allow Locale to run when the screen is off: Go to Android Settings > Advanced Settings > Battery Manager. Add Locale to the list of "protected" apps, so that it can run when the screen is turned off. Repeat this for any plug-ins for Locale.
    • Prevent Locale from being closed: Go to Android Settings > Advanced Settings > Battery Manager. Tap the Gear icon in the top right corner of the screen. Check "History of closed apps" to see if Locale is shown in the list. If yes, then disable the option for "Close excessively power-intensive apps."

OnePlus

  • Android 8:
    • Disable Battery Optimization: Go to Android Settings > Battery. Select Battery optimization. Find Locale and set to "Don't Optimize."
    • Enable normal app management: Go to Android Settings > Advanced. Tap on "Recent app management." Choose "Normal clear."
  • Android 7:
    • Lock Locale in Task Switcher: Open Locale. Tap the task switcher button, to the right of the Android Home button/fingerprint reader. Tap the Lock icon in the top right corner so that it is locked.
    • Disable aggressive doze: Go to Android Settings > Battery. Tap on the overflow menu and choose "Aggressive doze & app hibernation." Either turn off Aggressive doze & app hibernation for all apps, or check the box next to Locale to move it to the Not optimized category. Repeat this for any plug-ins for Locale.
    • Disable auto close high power usage apps: Go to Android Settings > Battery. Tap on the overflow menu and choose "High power usage apps." Turn off "Auto close high power usage apps."
    • Allow auto-launch Go to Android Settings > Apps. Tap on the gear icon in the Action Bar. Scroll to the bottom and go to Apps auto-launch. Either disable Apps auto-launch or check the box next to Locale to move it to the Allow auto-launch category. Repeat this for any plug-ins for Locale.
    • Enable normal recent app management: Go to Android Settings > Advanced. Tap on "Recent app management." Choose "Normal clear."

Oppo

  1. Go to Settings
  2. Go to Battery
  3. Go to Energy Saver
  4. Select Locale
  5. Make sure that "Background Freeze", "Abnormal Apps Optimization", and "Doze" are disabled.

LG

  • Android 8 and 9
    1. Go to Android Settings
    2. Go to the General tab
    3. Go to Battery
    4. Select Power Saving Exclusions
    5. Make sure that Locale is excluded (also exclude any Locale plug-ins)

ASUS

  • Android 8:
    1. Allow Locale to start when Android reboots: Open Settings -> Battery - > PowerMaster -> Auto-start Manager

HTC

  1. Open the Boost+ app from the home screen
  2. Select Optimize background apps
  3. Select Locale
  4. Set optimization to off

Sony

  • Go to Android Settings and disable Stamina Mode.

Wiko

  • Open the "Telephone Administration" app on the home screen. Add Locale to the battery optimization whitelist.
  • Open the Settings app. Under Devices, look for "Protected Applications" and add Locale to the list.