fluttercommunity / plus_plugins

Flutter Community Plus Plugins
BSD 3-Clause "New" or "Revised" License
1.56k stars 940 forks source link

[Bug]: Turn off android mobile data returns ConnectivityResult.mobile when it should returns connectivityResult.none on HyperOS android 14 #2831

Closed Yukari-Tryhard closed 5 months ago

Yukari-Tryhard commented 5 months ago

Platform

Android 14

Plugin

conectivity_plus

Version

6.0.2

Flutter SDK

3.16.7

Steps to reproduce

  1. Turn on mobile network
  2. Turn off mobile network

Code Sample

class _MyClass extends State<MainLayout> with WidgetsBindingObserver {
  List<ConnectivityResult> _connectionStatus = [ConnectivityResult.none];
  final Connectivity _connectivity = Connectivity();

   Future<void> initConnectivity() async {
    late List<ConnectivityResult> result;
    // Platform messages may fail, so we use a try/catch PlatformException.
    try {
      result = await _connectivity.checkConnectivity();
    } on PlatformException catch (e) {
      print('Couldn\'t check connectivity status $e');
      return;
    }
    if (!mounted) {
      return Future.value(null);
    }

    return _updateConnectionStatus(result);
  }

  Future<void> _updateConnectionStatus(List<ConnectivityResult> result) async {
    setState(() {
      _connectionStatus = result;
    });

    if (result.contains(ConnectivityResult.mobile) ||
        result.contains(ConnectivityResult.wifi)) {
       //Have internetconnection
    } else if (result.contains(ConnectivityResult.ethernet)) {
      // Ethernet connection available.
    } else if (result.contains(ConnectivityResult.vpn)) {
    } else if (result.contains(ConnectivityResult.bluetooth)) {
      // Bluetooth connection available.
    } else if (result.contains(ConnectivityResult.other)) {
      // Connected to a network which is not in the above mentioned networks.
    } else if (result.contains(ConnectivityResult.none)) {
      // no internet connection
    }
}

Logs

`
[        ] Resolve mutations for :signalr_flutter:syncDebugLibJars (Thread[Execution worker Thread 4,5,main]) completed. Took 0.0 secs.     
[        ] :signalr_flutter:syncDebugLibJars (Thread[included builds,5,main]) started.
[        ] > Task :signalr_flutter:syncDebugLibJars
[        ] Caching disabled for task ':signalr_flutter:syncDebugLibJars' because:
[        ]   Build cache is disabled
[        ] Task ':signalr_flutter:syncDebugLibJars' is not up-to-date because:
[        ]   Output property 'localJarsLocation' file
D:\Repos\primasmobilechat\build\signalr_flutter\intermediates\aar_libs_directory\debug\libs has been removed.
[        ]   Output property 'localJarsLocation' file
D:\Repos\primasmobilechat\build\signalr_flutter\intermediates\aar_libs_directory\debug\libs\signalr-client-sdk-android.jar has been removed.[        ]   Output property 'localJarsLocation' file
D:\Repos\primasmobilechat\build\signalr_flutter\intermediates\aar_libs_directory\debug\libs\signalr-client-sdk.jar has been removed.        
[        ] :signalr_flutter:syncDebugLibJars (Thread[included builds,5,main]) completed. Took 0.137 secs.
[        ] Resolve mutations for :signalr_flutter:bundleDebugAar (Thread[Execution worker Thread 4,5,main]) started.
[        ] Resolve mutations for :signalr_flutter:bundleDebugAar (Thread[Execution worker Thread 4,5,main]) completed. Took 0.0 secs.       
[        ] :signalr_flutter:bundleDebugAar (Thread[included builds,5,main]) started.
[        ] > Task :signalr_flutter:bundleDebugAar
[        ] Caching disabled for task ':signalr_flutter:bundleDebugAar' because:
[        ]   Build cache is disabled
[        ] Task ':signalr_flutter:bundleDebugAar' is not up-to-date because:
[   +1 ms]   Output property 'archiveFile' file D:\Repos\primasmobilechat\build\signalr_flutter\outputs\aar\signalr_flutter-debug.aar has
been removed.
[        ] file or directory 'D:\Repos\primasmobilechat\build\signalr_flutter\intermediates\public_res\debug\public.txt', not found
[        ] file or directory 'D:\Repos\primasmobilechat\build\signalr_flutter\intermediates\navigation_json_for_aar\debug\navigation.json', 
not found
[        ] file or directory 'D:\Repos\primasmobilechat\build\signalr_flutter\intermediates\annotations_zip\debug\annotations.zip', not     
found
[        ] file or directory
'D:\Repos\primasmobilechat\build\signalr_flutter\intermediates\merged_consumer_proguard_file\debug\proguard.txt', not found
[        ] file or directory 'D:\Repos\primasmobilechat\build\signalr_flutter\intermediates\lint_publish_jar\global\lint.jar', not found    
[        ] file or directory 'D:\Repos\primasmobilechat\build\signalr_flutter\intermediates\library_art_profile\debug\baseline-prof.txt',   
not found
[        ] file or directory 'D:\Repos\primasmobilechat\build\signalr_flutter\intermediates\aidl_parcelable\debug\out', not found
[        ] file or directory 'D:\Repos\primasmobilechat\build\signalr_flutter\intermediates\renderscript_headers\debug\out', not found      
[        ] :signalr_flutter:bundleDebugAar (Thread[included builds,5,main]) completed. Took 0.039 secs.
[        ] Resolve mutations for :signalr_flutter:assembleDebug (Thread[Execution worker Thread 4,5,main]) started.
[        ] Resolve mutations for :signalr_flutter:assembleDebug (Thread[Execution worker Thread 4,5,main]) completed. Took 0.0 secs.        
[        ] :signalr_flutter:assembleDebug (Thread[included builds,5,main]) started.
[        ] > Task :signalr_flutter:assembleDebug
[        ] Skipping task ':signalr_flutter:assembleDebug' as it has no actions.
[        ] :signalr_flutter:assembleDebug (Thread[included builds,5,main]) completed. Took 0.0 secs.
[        ] Resolve mutations for :webview_flutter_android:assembleDebug (Thread[included builds,5,main]) started.
[        ] Resolve mutations for :webview_flutter_android:assembleDebug (Thread[included builds,5,main]) completed. Took 0.0 secs.
[        ] :webview_flutter_android:assembleDebug (Thread[Execution worker Thread 6,5,main]) started.
[        ] > Task :webview_flutter_android:assembleDebug
[        ] Skipping task ':webview_flutter_android:assembleDebug' as it has no actions.
[        ] :webview_flutter_android:assembleDebug (Thread[Execution worker Thread 6,5,main]) completed. Took 0.0 secs.
[        ] > Task :app:stripDebugDebugSymbols
[        ] Caching disabled for task ':app:stripDebugDebugSymbols' because:
[        ]   Build cache is disabled
[        ] Task ':app:stripDebugDebugSymbols' is not up-to-date because:
[        ]   Output property 'outputDir' file D:\Repos\primasmobilechat\build\app\intermediates\stripped_native_libs\debug\out has been
removed.
[        ]   Output property 'outputDir' file D:\Repos\primasmobilechat\build\app\intermediates\stripped_native_libs\debug\out\lib has been 
removed.
[        ]   Output property 'outputDir' file D:\Repos\primasmobilechat\build\app\intermediates\stripped_native_libs\debug\out\lib\arm64-v8ahas been removed.
[        ] The input changes require a full rebuild for incremental task ':app:stripDebugDebugSymbols'.
[        ] C/C++: android.ndkVersion from module build.gradle is [23.1.7779620]
[   +1 ms] C/C++: android.ndkVersion from module build.gradle is [23.1.7779620]
[        ] C/C++: android.ndkVersion from module build.gradle is [23.1.7779620]
[        ] C/C++: android.ndkVersion from module build.gradle is [23.1.7779620]
[        ] C/C++: android.ndkPath from module build.gradle is not set
[        ] C/C++: android.ndkPath from module build.gradle is not set
[        ] C/C++: ndk.dir in local.properties is not set
[        ] C/C++: android.ndkPath from module build.gradle is not set
[        ] C/C++: Not considering ANDROID_NDK_HOME because support was removed after deprecation period.
[        ] C/C++: ndk.dir in local.properties is not set
[        ] C/C++: sdkFolder is C:\Users\Tinnt\AppData\Local\Android\sdk
[        ] C/C++: android.ndkPath from module build.gradle is not set
[        ] C/C++: Not considering ANDROID_NDK_HOME because support was removed after deprecation period.
[        ] C/C++: ndk.dir in local.properties is not set
[        ] C/C++: NDK side-by-side folder from sdkFolder C:\Users\Tinnt\AppData\Local\Android\sdk\ndk does not exist
[        ] C/C++: sdkFolder is C:\Users\Tinnt\AppData\Local\Android\sdk
[        ] C/C++: ndk.dir in local.properties is not set
[        ] C/C++: Not considering ANDROID_NDK_HOME because support was removed after deprecation period.
[        ] C/C++: NDK side-by-side folder from sdkFolder C:\Users\Tinnt\AppData\Local\Android\sdk\ndk does not exist
[        ] C/C++: sdkFolder is C:\Users\Tinnt\AppData\Local\Android\sdk
[        ] C/C++: Folder C:\Users\Tinnt\AppData\Local\Android\sdk\ndk\23.1.7779620 does not exist. Ignoring.
[        ] C/C++: Folder C:\Users\Tinnt\AppData\Local\Android\sdk\ndk\23.1.7779620 does not exist. Ignoring.
[        ] C/C++: Not considering ANDROID_NDK_HOME because support was removed after deprecation period.
[        ] C/C++: Folder C:\Users\Tinnt\AppData\Local\Android\sdk\ndk-bundle does not exist. Ignoring.
[        ] C/C++: NDK side-by-side folder from sdkFolder C:\Users\Tinnt\AppData\Local\Android\sdk\ndk does not exist
[        ] C/C++: Folder C:\Users\Tinnt\AppData\Local\Android\sdk\ndk-bundle does not exist. Ignoring.
[        ] C/C++: sdkFolder is C:\Users\Tinnt\AppData\Local\Android\sdk
[        ] C/C++: Folder C:\Users\Tinnt\AppData\Local\Android\sdk\ndk\23.1.7779620 does not exist. Ignoring.
[        ] C/C++: NDK side-by-side folder from sdkFolder C:\Users\Tinnt\AppData\Local\Android\sdk\ndk does not exist
[        ] C/C++: Folder C:\Users\Tinnt\AppData\Local\Android\sdk\ndk-bundle does not exist. Ignoring.
[        ] C/C++: Folder C:\Users\Tinnt\AppData\Local\Android\sdk\ndk\23.1.7779620 does not exist. Ignoring.
[   +1 ms] C/C++: Folder C:\Users\Tinnt\AppData\Local\Android\sdk\ndk-bundle does not exist. Ignoring.
[        ] Unable to strip library 'D:\Repos\primasmobilechat\build\app\intermediates\merged_native_libs\debug\out\lib\x86\libflutter.so'   
due to missing strip tool for ABI 'X86'. Packaging it as is.
[        ] Unable to strip library
'D:\Repos\primasmobilechat\build\app\intermediates\merged_native_libs\debug\out\lib\arm64-v8a\libVkLayer_khronos_validation.so' due to      
missing strip tool for ABI 'ARM64_V8A'. Packaging it as is.
[        ] Unable to strip library
'D:\Repos\primasmobilechat\build\app\intermediates\merged_native_libs\debug\out\lib\arm64-v8a\libflutter.so' due to missing strip tool for  
ABI 'ARM64_V8A'. Packaging it as is.
[   +1 ms] Unable to strip library 'D:\Repos\primasmobilechat\build\app\intermediates\merged_native_libs\debug\out\lib\x86_64\libflutter.so'due to missing strip tool for ABI 'X86_64'. Packaging it as is.
[        ] Unable to strip the following libraries, packaging them as they are: libVkLayer_khronos_validation.so, libflutter.so.
[        ] :app:stripDebugDebugSymbols (Thread[Execution worker Thread 3,5,main]) completed. Took 7.835 secs.
[        ] Resolve mutations for :app:packageDebug (Thread[Execution worker Thread 6,5,main]) started.
[        ] Resolve mutations for :app:packageDebug (Thread[Execution worker Thread 6,5,main]) completed. Took 0.0 secs.
[        ] :app:packageDebug (Thread[Execution worker Thread 3,5,main]) started.
[        ] > Task :app:packageDebug
[        ] Caching disabled for task ':app:packageDebug' because:
[        ]   Build cache is disabled
[        ] Task ':app:packageDebug' is not up-to-date because:
[        ]   Output property 'ideModelOutputFile' file D:\Repos\primasmobilechat\build\app\outputs\apk\debug\output-metadata.json has been  
removed.
[        ]   Output property 'incrementalFolder' file D:\Repos\primasmobilechat\build\app\intermediates\incremental\packageDebug\tmp has    
been removed.
[        ]   Output property 'incrementalFolder' file D:\Repos\primasmobilechat\build\app\intermediates\incremental\packageDebug\tmp\debug  
has been removed.
[        ] The input changes require a full rebuild for incremental task ':app:packageDebug'.
[+8379 ms] :app:packageDebug (Thread[Execution worker Thread 3,5,main]) completed. Took 11.706 secs.
[   +1 ms] Resolve mutations for :app:createDebugApkListingFileRedirect (Thread[Execution worker Thread 6,5,main]) started.
[        ] Resolve mutations for :app:createDebugApkListingFileRedirect (Thread[Execution worker Thread 6,5,main]) completed. Took 0.0 secs.[   +1 ms] :app:createDebugApkListingFileRedirect (Thread[Execution worker Thread 6,5,main]) started.
[        ] producer locations for task group 0 (Thread[Execution worker Thread 4,5,main]) started.
[        ] producer locations for task group 0 (Thread[Execution worker Thread 4,5,main]) completed. Took 0.0 secs.
[ +106 ms] > Task :app:createDebugApkListingFileRedirect
[   +1 ms] Caching disabled for task ':app:createDebugApkListingFileRedirect' because:
[        ]   Build cache is disabled
[        ] Task ':app:createDebugApkListingFileRedirect' is not up-to-date because:
[        ]   Output property 'redirectFile' file D:\Repos\primasmobilechat\build\app\intermediates\apk_ide_redirect_file\debug\redirect.txt 
has been removed.
[        ] :app:createDebugApkListingFileRedirect (Thread[Execution worker Thread 6,5,main]) completed. Took 0.008 secs.
[        ] Resolve mutations for :app:assembleDebug (Thread[Execution worker Thread 4,5,main]) started.
[        ] Resolve mutations for :app:assembleDebug (Thread[Execution worker Thread 4,5,main]) completed. Took 0.0 secs.
[        ] :app:assembleDebug (Thread[Execution worker Thread 2,5,main]) started.
[ +588 ms] > Task :app:assembleDebug
[   +1 ms] Caching disabled for task ':app:assembleDebug' because:
[        ]   Build cache is disabled
[        ] Task ':app:assembleDebug' is not up-to-date because:
[        ]   Task has not declared any outputs despite executing actions.
[        ] :app:assembleDebug (Thread[Execution worker Thread 2,5,main]) completed. Took 0.631 secs.
[        ] AAPT2 aapt2-7.3.0-8691043-windows Daemon #0: shutdown
[ +292 ms] BUILD SUCCESSFUL in 1m 55s
[        ] 615 actionable tasks: 506 executed, 109 up-to-date
[        ] Watched directory hierarchies: [D:\Dependencies\flutter\packages\flutter_tools\gradle, D:\Repos\primasmobilechat\android]        
[ +737 ms] Running Gradle task 'assembleDebug'... (completed in 116.9s)
[  +32 ms] Calculate SHA1: LocalDirectory: 'D:\Repos\primasmobilechat\build\app\outputs\flutter-apk'/app-debug.apk
[+2128 ms] √  Built build\app\outputs\flutter-apk\app-debug.apk.
[  +17 ms] executing: C:\Users\Tinnt\AppData\Local\Android\sdk\build-tools\34.0.0\aapt dump xmltree
D:\Repos\primasmobilechat\build\app\outputs\flutter-apk\app-debug.apk AndroidManifest.xml
[  +56 ms] Exit code 0 from: C:\Users\Tinnt\AppData\Local\Android\sdk\build-tools\34.0.0\aapt dump xmltree
D:\Repos\primasmobilechat\build\app\outputs\flutter-apk\app-debug.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)0x22
               A: android:compileSdkVersionCodename(0x01010573)="14" (Raw: "14")
               A: package="com.example.chatapp" (Raw: "com.example.chatapp")
               A: platformBuildVersionCode=(type 0x10)0x22
               A: platformBuildVersionName=(type 0x10)0xe
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x21
               E: uses-permission (line=15)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=16)
                 A: android:name(0x01010003)="android.permission.RECEIVE_BOOT_COMPLETED" (Raw: "android.permission.RECEIVE_BOOT_COMPLETED") 
               E: uses-permission (line=17)
                 A: android:name(0x01010003)="android.permission.SCHEDULE_EXACT_ALARM" (Raw: "android.permission.SCHEDULE_EXACT_ALARM")     
                 A: android:maxSdkVersion(0x01010271)=(type 0x10)0x20
               E: uses-permission (line=20)
                 A: android:name(0x01010003)="android.permission.USE_EXACT_ALARM" (Raw: "android.permission.USE_EXACT_ALARM")
               E: uses-permission (line=21)
                 A: android:name(0x01010003)="android.permission.WAKE_LOCK" (Raw: "android.permission.WAKE_LOCK")
               E: uses-permission (line=22)
                 A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE")     
               E: uses-permission (line=23)
                 A: android:name(0x01010003)="android.permission.POST_NOTIFICATIONS" (Raw: "android.permission.POST_NOTIFICATIONS")
               E: uses-permission (line=24)
                 A: android:name(0x01010003)="android.permission.READ_EXTERNAL_STORAGE" (Raw: "android.permission.READ_EXTERNAL_STORAGE")   
                 A: android:maxSdkVersion(0x01010271)=(type 0x10)0x20
               E: queries (line=28)
                 E: intent (line=29)
                   E: action (line=30)
                     A: android:name(0x01010003)="android.intent.action.GET_CONTENT" (Raw: "android.intent.action.GET_CONTENT")
                   E: data (line=32)
                     A: android:mimeType(0x01010026)="*/*" (Raw: "*/*")
               E: uses-permission (line=36)
                 A: android:name(0x01010003)="android.permission.VIBRATE" (Raw: "android.permission.VIBRATE")
               E: uses-permission (line=37)
                 A: android:name(0x01010003)="android.permission.READ_MEDIA_IMAGES" (Raw: "android.permission.READ_MEDIA_IMAGES")
               E: uses-permission (line=38)
                 A: android:name(0x01010003)="android.permission.READ_MEDIA_VIDEO" (Raw: "android.permission.READ_MEDIA_VIDEO")
               E: uses-permission (line=39)
                 A: android:name(0x01010003)="android.permission.READ_MEDIA_AUDIO" (Raw: "android.permission.READ_MEDIA_AUDIO")
               E: uses-permission (line=40)
                 A: android:name(0x01010003)="com.google.android.c2dm.permission.RECEIVE" (Raw:
                 "com.google.android.c2dm.permission.RECEIVE")
               E: uses-permission (line=41)
                 A: android:name(0x01010003)="com.google.android.providers.gsf.permission.READ_GSERVICES" (Raw:
                 "com.google.android.providers.gsf.permission.READ_GSERVICES")
               E: permission (line=43)
                 A: android:name(0x01010003)="com.example.chatapp.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION" (Raw:
                 "com.example.chatapp.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION")
                 A: android:protectionLevel(0x01010009)=(type 0x11)0x2
               E: uses-permission (line=47)
                 A: android:name(0x01010003)="com.example.chatapp.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION" (Raw:
                 "com.example.chatapp.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION")
               E: application (line=49)
                 A: android:label(0x01010001)="Primas Chat" (Raw: "Primas Chat")
                 A: android:icon(0x01010002)=@0x7f0c0000
                 A: android:name(0x01010003)="io.flutter.app.FlutterMultiDexApplication" (Raw: "io.flutter.app.FlutterMultiDexApplication") 
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:usesCleartextTraffic(0x010104ec)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:
                 "androidx.core.app.CoreComponentFactory")
                 E: receiver (line=56)
                   A: android:name(0x01010003)="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" (Raw:
                   "com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=59)
                   A: android:name(0x01010003)="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver" (Raw:
                   "com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   E: intent-filter (line=62)
                     E: action (line=63)
                       A: android:name(0x01010003)="android.intent.action.BOOT_COMPLETED" (Raw: "android.intent.action.BOOT_COMPLETED")     
                     E: action (line=64)
                       A: android:name(0x01010003)="android.intent.action.MY_PACKAGE_REPLACED" (Raw:
                       "android.intent.action.MY_PACKAGE_REPLACED")
                     E: action (line=65)
                       A: android:name(0x01010003)="android.intent.action.QUICKBOOT_POWERON" (Raw:
                       "android.intent.action.QUICKBOOT_POWERON")
                     E: action (line=66)
                       A: android:name(0x01010003)="com.htc.intent.action.QUICKBOOT_POWERON" (Raw:
                       "com.htc.intent.action.QUICKBOOT_POWERON")
                 E: activity (line=70)
                   A: android:theme(0x01010000)=@0x7f0f00a1
                   A: android:name(0x01010003)="com.example.chatapp.MainActivity" (Raw: "com.example.chatapp.MainActivity")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   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=85)
                     A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw:
                     "io.flutter.embedding.android.NormalTheme")
                     A: android:resource(0x01010025)=@0x7f0f00a2
                   E: intent-filter (line=89)
                     E: action (line=90)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=92)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=99)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
                 E: service (line=103)
                   A: android:name(0x01010003)="com.google.firebase.components.ComponentDiscoveryService" (Raw:
                   "com.google.firebase.components.ComponentDiscoveryService")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:directBootAware(0x01010505)=(type 0x12)0xffffffff
                   E: meta-data (line=107)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.firestore.FlutterFirebaseFirestore                     Registrar" (Raw:
                     "com.google.firebase.components:io.flutter.plugins.firebase.firestore.FlutterFirebaseFirestoreRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=110)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.dynamiclinks.FlutterFirebaseAppReg                     istrar" (Raw: "com.google.firebase.components:io.flutter.plugins.firebase.dynamiclinks.FlutterFirebaseAppRegistrar")   
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=113)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.auth.FlutterFirebaseAuthRegistrar"                     (Raw: "com.google.firebase.components:io.flutter.plugins.firebase.auth.FlutterFirebaseAuthRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=116)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.storage.FlutterFirebaseAppRegistra                     r" (Raw: "com.google.firebase.components:io.flutter.plugins.firebase.storage.FlutterFirebaseAppRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=119)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.messaging.FlutterFirebaseAppRegist                     rar" (Raw: "com.google.firebase.components:io.flutter.plugins.firebase.messaging.FlutterFirebaseAppRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=122)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFirebaseCoreRegistrar"                     (Raw: "com.google.firebase.components:io.flutter.plugins.firebase.core.FlutterFirebaseCoreRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=125)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar" (Raw:      
                     "com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=128)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:com.google.firebase.firestore.FirebaseFirestoreKtxRegistrar"  
                     (Raw: "com.google.firebase.components:com.google.firebase.firestore.FirebaseFirestoreKtxRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=131)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.firestore.FirestoreRegistrar" (Raw:    
                     "com.google.firebase.components:com.google.firebase.firestore.FirestoreRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=134)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:com.google.firebase.messaging.FirebaseMessagingKtxRegistrar"  
                     (Raw: "com.google.firebase.components:com.google.firebase.messaging.FirebaseMessagingKtxRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=137)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.messaging.FirebaseMessagingRegistrar"  
                     (Raw: "com.google.firebase.components:com.google.firebase.messaging.FirebaseMessagingRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=140)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:com.google.firebase.dynamiclinks.FirebaseDynamicLinksKtxRegist                     rar" (Raw: "com.google.firebase.components:com.google.firebase.dynamiclinks.FirebaseDynamicLinksKtxRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=143)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:com.google.firebase.dynamiclinks.internal.FirebaseDynamicLinkR                     egistrar" (Raw:
                     "com.google.firebase.components:com.google.firebase.dynamiclinks.internal.FirebaseDynamicLinkRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=146)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.storage.FirebaseStorageKtxRegistrar"   
                     (Raw: "com.google.firebase.components:com.google.firebase.storage.FirebaseStorageKtxRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=149)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.storage.StorageRegistrar" (Raw:        
                     "com.google.firebase.components:com.google.firebase.storage.StorageRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=152)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.iid.Registrar" (Raw:
                     "com.google.firebase.components:com.google.firebase.iid.Registrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=155)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:com.google.firebase.installations.FirebaseInstallationsKtxRegi                     strar" (Raw: "com.google.firebase.components:com.google.firebase.installations.FirebaseInstallationsKtxRegistrar")     
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=158)
                     A:
                     android:name(0x01010003)="com.google.firebase.components:com.google.firebase.installations.FirebaseInstallationsRegistr                     ar" (Raw: "com.google.firebase.components:com.google.firebase.installations.FirebaseInstallationsRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=161)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.appcheck.FirebaseAppCheckKtxRegistrar" 
                     (Raw: "com.google.firebase.components:com.google.firebase.appcheck.FirebaseAppCheckKtxRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=164)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.appcheck.FirebaseAppCheckRegistrar"    
                     (Raw: "com.google.firebase.components:com.google.firebase.appcheck.FirebaseAppCheckRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=167)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.ktx.FirebaseCommonLegacyRegistrar"     
                     (Raw: "com.google.firebase.components:com.google.firebase.ktx.FirebaseCommonLegacyRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=170)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.FirebaseCommonKtxRegistrar" (Raw:      
                     "com.google.firebase.components:com.google.firebase.FirebaseCommonKtxRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                   E: meta-data (line=173)
                     A: android:name(0x01010003)="com.google.firebase.components:com.google.firebase.datatransport.TransportRegistrar" (Raw:                     "com.google.firebase.components:com.google.firebase.datatransport.TransportRegistrar")
                     A: android:value(0x01010024)="com.google.firebase.components.ComponentRegistrar" (Raw:
                     "com.google.firebase.components.ComponentRegistrar")
                 E: service (line=177)
                   A: android:name(0x01010003)="io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingBackgroundService" (Raw:      
                   "io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingBackgroundService")
                   A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw: "android.permission.BIND_JOB_SERVICE")     
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: service (line=181)
                   A: android:name(0x01010003)="io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingService" (Raw:
                   "io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingService")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   E: intent-filter (line=184)
                     E: action (line=185)
                       A: android:name(0x01010003)="com.google.firebase.MESSAGING_EVENT" (Raw: "com.google.firebase.MESSAGING_EVENT")       
                 E: receiver (line=189)
                   A: android:name(0x01010003)="io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingReceiver" (Raw:
                   "io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingReceiver")
                   A: android:permission(0x01010006)="com.google.android.c2dm.permission.SEND" (Raw:
                   "com.google.android.c2dm.permission.SEND")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   E: intent-filter (line=193)
                     E: action (line=194)
                       A: android:name(0x01010003)="com.google.android.c2dm.intent.RECEIVE" (Raw: "com.google.android.c2dm.intent.RECEIVE") 
                 E: provider (line=198)
                   A: android:name(0x01010003)="io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingInitProvider" (Raw:
                   "io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingInitProvider")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:authorities(0x01010018)="com.example.chatapp.flutterfirebasemessaginginitprovider" (Raw:
                   "com.example.chatapp.flutterfirebasemessaginginitprovider")
                   A: android:initOrder(0x0101001a)=(type 0x10)0x63
                 E: provider (line=203)
                   A: android:name(0x01010003)="io.flutter.plugins.imagepicker.ImagePickerFileProvider" (Raw:
                   "io.flutter.plugins.imagepicker.ImagePickerFileProvider")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:authorities(0x01010018)="com.example.chatapp.flutter.image_provider" (Raw:
                   "com.example.chatapp.flutter.image_provider")
                   A: android:grantUriPermissions(0x0101001b)=(type 0x12)0xffffffff
                   E: meta-data (line=208)
                     A: android:name(0x01010003)="android.support.FILE_PROVIDER_PATHS" (Raw: "android.support.FILE_PROVIDER_PATHS")
                     A: android:resource(0x01010025)=@0x7f110001
                 E: activity (line=213)
                   A: android:theme(0x01010000)=@0x01030007
                   A: android:name(0x01010003)="io.flutter.plugins.urllauncher.WebViewActivity" (Raw:
                   "io.flutter.plugins.urllauncher.WebViewActivity")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: provider (line=218)
                   A: android:name(0x01010003)="com.crazecoder.openfile.FileProvider" (Raw: "com.crazecoder.openfile.FileProvider")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:authorities(0x01010018)="com.example.chatapp.fileProvider.com.crazecoder.openfile" (Raw:
                   "com.example.chatapp.fileProvider.com.crazecoder.openfile")
                   A: android:grantUriPermissions(0x0101001b)=(type 0x12)0xffffffff
                   E: meta-data (line=223)
                     A: android:name(0x01010003)="android.support.FILE_PROVIDER_PATHS" (Raw: "android.support.FILE_PROVIDER_PATHS")
                     A: android:resource(0x01010025)=@0x7f110000
                 E: activity (line=228)
                   A: android:theme(0x01010000)=@0x01030010
                   A: android:name(0x01010003)="com.google.firebase.auth.internal.GenericIdpActivity" (Raw:
                   "com.google.firebase.auth.internal.GenericIdpActivity")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
                   A: android:launchMode(0x0101001d)=(type 0x10)0x2
                   E: intent-filter (line=234)
                     E: action (line=235)
                       A: android:name(0x01010003)="android.intent.action.VIEW" (Raw: "android.intent.action.VIEW")
                     E: category (line=237)
                       A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw: "android.intent.category.DEFAULT")
                     E: category (line=238)
                       A: android:name(0x01010003)="android.intent.category.BROWSABLE" (Raw: "android.intent.category.BROWSABLE")
                     E: data (line=240)
                       A: android:scheme(0x01010027)="genericidp" (Raw: "genericidp")
                       A: android:host(0x01010028)="firebase.auth" (Raw: "firebase.auth")
                       A: android:path(0x0101002a)="/" (Raw: "/")
                 E: activity (line=246)
                   A: android:theme(0x01010000)=@0x01030010
                   A: android:name(0x01010003)="com.google.firebase.auth.internal.RecaptchaActivity" (Raw:
                   "com.google.firebase.auth.internal.RecaptchaActivity")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   A: android:excludeFromRecents(0x01010017)=(type 0x12)0xffffffff
                   A: android:launchMode(0x0101001d)=(type 0x10)0x2
                   E: intent-filter (line=252)
                     E: action (line=253)
                       A: android:name(0x01010003)="android.intent.action.VIEW" (Raw: "android.intent.action.VIEW")
                     E: category (line=255)
                       A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw: "android.intent.category.DEFAULT")
                     E: category (line=256)
                       A: android:name(0x01010003)="android.intent.category.BROWSABLE" (Raw: "android.intent.category.BROWSABLE")
                     E: data (line=258)
                       A: android:scheme(0x01010027)="recaptcha" (Raw: "recaptcha")
                       A: android:host(0x01010028)="firebase.auth" (Raw: "firebase.auth")
                       A: android:path(0x0101002a)="/" (Raw: "/")
                 E: receiver (line=265)
                   A: android:name(0x01010003)="com.google.firebase.iid.FirebaseInstanceIdReceiver" (Raw:
                   "com.google.firebase.iid.FirebaseInstanceIdReceiver")
                   A: android:permission(0x01010006)="com.google.android.c2dm.permission.SEND" (Raw:
                   "com.google.android.c2dm.permission.SEND")
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   E: intent-filter (line=269)
                     E: action (line=270)
                       A: android:name(0x01010003)="com.google.android.c2dm.intent.RECEIVE" (Raw: "com.google.android.c2dm.intent.RECEIVE") 
                   E: meta-data (line=273)
                     A: android:name(0x01010003)="com.google.android.gms.cloudmessaging.FINISHED_AFTER_HANDLED" (Raw:
                     "com.google.android.gms.cloudmessaging.FINISHED_AFTER_HANDLED")
                     A: android:value(0x01010024)=(type 0x12)0xffffffff
                 E: service (line=281)
                   A: android:name(0x01010003)="com.google.firebase.messaging.FirebaseMessagingService" (Raw:
                   "com.google.firebase.messaging.FirebaseMessagingService")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:directBootAware(0x01010505)=(type 0x12)0xffffffff
                   E: intent-filter (line=285)
                     A: android:priority(0x0101001c)=(type 0x10)0xfffffe0c
                     E: action (line=286)
                       A: android:name(0x01010003)="com.google.firebase.MESSAGING_EVENT" (Raw: "com.google.firebase.MESSAGING_EVENT")       
                 E: uses-library (line=290)
                   A: android:name(0x01010003)="androidx.window.extensions" (Raw: "androidx.window.extensions")
                   A: android:required(0x0101028e)=(type 0x12)0x0
                 E: uses-library (line=293)
                   A: android:name(0x01010003)="androidx.window.sidecar" (Raw: "androidx.window.sidecar")
                   A: android:required(0x0101028e)=(type 0x12)0x0
                 E: activity (line=297)
                   A: android:theme(0x01010000)=@0x01030010
                   A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw:
                   "com.google.android.gms.common.api.GoogleApiActivity")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: provider (line=302)
                   A: android:name(0x01010003)="com.google.firebase.provider.FirebaseInitProvider" (Raw:
                   "com.google.firebase.provider.FirebaseInitProvider")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:authorities(0x01010018)="com.example.chatapp.firebaseinitprovider" (Raw:
                   "com.example.chatapp.firebaseinitprovider")
                   A: android:initOrder(0x0101001a)=(type 0x10)0x64
                   A: android:directBootAware(0x01010505)=(type 0x12)0xffffffff
                 E: meta-data (line=309)
                   A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version")
                   A: android:value(0x01010024)=@0x7f090004
                 E: provider (line=313)
                   A: android:name(0x01010003)="androidx.startup.InitializationProvider" (Raw: "androidx.startup.InitializationProvider")   
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   A: android:authorities(0x01010018)="com.example.chatapp.androidx-startup" (Raw: "com.example.chatapp.androidx-startup")  
                   E: meta-data (line=317)
                     A: android:name(0x01010003)="androidx.emoji2.text.EmojiCompatInitializer" (Raw:
                     "androidx.emoji2.text.EmojiCompatInitializer")
                     A: android:value(0x01010024)="androidx.startup" (Raw: "androidx.startup")
                   E: meta-data (line=320)
                     A: android:name(0x01010003)="androidx.lifecycle.ProcessLifecycleInitializer" (Raw:
                     "androidx.lifecycle.ProcessLifecycleInitializer")
                     A: android:value(0x01010024)="androidx.startup" (Raw: "androidx.startup")
                   E: meta-data (line=323)
                     A: android:name(0x01010003)="androidx.profileinstaller.ProfileInstallerInitializer" (Raw:
                     "androidx.profileinstaller.ProfileInstallerInitializer")
                     A: android:value(0x01010024)="androidx.startup" (Raw: "androidx.startup")
                 E: receiver (line=328)
                   A: android:name(0x01010003)="androidx.profileinstaller.ProfileInstallReceiver" (Raw:
                   "androidx.profileinstaller.ProfileInstallReceiver")
                   A: android:permission(0x01010006)="android.permission.DUMP" (Raw: "android.permission.DUMP")
                   A: android:enabled(0x0101000e)=(type 0x12)0xffffffff
                   A: android:exported(0x01010010)=(type 0x12)0xffffffff
                   A: android:directBootAware(0x01010505)=(type 0x12)0x0
                   E: intent-filter (line=334)
                     E: action (line=335)
                       A: android:name(0x01010003)="androidx.profileinstaller.action.INSTALL_PROFILE" (Raw:
                       "androidx.profileinstaller.action.INSTALL_PROFILE")
                   E: intent-filter (line=337)
                     E: action (line=338)
                       A: android:name(0x01010003)="androidx.profileinstaller.action.SKIP_FILE" (Raw:
                       "androidx.profileinstaller.action.SKIP_FILE")
                   E: intent-filter (line=340)
                     E: action (line=341)
                       A: android:name(0x01010003)="androidx.profileinstaller.action.SAVE_PROFILE" (Raw:
                       "androidx.profileinstaller.action.SAVE_PROFILE")
                   E: intent-filter (line=343)
                     E: action (line=344)
                       A: android:name(0x01010003)="androidx.profileinstaller.action.BENCHMARK_OPERATION" (Raw:
                       "androidx.profileinstaller.action.BENCHMARK_OPERATION")
                 E: service (line=348)
                   A: android:name(0x01010003)="com.google.android.datatransport.runtime.backends.TransportBackendDiscovery" (Raw:
                   "com.google.android.datatransport.runtime.backends.TransportBackendDiscovery")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                   E: meta-data (line=351)
                     A: android:name(0x01010003)="backend:com.google.android.datatransport.cct.CctBackendFactory" (Raw:
                     "backend:com.google.android.datatransport.cct.CctBackendFactory")
                     A: android:value(0x01010024)="cct" (Raw: "cct")
                 E: service (line=355)
                   A: android:name(0x01010003)="com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService"  
                   (Raw: "com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService")
                   A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw: "android.permission.BIND_JOB_SERVICE")     
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=361)
                   A:
                   android:name(0x01010003)="com.google.android.datatransport.runtime.scheduling.jobscheduling.AlarmManagerSchedulerBroadcas                   tReceiver" (Raw:
                   "com.google.android.datatransport.runtime.scheduling.jobscheduling.AlarmManagerSchedulerBroadcastReceiver")
                   A: android:exported(0x01010010)=(type 0x12)0x0
[  +87 ms] Stopping app 'app-debug.apk' on 21081111RG.
[        ] executing: C:\Users\Tinnt\AppData\Local\Android\sdk\platform-tools\adb.exe -s ojm7d67ppvx8dulb shell am force-stop
com.example.chatapp
[ +166 ms] executing: C:\Users\Tinnt\AppData\Local\Android\sdk\platform-tools\adb.exe -s ojm7d67ppvx8dulb shell pm list packages
com.example.chatapp
[  +77 ms] package:com.example.chatapp
[   +2 ms] executing: C:\Users\Tinnt\AppData\Local\Android\sdk\platform-tools\adb.exe -s ojm7d67ppvx8dulb shell cat
/data/local/tmp/sky.com.example.chatapp.sha1
[  +76 ms] fa27b91d6e74b74d7d2aef687ddfc3df6a0caf56
[   +1 ms] Installing APK.
[   +1 ms] Installing build\app\outputs\flutter-apk\app-debug.apk...
[        ] executing: C:\Users\Tinnt\AppData\Local\Android\sdk\platform-tools\adb.exe -s ojm7d67ppvx8dulb install -t -r
D:\Repos\primasmobilechat\build\app\outputs\flutter-apk\app-debug.apk
[+7667 ms] Performing Streamed Install
                    Success
[   +1 ms] Installing build\app\outputs\flutter-apk\app-debug.apk... (completed in 7.7s)
[   +2 ms] executing: C:\Users\Tinnt\AppData\Local\Android\sdk\platform-tools\adb.exe -s ojm7d67ppvx8dulb shell echo -n
bb7e2adbd990a364faaeab29f50009f993747364 > /data/local/tmp/sky.com.example.chatapp.sha1
[  +71 ms] executing: C:\Users\Tinnt\AppData\Local\Android\sdk\platform-tools\adb.exe -s ojm7d67ppvx8dulb shell -x logcat -v time -t 1
[ +484 ms] --------- beginning of main
                    04-10 10:20:37.148 D/C2MtkBufferManager( 1135): over 5000ms not request from VCodec but callback hooked, slow BM Cc     
                    fetch thread
[  +15 ms] executing: C:\Users\Tinnt\AppData\Local\Android\sdk\platform-tools\adb.exe -s ojm7d67ppvx8dulb shell am start -a
android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x20000000 --ez enable-dart-profiling true --ez enable-checked-mode true  
--ez verify-entry-points true com.example.chatapp/com.example.chatapp.MainActivity
[ +131 ms] Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x20000000
cmp=com.example.chatapp/.MainActivity (has extras) }
[   +1 ms] Waiting for VM Service port to be available...
[ +934 ms] VM Service URL on device: http://127.0.0.1:37205/Dk5uPgud_7U=/
[   +1 ms] executing: C:\Users\Tinnt\AppData\Local\Android\sdk\platform-tools\adb.exe -s ojm7d67ppvx8dulb forward tcp:0 tcp:37205
[  +68 ms] 59335
[        ] Forwarded host port 59335 to device port 37205 for VM Service
[   +4 ms] Caching compiled dill
[  +71 ms] Connecting to service protocol: http://127.0.0.1:59335/Dk5uPgud_7U=/
[ +175 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:59335/Dk5uPgud_7U=/.
[ +144 ms] DDS is listening at http://127.0.0.1:59338/uSQabSKEtu4=/.
[  +82 ms] Successfully connected to service protocol: http://127.0.0.1:59335/Dk5uPgud_7U=/
[  +57 ms] DevFS: Creating new filesystem on the device (null)
[  +16 ms] DevFS: Created new filesystem on the device
(file:///data/user/0/com.example.chatapp/code_cache/primasmobilechatYZLLNU/primasmobilechat/)
[   +3 ms] Updating assets
[ +369 ms] Syncing files to device 21081111RG...
[   +2 ms] Compiling dart to kernel with 0 updated files
[        ] Processing bundle.
[        ] <- recompile package:chatapp/main.dart 201c6d44-609a-404b-baa7-b2a9ff40d906
[        ] <- 201c6d44-609a-404b-baa7-b2a9ff40d906
[   +4 ms] Bundle processing done.
[ +275 ms] Updating files.
[        ] DevFS: Sync finished
[   +1 ms] Syncing files to device 21081111RG... (completed in 285ms)
[   +1 ms] Synced 0.0MB.
[   +2 ms] <- accept
[   +6 ms] Connected to _flutterView/0xb400007950b32420.
[   +5 ms] Flutter run key commands.
[   +3 ms] r Hot reload. 
[   +1 ms] 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).
[   +3 ms] A Dart VM Service on 21081111RG is available at: http://127.0.0.1:59338/uSQabSKEtu4=/
[ +429 ms] W/WindowOnBackDispatcher(24612): OnBackInvokedCallback is not enabled for the application.
[   +2 ms] W/WindowOnBackDispatcher(24612): Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
[  +13 ms] The Flutter DevTools debugger and profiler on 21081111RG is available at:
http://127.0.0.1:9101?uri=http://127.0.0.1:59338/uSQabSKEtu4=/
[  +93 ms] D/MAGT_SYNC_FRAME(24612): MAGT Sync: MAGT is not supported. Disabling Sync.
[   +4 ms] D/hw-ProcessState(24612): Binder ioctl to enable oneway spam detection failed: Invalid argument
[   +5 ms] E/LB      (24612): fail to open file: No such file or directory
[        ] E/LB      (24612): fail to open node: No such file or directory
[        ] W/libc    (24612): Access denied finding property "ro.vendor.display.iris_x7.support"
[        ] D/BLASTBufferQueue(24612): [SurfaceView[com.example.chatapp/com.example.chatapp.MainActivity]#1](f:0,a:1) acquireNextBufferLockedsize=1080x2356 mFrameNumber=1 applyTransaction=true mTimestamp=119244499865644(auto) mPendingTransactions.size=0
graphicBufferId=105707735089152 transform=0
[   +1 ms] D/VRI[MainActivity](24612): vri.Setup new sync=wmsSync-VRI[MainActivity]#2
[   +2 ms] D/OpenGLRenderer(24612): makeCurrent grContext:0xb40000795c4bd500 reset mTextureAvailable
[   +2 ms] D/example.chatapp(24612): MiuiProcessManagerServiceStub setSchedFifo
[        ] I/MiuiProcessManagerImpl(24612): setSchedFifo pid:24612, mode:3
[   +2 ms] W/libc    (24612): Access denied finding property "ro.vendor.display.iris_x7.support"
[   +3 ms] D/BLASTBufferQueue(24612): [VRI[MainActivity]#0](f:0,a:1) acquireNextBufferLocked size=1080x2400 mFrameNumber=1
applyTransaction=true mTimestamp=119244513205644(auto) mPendingTransactions.size=0 graphicBufferId=105707735089153 transform=0
[   +1 ms] D/VRI[MainActivity](24612): vri.reportDrawFinished
[  +19 ms] I/HandWritingStubImpl(24612): refreshLastKeyboardType: 1
[        ] I/HandWritingStubImpl(24612): getCurrentKeyboardType: 1
[   +5 ms] I/HandWritingStubImpl(24612): getCurrentKeyboardType: 1
[  +27 ms] I/mali    (24612): [DebugProp] GPU Debug-Mechanism Disable !
[   +1 ms] E/libEGL  (24612): pre_cache appList: ,,,,,,
[+3876 ms] W/libc    (24612): Access denied finding property "ro.vendor.display.iris_x7.support"
[ +214 ms] D/ProfileInstaller(24612): Installing profile for com.example.chatapp
[+2461 ms] W/MirrorManager(24612): this model don't Support
[+1009 ms] I/flutter (24612): Checking if you are connected to signalr.
[   +8 ms] W/FinalizerDaemon(24612): type=1400 audit(0.0:132403): avc:  denied  { getopt } for  path="/dev/socket/usap_pool_primary"
scontext=u:r:untrusted_app_32:s0:c145,c257,c512,c768 tcontext=u:r:zygote:s0 tclass=unix_stream_socket permissive=0 app=com.example.chatapp  
[   +8 ms] W/example.chatapp(24612): Accessing hidden field Ljava/util/Collections$SynchronizedCollection;->mutex:Ljava/lang/Object;        
(max-target-o, reflection, denied)
[   +1 ms] W/example.chatapp(24612): Accessing hidden field Ljava/util/Collections$SynchronizedCollection;->c:Ljava/util/Collection;        
(unsupported, reflection, allowed)
[   +1 ms] W/example.chatapp(24612): Accessing hidden method
Ljava/util/Collections$SynchronizedSet;-><init>(Ljava/util/Set;Ljava/lang/Object;)V (max-target-o, reflection, denied)
[        ] W/example.chatapp(24612): Accessing hidden method
Ljava/util/Collections$SynchronizedCollection;-><init>(Ljava/util/Collection;Ljava/lang/Object;)V (max-target-o, reflection, denied)        
[  +20 ms] D/TrafficStats(24612): tagSocket(3) with statsTag=0xffffffff, statsUid=-1
[   +1 ms] D/TrafficStats(24612): tagSocket(195) with statsTag=0xffffffff, statsUid=-1
[  +43 ms] I/flutter (24612): Connecting....
[   +5 ms] I/flutter (24612): Signalr connect called.
[        ] I/flutter (24612): Connecting....
[        ] I/flutter (24612): Signalr connect called.
[        ] I/flutter (24612): Connecting....
[        ] I/flutter (24612): Signalr connect called.
[   +1 ms] D/TrafficStats(24612): tagSocket(204) with statsTag=0xffffffff, statsUid=-1
[        ] D/TrafficStats(24612): tagSocket(206) with statsTag=0xffffffff, statsUid=-1
[   +1 ms] D/TrafficStats(24612): tagSocket(213) with statsTag=0xffffffff, statsUid=-1
`

Flutter Doctor

flutter doctor -v
[√] Flutter (Channel stable, 3.16.7, on Microsoft Windows
    [Version 10.0.19045.4170], locale en-US)
    • Flutter version 3.16.7 on channel stable at
      D:\Dependencies\flutter
    • Upstream repository
      https://github.com/flutter/flutter.git
    • Framework revision ef1af02aea (3 months ago),
      2024-01-11 15:19:26 -0600
    • Engine revision 4a585b7929
    • Dart version 3.2.4
    • DevTools version 2.28.5

[√] Windows Version (Installed version of Windows is version    10 or higher)

[!] Android toolchain - develop for Android devices (Android    SDK version 34.0.0)
    • Android SDK at
      C:\Users\Tinnt\AppData\Local\Android\sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: D:\Apps\Android\Android
      Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build       
      17.0.7+0-b2043.56-10550314)
    ! Some Android licenses not accepted. To resolve this,  
      run: flutter doctor --android-licenses

[√] Chrome - develop for the web
    • Chrome at C:\Program
      Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop Windows apps (Visual Studio     
    Community 2022 17.9.0)
    • Visual Studio at C:\Program Files\Microsoft Visual    
      Studio\2022\Community
    • Visual Studio Community 2022 version 17.9.34607.119   
    X Visual Studio is missing necessary components. Please 
      re-run the Visual Studio installer for the "Desktop   
      development with C++" workload, and include these     
      components:
        MSVC v142 - VS 2019 C++ x64/x86 build tools
         - If there are multiple build tool versions        
         available, install the latest
        C++ CMake tools for Windows
        Windows 10 SDK

[√] Android Studio (version 2023.1)
    • Android Studio at D:\Apps\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       
      17.0.7+0-b2043.56-10550314)

[√] VS Code (version 1.88.0)
    • VS Code at
      C:\Users\Tinnt\AppData\Local\Programs\Microsoft VS    
      Code
    • Flutter extension version 3.86.0

[√] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 •        
      android-x64    • Android 14 (API 34) (emulator)       
    • Windows (desktop)            • windows       •        
      windows-x64    • Microsoft Windows [Version
      10.0.19045.4170]
    • Chrome (web)                 • chrome        •        
      web-javascript • Google Chrome 123.0.6312.106
    • Edge (web)                   • edge          •        
      web-javascript • Microsoft Edge 123.0.2420.81

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Checklist before submitting a bug

miquelbeltran commented 5 months ago

Hi @Yukari-Tryhard

Note that the plugin relies on the Android OS reporting from the ConnectivityManager network capabilities. So if the OS decides to report it has mobile there is nothing we can do about it.

Turn off mobile network

What do you do exactly? i.e. which setting do you turn off in your phone

HyperOS android 14

Do you have this issue with other Android devices?

Yukari-Tryhard commented 5 months ago

What do you do exactly? i.e. which setting do you turn off in your phone I turn off mobile data on my real device. Not the emulator

Do you have this issue with other Android devices? No i don't. As far as i know for now android 12 work fine. I'll do a test later on other android device.

Just a suggestion do you have any page for which version of android or OS it compatible with. Cause when i trouble shooting connectivity_plus i have no idea if it's my fault or it's package fault or it's OS fault

miquelbeltran commented 5 months ago

This looks like is the OS fault, or to be precise, HyperOS implementation (is that from Xiaomi?).

We cannot keep track of which device works and not, that would be impossible.

If this was something that happened on all devices, then we would surely investigate the issue. But since only happens on this specific one, there is nothing we can do.

miquelbeltran commented 5 months ago

Once thing that I have noticed testing on my device (Pixel 5) is that changes in WiFi trigger a connectivity change event, e.g. it changes from ConnectivityResult.wifi to .mobile. However, disconnecting from mobile data doesn't trigger this change, and instead I need to force update the connectivity value, then it correctly reports ConnectivityResult.none.

So while checkConnectivity seems correct, onConnectivityChanged is not reporting mobile changes correctly.

I will check if there is something that could be improved in the plugin code, or if this is an Android issue.

Can you confirm if checkConnectivity works as expected?