It would be really simple to add a method for this:

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

Then we could disable Analytics in JS land using setAnalyticsCollectionEnabled