Very slow tap actions in native android application with UiAutomator2


The problem
Very slow touch release with UiAutomator2 driver in native android application. In example delay between press and release is 100ms:

--> POST /wd/hub/session/session-id/touch/perform
[HTTP] {"actions":[{"action":"press","options":{"element":null,"x":785,"y":807}},{"action":"wait","options":{"ms":100}},{"action":"release","options":{}}]}

With UiAutomator driver delay is about 100ms, but with UiAutomator2 driver, the delay is more than 1000 ms.


  • Appium version: 1.13.0 (used Appium.exe)
  • Desktop OS: Windows 10, version 1809, 64-bit
  • Node.js version: 10.14.2
  • Npm package manager
  • Mobile platform/version under test: Android 5, Android 8, Android 9
  • Real devices: samsung s4, nexus 6p, xiaomi mia1


desiredCapabilities: {
            'platformName': 'Android',
            'device': 'Android',
            'deviceName': deviceName,
            'newCommandTimeout': 180,
            'noReset': false,
            'autoGrantPermissions': true,
            'automationName': 'UiAutomator2',
            'systemPort': 8201

Link to Appium logs

Video -!a1gWXSaS!90m5qf5jjP18XYNmvc7jVxenS-LwFxehtr8fZm51sw8