1. Home
  2. Knowledge Base
  3. SureMDM
  4. Battery Optimization: How to Add or Remove Applications

Battery Optimization: How to Add or Remove Applications

Android devices with the Battery Optimization setting on applications can enhance battery life by placing apps in Doze mode or App Standby.

Purpose

The purpose of this knowledge article is to provide a guide on how to add or remove applications from Battery Optimization.

Prerequisites

  • Optimization may cause certain apps, such as Voicemail and Gmail to stop functioning.

Steps

Step 1 : To Add Application.

  1. Log in to the SureMDM console.
  2. Navigate to the Jobs section.
  3. Click on New Job.
  4. Navigate to the Android tab.
  5. Navigate to Run Script.
  6. Enter your desired name for the job.
  7. In the Run Script section, type the run script available below, as shown in the image.
  8. Save the job and apply it to the device for the battery optimization to take effect.

!#suremdm

addAppToBatteryOptimization(package name)

Step 2 : To Remove Application.

  1. Log in to the SureMDM console.
  2. Navigate to the Jobs section.
  3. Click on New Job.
  4. Navigate to the Android tab.
  5. Navigate to Run Script.
  6. Enter your desired name for the job.
  7. In the Run Script section, type the run script available below, as shown in the image.
  8. Save the job and apply on the device for the changes to take effect.

!#suremdm

removeAppFromBatteryOptimization(package name)

Need more help? Here’s how to get help from our experts. 

CONTACT US 

Was this helpful?
YesNo
Updated on May 2023