Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[local_auth] getAvailableBiometrics always returns empty on Android 6 and older #46227

Closed
progid opened this issue Dec 6, 2019 · 13 comments
Closed
Labels
e: OS-version specific Affects only some versions of the relevant operating system found in release: 1.22 Found to occur in 1.22 has reproducible steps The issue has been confirmed reproducible and is ready to work on p: local_auth Plugin for local authentification P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels. platform-android Android applications specifically r: invalid Issue is closed as not valid

Comments

@progid
Copy link

progid commented Dec 6, 2019

I have a problem with Xiaomi Redmi 4 Pro and Xiaomi Redmi 3S. When I call auth.getAvailableBiometrics () - it returns an empty array to me, but there is a sensor. All fingerprint permissions are provided. Please help.

@janmoppel janmoppel added e: device-specific Only manifests on certain devices p: first party p: local_auth Plugin for local authentification platform-android Android applications specifically labels Dec 6, 2019
@janmoppel
Copy link

Hello @progid !

Thank you for posting an issue.
Can you please provide a bit more information, such as the flutter doctor -v command output and some example, so that the issue can be easily reproduced?

@janmoppel janmoppel added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Dec 6, 2019
@progid
Copy link
Author

progid commented Dec 6, 2019

@janmoppel

flutter doctor -v
flutter doctor --verbose
[✓] Flutter (Channel master, v1.13.1-pre.50, on Mac OS X 10.15.1 19B88, locale ru-UA)
    • Flutter version 1.13.1-pre.50 at /Users/igor/flutter
    • Framework revision 240305238e (6 hours ago), 2019-12-06 04:39:28 -0500
    • Engine revision fd240d0d53
    • Dart version 2.7.0 (build 2.7.0-dev.2.1 a9c77229c2)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/igor/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2.1, Build version 11B500
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 39.0.3
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.1.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 37.0.3
    • Dart plugin version 191.7830

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Dec 6, 2019
@progid
Copy link
Author

progid commented Dec 6, 2019

@janmoppel, to reproduce the error, just print all available biometric types on Xiaomi Redmi 4 Pro or Xiaomi Redmi 3S with touchId

@TahaTesser TahaTesser changed the title [local_auth] getAvailableBiometrics issue [local_auth] getAvailableBiometrics always returns false Android 6 and older Jan 27, 2021
@TahaTesser TahaTesser changed the title [local_auth] getAvailableBiometrics always returns false Android 6 and older [local_auth] getAvailableBiometrics always returns empty on Android 6 and older Jan 27, 2021
@TahaTesser
Copy link
Member

I checked the devices mentioned in #46227 (comment), both devices are either running Android 6 or older and there was a new issue for this Android 6 which lead me here.

I can reproduce it Android 6 emulator, even if you have fingerprint setup done, getAvailableBiometrics is always empty.

code sample
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// ignore_for_file: public_member_api_docs

import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:local_auth/local_auth.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final LocalAuthentication auth = LocalAuthentication();
  bool _canCheckBiometrics;
  List<BiometricType> _availableBiometrics;
  String _authorized = 'Not Authorized';
  bool _isAuthenticating = false;

  Future<void> _checkBiometrics() async {
    bool canCheckBiometrics;
    try {
      canCheckBiometrics = await auth.canCheckBiometrics;
    } on PlatformException catch (e) {
      print(e);
    }
    if (!mounted) return;

    setState(() {
      _canCheckBiometrics = canCheckBiometrics;
    });
  }

  Future<void> _getAvailableBiometrics() async {
    List<BiometricType> availableBiometrics;
    try {
      availableBiometrics = await auth.getAvailableBiometrics();
    } on PlatformException catch (e) {
      print(e);
    }
    if (!mounted) return;

    setState(() {
      _availableBiometrics = availableBiometrics;
    });
  }

  Future<void> _authenticate() async {
    bool authenticated = false;
    try {
      setState(() {
        _isAuthenticating = true;
        _authorized = 'Authenticating';
      });
      authenticated = await auth.authenticateWithBiometrics(
          localizedReason: 'Scan your fingerprint to authenticate',
          useErrorDialogs: true,
          stickyAuth: true);
      setState(() {
        _isAuthenticating = false;
        _authorized = 'Authenticating';
      });
    } on PlatformException catch (e) {
      print(e);
    }
    if (!mounted) return;

    final String message = authenticated ? 'Authorized' : 'Not Authorized';
    setState(() {
      _authorized = message;
    });
  }

  void _cancelAuthentication() {
    auth.stopAuthentication();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        home: Scaffold(
      appBar: AppBar(
        title: const Text('Plugin example app'),
      ),
      body: ConstrainedBox(
          constraints: const BoxConstraints.expand(),
          child: Column(
              mainAxisAlignment: MainAxisAlignment.spaceAround,
              children: <Widget>[
                Text('Can check biometrics: $_canCheckBiometrics\n'),
                RaisedButton(
                  child: const Text('Check biometrics'),
                  onPressed: _checkBiometrics,
                ),
                Text('Available biometrics: $_availableBiometrics\n'),
                RaisedButton(
                  child: const Text('Get available biometrics'),
                  onPressed: _getAvailableBiometrics,
                ),
                Text('Current State: $_authorized\n'),
                RaisedButton(
                  child: Text(_isAuthenticating ? 'Cancel' : 'Authenticate'),
                  onPressed:
                      _isAuthenticating ? _cancelAuthentication : _authenticate,
                )
              ])),
    ));
  }
}
logs
PS C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example> flutters run -v        
[ +102 ms] executing: [C:\Users\Taha\Code\flutter_stable/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +60 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] 9b2d32b605630f28625709ebd9d78ab3016b2bf6
[        ] executing: [C:\Users\Taha\Code\flutter_stable/] git tag --points-at HEAD
[  +36 ms] Exit code 0 from: git tag --points-at HEAD
[        ] 1.22.6
[   +7 ms] executing: [C:\Users\Taha\Code\flutter_stable/] git rev-parse --abbrev-ref --symbolic @{u}
[  +30 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] origin/stable
[        ] executing: [C:\Users\Taha\Code\flutter_stable/] git ls-remote --get-url origin
[  +26 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] https://github.com/flutter/flutter.git
[  +67 ms] executing: [C:\Users\Taha\Code\flutter_stable/] git rev-parse --abbrev-ref HEAD
[  +32 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +49 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[  +18 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +4 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[  +16 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[  +10 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +28 ms] executing: C:\Users\Taha\Code\SDK\platform-tools\adb.exe devices -l
[  +35 ms] List of devices attached
           emulator-5556          device product:sdk_google_phone_x86_64 model:Android_SDK_built_for_x86_64
           device:generic_x86_64 transport_id:3
[  +11 ms] C:\Users\Taha\Code\SDK\platform-tools\adb.exe -s emulator-5556 shell getprop
[  +37 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[   +4 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +7 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +1 ms] 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.
[  +13 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[  +24 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +101 ms] Found plugin flutter_plugin_android_lifecycle at
C:\Users\Taha\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.7\
[   +8 ms] Found plugin local_auth at C:\Users\Taha\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\local_auth-0.6.3+4\
[ +105 ms] Found plugin flutter_plugin_android_lifecycle at
C:\Users\Taha\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-1.0.7\
[   +6 ms] Found plugin local_auth at C:\Users\Taha\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\local_auth-0.6.3+4\
[  +33 ms] Generating
C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +23 ms] ro.hardware = ranchu
[  +26 ms] Using hardware rendering with device Android SDK built for x86 64. If you notice graphics artifacts, consider
enabling software
           rendering with "--enable-software-rendering".
[  +24 ms] Starting incremental build...
[   +8 ms] Initializing file store
[  +10 ms] Skipping target: gen_localizations
[   +9 ms] complete
[  +12 ms] Launching lib\main.dart on Android SDK built for x86 64 in debug mode...
[   +6 ms] C:\Users\Taha\Code\flutter_stable\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Users\Taha\Code\flutter_stable\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Users\Taha\Code\flutter_stable\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter        
--debugger-module-names --experimental-emit-debug-metadata -Ddart.developer.causal_async_stacks=true --output-dill
C:\Users\Taha\AppData\Local\Temp\flutter_tools.14ab244a\flutter_tool.7912f791\app.dill --packages .packages
-Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill     
build\cache.dill.track.dill
[  +49 ms] executing: C:\Users\Taha\Code\SDK\build-tools\30.0.3\aapt dump xmltree
C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +19 ms] Exit code 0 from: C:\Users\Taha\Code\SDK\build-tools\30.0.3\aapt dump xmltree
C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[   +1 ms] 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)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.nevercode.triage" (Raw: "com.nevercode.triage")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=15)
                 A: android:name(0x01010003)="android.permission.USE_FINGERPRINT" (Raw: "android.permission.USE_FINGERPRINT")  
               E: uses-permission (line=16)
                 A: android:name(0x01010003)="android.permission.USE_BIOMETRIC" (Raw: "android.permission.USE_BIOMETRIC")      
               E: application (line=18)
                 A: android:label(0x01010001)="triage" (Raw: "triage")
                 A: android:icon(0x01010002)=@0x7f0b0000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")    
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=24)
                   A: android:theme(0x01010000)=@0x7f0d00a3
                   A: android:name(0x01010003)="com.nevercode.triage.MainActivity" (Raw: "com.nevercode.triage.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=38)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw:
                     "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0d00a4
                   E: meta-data (line=48)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw:
                     "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f0600d5
                   E: intent-filter (line=52)
                     E: action (line=53)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=55)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")                 E: meta-data (line=62)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
                 E: activity (line=66)
                   A: android:theme(0x01010000)=@0x7f0d00a2
                   A: android:name(0x01010003)="androidx.biometric.DeviceCredentialHandlerActivity" (Raw:
                   "androidx.biometric.DeviceCredentialHandlerActivity")
[  +78 ms] executing: C:\Users\Taha\Code\SDK\platform-tools\adb.exe -s emulator-5556 shell -x logcat -v time -t 1
[  +33 ms] Exit code 0 from: C:\Users\Taha\Code\SDK\platform-tools\adb.exe -s emulator-5556 shell -x logcat -v time -t 1
[   +1 ms] --------- beginning of main
           01-27 13:38:37.002 W/AlarmManagerService( 1981): Unable to set rtc to 1611734917: No such device
[   +2 ms] executing: C:\Users\Taha\Code\SDK\platform-tools\adb.exe -s emulator-5556 shell -x logcat -v time -t 1
[  +26 ms] Exit code 0 from: C:\Users\Taha\Code\SDK\platform-tools\adb.exe -s emulator-5556 shell -x logcat -v time -t 1
[   +1 ms] --------- beginning of main
           01-27 13:38:37.002 W/AlarmManagerService( 1981): Unable to set rtc to 1611734917: No such device
[  +15 ms] <- compile package:triage/main.dart
[  +12 ms] executing: C:\Users\Taha\Code\SDK\platform-tools\adb.exe version
[  +38 ms] Android Debug Bridge version 1.0.41
           Version 30.0.5-6877874
           Installed as C:\Users\Taha\Code\SDK\platform-tools\adb.exe
[   +4 ms] executing: C:\Users\Taha\Code\SDK\platform-tools\adb.exe start-server
[  +35 ms] Building APK
[  +22 ms] Running Gradle task 'assembleDebug'...
[   +4 ms] gradle.properties already sets `android.enableR8`
[  +14 ms] Using gradle from
C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example\android\gradlew.bat.
[  +12 ms] C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example\android\gradlew.bat
mode: 33279 rwxrwxrwx.
[  +10 ms] executing: C:\Users\Taha\Code\android-studio\jre\bin\java -version
[  +97 ms] Exit code 0 from: C:\Users\Taha\Code\android-studio\jre\bin\java -version
[        ] openjdk version "1.8.0_242-release"
           OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
           OpenJDK 64-Bit Server VM (build 25.242-b01, mixed mode)
[   +2 ms] executing: [C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example\android/]C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example\android\gradlew.bat
-Pverbose=true -Ptarget-platform=android-x64
-Ptarget=C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example\lib\main.dart
-Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+3584 ms] > Task :app:compileFlutterBuildDebug
[   +1 ms] [ +102 ms] executing: [C:\Users\Taha\Code\flutter_stable/] git -c log.showSignature=false log -n 1
--pretty=format:%H
[  +17 ms] [  +50 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] [        ] 9b2d32b605630f28625709ebd9d78ab3016b2bf6
[   +1 ms] [        ] executing: [C:\Users\Taha\Code\flutter_stable/] git tag --points-at HEAD
[  +17 ms] [  +35 ms] Exit code 0 from: git tag --points-at HEAD
[   +1 ms] [        ] 1.22.6
[        ] [   +7 ms] executing: [C:\Users\Taha\Code\flutter_stable/] git rev-parse --abbrev-ref --symbolic @{u}
[   +1 ms] [  +27 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[  +18 ms] [        ] origin/stable
[   +3 ms] [        ] executing: [C:\Users\Taha\Code\flutter_stable/] git ls-remote --get-url origin
[  +18 ms] [  +24 ms] Exit code 0 from: git ls-remote --get-url origin
[   +4 ms] [        ] https://github.com/flutter/flutter.git
[        ] [  +59 ms] executing: [C:\Users\Taha\Code\flutter_stable/] git rev-parse --abbrev-ref HEAD
[        ] [  +28 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[   +1 ms] [  +30 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[  +12 ms] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[  +13 ms] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[  +13 ms] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[  +12 ms] [   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +6 ms] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[  +39 ms] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] 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.
[  +25 ms] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [  +12 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[  +14 ms] [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[  +29 ms] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[  +14 ms] [        ] 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 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[  +13 ms] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[  +19 ms] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[  +11 ms] [        ] 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.
[  +13 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +14 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[  +37 ms] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[   +9 ms] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[   +1 ms] [  +66 ms] Initializing file store
[        ] [  +14 ms] Skipping target: gen_localizations
[  +14 ms] [   +7 ms] kernel_snapshot: Starting due to {}
[   +1 ms] [  +25 ms] C:\Users\Taha\Code\flutter_stable\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Users\Taha\Code\flutter_stable\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Users\Taha\Code\flutter_stable\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --target=flutter
-Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --no-link-platform --packages
C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example\.packages --output-dill
C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example\.dart_tool\flutter_build\815c658639b59457cd3c889039efb200\app.dill --depfile
C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example\.dart_tool\flutter_build\815c658639b59457cd3c889039efb200\kernel_snapshot.d package:triage/main.dart
[+5269 ms] [+6550 ms] kernel_snapshot: Complete
[ +505 ms] [ +594 ms] debug_android_application: Starting due to {}
[ +189 ms] [ +144 ms] debug_android_application: Complete
[ +599 ms] [ +616 ms] Persisting file store
[   +2 ms] [  +12 ms] Done persisting file store
[  +10 ms] [  +10 ms] build succeeded.
[  +96 ms] [  +14 ms] "flutter assemble" took 8,084ms.
[   +1 ms] [   +2 ms] ensureAnalyticsSent: 0ms
[   +1 ms] [   +1 ms] Running shutdown hooks
[  +13 ms] [        ] Shutdown hooks complete
[   +1 ms] [        ] exiting with code 0
[  +76 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[   +1 ms] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[  +15 ms] > Task :flutter_plugin_android_lifecycle:preBuild UP-TO-DATE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:preDebugBuild UP-TO-DATE
[   +1 ms] > Task :local_auth:preBuild UP-TO-DATE
[        ] > Task :local_auth:preDebugBuild UP-TO-DATE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:compileDebugAidl NO-SOURCE
[  +12 ms] > Task :flutter_plugin_android_lifecycle:packageDebugRenderscript NO-SOURCE
[   +1 ms] > Task :local_auth:packageDebugRenderscript NO-SOURCE
[  +21 ms] > Task :local_auth:compileDebugAidl NO-SOURCE
[   +1 ms] > Task :app:compileDebugAidl NO-SOURCE
[   +1 ms] > Task :app:compileDebugRenderscript NO-SOURCE
[  +33 ms] > Task :app:checkDebugManifest UP-TO-DATE
[   +2 ms] > Task :app:generateDebugBuildConfig UP-TO-DATE
[   +1 ms] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[  +11 ms] > Task :app:compileDebugShaders UP-TO-DATE
[   +2 ms] > Task :app:generateDebugAssets UP-TO-DATE
[  +11 ms] > Task :flutter_plugin_android_lifecycle:mergeDebugShaders UP-TO-DATE
[  +20 ms] > Task :flutter_plugin_android_lifecycle:compileDebugShaders UP-TO-DATE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:generateDebugAssets UP-TO-DATE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:packageDebugAssets UP-TO-DATE
[  +13 ms] > Task :local_auth:mergeDebugShaders UP-TO-DATE
[   +2 ms] > Task :local_auth:compileDebugShaders UP-TO-DATE
[  +19 ms] > Task :local_auth:generateDebugAssets UP-TO-DATE
[  +12 ms] > Task :local_auth:packageDebugAssets UP-TO-DATE
[   +1 ms] > Task :app:mergeDebugAssets
[ +197 ms] > Task :app:copyFlutterAssetsDebug
[   +1 ms] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[  +11 ms] > Task :app:generateDebugResValues UP-TO-DATE
[   +1 ms] > Task :app:generateDebugResources UP-TO-DATE
[  +40 ms] > Task :flutter_plugin_android_lifecycle:generateDebugResValues UP-TO-DATE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:compileDebugRenderscript NO-SOURCE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:generateDebugResources UP-TO-DATE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:packageDebugResources UP-TO-DATE
[  +18 ms] > Task :local_auth:generateDebugResValues UP-TO-DATE
[   +1 ms] > Task :local_auth:compileDebugRenderscript NO-SOURCE
[  +12 ms] > Task :local_auth:generateDebugResources UP-TO-DATE
[   +1 ms] > Task :local_auth:packageDebugResources UP-TO-DATE
[  +18 ms] > Task :app:mergeDebugResources UP-TO-DATE
[  +15 ms] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[   +4 ms] > Task :flutter_plugin_android_lifecycle:checkDebugManifest UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:processDebugManifest UP-TO-DATE
[        ] > Task :local_auth:checkDebugManifest UP-TO-DATE
[  +12 ms] > Task :local_auth:processDebugManifest UP-TO-DATE
[   +1 ms] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:parseDebugLibraryResources UP-TO-DATE
[  +24 ms] > Task :flutter_plugin_android_lifecycle:generateDebugRFile UP-TO-DATE
[   +1 ms] > Task :local_auth:parseDebugLibraryResources UP-TO-DATE
[   +1 ms] > Task :local_auth:generateDebugRFile UP-TO-DATE
[   +1 ms] > Task :app:processDebugResources UP-TO-DATE
[  +12 ms] > Task :flutter_plugin_android_lifecycle:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :local_auth:generateDebugBuildConfig UP-TO-DATE
[  +10 ms] > Task :flutter_plugin_android_lifecycle:javaPreCompileDebug UP-TO-DATE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:bundleLibCompileDebug UP-TO-DATE
[   +1 ms] > Task :local_auth:javaPreCompileDebug UP-TO-DATE
[  +11 ms] > Task :local_auth:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :local_auth:bundleLibCompileDebug UP-TO-DATE
[ +790 ms] > Task :app:compileDebugKotlin
[   +1 ms] > Task :app:processDebugJavaRes NO-SOURCE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:processDebugJavaRes NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:bundleLibResDebug UP-TO-DATE
[        ] > Task :local_auth:processDebugJavaRes NO-SOURCE
[        ] > Task :local_auth:bundleLibResDebug UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:createFullJarDebug UP-TO-DATE
[   +1 ms] > Task :local_auth:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :local_auth:createFullJarDebug UP-TO-DATE
[        ] > Task :app:javaPreCompileDebug
[  +18 ms] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[   +1 ms] > Task :app:compileDebugSources UP-TO-DATE
[  +62 ms] > Task :app:checkDebugDuplicateClasses
[   +1 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[   +1 ms] > Task :app:mergeExtDexDebug UP-TO-DATE
[        ] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[        ] > Task :app:mergeDexDebug UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[        ] > Task :app:signingConfigWriterDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:mergeDebugJniLibFolders UP-TO-DATE
[  +13 ms] > Task :flutter_plugin_android_lifecycle:mergeDebugNativeLibs UP-TO-DATE
[  +24 ms] > Task :flutter_plugin_android_lifecycle:stripDebugDebugSymbols UP-TO-DATE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[        ] > Task :local_auth:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :local_auth:mergeDebugNativeLibs UP-TO-DATE
[  +13 ms] > Task :local_auth:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :local_auth:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[  +11 ms] > Task :flutter_plugin_android_lifecycle:extractDebugAnnotations UP-TO-DATE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:mergeDebugGeneratedProguardFiles UP-TO-DATE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:mergeDebugConsumerProguardFiles UP-TO-DATE
[  +11 ms] > Task :flutter_plugin_android_lifecycle:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugJavaResource UP-TO-DATE
[   +1 ms] > Task :flutter_plugin_android_lifecycle:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[  +18 ms] > Task :flutter_plugin_android_lifecycle:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:bundleDebugAar UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:compileDebugSources UP-TO-DATE
[  +12 ms] > Task :flutter_plugin_android_lifecycle:assembleDebug UP-TO-DATE
[        ] > Task :local_auth:extractDebugAnnotations UP-TO-DATE
[        ] > Task :local_auth:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :local_auth:mergeDebugConsumerProguardFiles UP-TO-DATE
[  +12 ms] > Task :local_auth:prepareLintJarForPublish UP-TO-DATE
[   +1 ms] > Task :local_auth:mergeDebugJavaResource UP-TO-DATE
[  +10 ms] > Task :local_auth:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[   +1 ms] > Task :local_auth:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :local_auth:bundleDebugAar UP-TO-DATE
[        ] > Task :local_auth:compileDebugSources UP-TO-DATE
[        ] > Task :local_auth:assembleDebug UP-TO-DATE
[ +160 ms] > Task :app:mergeDebugNativeLibs
[   +1 ms] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] Compatible side by side NDK version was not found.
[   +1 ms] > Task :app:mergeDebugJavaResource
[+1191 ms] > Task :app:packageDebug
[  +92 ms] > Task :app:assembleDebug
[   +1 ms] BUILD SUCCESSFUL in 13s
[   +1 ms] 87 actionable tasks: 11 executed, 76 up-to-date
[ +550 ms] Running Gradle task 'assembleDebug'... (completed in 14.6s)
[  +27 ms] calculateSha: LocalDirectory:
'C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example\build\app\outputs\flutter-apk'/app.apk
[  +21 ms] calculateSha: reading file took 19us
[ +454 ms] calculateSha: computing sha took 452us
[  +10 ms] √ Built build\app\outputs\flutter-apk\app-debug.apk.
[   +4 ms] executing: C:\Users\Taha\Code\SDK\build-tools\30.0.3\aapt dump xmltree
C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +25 ms] Exit code 0 from: C:\Users\Taha\Code\SDK\build-tools\30.0.3\aapt dump xmltree
C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[  +14 ms] 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)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.nevercode.triage" (Raw: "com.nevercode.triage")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=15)
                 A: android:name(0x01010003)="android.permission.USE_FINGERPRINT" (Raw: "android.permission.USE_FINGERPRINT")  
               E: uses-permission (line=16)
                 A: android:name(0x01010003)="android.permission.USE_BIOMETRIC" (Raw: "android.permission.USE_BIOMETRIC")      
               E: application (line=18)
                 A: android:label(0x01010001)="triage" (Raw: "triage")
                 A: android:icon(0x01010002)=@0x7f0b0000
                 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")    
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=24)
                   A: android:theme(0x01010000)=@0x7f0d00a3
                   A: android:name(0x01010003)="com.nevercode.triage.MainActivity" (Raw: "com.nevercode.triage.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=38)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw:
                     "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0d00a4
                   E: meta-data (line=48)
                     A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw:
                     "io.flutter.embedding.android.SplashScreenDrawable")
                     A: android:resource(0x01010025)=@0x7f0600d5
                   E: intent-filter (line=52)
                     E: action (line=53)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=55)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")                 E: meta-data (line=62)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
                 E: activity (line=66)
                   A: android:theme(0x01010000)=@0x7f0d00a2
                   A: android:name(0x01010003)="androidx.biometric.DeviceCredentialHandlerActivity" (Raw:
                   "androidx.biometric.DeviceCredentialHandlerActivity")
[  +59 ms] Stopping app 'app.apk' on Android SDK built for x86 64.
[  +10 ms] executing: C:\Users\Taha\Code\SDK\platform-tools\adb.exe -s emulator-5556 shell am force-stop com.nevercode.triage  
[ +460 ms] executing: C:\Users\Taha\Code\SDK\platform-tools\adb.exe -s emulator-5556 shell pm list packages
com.nevercode.triage
[ +162 ms] package:com.nevercode.triage
[   +3 ms] executing: C:\Users\Taha\Code\SDK\platform-tools\adb.exe -s emulator-5556 shell cat
/data/local/tmp/sky.com.nevercode.triage.sha1
[  +31 ms] fa105d2184a884023c169df7e225dab950a48698
[  +10 ms] Installing APK.
[  +14 ms] executing: C:\Users\Taha\Code\SDK\platform-tools\adb.exe version
[  +19 ms] Android Debug Bridge version 1.0.41
           Version 30.0.5-6877874
           Installed as C:\Users\Taha\Code\SDK\platform-tools\adb.exe
[   +2 ms] executing: C:\Users\Taha\Code\SDK\platform-tools\adb.exe start-server
[  +19 ms] Installing build\app\outputs\flutter-apk\app.apk...
[   +9 ms] executing: C:\Users\Taha\Code\SDK\platform-tools\adb.exe -s emulator-5556 install -t -r
C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example\build\app\outputs\flutter-apk\app.apk
[+2933 ms] Performing Push Install
                    C:\Users\Taha\AndroidStudioProjects\triage-examples\flutter_plugin_examples\local_auth_example\build\app\ou                    tputs\flutter-apk\app.apk: 1 file pushed, 0 skipped. 170.1 MB/s (40471379 bytes in 0.227s)
                        pkg: /data/local/tmp/app.apk
                    Success
[  +21 ms] Installing build\app\outputs\flutter-apk\app.apk... (completed in 3.0s)
[   +2 ms] executing: C:\Users\Taha\Code\SDK\platform-tools\adb.exe -s emulator-5556 shell echo -n
e1d82f2f1578d93c500804a2b609e10b05be12c7 > /data/local/tmp/sky.com.nevercode.triage.sha1
[  +49 ms] Android SDK built for x86 64 startApp
[   +4 ms] executing: C:\Users\Taha\Code\SDK\platform-tools\adb.exe -s emulator-5556 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.nevercode.triage/com.nevercode.triage.MainActivity
[ +570 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.nevercode.triage/.MainActivity (has extras)
}
[   +2 ms] Waiting for observatory port to be available...
[ +759 ms] Observatory URL on device: http://127.0.0.1:37475/STjkf9qfoaE=/
[   +1 ms] executing: C:\Users\Taha\Code\SDK\platform-tools\adb.exe -s emulator-5556 forward tcp:0 tcp:37475
[  +38 ms] 59499
[   +6 ms] Forwarded host port 59499 to device port 37475 for Observatory
[   +8 ms] Caching compiled dill
[  +51 ms] Connecting to service protocol: http://127.0.0.1:59499/STjkf9qfoaE=/
[   +2 ms] DDS is currently disabled due to https://github.com/flutter/flutter/issues/62507
[ +425 ms] Successfully connected to service protocol: http://127.0.0.1:59499/STjkf9qfoaE=/
[   +1 ms] Waiting for Android SDK built for x86 64 to report its views...
[  +16 ms] Waiting for Android SDK built for x86 64 to report its views... (completed in 14ms)
[  +12 ms] DevFS: Creating new filesystem on the device (null)
[  +31 ms] DevFS: Created new filesystem on the device
(file:///data/user/0/com.nevercode.triage/code_cache/local_auth_exampleUXIWSW/local_auth_example/)
[   +8 ms] Updating assets
[ +120 ms] Syncing files to device Android SDK built for x86 64...
[   +3 ms] Scanning asset files
[  +21 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[  +11 ms] <- recompile package:triage/main.dart d4fb8fea-7fae-4733-85d3-816058cf65a8
[   +1 ms] <- d4fb8fea-7fae-4733-85d3-816058cf65a8
[   +4 ms] I/Choreographer( 5156): Skipped 42 frames!  The application may be doing too much work on its main thread.
[ +105 ms] Updating files
[ +165 ms] DevFS: Sync finished
[   +4 ms] Syncing files to device Android SDK built for x86 64... (completed in 317ms)
[  +14 ms] Synced 1.7MB.
[   +1 ms] <- accept
[   +4 ms] Connected to _flutterView/0x7ff89dba3020.
[   +7 ms] Flutter run key commands.
[   +2 ms] r Hot reload. 
[   +1 ms] R Hot restart.
[   +1 ms] h Repeat this help message.
[   +6 ms] d Detach (terminate "flutter run" but leave application running).
[   +4 ms] c Clear the screen
[   +1 ms] q Quit (terminate the application on the device).
[   +1 ms] An Observatory debugger and profiler on Android SDK built for x86 64 is available at:
http://127.0.0.1:59499/STjkf9qfoaE=/
[ +499 ms] D/EGL_emulation( 5156): eglMakeCurrent: 0x7ff894628820: ver 2 0 (tinfo 0x7ff8982368a0)
[+137031 ms] W/ResourceType( 5156): Invalid package identifier when getting bag for resource number 0x000001a0
[  +18 ms] W/art     ( 5156): Before Android 4.1, method android.graphics.PorterDuffColorFilter
androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter,        
android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private    
method in android.graphics.drawable.Drawable
[   +3 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156): Failed to handle method call
[   +1 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156): java.lang.IllegalStateException: You need to use a
Theme.AppCompat theme (or descendant) with this activity.
[   +2 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:686)
[  +11 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:649)
[   +2 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:542)
[  +10 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.appcompat.app.AppCompatDialog.setContentView(AppCompatDialog.java:95)
[   +1 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.appcompat.app.AlertController.installContent(AlertController.java:232)
[  +14 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.appcompat.app.AlertDialog.onCreate(AlertDialog.java:279)
[  +17 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at android.app.Dialog.dispatchOnCreate(Dialog.java:394)[   +1 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at android.app.Dialog.show(Dialog.java:295)
[   +1 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.fragment.app.DialogFragment.onStart(DialogFragment.java:486)
[   +2 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.fragment.app.Fragment.performStart(Fragment.java:2632)
[   +2 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:915)
[  +14 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManagerImpl.java:1238)
[   +2 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:1303)
[   +2 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:439)
[   +1 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.fragment.app.FragmentManagerImpl.executeOps(FragmentManagerImpl.java:2079)
[   +1 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManagerImpl.java:1869)
[  +10 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManagerImpl.java:1824)
[   +1 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManagerImpl.java:1727)
[   +1 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.fragment.app.FragmentManagerImpl.executePendingTransactions(FragmentManagerImpl.java:183)
[  +13 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.biometric.BiometricPrompt.authenticateInternal(BiometricPrompt.java:749)
[  +10 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
androidx.biometric.BiometricPrompt.authenticate(BiometricPrompt.java:658)
[   +1 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
io.flutter.plugins.localauth.AuthenticationHelper.authenticate(AuthenticationHelper.java:103)
[   +1 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
io.flutter.plugins.localauth.LocalAuthPlugin.onMethodCall(LocalAuthPlugin.java:120)
[  +12 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
[   +2 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
[  +27 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)
[   +2 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at android.os.MessageQueue.nativePollOnce(Native Method)
[   +1 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at android.os.MessageQueue.next(MessageQueue.java:323) 
[   +1 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at android.os.Looper.loop(Looper.java:135)
[        ] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at android.app.ActivityThread.main(ActivityThread.java:5417)
[  +10 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at java.lang.reflect.Method.invoke(Native Method)
[        ] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
[   +1 ms] E/MethodChannel#plugins.flutter.io/local_auth( 5156):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
[   +1 ms] I/flutter ( 5156): PlatformException(error, You need to use a Theme.AppCompat theme (or descendant) with this       
activity., null, java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.  
[   +1 ms] I/flutter ( 5156):   at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:686) 
[        ] I/flutter ( 5156):   at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:649) 
[        ] I/flutter ( 5156):   at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:542) 
[        ] I/flutter ( 5156):   at androidx.appcompat.app.AppCompatDialog.setContentView(AppCompatDialog.java:95)
[        ] I/flutter ( 5156):   at androidx.appcompat.app.AlertController.installContent(AlertController.java:232)
[        ] I/flutter ( 5156):   at androidx.appcompat.app.AlertDialog.onCreate(AlertDialog.java:279)
[  +15 ms] I/flutter ( 5156):   at android.app.Dialog.dispatchOnCreate(Dialog.java:394)
[   +1 ms] I/flutter ( 5156):   at android.app.Dialog.show(Dialog.java:295)
[  +12 ms] I/flutter ( 5156):   at androidx.fragment.app.DialogFragment.onStart(DialogFragment.java:486)
[        ] I/flutter ( 5156):   at androidx.fragment.app.Fragment.performStart(Fragment.java:2632)
[   +9 ms] I/flutter ( 5156):   at androidx.fragment.app.FragmentMan
flutter doctor -v
[✓] Flutter (Channel stable, 1.22.6, on Microsoft Windows [Version 10.0.19042.746], locale en-US)
    • Flutter version 1.22.6 at C:\Users\Taha\Code\flutter_stable
    • Framework revision 9b2d32b605 (4 days ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5


[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Taha\Code\SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\Taha\Code\SDK
    • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[!] Android Studio (version 4.1.0)
    • Android Studio at C:\Users\Taha\Code\android-studio
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.52.1)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.18.1

[✓] Connected device (1 available)
    • Android SDK built for x86 64 (mobile) • emulator-5556 • android-x64 • Android 6.0 (API 23) (emulator)

! Doctor found issues in 1 category.

@TahaTesser TahaTesser added e: OS-version specific Affects only some versions of the relevant operating system found in release: 1.22 Found to occur in 1.22 has reproducible steps The issue has been confirmed reproducible and is ready to work on and removed e: device-specific Only manifests on certain devices labels Jan 27, 2021
@araafat3
Copy link

araafat3 commented Mar 2, 2021

hi @TahaTesser
any update

@stuartmorgan
Copy link
Contributor

Could you retest with the just-published 1.1.2? It's possible this was a bug in the earlier version of androidx.biometrics.

@doc-rj-celltrak
Copy link

I have the same issue on Android 6.0 and local_auth version 1.1.6. Tested on Nexus S emulator with fingerprint enrolled.

@stuartmorgan stuartmorgan added the P2 Important issues not at the top of the work list label Jul 20, 2021
@rokk4

This comment was marked as off-topic.

@nateeither
Copy link

Same Issue here. Tested on Pixel 3 emulator with fingerprint enrolled

@ajinasokan
Copy link

In case anyone want a hot fix until this issue is resolved you can try my fork of this plugin ajinasokan/flutter_local_auth.

It is based on version 1.1.7 and contains patches from flutter/plugins#2464 (for this issue) and flutter/plugins#3807 (for strong mode biometric auth).

@exaby73
Copy link
Member

exaby73 commented Apr 17, 2023

Hello @progid. Unfortunately I do not have access to a physical device running Android 6 or lower, and the emulator doesn't seem to want to work for me. Could you confirm if this is still an issue?

@stuartmorgan
Copy link
Contributor

I'm going to close this as obsolete; we're using the AndroidX BiometricManager now, which is the recommended way of querying support, including backwards compatibility for older Android versions. If that's still not returning correct information on some devices, that would be an issue for the device manufacturer and/or the Android library.

@stuartmorgan stuartmorgan closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2023
@exaby73 exaby73 added the r: invalid Issue is closed as not valid label May 21, 2023
@github-actions
Copy link

github-actions bot commented Jun 4, 2023

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 4, 2023
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
e: OS-version specific Affects only some versions of the relevant operating system found in release: 1.22 Found to occur in 1.22 has reproducible steps The issue has been confirmed reproducible and is ready to work on p: local_auth Plugin for local authentification P2 Important issues not at the top of the work list package flutter/packages repository. See also p: labels. platform-android Android applications specifically r: invalid Issue is closed as not valid
Projects
None yet
Development

No branches or pull requests

10 participants