Repository: flutter
Issue: Route parsing issue when launching app with a deeplink with URL query parameter 
Labels: platform-android,framework,f: routes,has reproducible steps,P2,found in release: 2.5,found in release: 2.6,team-android,triaged-android

## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

1. Use this demo repo: https://github.com/slagathar/FlutterDebug_RouteIssue
2. With app running, run this ADB command:
`adb shell am start -a android.intent.action.VIEW -d "demoapp://dl.demo.app/passwordless?token=abc123\&targetRoute=demoapp%3A%2F%2Fdl.demo.app%2Fpasswordless\&shortCode=F8ZCGU\&userId=12345679"`
3. Tap the back button and you are taken back to main app page
4. Close the app, then run the same ADB command
5. Click the back button

**Expected results:** 

The navigation stack should be the same in both cases

**Actual results:**

There are three additional pages on the route stack. When handling the deeplink, the router handles these *four* routes in this order:

1. /passwordless?token=abc123&targetRoute=demoapp:
2. /passwordless?token=abc123&targetRoute=demoapp:/
3. /passwordless?token=abc123&targetRoute=demoapp://dl.demo.app
4. (Correct Route) /passwordless?token=abc123&targetRoute=demoapp://dl.demo.app/passwordless&shortCode=F8ZCGU&userId=12345679

It  appears that the deep link parsing has an issue because of a query param that is in a URL format. If you remove the targetRoute query param, it seems to work as expected. See with this command:

`adb shell am start -a android.intent.action.VIEW -d "demoapp://dl.demo.app/passwordless?token=abc123\&shortCode=F8ZCGU\&userId=12345679"`

<details>
<summary>Code sample</summary>

<!--
      Please create a minimal reproducible sample that shows the problem
      and attach it below between the lines with the backticks.

      To create it you can use `flutter create bug` command and update the `main.dart` file.

      Alternatively, you can use https://dartpad.dev/
      which is capable of creating and running small Flutter apps.

      Without this we will unlikely be able to progress on the issue, and because of that
      we regretfully will have to close it.
-->


see: https://github.com/slagathar/FlutterDebug_RouteIssue


</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.
-->

```
PS C:\_tryl\deeplink_demo> flutter run --verbose
[  +50 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +352 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] 3595343e20a61ff16d14e8ecc25f364276bb1b8b
[        ] executing: [C:\flutter/] git tag --points-at 3595343e20a61ff16d14e8ecc25f364276bb1b8b
[  +38 ms] Exit code 0 from: git tag --points-at 3595343e20a61ff16d14e8ecc25f364276bb1b8b
[        ] 2.5.2
[   +5 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +22 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\flutter/] git ls-remote --get-url origin     
[  +20 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +78 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref HEAD
[  +21 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +53 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.
[   +2 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.
[  +43 ms] executing: C:\Users\Slagathar\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +31 ms] List of devices attached
           emulator-5554          device product:sdk_phone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:4
[   +4 ms] C:\Users\Slagathar\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell getprop
[  +28 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +5 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] Skipping pub get: version match.
[  +81 ms] Generating C:\_tryl\deeplink_demo\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +41 ms] ro.hardware = ranchu
[   +8 ms] Using hardware rendering with device Android SDK built for x86. If you notice graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[  +19 ms] Initializing file store
[   +8 ms] Skipping target: gen_localizations
[   +5 ms] Skipping target: gen_dart_plugin_registrant
[   +1 ms] Skipping target: _composite
[   +1 ms] complete
[   +4 ms] Launching lib\main.dart on Android SDK built for x86 in debug mode...
[   +4 ms] C:\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\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
C:\Users\SLAGAT~1\AppData\Local\Temp\flutter_tools.d32b740\flutter_tool.fff1d3d\app.dill --packages C:\_tryl\deeplink_demo\.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
[   +8 ms] executing: C:\Users\Slagathar\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree C:\_tryl\deeplink_demo\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[   +9 ms] Exit code 0 from: C:\Users\Slagathar\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree C:\_tryl\deeplink_demo\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.deeplink_demo" (Raw: "com.example.deeplink_demo")
               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: application (line=16)
                 A: android:label(0x01010001)="deeplink_demo" (Raw: "deeplink_demo")
                 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=21)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.deeplink_demo.MainActivity" (Raw: "com.example.deeplink_demo.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=35)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=45)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=49)
                     E: action (line=50)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=52)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                   E: meta-data (line=56)
                     A: android:name(0x01010003)="flutter_deeplinking_enabled" (Raw: "flutter_deeplinking_enabled")
                     A: android:value(0x01010024)=(type 0x12)0xffffffff
                   E: intent-filter (line=60)
                     A: android:autoVerify(0x010104ee)=(type 0x12)0xffffffff
                     E: action (line=61)
                       A: android:name(0x01010003)="android.intent.action.VIEW" (Raw: "android.intent.action.VIEW")
                     E: category (line=63)
                       A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw: "android.intent.category.DEFAULT")
                     E: category (line=64)
                       A: android:name(0x01010003)="android.intent.category.BROWSABLE" (Raw: "android.intent.category.BROWSABLE")
                     E: data (line=66)
                       A: android:scheme(0x01010027)="demoapp" (Raw: "demoapp")
                       A: android:host(0x01010028)="dl.demo.app" (Raw: "dl.demo.app")
                 E: meta-data (line=75)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +8 ms] executing: C:\Users\Slagathar\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[   +9 ms] <- compile package:deeplink_demo/main.dart
[  +25 ms] --------- beginning of system
           11-08 18:00:54.781 E/TaskPersister(  521): File error accessing recents directory (directory doesn't exist?).
[   +7 ms] executing: C:\Users\Slagathar\AppData\Local\Android\sdk\platform-tools\adb.exe version
[  +33 ms] Android Debug Bridge version 1.0.41
           Version 31.0.3-7562133
           Installed as C:\Users\Slagathar\AppData\Local\Android\sdk\platform-tools\adb.exe
[   +1 ms] executing: C:\Users\Slagathar\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[  +17 ms] Building APK
[  +12 ms] Running Gradle task 'assembleDebug'...
[   +3 ms] Using gradle from C:\_tryl\deeplink_demo\android\gradlew.bat.
[   +8 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +105 ms] Exit code 0 from: C:\Program Files\Android\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: C:\Program Files\Android\Android Studio\jre\bin\java -version
[  +91 ms] Exit code 0 from: C:\Program Files\Android\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: [C:\_tryl\deeplink_demo\android/] C:\_tryl\deeplink_demo\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-x86 -Ptarget=C:\_tryl\deeplink_demo\lib\main.dart
-Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root assembleDebug
[ +510 ms] Welcome to Gradle 6.7!
[        ] Here are the highlights of this release:
[        ]  - File system watching is ready for production use
[        ]  - Declare the version of Java your build requires
[        ]  - Java 15 support
[        ] For more details see https://docs.gradle.org/6.7/release-notes.html
[+2499 ms] > Task :app:compileFlutterBuildDebug
[        ] [  +50 ms] executing: [C:\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [ +369 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 3595343e20a61ff16d14e8ecc25f364276bb1b8b
[        ] [        ] executing: [C:\flutter/] git tag --points-at 3595343e20a61ff16d14e8ecc25f364276bb1b8b
[        ] [  +39 ms] Exit code 0 from: git tag --points-at 3595343e20a61ff16d14e8ecc25f364276bb1b8b
[        ] [        ] 2.5.2
[        ] [   +5 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [  +23 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [C:\flutter/] git ls-remote --get-url origin
[        ] [  +20 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +39 ms] executing: [C:\flutter/] git rev-parse --abbrev-ref HEAD
[        ] [  +21 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +39 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +2 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.
[        ] [  +72 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [   +2 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] 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.
[        ] [  +30 ms] Initializing file store
[        ] [  +16 ms] Skipping target: gen_localizations
[        ] [   +9 ms] Skipping target: gen_dart_plugin_registrant
[        ] [   +1 ms] kernel_snapshot: Starting due to {}
[        ] [  +10 ms] C:\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -DFLUTTER_WEB_AUTO_DETECT=true -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts     
--track-widget-creation --no-link-platform --packages C:\_tryl\deeplink_demo\.dart_tool\package_config.json --output-dill C:\_tryl\deeplink_demo\.dart_tool\flutter_build\22c77cb54bd50e83a4179ae51ea862ea\app.dill        
--depfile C:\_tryl\deeplink_demo\.dart_tool\flutter_build\22c77cb54bd50e83a4179ae51ea862ea\kernel_snapshot.d package:deeplink_demo/main.dart
[+5366 ms] [+6170 ms] kernel_snapshot: Complete
[ +408 ms] [ +372 ms] debug_android_application: Starting due to {}
[  +90 ms] [ +125 ms] debug_android_application: Complete
[ +404 ms] [ +402 ms] Persisting file store
[        ] [   +6 ms] Done persisting file store
[        ] [   +5 ms] build succeeded.
[        ] [   +9 ms] "flutter assemble" took 7,249ms.
[  +90 ms] [  +36 ms] ensureAnalyticsSent: 33ms
[        ] [        ] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +108 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:generateDebugBuildConfig 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 :app:mergeDebugAssets
[ +295 ms] > Task :app:copyFlutterAssetsDebug
[        ] > Task :app:generateDebugResValues UP-TO-DATE
[        ] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :app:mergeDebugResources UP-TO-DATE
[        ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] > Task :app:extractDeepLinksDebug UP-TO-DATE
[        ] > Task :app:processDebugMainManifest UP-TO-DATE
[        ] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugManifestForPackage UP-TO-DATE
[        ] > Task :app:processDebugResources 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 :app:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[        ] > Task :app:dexBuilderDebug UP-TO-DATE
[        ] > 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 :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[  +83 ms] > Task :app:packageDebug UP-TO-DATE
[  +51 ms] > Task :app:assembleDebug
[        ] 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 9s
[        ] 32 actionable tasks: 5 executed, 27 up-to-date
[ +516 ms] Running Gradle task 'assembleDebug'... (completed in 10.7s)
[  +26 ms] calculateSha: LocalDirectory: 'C:\_tryl\deeplink_demo\build\app\outputs\flutter-apk'/app.apk
[ +347 ms] √  Built build\app\outputs\flutter-apk\app-debug.apk.
[   +2 ms] executing: C:\Users\Slagathar\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree C:\_tryl\deeplink_demo\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +11 ms] Exit code 0 from: C:\Users\Slagathar\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree C:\_tryl\deeplink_demo\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.deeplink_demo" (Raw: "com.example.deeplink_demo")
               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: application (line=16)
                 A: android:label(0x01010001)="deeplink_demo" (Raw: "deeplink_demo")
                 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=21)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="com.example.deeplink_demo.MainActivity" (Raw: "com.example.deeplink_demo.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=35)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0a0001
                   E: meta-data (line=45)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f040000
                   E: intent-filter (line=49)
                     E: action (line=50)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=52)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                   E: meta-data (line=56)
                     A: android:name(0x01010003)="flutter_deeplinking_enabled" (Raw: "flutter_deeplinking_enabled")
                     A: android:value(0x01010024)=(type 0x12)0xffffffff
                   E: intent-filter (line=60)
                     A: android:autoVerify(0x010104ee)=(type 0x12)0xffffffff
                     E: action (line=61)
                       A: android:name(0x01010003)="android.intent.action.VIEW" (Raw: "android.intent.action.VIEW")
                     E: category (line=63)
                       A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw: "android.intent.category.DEFAULT")
                     E: category (line=64)
                       A: android:name(0x01010003)="android.intent.category.BROWSABLE" (Raw: "android.intent.category.BROWSABLE")
                     E: data (line=66)
                       A: android:scheme(0x01010027)="demoapp" (Raw: "demoapp")
                       A: android:host(0x01010028)="dl.demo.app" (Raw: "dl.demo.app")
                 E: meta-data (line=75)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +4 ms] Stopping app 'app.apk' on Android SDK built for x86.
[        ] executing: C:\Users\Slagathar\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell am force-stop com.example.deeplink_demo
[  +28 ms] executing: C:\Users\Slagathar\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell pm list packages com.example.deeplink_demo
[  +26 ms] package:com.example.deeplink_demo
[   +1 ms] executing: C:\Users\Slagathar\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell cat /data/local/tmp/sky.com.example.deeplink_demo.sha1
[  +21 ms] 192fe1de517e40b4d52a1a39c0283f3a6f91c50d
[        ] Latest build already installed.
[        ] executing: C:\Users\Slagathar\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1
[  +23 ms] --------- beginning of main
           11-08 18:01:10.943 I/cmd     (17571): oneway function results will be dropped but finished with status OK and parcel size 4
[   +3 ms] executing: C:\Users\Slagathar\AppData\Local\Android\sdk\platform-tools\adb.exe -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.deeplink_demo/com.example.deeplink_demo.MainActivity
[  +44 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.deeplink_demo/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[ +383 ms] W/FlutterActivityAndFragmentDelegate(17593): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
[  +89 ms] Observatory URL on device: http://127.0.0.1:33503/mGWe3ABh0M4=/
[   +1 ms] executing: C:\Users\Slagathar\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 forward tcp:0 tcp:33503
[  +15 ms] 54897
[        ] Forwarded host port 54897 to device port 33503 for Observatory
[   +4 ms] Caching compiled dill
[  +22 ms] Connecting to service protocol: http://127.0.0.1:54897/mGWe3ABh0M4=/
[ +211 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:54897/mGWe3ABh0M4=/.
[ +107 ms] DDS is listening at http://127.0.0.1:54900/U_v03zgsX1g=/.
[  +47 ms] Successfully connected to service protocol: http://127.0.0.1:54897/mGWe3ABh0M4=/
[  +46 ms] DevFS: Creating new filesystem on the device (null)
[  +22 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.deeplink_demo/code_cache/deeplink_demoEZWCSP/deeplink_demo/)
[   +1 ms] Updating assets
[  +59 ms] Syncing files to device Android SDK built for x86...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +2 ms] <- recompile package:deeplink_demo/main.dart 85bad391-0f6c-4afa-b984-09ca1e2340f7
[        ] <- 85bad391-0f6c-4afa-b984-09ca1e2340f7
[  +67 ms] Updating files.
[        ] DevFS: Sync finished
[   +1 ms] Syncing files to device Android SDK built for x86... (completed in 72ms)
[        ] Synced 0.0MB.
[   +1 ms] <- accept
[  +12 ms] Connected to _flutterView/0xecbc2c20.
[   +2 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 Android SDK built for x86 is available at: http://127.0.0.1:54900/U_v03zgsX1g=/
[  +91 ms] Activating Dart DevTools...
[+5036 ms] Activating Dart DevTools... (completed in 5.0s)
[ +360 ms] The Flutter DevTools debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:9102?uri=http://127.0.0.1:54900/U_v03zgsX1g=/
[+7461 ms] E/libEGL  (17593): call to OpenGL ES API with no current context (logged once per thread)
[+16655 ms] D/EGL_emulation(17593): eglCreateContext: 0xecba4f90: maj 2 min 0 rcv 2
[        ] D/EGL_emulation(17593): eglCreateContext: 0xecba3470: maj 2 min 0 rcv 2
[        ] D/HostConnection(17593): HostConnection::get() New Host Connection established 0xecb822a0, tid 17650
[   +1 ms] D/HostConnection(17593): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_vertex_array_object
GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2
[   +1 ms] D/EGL_emulation(17593): eglMakeCurrent: 0xecba3470: ver 2 0 (tinfo 0xecefb710) (first time)
[  +16 ms] W/FlutterActivityAndFragmentDelegate(17593): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
[  +38 ms] D/HostConnection(17593): HostConnection::get() New Host Connection established 0xecb9f490, tid 17649
[   +1 ms] D/HostConnection(17593): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_vertex_array_object
GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2
[   +1 ms] D/EGL_emulation(17593): eglMakeCurrent: 0xecba4f90: ver 2 0 (tinfo 0xb974c210) (first time)
[   +2 ms] D/EGL_emulation(17593): eglCreateContext: 0xecb82930: maj 2 min 0 rcv 2
[ +720 ms] I/flutter (17593): App Path: /passwordless?token=abc123&targetRoute=demoapp:
[  +17 ms] I/flutter (17593): Params:
[   +3 ms] I/flutter (17593): {token: abc123, targetRoute: demoapp:}
[   +3 ms] I/flutter (17593): App Path: /passwordless?token=abc123&targetRoute=demoapp:/
[        ] I/flutter (17593): Params:
[        ] I/flutter (17593): {token: abc123, targetRoute: demoapp:/}
[   +2 ms] I/flutter (17593): App Path: /passwordless?token=abc123&targetRoute=demoapp://dl.demo.app
[        ] I/flutter (17593): Params:
[   +1 ms] I/flutter (17593): {token: abc123, targetRoute: demoapp://dl.demo.app}
[        ] I/flutter (17593): App Path: /passwordless?token=abc123&targetRoute=demoapp://dl.demo.app/passwordless&shortCode=F8ZCGU&userId=12345679
[        ] I/flutter (17593): Params:
[        ] I/flutter (17593): {token: abc123, targetRoute: demoapp://dl.demo.app/passwordless, shortCode: F8ZCGU, userId: 12345679}
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[√] Flutter (Channel stable, 2.5.2, on Microsoft Windows [Version 10.0.19042.1288], locale en-US)
    • Flutter version 2.5.2 at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 3595343e20 (6 weeks ago), 2021-09-30 12:58:18 -0700
    • Engine revision 6ac856380f
    • Dart version 2.14.3

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Slagathar\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files\Android\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
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code (version 1.62.0)
    • VS Code at C:\Users\Slagathar\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.28.0

[√] Connected device (3 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Chrome (web)                       • chrome        • web-javascript • Google Chrome 95.0.4638.69
    • Edge (web)                         • edge          • web-javascript • Microsoft Edge 95.0.1020.44

• No issues found!
```

</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.
-->