On some Android 9.0 devices we see AatpDeviceManager popup window and all tests fail afterwards because of lost window focus.
Link to RUN: https://us-west-2.console.aws.amazon.com/devicefarm/home?region=us-west-2#/projects/a5cd451c-6593-4e2d-988d-3cfe012bcdd7/runs/41642dd2-62df-4644-90b6-fcad3f1696a8
Affected devices include
Google Pixel 2
Google Pixel 3
Samsung Galaxy 10+
Samsung Galaxy 10e
Popup dialog that steals the focus has:
- title: AatpDeviceManager
- message: The app was built for an older version of Android and may not work properly. Try checking for updates, or contact the developer.
- buttons: Check for update and OK
Popup appears when "tapping on HOME button". We use following UI Automator commands to simulate HOME button:
UiDevice mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
mDevice.pressHome();
We use Gradle plugin and Android instrumentation.
UI Automator version: androidx.test.uiautomator:uiautomator:2.2.0
Since com.amazon.aatp.aatpdevicemanager is an internal Amazon app it would be good that Amazon team have a look into this issue that limits number of usable Android 9 devices heavily to only few. Search/googling didn't reveal anything related to this issue with Aatp.
Edited by: marjanovic on May 16, 2019 3:12 AM
Edited by: marjanovic on May 16, 2019 3:17 AM
Edited by: marjanovic on May 16, 2019 4:54 AM
Edited by: marjanovic on May 16, 2019 4:55 AM