How to determine if an application is running on Google Pre-Launch reporting devices?

When I download the new version of my application on Google Play, I get a pre-launch report, which is pretty nice and wonderful, but the problem is that most of the time, the AI ​​just wanders around the setup and does not test the actual interface. I would like to pre-complete the installation quickly and randomly for these devices.

So my question is: is there a way to detect that it works on these test devices?

+8
source share
1 answer

You can detect a test device before starting using the following:

private boolean isTestDevice() { String testLabSetting = Settings.System.getString(getContentResolver(), "firebase.test.lab"); return "true".equals(testLabSetting); } 

See: https://firebase.google.com/docs/test-lab/android/android-studio#modify_instrumented_test_behavior_for

+7
source

Source: https://habr.com/ru/post/1265456/


All Articles