When trying to connect to the mobile device using MDM getting an error "Try to increase the 20000ms adb execution timeout represented by 'uiautomator2serverInstallTimeout' capability."
When trying to connect to the mobile device using MDM it is trying to install appium-uiautomator2-server-v4.27.0.apk but getting timed out after 20000ms with an error "Try to increase the 20000ms adb execution timeout represented by 'uiautomator2serverInstallTimeout' capability".
Resolution: Usually, it was trying to install the apk but fails to install within the default time of 20sec.
- To avoid this error, add uiautomator2serverinstalltimeout with a value greater than 20000 under the additional desired capabilities to make appium server to wait for that particular time meanwhile the apk will be installed in the mobile.