1. Home
  2. Knowledge Base
  3. Permit SureMDM To Ignore Battery Optimization On Android Devices

Permit SureMDM To Ignore Battery Optimization On Android Devices

The battery of an average smartphone or tablet holds its charge for roughly a day with moderate use. In practice, our constant smart device usage means battery life is typically much shorter than a full day. 

Even Android has introduced device power management features, such as limiting apps’ access to device resources like the CPU and battery based on user’s usage patterns and enabling device manufacturers to impose precise restrictions on how much power apps can utilize.

As useful as these power management features can be, they can become an obstacle if you want to continually run a business app on a device. As an example, consider an MDM app installed on an Android device that has aggressive power-saving tools in place. If the device has battery optimization turned on, the MDM app could likely turn off, and with it, all the app’s security and management policies. This could pose a threat to both the device and the data on these devices.

Using SureMDM, you can disable power-saving measures that could potentially interfere with SureMDM’s functionality.  This means that the SureMDM Agent application can continue working even if the device is in idle mode or battery-saving mode. 

How do you do it?

There are two ways to do it:

  1. When you launch the SureMDM Agent app for the first time, enable Ignore Battery Optimization in the SureMDM Agent Permission Checklist prompt.
  2. Use Custom Run Script job to create a job and push it to the device.

Enable Ignore Battery Optimization using Run Script

To enable Ignore Battery Optimization using Run Script job, follow the steps listed below:

  1. Log in to the SureMDM Web Console.
  2. On the SureMDM Home menu, navigate to Jobs New Job Android Run Script.
  3. On the Run Script screen, search for Battery Optimization under the Generic tab.
  4. From the search result, click on Runscript to ignore SureMDM Agent app from Battery optimization with true/false, enter the value as True and click on Validate.
  5. Click on Insert once the validation is done.
  6. Give a name to the job and click Save.
  7. Go back to the SureMDM Home menu, select the desired device(s) and click Apply to apply the newly created job.

Once done, the SureMDM Agent app will ignore any battery optimization power-saving setups on the device and will continue running in the background, even if the device is in idle or sleep mode.

SureMDM by 42Gears

SureMDM represents the cutting edge of mobile device management


For more details on our products, click here 
If you need further assistance, please submit a ticket here

Was this helpful?
Updated on August 2021