Repository: flutter
Issue: [integration_test] Test doesn't start when uploaded APK to Firebase Test Lab
Labels: a: tests,platform-android,f: integration_test,has reproducible steps,P2,found in release: 2.2,team-android,triaged-android

Continuation from https://github.com/flutter/flutter/issues/85728#issuecomment-876480754

 I can reproduce an issue with `integration_test` running on the Firebase test lab using a regular Flutter app.  Following the steps as  https://github.com/flutter/flutter/issues/85728#issue-935215659 
 
 ### Code Sample Repository 

https://github.com/tesserx/flutter_integration_ftl
(note: add your own maps API key)

Steps to reproduce 
1. Create a regular project on the latest `stable, 2.2.3` 
2. Add `integration_test`  dependency, add a very simple test to find app title 
```dart
  testWidgets('Find App Title', (WidgetTester tester) async {
    await tester.pumpWidget(MyApp());

    expect(find.text('Material App Bar'), findsOneWidget);
  });
```
3. Run the test locally with `flutter drive --driver=test_driver/integration_test.dart --target=integration_test/app_test.dart`





4. Follow [instructions](https://flutter.dev/docs/testing/integration-tests#uploading-an-android-apk) to upload an APK to Firebase Test Lab
5. Upload the  APK, the test passes. check out test screenshots and video, logs

Firebase test lab says tests have passed, video is only around a minute, screenshots show the test started and the app was running (can see home screen)

Now let's make it a little bit more complex, for which I simply added another screen with the `google_maps_flutter` example. 
6. Add button to navigate to this maps page, click a button and navigate back to home screen
```dart
  testWidgets('Test Minimal Googel Maps Sample', (WidgetTester tester) async {
    await tester.pumpWidget(MyApp());

    final mapsSample = find.text('Maps Minimimal');
    expect(mapsSample, findsOneWidget);
    await tester.tap(mapsSample);
    await tester.pumpAndSettle();
    await tester.pump(new Duration(seconds: 5));

    final fab = find.byKey(Key('fabKey'));
    expect(fab, findsOneWidget);
    await tester.tap(fab);
    await tester.pumpAndSettle();
    await tester.pump(new Duration(seconds: 3));

    final back = find.byTooltip('Back');
    expect(back, findsOneWidget);
    await tester.tap(back);
    await tester.pumpAndSettle();

    expect(mapsSample, findsOneWidget);
  });
```
7. Repeat step 3, notice locally test passes, navigates maps screen, and navigates back every time

https://user-images.githubusercontent.com/48603081/125088140-d0c29100-e0d5-11eb-83d7-a173b3929203.mov


8. Repeat step 4. After the test finishes, the Firebase Test lab shows tests passed
Check out test results  

- Screenshots shows the app was stuck at "Test starting..." for the entire time 

<details> 
<summary>preview</summary> 
<img width="1424" alt="Screenshot 2021-07-08 at 4 23 22 PM" src="https://user-images.githubusercontent.com/48603081/124937291-ea99a080-e00f-11eb-8a76-68f5ff6eabcd.png">



</details>

- Video results show the same thing, video length is 5 min (which is the default timeout for FTL), it's just 5 min of `monkey test taps` 
- No actual `integration_test` was done for the entire duration of the test. 


<details> 
<summary>preview</summary>


https://user-images.githubusercontent.com/48603081/124937405-0ac95f80-e010-11eb-8caf-750ab54a5770.mp4

 


</details>

- When checking `logcat` from this test, there are so many error messages
[logcat.zip](https://github.com/flutter/flutter/files/6785158/logcat.zip)



Thank you