Disclaimer: I do mostly iOS automation.
However, I noticed you are using UiAutomator2. Have you taken a look at the UiAutomator2 specific capabilities? These might help:
https://appium.io/docs/en/writing-running-appium/caps/#uiautomator2-only
Disclaimer: I do mostly iOS automation.
However, I noticed you are using UiAutomator2. Have you taken a look at the UiAutomator2 specific capabilities? These might help:
https://appium.io/docs/en/writing-running-appium/caps/#uiautomator2-only