Articles
Help Articles
UIAutomator - Power Consumption
UIAutomator - Power Consumption
In case you are running a Android device and having issues with UIAutomator. You need to make sure that the Appium, UIAutomator, the Application Under Test and other related automation tools, are not power restricted.
Here is a list containing the apps that you should disable optimization on.

Applications list:

  • AUT (Application under test / Your application)
  • Android System WebView (for applications using WebView)
  • Appium Settings
  • Application Installer
  • Automation Test
  • Chrome (for web tests on mobile)
  • io.appium.uiautomator2.server
  • io.appium.uiautomator2.server.test
To achieve that do the following:

Vivo devices:

For Vivo devices you can follow the official documentation here.

Samsung devices:

  • Access Battery settings > App Power Saving > Details > Applications list to disable > Disabled
On New Samsung Devices:
  • Settings > Apps > Context Menu > Special Access > Optimise battery usage > Apps not optimised -> Show all -> Disable Applications list
  • Settings > Device Care > Battery > High Performance

Huawei devices:

  • Turn Energy Settings to Normal and add Applications list to Protected Apps.

HTC devices:

  • Phone Settings -> Battery -> Power Saving Mode -> Battery Optimization -> select Application list -> don’t optimise -> save.

Google Devices:

  • Settings > Battery Saver > Off
  • Settings > Apps & Notifications > Special app access > Battery optimisations > Not Optimised (Application list should be in this section )
  • Settings > Apps & Notifications > App Info > Application list > Advanced (Battery) > Background Restriction = Background usage can't be restricted.
  • Settings > Apps & Notifications > App Info > Application list > Advanced (Battery) > Battery Optimisation = Not Optimised

Google Devices and Android 10:

Open Settings on your device then check the following:
  • Battery > Battery Saver > Off
  • Apps & Notifications (Press see all apps) > Application list > Battery > Battery Optimisation > (Should be Not optimised)
Copy link
Contents