How to detect if the app is running on Google Play Pre-Launch report devices?

前端 未结 1 1272
孤独总比滥情好
孤独总比滥情好 2021-02-07 08:13

As I upload a new version of my app to Google Play I get a Pre-Launch testing report that\'s pretty nice and fine, but the issue is that most of the time the AI just wanders aro

相关标签:
1条回答
  • 2021-02-07 08:47

    You can detect a pre-launch test device with 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

    0 讨论(0)
提交回复
热议问题