Repository: flutter
Issue: App freezes on changing back from an app launched through url_launcher
Labels: e: device-specific,platform-android,engine,e: OS-version specific,has reproducible steps,P2,found in release: 2.5,found in release: 2.6,team-android,triaged-android

* Maybe related: #91662

## Steps to Reproduce

0. Set your phone to gesture navigation. (The problem is not reproducible using 3-button navigation)
1. Execute the example on a phone having either facebook or instagramm installed
2. Click 'Go to the facebook group' or 'Go to our instagram feed'
3. The respective app opens. Don't interact with it.
4. Swipe back to the example app via gesture
5. Try to interact with it

**Expected results:**
* In step 5: Interacting with the example app is working, app should be responsive, the progress indicator should rotate.

**Actual results:**
* The app freezes, the progress indicator is stuck.
* The app switcher seems also messed up. [See this Screenshot](https://user-images.githubusercontent.com/6226629/142198697-aa7fbd21-765f-4c1f-aa65-1cb2162bd9c0.png). The right app should show Facebook, not a duplicate of the example app.
* This seems only to happen if swiping directly from app to app. If opening the app switcher fully to display the open apps and switch to the example by tapping on it, it works fine.

A video can be found here: https://user-images.githubusercontent.com/6226629/142185874-d536d3fa-46e0-41ee-945e-b8a23ce40347.mp4

**Reproducible on:**
* Pixel 3a hardware. Android 12.
* Pixel 2 emulator, Android 10
* Pixel 3a emulator, Android 11

**NOT Reproducible on:**
* Pixel 3a emulator, Android 10
* Pixel 5 hardware, Android 11

## Code sample
Full project can be found here https://github.com/MarcelKr/url_launch_freeze. 

Note that AndroidManifest.xml was edited to include the following

```xml
    <queries>
        <package android:name="com.facebook.katana" />
        <package android:name="com.instagram.android" />
        
        <intent>
            <action android:name="android.intent.action.VIEW" />
            <data android:scheme="https" />
        </intent>
    </queries>
```

<details>
<summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const UrlLauncher(),
    );
  }
}

class UrlLauncher extends StatelessWidget {
  const UrlLauncher({Key? key}) : super(key: key);

  void _launchURL(String url) async {
    if (await canLaunch(url)) {
      debugPrint('Opening $url');
      bool res = await launch(url);
      debugPrint('Done. Result = ${res.toString()}');
    } else {
      throw 'Could not launch $url';
    }
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('url_launcher test')),
      body: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
        ListTile(
            title: Text('Go to our homepage'),
            trailing: Icon(Icons.open_in_new),
            onTap: () => _launchURL('https://scapershelper.de')),
        ListTile(
            title: Text('Go to the Facebook group'),
            trailing: Icon(Icons.open_in_new),
            onTap: () =>
                _launchURL('https://www.facebook.com/groups/ScapersHelper')),
        ListTile(
            title: Text('Go to our Instagram feed'),
            trailing: Icon(Icons.open_in_new),
            onTap: () => _launchURL('https://www.instagram.com/scapershelper/')),
        ListTile(
            title: Text('Spotify'),
            trailing: Icon(Icons.open_in_new),
            onTap: () => _launchURL(
                'https://open.spotify.com/track/3Opb6gs9lXKWlhVIr1Rk2Q?si=a268f8e091b24784')),
        SizedBox(height: 64),
        CircularProgressIndicator()
      ]),
    );
  }
}

```

</details>

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```
$ flutter run --verbose
[  +45 ms] executing: uname -m
[  +21 ms] Exit code 0 from: uname -m
[        ] x86_64
[   +3 ms] executing: [/home/marcel/devtools/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +6 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 18116933e77adc82f80866c928266a5b4f1ed645
[        ] executing: [/home/marcel/devtools/flutter/] git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[  +10 ms] Exit code 0 from: git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[        ] 2.5.3
[   +6 ms] executing: [/home/marcel/devtools/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/marcel/devtools/flutter/] git ls-remote --get-url origin
[   +3 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +61 ms] executing: [/home/marcel/devtools/flutter/] git rev-parse --abbrev-ref HEAD
[   +4 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +36 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +37 ms] executing: /home/marcel/Android/Sdk/platform-tools/adb devices -l
[  +26 ms] List of devices attached
           emulator-5554          device product:sdk_gphone_x86 model:sdk_gphone_x86 device:generic_x86_arm transport_id:23
[   +9 ms] /home/marcel/Android/Sdk/platform-tools/adb -s emulator-5554 shell getprop
[  +24 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +53 ms] Skipping pub get: version match.
[  +20 ms] Found plugin url_launcher at /home/marcel/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.13/
[   +3 ms] Found plugin url_launcher_linux at /home/marcel/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.2/
[   +1 ms] Found plugin url_launcher_macos at /home/marcel/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.2/
[   +3 ms] Found plugin url_launcher_web at /home/marcel/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.4/
[   +1 ms] Found plugin url_launcher_windows at /home/marcel/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.2/
[  +62 ms] Found plugin url_launcher at /home/marcel/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.13/
[        ] Found plugin url_launcher_linux at /home/marcel/.pub-cache/hosted/pub.dartlang.org/url_launcher_linux-2.0.2/
[        ] Found plugin url_launcher_macos at /home/marcel/.pub-cache/hosted/pub.dartlang.org/url_launcher_macos-2.0.2/
[   +1 ms] Found plugin url_launcher_web at /home/marcel/.pub-cache/hosted/pub.dartlang.org/url_launcher_web-2.0.4/
[        ] Found plugin url_launcher_windows at /home/marcel/.pub-cache/hosted/pub.dartlang.org/url_launcher_windows-2.0.2/
[   +7 ms] Generating /home/marcel/tmp/url_launch_freeze/url_launch_freeze/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +38 ms] ro.hardware = ranchu
[   +8 ms] Using hardware rendering with device sdk gphone x86. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[  +21 ms] Initializing file store
[   +7 ms] Skipping target: gen_localizations
[   +3 ms] Skipping target: gen_dart_plugin_registrant
[        ] Skipping target: _composite
[   +1 ms] complete
[   +3 ms] Launching lib/main.dart on sdk gphone x86 in debug mode...
[   +3 ms] /home/marcel/devtools/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/home/marcel/devtools/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/marcel/devtools/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata
-DFLUTTER_WEB_AUTO_DETECT=true --output-dill /tmp/flutter_tools.HTGJDP/flutter_tool.AYPSWW/app.dill --packages
/home/marcel/tmp/url_launch_freeze/url_launch_freeze/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation
--filesystem-scheme org-dartlang-root --initialize-from-dill build/c075001b96339384a97db4862b8ab8db.cache.dill.track.dill --enable-experiment=alternative-invalidation-strategy
[   +9 ms] executing: /home/marcel/Android/Sdk/build-tools/31.0.0/aapt dump xmltree /home/marcel/tmp/url_launch_freeze/url_launch_freeze/build/app/outputs/flutter-apk/app.apk
AndroidManifest.xml
[   +5 ms] Exit code 0 from: /home/marcel/Android/Sdk/build-tools/31.0.0/aapt dump xmltree /home/marcel/tmp/url_launch_freeze/url_launch_freeze/build/app/outputs/flutter-apk/app.apk
AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.example.url_launch_freeze" (Raw: "com.example.url_launch_freeze")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: queries (line=16)
                 E: package (line=17)
                   A: android:name(0x01010003)="com.facebook.katana" (Raw: "com.facebook.katana")
                 E: package (line=18)
                   A: android:name(0x01010003)="com.instagram.android" (Raw: "com.instagram.android")
                 E: intent (line=20)
                   E: action (line=21)
                     A: android:name(0x01010003)="android.intent.action.VIEW" (Raw: "android.intent.action.VIEW")
                   E: data (line=23)
                     A: android:scheme(0x01010027)="https" (Raw: "https")
               E: application (line=27)
                 A: android:label(0x01010001)="url_launch_freeze" (Raw: "url_launch_freeze")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=32)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.url_launch_freeze.MainActivity" (Raw: "com.example.url_launch_freeze.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=46)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=56)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=60)
                     E: action (line=61)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=63)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=70)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
                 E: activity (line=74)
                   A: android:theme(0x01010000)=@0x01030007
                   A: android:name(0x01010003)="io.flutter.plugins.urllauncher.WebViewActivity" (Raw: "io.flutter.plugins.urllauncher.WebViewActivity")
                   A: android:exported(0x01010010)=(type 0x12)0x0
[   +5 ms] executing: /home/marcel/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[  +10 ms] <- compile package:url_launch_freeze/main.dart
[  +30 ms] --------- beginning of main
           11-17 12:57:03.177 W/AppInit1(14966): type=1400 audit(0.0:807): avc: denied { read } for name="zoneinfo" dev="proc" ino=4026531859
           scontext=u:r:untrusted_app:s0:c154,c256,c512,c768 tcontext=u:object_r:proc_zoneinfo:s0 tclass=file permissive=0 app=com.facebook.katana
[  +11 ms] executing: /home/marcel/Android/Sdk/platform-tools/adb version
[  +15 ms] Android Debug Bridge version 1.0.41
           Version 31.0.3-7562133
           Installed as /home/marcel/Android/Sdk/platform-tools/adb
[   +1 ms] executing: /home/marcel/Android/Sdk/platform-tools/adb start-server
[  +36 ms] Building APK
[  +17 ms] Running Gradle task 'assembleDebug'...
[   +2 ms] Using gradle from /home/marcel/tmp/url_launch_freeze/url_launch_freeze/android/gradlew.
[  +18 ms] executing: /opt/android-studio/jre/bin/java -version
[  +86 ms] Exit code 0 from: /opt/android-studio/jre/bin/java -version
[        ] openjdk version "11.0.10" 2021-01-19
           OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
           OpenJDK 64-Bit Server VM (build 11.0.10+0-b96-7249189, mixed mode)
[        ] executing: /opt/android-studio/jre/bin/java -version
[  +94 ms] Exit code 0 from: /opt/android-studio/jre/bin/java -version
[        ] openjdk version "11.0.10" 2021-01-19
           OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
           OpenJDK 64-Bit Server VM (build 11.0.10+0-b96-7249189, mixed mode)
[   +1 ms] executing: [/home/marcel/tmp/url_launch_freeze/url_launch_freeze/android/] /home/marcel/tmp/url_launch_freeze/url_launch_freeze/android/gradlew -Pverbose=true
-Ptarget-platform=android-x86 -Ptarget=/home/marcel/tmp/url_launch_freeze/url_launch_freeze/lib/main.dart -Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==
-Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+1990 ms] > Task :app:compileFlutterBuildDebug
[        ] [  +43 ms] executing: uname -m
[        ] [  +22 ms] Exit code 0 from: uname -m
[        ] [        ] x86_64
[        ] [   +4 ms] executing: [/home/marcel/devtools/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [   +4 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 18116933e77adc82f80866c928266a5b4f1ed645
[        ] [        ] executing: [/home/marcel/devtools/flutter/] git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[   +1 ms] [   +9 ms] Exit code 0 from: git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[        ] [        ] 2.5.3
[        ] [   +6 ms] executing: [/home/marcel/devtools/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +3 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [/home/marcel/devtools/flutter/] git ls-remote --get-url origin
[        ] [   +1 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +37 ms] executing: [/home/marcel/devtools/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [   +3 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +32 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [  +61 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [   +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[        ] [  +25 ms] Initializing file store
[        ] [   +4 ms] Done initializing file store
[        ] [  +23 ms] Skipping target: gen_localizations
[        ] [   +7 ms] Skipping target: gen_dart_plugin_registrant
[        ] [ +281 ms] Skipping target: kernel_snapshot
[        ] [ +214 ms] Skipping target: debug_android_application
[        ] [        ] Persisting file store
[        ] [   +6 ms] Done persisting file store
[        ] [   +3 ms] build succeeded.
[        ] [   +7 ms] "flutter assemble" took 650ms.
[        ] [ +108 ms] ensureAnalyticsSent: 106ms
[        ] [   +3 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[        ] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :url_launcher:preBuild UP-TO-DATE
[        ] > Task :url_launcher:preDebugBuild UP-TO-DATE
[        ] > Task :url_launcher:compileDebugAidl NO-SOURCE
[   +2 ms] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :url_launcher:packageDebugRenderscript NO-SOURCE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :url_launcher:writeDebugAarMetadata UP-TO-DATE
[        ] > Task :app:checkDebugAarMetadata UP-TO-DATE
[        ] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[        ] > Task :app:compileDebugShaders NO-SOURCE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :url_launcher:mergeDebugShaders UP-TO-DATE
[        ] > Task :url_launcher:compileDebugShaders NO-SOURCE
[        ] > Task :url_launcher:generateDebugAssets UP-TO-DATE
[        ] > Task :url_launcher:packageDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[ +177 ms] > Task :app:copyFlutterAssetsDebug
[        ] > Task :app:generateDebugResValues UP-TO-DATE
[        ] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :url_launcher:compileDebugRenderscript NO-SOURCE
[        ] > Task :url_launcher:generateDebugResValues UP-TO-DATE
[        ] > Task :url_launcher:generateDebugResources UP-TO-DATE
[        ] > Task :url_launcher:packageDebugResources UP-TO-DATE
[        ] > Task :app:mergeDebugResources UP-TO-DATE
[        ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] > Task :app:extractDeepLinksDebug UP-TO-DATE
[        ] > Task :url_launcher:extractDeepLinksDebug UP-TO-DATE
[        ] > Task :url_launcher:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugMainManifest UP-TO-DATE
[        ] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugManifestForPackage UP-TO-DATE
[        ] > Task :url_launcher:compileDebugLibraryResources UP-TO-DATE
[        ] > Task :url_launcher:parseDebugLocalResources UP-TO-DATE
[        ] > Task :url_launcher:generateDebugRFile UP-TO-DATE
[        ] > Task :app:processDebugResources UP-TO-DATE
[        ] > Task :url_launcher:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :url_launcher:javaPreCompileDebug UP-TO-DATE
[        ] > Task :url_launcher:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :url_launcher:bundleLibCompileToJarDebug UP-TO-DATE
[        ] > Task :app:compileDebugKotlin UP-TO-DATE
[        ] > Task :app:javaPreCompileDebug UP-TO-DATE
[        ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :app:compileDebugSources UP-TO-DATE
[        ] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[        ] > Task :app:compressDebugAssets UP-TO-DATE
[        ] > Task :app:processDebugJavaRes NO-SOURCE
[        ] > Task :url_launcher:processDebugJavaRes NO-SOURCE
[        ] > Task :url_launcher:bundleLibResDebug NO-SOURCE
[        ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :url_launcher:bundleLibRuntimeToJarDebug UP-TO-DATE
[        ] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[        ] > Task :app:dexBuilderDebug UP-TO-DATE
[  +86 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[        ] > Task :app:mergeExtDexDebug UP-TO-DATE
[        ] > Task :app:mergeDexDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :url_launcher:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :url_launcher:mergeDebugNativeLibs NO-SOURCE
[        ] > Task :url_launcher:stripDebugDebugSymbols NO-SOURCE
[        ] > Task :url_launcher:copyDebugJniLibsProjectOnly UP-TO-DATE
[        ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[        ] > Task :app:packageDebug UP-TO-DATE
[        ] > Task :app:assembleDebug
[        ] > Task :url_launcher:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE
[        ] > Task :url_launcher:extractDebugAnnotations UP-TO-DATE
[        ] > Task :url_launcher:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :url_launcher:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :url_launcher:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :url_launcher:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :url_launcher:syncDebugLibJars UP-TO-DATE
[        ] > Task :url_launcher:bundleDebugAar UP-TO-DATE
[        ] > Task :url_launcher:mergeDebugResources UP-TO-DATE
[        ] > Task :url_launcher:compileDebugSources UP-TO-DATE
[        ] > Task :url_launcher:assembleDebug UP-TO-DATE
[        ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[        ] Use '--warning-mode all' to show the individual deprecation warnings.
[        ] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
[        ] BUILD SUCCESSFUL in 2s
[        ] 58 actionable tasks: 5 executed, 53 up-to-date
[ +328 ms] Running Gradle task 'assembleDebug'... (completed in 2.801ms)
[  +51 ms] calculateSha: LocalDirectory: '/home/marcel/tmp/url_launch_freeze/url_launch_freeze/build/app/outputs/flutter-apk'/app.apk
[ +373 ms] ✓  Built build/app/outputs/flutter-apk/app-debug.apk.
[   +1 ms] executing: /home/marcel/Android/Sdk/build-tools/31.0.0/aapt dump xmltree /home/marcel/tmp/url_launch_freeze/url_launch_freeze/build/app/outputs/flutter-apk/app.apk
AndroidManifest.xml
[   +7 ms] Exit code 0 from: /home/marcel/Android/Sdk/build-tools/31.0.0/aapt dump xmltree /home/marcel/tmp/url_launch_freeze/url_launch_freeze/build/app/outputs/flutter-apk/app.apk
AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e
               A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11")
               A: package="com.example.url_launch_freeze" (Raw: "com.example.url_launch_freeze")
               A: platformBuildVersionCode=(type 0x10)0x1e
               A: platformBuildVersionName=(type 0x10)0xb
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: queries (line=16)
                 E: package (line=17)
                   A: android:name(0x01010003)="com.facebook.katana" (Raw: "com.facebook.katana")
                 E: package (line=18)
                   A: android:name(0x01010003)="com.instagram.android" (Raw: "com.instagram.android")
                 E: intent (line=20)
                   E: action (line=21)
                     A: android:name(0x01010003)="android.intent.action.VIEW" (Raw: "android.intent.action.VIEW")
                   E: data (line=23)
                     A: android:scheme(0x01010027)="https" (Raw: "https")
               E: application (line=27)
                 A: android:label(0x01010001)="url_launch_freeze" (Raw: "url_launch_freeze")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=32)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.url_launch_freeze.MainActivity" (Raw: "com.example.url_launch_freeze.MainActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: meta-data (line=46)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=56)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=60)
                     E: action (line=61)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=63)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=70)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
                 E: activity (line=74)
                   A: android:theme(0x01010000)=@0x01030007
                   A: android:name(0x01010003)="io.flutter.plugins.urllauncher.WebViewActivity" (Raw: "io.flutter.plugins.urllauncher.WebViewActivity")
                   A: android:exported(0x01010010)=(type 0x12)0x0
[   +1 ms] Stopping app 'app.apk' on sdk gphone x86.
[        ] executing: /home/marcel/Android/Sdk/platform-tools/adb -s emulator-5554 shell am force-stop com.example.url_launch_freeze
[  +36 ms] executing: /home/marcel/Android/Sdk/platform-tools/adb -s emulator-5554 shell pm list packages com.example.url_launch_freeze
[  +25 ms] package:com.example.url_launch_freeze
[   +1 ms] executing: /home/marcel/Android/Sdk/platform-tools/adb -s emulator-5554 shell cat /data/local/tmp/sky.com.example.url_launch_freeze.sha1
[  +16 ms] 432c7fbaed2a996f550602a3dc7a2082fce9347a
[        ] Latest build already installed.
[        ] executing: /home/marcel/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[  +19 ms] --------- beginning of main
           11-17 12:57:06.613 I/libprocessgroup(  514): Successfully killed process cgroup uid 10157 pid 14908 in 45ms
[   +6 ms] executing: /home/marcel/Android/Sdk/platform-tools/adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true
--ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true com.example.url_launch_freeze/com.example.url_launch_freeze.MainActivity
[  +84 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.url_launch_freeze/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[ +154 ms] W/FlutterActivityAndFragmentDelegate(15159): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration
steps.
[  +69 ms] Observatory URL on device: http://127.0.0.1:34351/6SoFcwSLCF0=/
[        ] executing: /home/marcel/Android/Sdk/platform-tools/adb -s emulator-5554 forward tcp:0 tcp:34351
[   +7 ms] 44105
[        ] Forwarded host port 44105 to device port 34351 for Observatory
[   +7 ms] Caching compiled dill
[  +33 ms] Connecting to service protocol: http://127.0.0.1:44105/6SoFcwSLCF0=/
[ +137 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:44105/6SoFcwSLCF0=/.
[ +148 ms] DDS is listening at http://127.0.0.1:41705/8BVaEuuGzmw=/.
[  +49 ms] Successfully connected to service protocol: http://127.0.0.1:44105/6SoFcwSLCF0=/
[  +39 ms] DevFS: Creating new filesystem on the device (null)
[  +12 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.url_launch_freeze/code_cache/url_launch_freezeCQXYXS/url_launch_freeze/)
[   +1 ms] Updating assets
[  +56 ms] Syncing files to device sdk gphone x86...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +1 ms] <- recompile package:url_launch_freeze/main.dart 02bfa17d-90d1-41d1-9618-c97e47c21e91
[        ] <- 02bfa17d-90d1-41d1-9618-c97e47c21e91
[  +36 ms] Updating files.
[        ] DevFS: Sync finished
[        ] Syncing files to device sdk gphone x86... (completed in 39ms)
[        ] Synced 0.0MB.
[        ] <- accept
[   +2 ms] Connected to _flutterView/0xef348420.
[   +1 ms] Flutter run key commands.
[   +1 ms] r Hot reload. 🔥🔥🔥
[        ] R Hot restart.
[        ] h List all available interactive commands.
[        ] d Detach (terminate "flutter run" but leave application running).
[        ] c Clear the screen
[        ] q Quit (terminate the application on the device).
[        ] 💪 Running with sound null safety 💪
[        ] An Observatory debugger and profiler on sdk gphone x86 is available at: http://127.0.0.1:41705/8BVaEuuGzmw=/
[ +164 ms] DevTools activation throttled until 2021-11-17 23:51:13.861737.
[  +81 ms] D/skia    (15159): Shader compilation error
[        ] D/skia    (15159): ------------------------
[        ] D/skia    (15159): Errors:
[        ] D/skia    (15159): 
[   +1 ms] D/skia    (15159): Shader compilation error
[        ] D/skia    (15159): ------------------------
[        ] D/skia    (15159): Errors:
[        ] D/skia    (15159): 
[        ] D/skia    (15159): Shader compilation error
[        ] D/skia    (15159): ------------------------
[        ] D/skia    (15159): Errors:
[        ] D/skia    (15159): 
[   +2 ms] D/skia    (15159): Shader compilation error
[        ] D/skia    (15159): ------------------------
[        ] D/skia    (15159): Errors:
[        ] D/skia    (15159): 
[  +47 ms] D/skia    (15159): Shader compilation error
[        ] D/skia    (15159): ------------------------
[        ] D/skia    (15159): Errors:
[        ] D/skia    (15159): 
[ +223 ms] The Flutter DevTools debugger and profiler on sdk gphone x86 is available at: http://127.0.0.1:9102?uri=http://127.0.0.1:41705/8BVaEuuGzmw=/
[+2908 ms] I/flutter (15159): Opening https://scapershelper.de
[  +19 ms] I/flutter (15159): Done. Result = true
[+4316 ms] I/flutter (15159): Opening https://www.facebook.com/groups/ScapersHelper
[   +7 ms] I/flutter (15159): Done. Result = true
```


<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
$ flutter doctor -v
[✓] Flutter (Channel stable, 2.5.3, on Arch Linux 5.15.2-arch1-1, locale de_DE.UTF-8)
    • Flutter version 2.5.3 at /home/marcel/devtools/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (vor 5 Wochen), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /home/marcel/Android/Sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /opt/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2020.3)
    • Android Studio at /opt/android-studio
    • Flutter plugin version 62.0.1
    • Dart plugin version 203.8452
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] Connected device (1 available)
    • Pixel 3a (mobile) • 94WAY0TGTW • android-arm64 • Android 12 (API 31)

! Doctor found issues in 1 category.
```

</details>


<!--
      Consider also attaching screenshots and/or videos to better
      illustrate the issue.

      You can upload them directly on GitHub.
      Beware that video file size is limited to 10MB.
-->