woodemi / quick_usb

A cross-platform (Android/Windows/macOS/Linux) USB plugin for Flutter
BSD 3-Clause "New" or "Revised" License
43 stars 30 forks source link

Cannot run bulkTransferIn on Android properly #50

Closed serkankavak closed 2 years ago

serkankavak commented 2 years ago

Im going to use this package in an app that is running both on Android and Linux. I modified the example app little bit and used it for Android but I have faced with an error that I haven't been able to find any solution.

modified example app

From the example app, I go over as

  1. init
  2. getDeviceList
  3. hasPermission
  4. requestPermission
  5. openDevice
  6. getConfiguration
  7. claimInterface
  8. bulkTransferIn

Everything seems alright until I start reading data at step 8.

The error:

E/MethodChannel#quick_usb(26400): Failed to handle method call
E/MethodChannel#quick_usb(26400): java.lang.IllegalArgumentException: Requested element count -1 is less than zero.
E/MethodChannel#quick_usb(26400):   at kotlin.collections.ArraysKt___ArraysKt.take(_Arrays.kt:4783)
E/MethodChannel#quick_usb(26400):   at com.example.quick_usb.QuickUsbPlugin.onMethodCall(QuickUsbPlugin.kt:141)
E/MethodChannel#quick_usb(26400):   at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
E/MethodChannel#quick_usb(26400):   at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:296)
E/MethodChannel#quick_usb(26400):   at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$DartMessenger(DartMessenger.java:320)
E/MethodChannel#quick_usb(26400):   at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$TsixYUB5E6FpKhMtCSQVHKE89gQ.run(Unknown Source:12)
E/MethodChannel#quick_usb(26400):   at android.os.Handler.handleCallback(Handler.java:938)
E/MethodChannel#quick_usb(26400):   at android.os.Handler.dispatchMessage(Handler.java:99)
E/MethodChannel#quick_usb(26400):   at android.os.Looper.loop(Looper.java:247)
E/MethodChannel#quick_usb(26400):   at android.app.ActivityThread.main(ActivityThread.java:8676)
E/MethodChannel#quick_usb(26400):   at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#quick_usb(26400):   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
E/MethodChannel#quick_usb(26400):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
E/flutter (26400): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(error, Requested element count -1 is less than zero., null, java.lang.IllegalArgumentException: Requested element count -1 is less than zero.
E/flutter (26400):  at kotlin.collections.ArraysKt___ArraysKt.take(_Arrays.kt:4783)
E/flutter (26400):  at com.example.quick_usb.QuickUsbPlugin.onMethodCall(QuickUsbPlugin.kt:141)
E/flutter (26400):  at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
E/flutter (26400):  at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:296)
E/flutter (26400):  at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$DartMessenger(DartMessenger.java:320)
E/flutter (26400):  at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$TsixYUB5E6FpKhMtCSQVHKE89gQ.run(Unknown Source:12)
E/flutter (26400):  at android.os.Handler.handleCallback(Handler.java:938)
E/flutter (26400):  at android.os.Handler.dispatchMessage(Handler.java:99)
E/flutter (26400):  at android.os.Looper.loop(Looper.java:247)
E/flutter (26400):  at android.app.ActivityThread.main(ActivityThread.java:8676)
E/flutter (26400):  at java.lang.reflect.Method.invoke(Native Method)
E/flutter (26400):  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
E/flutter (26400):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
E/flutter (26400): )
E/flutter (26400): #0      StandardMethodCodec.decodeEnvelope
E/flutter (26400): #1      MethodChannel._invokeMethod
E/flutter (26400): <asynchronous suspension>
E/flutter (26400): #2      QuickUsbAndroid.bulkTransferIn
E/flutter (26400): <asynchronous suspension>
E/flutter (26400): #3      _MyAppState._bulkTransfer.<anonymous closure>
E/flutter (26400): <asynchronous suspension>
E/flutter (26400):

Interestingly, when I use bulkTransferOut, I get the correct output: I/flutter (26400): bulkTransferOut 2

Sunbreak commented 2 years ago

Log please

serkankavak commented 2 years ago

[√] Flutter (Channel stable, 2.10.2, on Microsoft Windows [Version 10.0.19043.1526], locale en-GB) • Flutter version 2.10.2 at C:\Users\Seko\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 097d3313d8 (13 days ago), 2022-02-18 19:33:08 -0600 • Engine revision a83ed0e5e3 • Dart version 2.16.1 • DevTools version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0) • Android SDK at C:\Users\Seko\AppData\Local\Android\sdk • Platform android-31, build-tools 31.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822) • All Android licenses accepted.

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

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.4) • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community • Visual Studio Community 2022 version 17.0.32014.148 • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2021.1) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)

[√] VS Code (version 1.64.2) • VS Code at C:\Users\Seko\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.36.0

[√] Connected device (4 available) • SM P610 (mobile) • 192.168.50.154:5555 • android-arm64 • Android 11 (API 30) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19043.1526] • Chrome (web) • chrome • web-javascript • Google Chrome 98.0.4758.102 • Edge (web) • edge • web-javascript • Microsoft Edge 98.0.1108.62

[√] HTTP Host Availability • All required HTTP hosts are available

• No issues found!

Sunbreak commented 2 years ago

Any logcat on Android device?

serkankavak commented 2 years ago

Logcat of running the app:

List of devices attached
192.168.50.154:5555 device

--------- beginning of system
03-04 17:42:55.716  4957  4995 D SemGameManager: getGMSBinder(), successful: true
03-04 17:42:55.716  4957  4995 D GameManagerService: identifyGamePackage. com.seko.quick_usb_example, mCurrentUserId: 0, callerUserId: 0
03-04 17:42:55.716  4957  4995 D PkgDataHelper: getGamePkgData(). com.seko.quick_usb_example
03-04 17:42:55.716  4957  4957 I CocktailBarManagerServiceContainer: handleMessage: entry what = 5
03-04 17:42:55.719  4957  4995 D GameManagerService: noteResumeComponent(), received resumed-component: com.seko.quick_usb_example
03-04 17:42:55.719  4957  5106 D GameManagerService: onLooperPrepared(), msg: MSG_APP_RESUME, resumeComponent: ComponentInfo{com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity}
03-04 17:42:55.719  4957  5106 D GameManagerService: handleResume().
03-04 17:42:55.719  8695  8695 I Utils   : HomePackage : com.sec.android.app.launcher, resumePackageName : com.seko.quick_usb_example
03-04 17:42:55.720  4957  5106 D GameManagerService: handleResume() - secureFolderID: -1301
03-04 17:42:55.720  4957  5106 D GameManagerService: sendFocusOutConditionally() - mPrevNotiPackage: (unknown)
03-04 17:42:55.720  4957  5106 D GameManagerService:   handleResume(). pkgName: com.seko.quick_usb_example, isTunableApp: null
03-04 17:42:55.720  4957  5106 D GameManagerService: notifyFocusInOut(). of pkg: com.seko.quick_usb_example, type: 4, isMinimized: false, isTunableApp: false
03-04 17:42:55.720  4957  5106 D GameManagerService:   notifyFocusInOut(). unexpected mPrevNotiType: -1
03-04 17:42:55.720  4957  5106 D GameManagerService:NetworkLimit: callRelease
03-04 17:42:55.720  4957  5106 D GM:SystemHelper: callReleaseBlock needReleaseBlock:false
03-04 17:42:55.722  5277  5277 V Navbar.Store: getValue(BOOL_SUPPORT_PHONE_LAYOUT_PROVIDER)=false
03-04 17:42:55.722  4957  4995 D SemGameManager: getGMSBinder(), begin
03-04 17:42:55.723  4957  4995 D SemGameManager: getGMSBinder(), successful: true
03-04 17:42:55.723  4957  4995 D SemGameManager: isAvailable(), ret=true
03-04 17:42:55.723  4957  4995 D SemGameManager: isGamePackage(), pkgName=com.seko.quick_usb_example
03-04 17:42:55.723  4957  4995 D SemGameManager: getGMSBinder(), begin
03-04 17:42:55.724  4957  4995 D SemGameManager: getGMSBinder(), successful: true
03-04 17:42:55.724  4957  4995 D GameManagerService: identifyGamePackage. com.seko.quick_usb_example, mCurrentUserId: 0, callerUserId: 0
03-04 17:42:55.724  4957  4995 D PkgDataHelper: getGamePkgData(). com.seko.quick_usb_example
03-04 17:42:55.724  4957  4995 D SemGameManager: isGamePackage(), ret=false
03-04 17:42:55.725  4957  4993 D SehCodecSolutionService: Update top [com.seko.quick_usb_example]
03-04 17:42:55.727  4957  4993 D SSRM:LoadDetectMonitor: PID = 10092, UID = 10188
03-04 17:42:55.727  4957  5198 D PkgPredictorService: com.seko.quick_usb_example go to foreground!
03-04 17:42:55.727  4957  5198 E PkgPredictorService-Collector: record changed bt=0  wifi=1 screen=1
03-04 17:42:55.727  4957  5198 D PkgPredictorService: previous pkgs: com.seko.quick_usb_example,com.seko.quick_usb_example,com.seko.quick_usb_example running pkg: com.seko.quick_usb_example, uid: 0 is system: false
03-04 17:42:55.727  4957  5198 D PkgPredictorService-Collector: save record...
03-04 17:42:55.727  4957  5198 D PkgPredictorService-Collector:  (hour:17 day:6 previous:[com.seko.quick_usb_example, com.seko.quick_usb_example, com.seko.quick_usb_example] activityName:unknown running:com.seko.quick_usb_example userId:0 screenOrientation:1 wifi:1 bt:0 predictTime:1 apkVersion:1.0.0 consumeTime:-1 preloaded:false>)
03-04 17:42:55.727  4957  5198 D PkgPredictorService-NapPreloadController: User using: com.seko.quick_usb_example
03-04 17:42:55.727  4957  5198 I PkgPredictorService-NapClassifier: RF predict version:1646330828849
03-04 17:42:55.728  4957  5198 D PkgPredictorService-NapClassifier: Predict result: 22.0,26.0,25.0, - [0_&_com.seko.apulse_tcm, 0_&_com.seko.infrared_pulse, 0_&_com.seko.usb_experiment]
03-04 17:42:55.737  5277  5277 V Navbar.Store: getValue(BOOL_SUPPORT_PHONE_LAYOUT_PROVIDER)=false
03-04 17:42:55.743  4700  4700 D SurfaceFlinger: Display 0 HWC layers:
03-04 17:42:55.743  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c508157c0 | 0002 | RGBA_1010102 |  400.0    0.0 1600.0 2000.0 |    0    0 1200 2000 | com.android.systemui.ImageWallpaper$_5277#0
03-04 17:42:55.743  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c50816bc0 | 0000 | RGBA_8888    |    0.0    0.0 1200.0 2000.0 |    0    0 1200 2000 | com.sec.android.app.launcher/com.sec[...].activities.LauncherActivity$_5723#0
03-04 17:42:55.743  4700  4700 D SurfaceFlinger:      DEVICE | 0x7cd47b1840 | 0002 | RGBA_8888    |    0.0    0.0 2000.0 1200.0 |   84  140 1116 1860 | Splash Screen com.seko.quick_usb_example#0
03-04 17:42:55.743  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c2fa24500 | 0000 | RGBA_8888    |    0.0    0.0   36.0 2000.0 | 1164    0 1200 2000 | StatusBar$_5277#0
03-04 17:42:55.743  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c50816d00 | 0000 | RGBA_8888    |    0.0    0.0  122.0   67.0 |  841 1933  963 2000 | com.samsung.android.app.cocktailbars[...]arservice.CocktailBarService$_8695#0
03-04 17:42:55.743  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c50814780 | 0000 | RGBA_8888    |    0.0    0.0   72.0 2000.0 |    0    0   72 2000 | NavigationBar0$_5277#0
03-04 17:42:55.743  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c50815180 | 0000 | RGBA_8888    |    0.0    0.0 1200.0   36.0 |    0    0 120
03-04 17:42:55.743  4700  4700 D SurfaceFlinger: 0   36 | ScreenDecorOverlay$_5277#0
03-04 17:42:55.743  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c50816580 | 0000 | RGBA_8888    |    0.0    0.0 1200.0   36.0 |    0 1964 1200 2000 | ScreenDecorOverlayBottom$_5277#0
03-04 17:42:55.743  4700  4700 D SurfaceFlinger: 
03-04 17:42:55.752  5277  5277 V Navbar.Store: getValue(BOOL_SUPPORT_PHONE_LAYOUT_PROVIDER)=false
03-04 17:42:55.769  5277  5277 V Navbar.Store: getValue(BOOL_SUPPORT_PHONE_LAYOUT_PROVIDER)=false
03-04 17:42:55.785  5277  5277 V Navbar.Store: getValue(BOOL_SUPPORT_PHONE_LAYOUT_PROVIDER)=false
03-04 17:42:55.802  5277  5277 V Navbar.Store: getValue(BOOL_SUPPORT_PHONE_LAYOUT_PROVIDER)=false
03-04 17:42:55.818  5277  5277 V Navbar.Store: getValue(BOOL_SUPPORT_PHONE_LAYOUT_PROVIDER)=false
03-04 17:42:55.835  5277  5277 V Navbar.Store: getValue(BOOL_SUPPORT_PHONE_LAYOUT_PROVIDER)=false
03-04 17:42:55.846 10092 10092 D LoadedApk: LoadedApk::makeApplication() appContext=android.app.ContextImpl@f6bbc81 appContext.mOpPackageName=com.seko.quick_usb_example appContext.mBasePackageName=com.seko.quick_usb_example appContext.mPackageInfo=android.app.LoadedApk@114c126
03-04 17:42:55.846 10092 10092 D NetworkSecurityConfig: No Network Security Config specified, using platform default
03-04 17:42:55.855  5277  5277 V Navbar.Store: getValue(BOOL_SUPPORT_PHONE_LAYOUT_PROVIDER)=false
03-04 17:42:55.866 10092 10092 D NetworkSecurityConfig: No Network Security Config specified, using platform default
03-04 17:42:55.866 10092 10092 D ActivityThread: handleBindApplication() -- skipGraphicsSupport=false
03-04 17:42:55.899  4957  5771 I GenerationRegistry: mBackingStore.isClosed() : false
03-04 17:42:55.942 10092 10285 I ResourceExtractor: Found extracted resources res_timestamp-1-1646384831994
03-04 17:42:55.955  4568  4568 E audit   : type=1400 audit(1646386975.951:1887): avc:  denied  { read } for  pid=10092 comm="ick_usb_example" name="max_map_count" dev="proc" ino=2054254 scontext=u:r:untrusted_app:s0:c188,c256,c512,c768 tcontext=u:object_r:proc_max_map_count:s0 tclass=file permissive=0 SEPF_SM-P610_11_0010 audit_filtered
03-04 17:42:55.955  4568  4568 E audit   : type=1300 audit(1646386975.951:1887): arch=c00000b7 syscall=56 success=no exit=-13 a0=ffffff9c a1=7089bac99a a2=0 a3=0 items=0 ppid=4591 pid=10092 auid=4294967295 uid=10188 gid=10188 euid=10188 suid=10188 fsuid=10188 egid=10188 sgid=10188 fsgid=10188 tty=(none) ses=4294967295 comm="ick_usb_example" exe="/system/bin/app_process64" subj=u:r:untrusted_app:s0:c188,c256,c512,c768 key=(null)
03-04 17:42:55.955  4568  4568 E audit   : type=1327 audit(1646386975.951:1887): proctitle="com.seko.quick_usb_example"
03-04 17:42:56.001  4957  5771 I GenerationRegistry: mBackingStore.isClosed() : false
03-04 17:42:56.021  8695  8695 I Utils   : isCurrentUser current = 0, ownerId = 0
03-04 17:42:56.022  8695  8695 I TrayVisibilityController: getComputedTrayVisible : keyguardState = 1
03-04 17:42:56.022  8695  8695 I TrayVisibilityController: updateTrayVisible: State=1 visible=1 mCurrentVisible=1 specificMode=0
03-04 17:42:56.022  8695  8695 I TrayStateController: onNotifyUpdateTray: state=0
03-04 17:42:56.032 10092 10092 W ick_usb_exampl: Accessing hidden method Landroid/view/accessibility/AccessibilityNodeInfo;->getSourceNodeId()J (greylist,test-api, reflection, allowed)
03-04 17:42:56.032 10092 10092 W ick_usb_exampl: Accessing hidden method Landroid/view/accessibility/AccessibilityRecord;->getSourceNodeId()J (greylist, reflection, allowed)
03-04 17:42:56.032 10092 10092 W ick_usb_exampl: Accessing hidden field Landroid/view/accessibility/AccessibilityNodeInfo;->mChildNodeIds:Landroid/util/LongArray; (greylist, reflection, allowed)
03-04 17:42:56.032 10092 10092 W ick_usb_exampl: Accessing hidden method Landroid/util/LongArray;->get(I)J (greylist, reflection, allowed)
03-04 17:42:56.050 10092 10092 I DecorView: [INFO] isPopOver=false, config=true
03-04 17:42:56.050 10092 10092 I DecorView: updateCaptionType >> DecorView@2aa8144[], isFloating=false, isApplication=true, hasWindowDecorCaption=false, hasWindowControllerCallback=true
03-04 17:42:56.050 10092 10092 D DecorView: setCaptionType = 0, this = DecorView@2aa8144[]
03-04 17:42:56.058  4700  4700 D SurfaceFlinger: Display 0 HWC layers:
03-04 17:42:56.058  4700  4700 D SurfaceFlinger:      DEVICE | 0x7cd47b1840 | 0002 | RGBA_8888    |    0.0    0.0 2000.0 1200.0 |    0    0 1200 2000 | Splash Screen com.seko.quick_usb_example#0
03-04 17:42:56.058  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c2fa24500 | 0000 | RGBA_8888    |    0.0    0.0   36.0 2000.0 | 1164    0 1200 2000 | StatusBar$_5277#0
03-04 17:42:56.058  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c50816d00 | 0000 | RGBA_8888    |    0.0    0.0  122.0   67.0 |  841 1933  963 2000 | com.samsung.android.app.cocktailbars[...]arservice.CocktailBarService$_8695#0
03-04 17:42:56.058  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c50815680 | 0000 | RGBA_8888    |    0.0    0.0   72.0 2000.0 |    0    0   72 2000 | NavigationBar0$_5277#0
03-04 17:42:56.058  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c50815180 | 0000 | RGBA_8888    |    0.0    0.0 1200.0   36.0 |    0    0 1200   36 | ScreenDecorOverlay$_5277#0
03-04 17:42:56.058  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c50816580 | 0000 | RGBA_8888    |    0.0    0.0 1200.0   36.0 |    0 1964 1200 2000 | ScreenDecorOverlayBottom$_5277#0
03-04 17:42:56.058  4700  4700 D SurfaceFlinger: 
03-04 17:42:56.068  4957  4996 I WindowManager: Reparenting to original parent: Surface(name=DefaultTaskDisplayArea)/@0xbce18c4, destroy=true, surface=Surface(name=Task=1)/@0xbda35df
03-04 17:42:56.068  4957  4996 I SurfaceControl: nativeRelease nativeObject s[482931646176]
03-04 17:42:56.068  4957  4996 I SurfaceControl: nativeRelease nativeObject e[482931646176]
03-04 17:42:56.069  4957  4996 V WindowManager: Setting visibility of Window{efeb8a3 u0 com.samsung.android.app.spage}: false, caller=com.android.server.wm.WindowContainer.sendAppVisibilityToClients:1044 com.android.server.wm.WindowState.sendAppVisibilityToClients:3854 com.android.server.wm.WindowContainer.sendAppVisibilityToClients:1044 com.android.server.wm.ActivityRecord.setClientVisible:6920 com.android.server.wm.ActivityRecord.onAnimationFinished:7681 com.android.server.wm.WindowContainer.doAnimationFinished:2704 com.android.server.wm.WindowContainer.onAnimationFinished:2713 com.android.server.wm.Task.onAnimationFinished:2744 com.android.server.wm.-$$Lambda$dwJG8BAnLlvKNGuDY9U3-haNY4M.onAnimationFinished:2 com.android.server.wm.SurfaceAnimator.lambda$getFinishedCallback$0$SurfaceAnimator:112 com.android.server.wm.-$$Lambda$SurfaceAnimator$qxm0Z0Ve0b3lKnyQQMgWVQfTP3Q.run:8 com.android.server.wm.SurfaceAnimator.lambda$getFinishedCallback$1$SurfaceAnimator:127 com.android.server.wm.-$$Lambda$SurfaceAnimator$Y4hCTFZUnyoMqrbq2rxOWj68ccg.onAnimationFinished:4 com.android.server.wm.LocalAnimationAdapter.lambda$startAnimation$0$LocalAnimationAdapter:56 
03-04 17:42:56.069  4957  4996 V WindowManager: Setting visibility of Window{f49e08f u0 com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity}: false, caller=com.android.server.wm.WindowContainer.sendAppVisibilityToClients:1044 com.android.server.wm.ActivityRecord.setClientVisible:6920 com.android.server.wm.ActivityRecord.onAnimationFinished:7681 com.android.server.wm.WindowContainer.doAnimationFinished:2704 com.android.server.wm.WindowContainer.onAnimationFinished:2713 com.android.server.wm.Task.onAnimationFinished:2744 com.android.server.wm.-$$Lambda$dwJG8BAnLlvKNGuDY9U3-haNY4M.onAnimationFinished:2 com.android.server.wm.SurfaceAnimator.lambda$getFinishedCallback$0$SurfaceAnimator:112 com.android.server.wm.-$$Lambda$SurfaceAnimator$qxm0Z0Ve0b3lKnyQQMgWVQfTP3Q.run:8 com.android.server.wm.SurfaceAnimator.lambda$getFinishedCallback$1$SurfaceAnimator:127 com.android.server.wm.-$$Lambda$SurfaceAnimator$Y4hCTFZUnyoMqrbq2rxOWj68ccg.onAnimationFinished:4 com.android.server.wm.LocalAnimationAdapter.lambda$startAnimation$0$LocalAnimationAdapter:56 com.android.server.wm.-$$Lambda$LocalAnimationAdapter$zbLki1x5Fhwh-g7q-dA43aw6Y4M.run:6 android.os.Handler.handleCallback:938 
03-04 17:42:56.070  4957  4996 D ActivityTaskManager: finishFixedRotationTransform, r=ActivityRecord{fd55a4f u0 com.sec.android.app.launcher/.activities.LauncherActivity t127}, caller=com.android.server.wm.WindowToken.finishFixedRotationTransform:669 com.android.server.wm.DisplayContent$FixedRotationTransitionListener.onAppTransitionFinishedLocked:7222 com.android.server.wm.AppTransition.notifyAppTransitionFinishedLocked:553 com.android.server.wm.ActivityRecord.onAnimationFinished:7702 com.android.server.wm.WindowContainer.doAnimationFinished:2704 
03-04 17:42:56.070  4957  4996 V WindowManager: Updating vis of wallpaper Window{433040d u0 com.android.systemui.ImageWallpaper}: false from:
03-04 17:42:56.070  4957  4996 V WindowManager:   com.android.server.wm.WallpaperWindowToken.updateWallpaperWindows:170
03-04 17:42:56.070  4957  4996 V WindowManager:   com.android.server.wm.WallpaperController.updateWallpaperTokens:691
03-04 17:42:56.070  4957  4996 V WindowManager:   com.android.server.wm.WallpaperController.adjustWallpaperWindows:730
03-04 17:42:56.070  4957  4996 V WindowManager:   com.android.server.wm.DisplayContent.applySurfaceChangesTransaction:5000
03-04 17:42:56.070  5277  6066 D WallpaperService: dispatchAppVisibility onVisibilityChanged(): false
03-04 17:42:56.071  5277  5277 D WallpaperService: reportVisibility onVisibilityChanged visible: false
03-04 17:42:56.071  5277  5492 I ImageWallpaper:  onVisibilityChanged false , 0
03-04 17:42:56.072  4700  4988 I Layer   : id=2902 removeFromCurrentState Surface(name=Task=1)/@0xbda35df - animation-leash#0 (78)
03-04 17:42:56.073  4700  4988 I SurfaceFlinger: id=2902 Removed Surface(name=Task=1)/@0xbda35df - animation-leash#0 (78)
03-04 17:42:56.075  4957  4996 I WindowManager: Reparenting to original parent: Surface(name=DefaultTaskDisplayArea)/@0xbce18c4, destroy=true, surface=Surface(name=Task=224)/@0xfcc3604
03-04 17:42:56.075  4957  4996 I SurfaceControl: nativeRelease nativeObject s[482932490528]
03-04 17:42:56.075  4957  4996 I SurfaceControl: nativeRelease nativeObject e[482932490528]
03-04 17:42:56.075  4957  4996 D ActivityTaskManager: finishFixedRotationTransform, r=ActivityRecord{5625f0d u0 com.seko.quick_usb_example/.MainActivity t224}, caller=com.android.server.wm.WindowToken.finishFixedRotationTransform:669 com.android.server.wm.DisplayContent$FixedRotationTransitionListener.onAppTransitionFinishedLocked:7222 com.android.server.wm.AppTransition.notifyAppTransitionFinishedLocked:553 com.android.server.wm.ActivityRecord.onAnimationFinished:7702 com.android.server.wm.WindowContainer.doAnimationFinished:2704 
03-04 17:42:56.077  4700  4723 I Layer   : id=2903 removeFromCurrentState Surface(name=Task=224)/@0xfcc3604 - animation-leash#0 (78)
03-04 17:42:56.077  4700  4723 I SurfaceFlinger: id=2903 Removed Surface(name=Task=224)/@0xfcc3604 - animation-leash#0 (78)
03-04 17:42:56.085  5277  5277 V Navbar.Store: getValue(BOOL_SUPPORT_PHONE_LAYOUT_PROVIDER)=false
03-04 17:42:56.085  4700  4700 I Layer   : id=2902[1] Destroyed Surface(name=Task=1)/@0xbda35df - animation-leash#0
03-04 17:42:56.085  4700  4700 I Layer   : id=2903[1] Destroyed Surface(name=Task=224)/@0xfcc3604 - animation-leash#0
03-04 17:42:56.088  4957  5016 D FastTrack: setFastTrackState: pid = 10092 ;tid= 10266 ;value= 1
03-04 17:42:56.090  4957  6547 V WindowManager: Relayout Window{efeb8a3 u0 com.samsung.android.app.spage}: viewVisibility=8 req=0x1164 d0
03-04 17:42:56.092  4700  4988 E BufferQueueProducer: [com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity$_5723#0](id:125c00000239,api:0,p:-1,c:4700) disconnect: not connected (req=1)
03-04 17:42:56.092  5723  6751 W libEGL  : EGLNativeWindowType 0x70f9bba010 disconnect failed
03-04 17:42:56.094  4957  7462 D InputTransport: Input channel constructed: 'aaa37f6', fd=617
03-04 17:42:56.094  4957  7462 D InputTransport: Input channel constructed: 'aaa37f6', fd=627
03-04 17:42:56.094  4957  6547 V WindowManager: Relayout hash=efeb8a3, pid=7337: mAttrs={(0,0)(0xfill) sim={adjust=pan} ty=APPLICATION_PANEL fmt=RGBA_8888
03-04 17:42:56.094  4957  6547 V WindowManager:   fl=1000018
03-04 17:42:56.094  4957  6547 V WindowManager:   pfl=2000040
03-04 17:42:56.094  4957  6547 V WindowManager:   fitTypes=STATUS_BARS NAVIGATION_BARS CAPTION_BAR IME naviIconColor=0}
03-04 17:42:56.095  4700  4988 I SurfaceFlinger: id=2906 createSurf (0x0),-1 flag=80004, aaa37f6 com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity#0
03-04 17:42:56.095  4957  7462 D WindowManager: isScreenshotDisabledLocked - win: Window{aaa37f6 u0 com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity}
03-04 17:42:56.095  7337  7337 I SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0xc314209 / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1810 android.view.ViewRootImpl.relayoutWindow:9130 android.view.ViewRootImpl.performTraversals:3420 android.view.ViewRootImpl.doTraversal:2669 android.view.ViewRootImpl$TraversalRunnable.run:10092 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995 
03-04 17:42:56.095  4957  7462 D WindowManager: isScreenshotDisabledLocked: userId = 0, disabled =false
03-04 17:42:56.095  4957  7462 D InputTransport: Input channel destroyed: 'aaa37f6', fd=627
03-04 17:42:56.095  7337  7337 I SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0xf0e0c0e / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1820 android.view.ViewRootImpl.relayoutWindow:9130 android.view.ViewRootImpl.performTraversals:3420 android.view.ViewRootImpl.doTraversal:2669 android.view.ViewRootImpl$TraversalRunnable.run:10092 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995 
03-04 17:42:56.096 10092 10092 D InputTransport: Input channel constructed: 'aaa37f6', fd=93
03-04 17:42:56.097  7337  7337 I ViewRootImpl@d19ac36[]: Relayout returned: old=(1000,36,1000,1200) new=(1000,36,1000,1200) req=(0,1164)8 dur=10 res=0x1 s={false 0} ch=false fn=-1
03-04 17:42:56.098  4957  6547 V WindowManager: Relayout Window{f49e08f u0 com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity}: viewVisibility=8 req=2000x1200 d0
03-04 17:42:56.100 10092 10092 I ViewRootImpl@9706db0[MainActivity]: setView = com.android.internal.policy.DecorView@2aa8144 TM=true
03-04 17:42:56.102  5277  5277 V Navbar.Store: getValue(BOOL_SUPPORT_PHONE_LAYOUT_PROVIDER)=false
03-04 17:42:56.105  4957  6547 V WindowManager: Relayout hash=f49e08f, pid=5723: mAttrs={(0,0)(fillxfill) sim={adjust=nothing} layoutInDisplayCutoutMode=shortEdges ty=BASE_APPLICATION fmt=TRANSPARENT wanim=0x10302f2
03-04 17:42:56.105  4957  6547 V WindowManager:   fl=81910100
03-04 17:42:56.105  4957  6547 V WindowManager:   pfl=16020000
03-04 17:42:56.105  4957  6547 V WindowManager:   vsysui=1700
03-04 17:42:56.105  4957  6547 V WindowManager:   bhv=SHOW_TRANSIENT_BARS_BY_SWIPE
03-04 17:42:56.105  4957  6547 V WindowManager:   fitSides= naviIconColor=0}
03-04 17:42:56.107  5723  5723 I SurfaceControl: nativeRelease nativeObject s[485211975232]
03-04 17:42:56.107  5723  5723 I SurfaceControl: nativeRelease nativeObject e[485211975232]
03-04 17:42:56.107  5723  5723 I SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0x32e9482 / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1810 android.view.ViewRootImpl.relayoutWindow:9130 android.view.ViewRootImpl.performTraversals:3420 android.view.ViewRootImpl.doTraversal:2669 android.view.ViewRootImpl$TraversalRunnable.run:10092 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995 
03-04 17:42:56.108  5723  5723 I SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0x3efd2d2 / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1820 android.view.ViewRootImpl.relayoutWindow:9130 android.view.ViewRootImpl.performTraversals:3420 android.view.ViewRootImpl.doTraversal:2669 android.view.ViewRootImpl$TraversalRunnable.run:10092 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995 
03-04 17:42:56.109  5723  5723 I SurfaceControl: nativeRelease nativeObject s[485211975040]
03-04 17:42:56.109  5723  5723 I SurfaceControl: nativeRelease nativeObject e[485211975040]
03-04 17:42:56.109  5723  5723 I ViewRootImpl@b540ed4[LauncherActivity]: Relayout returned: old=(0,0,2000,1200) new=(0,0,2000,1200) req=(2000,1200)8 dur=14 res=0x5 s={false 0} ch=true fn=7
03-04 17:42:56.116  4957 10308 D TspStateManager: update cmd=set_grip_data,2,1,0,0,4,4,26,26
03-04 17:42:56.208 10092 10092 I SurfaceView: onWindowVisibilityChanged(0) true io.flutter.embedding.android.FlutterSurfaceView{921e136 V.E...... ......I. 0,0-0,0} of ViewRootImpl@9706db0[MainActivity]
03-04 17:42:56.214  4957  5771 V WindowManager: Relayout Window{aaa37f6 u0 com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity}: viewVisibility=0 req=2000x1200 d0
03-04 17:42:56.216  4957  5771 D WindowManager: isScreenshotDisabledLocked - win: Window{aaa37f6 u0 com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity}
03-04 17:42:56.216  4957  5771 D WindowManager: isScreenshotDisabledLocked: userId = 0, disabled =false
03-04 17:42:56.216  4700  4988 I SurfaceFlinger: id=2907 createSurf (2000x1200),1 flag=4, com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity$_10092#0
03-04 17:42:56.217  4957  5771 D WindowManager: makeSurface duration=1 name=com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity$_10092
03-04 17:42:56.218  4957  5771 V WindowManager: Changing focus from null to Window{aaa37f6 u0 com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity} displayId=0 Callers=com.android.server.wm.RootWindowContainer.updateFocusedWindowLocked:575 com.android.server.wm.WindowManagerService.updateFocusedWindowLocked:6338 com.android.server.wm.WindowManagerService.relayoutWindow:2726 com.android.server.wm.Session.relayout:240 
03-04 17:42:56.218  4957 10263 I SystemUiVisibilityPolicyController: handleMessage: entry what = 1
03-04 17:42:56.218  4957  5771 I WindowManager: Cancelling animation restarting=true, leash=Surface(name=Surface(name=ac7a338 StatusBar)/@0xa1764a2 - animation-leash)/@0xdd8ae70
03-04 17:42:56.218  4957  5771 I WindowManager: Reparenting to original parent: Surface(name=WindowToken{d0a8baa android.os.BinderProxy@123ee4c})/@0x3eb6533, destroy=false, surface=Surface(name=ac7a338 StatusBar)/@0xa1764a2
03-04 17:42:56.219  4957  5771 I SurfaceControl: nativeRelease nativeObject s[482932490624]
03-04 17:42:56.219  4957  5771 I SurfaceControl: nativeRelease nativeObject e[482932490624]
03-04 17:42:56.219  4957  5771 I WindowManager: Reparenting to leash, surface=Surface(name=ac7a338 StatusBar)/@0xa1764a2, leashParent=Surface(name=WindowToken{d0a8baa android.os.BinderProxy@123ee4c})/@0x3eb6533
03-04 17:42:56.219  4700  4723 I SurfaceFlinger: id=2908 createSurf (0x0),-1 flag=24000, Surface(name=ac7a338 StatusBar)/@0xa1764a2 - animation-leash#0
03-04 17:42:56.219  4957  5771 D WindowManager: makeSurface duration=0 leash=Surface(name=Surface(name=ac7a338 StatusBar)/@0xa1764a2 - animation-leash)/@0x139dd82
03-04 17:42:56.219  4957  5771 I WindowManager: Cancelling animation restarting=true, leash=Surface(name=Surface(name=e345ac7 NavigationBar0)/@0xa8f4669 - animation-leash)/@0xd8b026e
03-04 17:42:56.220  4957  5771 I WindowManager: Reparenting to original parent: Surface(name=WindowToken{b709d2e android.os.BinderProxy@18a9b30})/@0x4ab28ee, destroy=false, surface=Surface(name=e345ac7 NavigationBar0)/@0xa8f4669
03-04 17:42:56.220  4957  5771 I SurfaceControl: nativeRelease nativeObject s[482932490720]
03-04 17:42:56.220  4957  5771 I SurfaceControl: nativeRelease nativeObject e[482932490720]
03-04 17:42:56.220  4957  5771 I WindowManager: Reparenting to leash, surface=Surface(name=e345ac7 NavigationBar0)/@0xa8f4669, leashParent=Surface(name=WindowToken{b709d2e android.os.BinderProxy@18a9b30})/@0x4ab28ee
03-04 17:42:56.220  4700  5646 I SurfaceFlinger: id=2909 createSurf (0x0),-1 flag=24000, Surface(name=e345ac7 NavigationBar0)/@0xa8f4669 - animation-leash#1
03-04 17:42:56.220  8695  8695 I TrayStateController: systemUiVisibilityChanged : 0 0
03-04 17:42:56.220  4957  5771 D WindowManager: makeSurface duration=0 leash=Surface(name=Surface(name=e345ac7 NavigationBar0)/@0xa8f4669 - animation-leash)/@0x41c24d0
03-04 17:42:56.221  4957  5771 D MARsPolicyManager: onPackageResumedFG pkgName = com.seko.quick_usb_example, userId = 0
03-04 17:42:56.221  4957  4993 D WindowManager: setDisableFlags: displayId=0, vis=0x8508, appearance=16, transientState=Pair{[I@c133cc9 [I@d2c4fce}, isFullscreen=false, isImmersive=false, barType=0, win=Window{aaa37f6 u0 com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity}
03-04 17:42:56.221  4957  5771 D StatusBarManagerService: notifyRequestedSystemKey recent=false home=false
03-04 17:42:56.222  4957  5771 V WindowManager: Relayout hash=aaa37f6, pid=10092: mAttrs={(0,0)(fillxfill) sim={adjust=resize forwardNavigation} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x1030001
03-04 17:42:56.222  4957  5771 V WindowManager:   fl=81810100
03-04 17:42:56.222  4957  5771 V WindowManager:   pfl=12020000
03-04 17:42:56.222  4957  5771 V WindowManager:   vsysui=500
03-04 17:42:56.222  4957  5771 V WindowManager:   apr=LIGHT_NAVIGATION_BARS
03-04 17:42:56.222  4957  5771 V WindowManager:   fitSides= naviIconColor=0
03-04 17:42:56.222  4957  5771 V WindowManager:   sfl=100000}
03-04 17:42:56.222  4957  5771 I SurfaceControl: nativeRelease nativeObject s[482931646368]
03-04 17:42:56.222  4957  5771 I SurfaceControl: nativeRelease nativeObject e[482931646368]
03-04 17:42:56.223  4957 10263 I SystemUiVisibilityPolicyController: handleMessage: entry what = 1
03-04 17:42:56.223  8695  8695 I TrayStateController: systemUiVisibilityChanged : 0 0
03-04 17:42:56.226 10092 10092 I SurfaceControl: assignNativeObject: nativeObject = 0 Surface(name=null)/@0xbcf8837 / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1820 android.view.ViewRootImpl.relayoutWindow:9130 android.view.ViewRootImpl.performTraversals:3420 android.view.ViewRootImpl.doTraversal:2669 android.view.ViewRootImpl$TraversalRunnable.run:10092 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995 
03-04 17:42:56.228 10092 10092 I ViewRootImpl@9706db0[MainActivity]: Relayout returned: old=(0,0,2000,1200) new=(0,0,2000,1200) req=(2000,1200)0 dur=13 res=0x7 s={true 483045711872} ch=true fn=-1
03-04 17:42:56.230 10092 10092 I SurfaceView: windowStopped(false) true io.flutter.embedding.android.FlutterSurfaceView{921e136 V.E...... ......I. 0,0-0,0} of ViewRootImpl@9706db0[MainActivity]
03-04 17:42:56.234 10092 10092 I ViewRootImpl@9706db0[MainActivity]: [DP] dp(1) 1 android.view.ViewRootImpl.reportNextDraw:11078 android.view.ViewRootImpl.performTraversals:3915 android.view.ViewRootImpl.doTraversal:2669 
03-04 17:42:56.235  4700  4988 I SurfaceFlinger: id=2910 createSurf (0x0),-1 flag=80004, Bounds for - com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity@0#0
03-04 17:42:56.236  4700  5646 I SurfaceFlinger: id=2911 createSurf (2000x1128),4 flag=404, SurfaceView - com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity@921e136@0#0
03-04 17:42:56.237  4700  5646 I SurfaceFlinger: id=2912 createSurf (0x0),-1 flag=20404, Background for -SurfaceView - com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity@921e136@0#0
03-04 17:42:56.238  4700  5646 I Layer   : id=2905 removeFromCurrentState Surface(name=e345ac7 NavigationBar0)/@0xa8f4669 - animation-leash#0 (83)
03-04 17:42:56.238  4700  5646 I Layer   : id=27 removeFromCurrentState e345ac7 NavigationBar0#0 (83)
03-04 17:42:56.238  4700  5646 I Layer  
03-04 17:43:20.133  4957  5099 D InputReader: Btn_touch(7): value=1 when=180284.667718
03-04 17:43:20.133  4957  5099 I InputReader: Touch event's action is 0x0 (id=4, t=0) [pCnt=1, s=0.2483 ] when=180284.667718
03-04 17:43:20.135  4957  5098 I InputDispatcher: Delivering touch to (5277): action: 0x4, f=0x0, d=0, 'e345ac7', t=1 
03-04 17:43:20.135  4957  5098 I InputDispatcher: Delivering touch to (10092): action: 0x0, f=0x0, d=0, 'aaa37f6', t=1 
03-04 17:43:20.136 10092 10092 I ViewRootImpl@9706db0[MainActivity]: ViewPostIme pointer 0
03-04 17:43:20.199  4957  5099 D InputReader: Btn_touch(7): value=0 when=180284.734513
03-04 17:43:20.199  4957  5099 I InputReader: Touch event's action is 0x1 (id=4, t=0) [pCnt=1, s=] when=180284.734513
03-04 17:43:20.200  4957  5098 I InputDispatcher: Delivering touch to (10092): action: 0x1, f=0x0, d=0, 'aaa37f6', t=1 
03-04 17:43:20.200 10092 10092 I ViewRootImpl@9706db0[MainActivity]: ViewPostIme pointer 1
03-04 17:43:20.246 10092 10288 I flutter : getConfiguration {id: 1, index: 0, interfaces: [{id: 0, alternateSetting: 0, endpoints: [{endpointNumber: 1, direction: 128}, {endpointNumber: 1, direction: 0}]}]}
03-04 17:43:21.581  4957  5099 D InputReader: Btn_touch(7): value=1 when=180286.116335
03-04 17:43:21.582  4957  5099 I InputReader: Touch event's action is 0x0 (id=4, t=0) [pCnt=1, s=0.2484 ] when=180286.116335
03-04 17:43:21.583  4957  5098 I InputDispatcher: Delivering touch to (5277): action: 0x4, f=0x0, d=0, 'e345ac7', t=1 
03-04 17:43:21.584  4957  5098 I InputDispatcher: Delivering touch to (10092): action: 0x0, f=0x0, d=0, 'aaa37f6', t=1 
03-04 17:43:21.585 10092 10092 I ViewRootImpl@9706db0[MainActivity]: ViewPostIme pointer 0
03-04 17:43:21.673  4957  5099 D InputReader: Btn_touch(7): value=0 when=180286.208143
03-04 17:43:21.673  4957  5099 I InputReader: Touch event's action is 0x1 (id=4, t=0) [pCnt=1, s=] when=180286.208143
03-04 17:43:21.673  4957  5098 I InputDispatcher: Delivering touch to (10092): action: 0x1, f=0x0, d=0, 'aaa37f6', t=1 
03-04 17:43:21.674 10092 10092 I ViewRootImpl@9706db0[MainActivity]: ViewPostIme pointer 1
03-04 17:43:21.693  4957  5069 D UsbUI   : onUEvent(Host Interface): {SUBSYSTEM=usb, SEQNUM=852597, ACTION=bind, INTERFACE=255/0/0, DEVTYPE=usb_interface, PRODUCT=10c4/ea60/100, DRIVER=usbfs, MODALIAS=usb:v10C4pEA60d0100dc00dsc00dp00icFFisc00ip00in00, DEVPATH=/devices/platform/13200000.usb/13200000.dwc3/xhci-hcd.2.auto/usb1/1-1/1-1:1.0, TYPE=0/0/0}
03-04 17:43:21.705 10092 10288 I flutter : claimInterface true
03-04 17:43:22.481  5244  5244 I wpa_supplicant: Heartbeat 13414
03-04 17:43:23.011  5564  5564 I IpcDispatcher<0>: handleMessage: EVENT_SEC_CHANNEL_PROXY_DEAD cookie = 89399 mSecChannelProxyCookie = 89399
03-04 17:43:23.012  4260  4260 I hwservicemanager: getTransport: Cannot find entry vendor.samsung.hardware.radio.channel@2.0::ISehChannel/imsd in either framework or device manifest.
03-04 17:43:23.014  5564  5564 E IpcDispatcher<0>: SecChannelProxy getService/setCallback: java.util.NoSuchElementException
03-04 17:43:23.563  4957  5099 D InputReader: Btn_touch(7): value=1 when=180288.098022
03-04 17:43:23.564  4957  5099 I InputReader: Touch event's action is 0x0 (id=4, t=0) [pCnt=1, s=0.2485 ] when=180288.098022
03-04 17:43:23.565  4957  5098 I InputDispatcher: Delivering touch to (5277): action: 0x4, f=0x0, d=0, 'e345ac7', t=1 
03-04 17:43:23.566  4957  5098 I InputDispatcher: Delivering touch to (10092): action: 0x0, f=0x0, d=0, 'aaa37f6', t=1 
03-04 17:43:23.567 10092 10092 I ViewRootImpl@9706db0[MainActivity]: ViewPostIme pointer 0
03-04 17:43:23.629  4957  5099 D InputReader: Btn_touch(7): value=0 when=180288.164792
03-04 17:43:23.629  4957  5099 I InputReader: Touch event's action is 0x1 (id=4, t=0) [pCnt=1, s=] when=180288.164792
03-04 17:43:23.630  4957  5098 I InputDispatcher: Delivering touch to (10092): action: 0x1, f=0x0, d=0, 'aaa37f6', t=1 
03-04 17:43:23.630 10092 10092 I ViewRootImpl@9706db0[MainActivity]: ViewPostIme pointer 1
03-04 17:43:24.347  4700  4700 I SurfaceFlinger: SFWD update time=180288882109854
03-04 17:43:24.823 10092 10092 E MethodChannel#quick_usb: Failed to handle method call
03-04 17:43:24.823 10092 10092 E MethodChannel#quick_usb: java.lang.IllegalArgumentException: Requested element count -1 is less than zero.
03-04 17:43:24.823 10092 10092 E MethodChannel#quick_usb:   at kotlin.collections.ArraysKt___ArraysKt.take(_Arrays.kt:4783)
03-04 17:43:24.823 10092 10092 E MethodChannel#quick_usb:   at com.example.quick_usb.QuickUsbPlugin.onMethodCall(QuickUsbPlugin.kt:141)
03-04 17:43:24.823 10092 10092 E MethodChannel#quick_usb:   at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
03-04 17:43:24.823 10092 10092 E MethodChannel#quick_usb:   at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:296)
03-04 17:43:24.823 10092 10092 E MethodChannel#quick_usb:   at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$DartMessenger(DartMessenger.java:320)
03-04 17:43:24.823 10092 10092 E MethodChannel#quick_usb:   at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$TsixYUB5E6FpKhMtCSQVHKE89gQ.run(Unknown Source:12)
03-04 17:43:24.823 10092 10092 E MethodChannel#quick_usb:   at android.os.Handler.handleCallback(Handler.java:938)
03-04 17:43:24.823 10092 10092 E MethodChannel#quick_usb:   at android.os.Handler.dispatchMessage(Handler.java:99)
03-04 17:43:24.823 10092 10092 E MethodChannel#quick_usb:   at android.os.Looper.loop(Looper.java:247)
03-04 17:43:24.823 10092 10092 E MethodChannel#quick_usb:   at android.app.ActivityThread.main(ActivityThread.java:8676)
03-04 17:43:24.823 10092 10092 E MethodChannel#quick_usb:   at java.lang.reflect.Method.invoke(Native Method)
03-04 17:43:24.823 10092 10092 E MethodChannel#quick_usb:   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
03-04 17:43:24.823 10092 10092 E MethodChannel#quick_usb:   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
03-04 17:43:24.866 10092 10288 E flutter : [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(error, Requested element count -1 is less than zero., null, java.lang.IllegalArgumentException: Requested element count -1 is less than zero.
03-04 17:43:24.866 10092 10288 E flutter :  at kotlin.collections.ArraysKt___ArraysKt.take(_Arrays.kt:4783)
03-04 17:43:24.866 10092 10288 E flutter :  at com.example.quick_usb.QuickUsbPlugin.onMethodCall(QuickUsbPlugin.kt:141)
03-04 17:43:24.866 10092 10288 E flutter :  at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
03-04 17:43:24.866 10092 10288 E flutter :  at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:296)
03-04 17:43:24.866 10092 10288 E flutter :  at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$DartMessenger(DartMessenger.java:320)
03-04 17:43:24.866 10092 10288 E flutter :  at io.flutter.embedding.engine.dart.-$$Lambda$DartMessenger$TsixYUB5E6FpKhMtCSQVHKE89gQ.run(Unknown Source:12)
03-04 17:43:24.866 10092 10288 E flutter :  at android.os.Handler.handleCallback(Handler.java:938)
03-04 17:43:24.866 10092 10288 E flutter :  at android.os.Handler.dispatchMessage(Handler.java:99)
03-04 17:43:24.866 10092 10288 E flutter :  at android.os.Looper.loop(Looper.java:247)
03-04 17:43:24.866 10092 10288 E flutter :  at android.app.ActivityThread.main(ActivityThread.java:8676)
03-04 17:43:24.866 10092 10288 E flutter :  at java.lang.reflect.Method.invoke(Native Method)
03-04 17:43:24.866 10092 10288 E flutter :  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
03-04 17:43:24.866 10092 10288 E flutter :  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
03-04 17:43:24.866 10092 10288 E flutter : )
03-04 17:43:24.866 10092 10288 E flutter : #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
03-04 17:43:24.866 10092 10288 E flutter : #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:177:18)
03-04 17:43:24.866 10092 10288 E flutter : <asynchronous suspension>
03-04 17:43:24.866 10092 10288 E flutter : #2      QuickUsbAndroid.bulkTransferIn (package:quick_usb/src/quick_usb_android.dart:81:26)
03-04 17:43:24.866 10092 10288 E flutter : <asynchronous suspension>
03-04 17:43:24.866 10092 10288 E flutter : #3      _MyAppState._bulkTransfer.<anonymous closure> (package:quick_usb_example/main.dart:251:34)
03-04 17:43:24.866 10092 10288 E flutter : <asynchronous suspension>
03-04 17:43:24.866 10092 10288 E flutter : 
03-04 17:43:25.592  4957  4998 E Watchdog: !@Sync: 5993 heap: 68 / 72 [2022-03-04 17:43:25.591] sdogWay: softdog FD: 654
03-04 17:43:26.569  4957  5020 D PowerManagerService: UserActivityStateListenerState: 0
03-04 17:43:27.018  5564  5564 I IpcDispatcher<0>: handleMessage: EVENT_SEC_CHANNEL_PROXY_DEAD cookie = 89401 mSecChannelProxyCookie = 89401
03-04 17:43:27.020  4260  4260 I hwservicemanager: getTransport: Cannot find entry vendor.samsung.hardware.radio.channel@2.0::ISehChannel/imsd in either framework or device manifest.
03-04 17:43:27.022  5564  5564 E IpcDispatcher<0>: SecChannelProxy getService/setCallback: java.util.NoSuchElementException
03-04 17:43:28.877  6485  7398 I SDHMS:G : -99 > surface_temperature_0
03-04 17:43:28.880  6485  7398 I SDHMS:G : writeSysfs:: path() : /sys/class/audio/amp/surface_temperature_0 exist() : false canWrite() : false
03-04 17:43:28.880  6485  7398 I SDHMS:G : -99 > surface_temperature_1
03-04 17:43:28.884  6485  7398 I SDHMS:G : writeSysfs:: path() : /sys/class/audio/amp/surface_temperature_1 exist() : false canWrite() : false
03-04 17:43:28.885  6485  7398 I SDHMS:G : SIOP:: AP:219(281,60) BAT:263(263,0) USB:0(0,0) CHG:293(293,0) WIFI:287(287,0) BLK:277(277,0) 
03-04 17:43:29.347  4700  4700 I SurfaceFlinger: SFWD update time=180293882902889
03-04 17:43:31.025  5564  5564 I IpcDispatcher<0>: handleMessage: EVENT_SEC_CHANNEL_PROXY_DEAD cookie = 89403 mSecChannelProxyCookie = 89403
03-04 17:43:31.027  4260  4260 I hwservicemanager: getTransport: Cannot find entry vendor.samsung.hardware.radio.channel@2.0::ISehChannel/imsd in either framework or device manifest.
03-04 17:43:31.028  5564  5564 E IpcDispatcher<0>: SecChannelProxy getService/setCallback: java.util.NoSuchElementException
03-04 17:43:32.485  5244  5244 I wpa_supplicant: Heartbeat 13415
03-04 17:43:33.763  4957  5772 I ActivityManager: Force stopping com.seko.quick_usb_example appid=10188 user=0: from pid 10342
03-04 17:43:33.768  4957  5772 I ActivityManager: Killing 10092:com.seko.quick_usb_example/u0a188 (adj 0): stop com.seko.quick_usb_example due to from pid 10342
03-04 17:43:33.773  4957  5772 D ActivityManager: proc ProcessRecord{346fb2f 10092:com.seko.quick_usb_example/u0a188} already removed. so we skip next process.
03-04 17:43:33.775  4957  5772 W ActivityTaskManager: Force removing ActivityRecord{5625f0d u0 com.seko.quick_usb_example/.MainActivity t224 f}}: app died, no saved state
03-04 17:43:33.775  4957  5772 I ActivityTaskManager: Removing activity ActivityRecord{5625f0d u0 com.seko.quick_usb_example/.MainActivity t224 f}}(appDied)  from stack callers=com.android.server.wm.ActivityStack$RemoveHistoryRecordsForApp.processActivity:620 com.android.server.wm.ActivityStack$RemoveHistoryRecordsForApp.process:535 com.android.server.wm.ActivityStack.handleAppDied:3563 com.android.server.wm.RootWindowContainer.handleAppDied:3751 com.android.server.wm.ActivityTaskManagerService$LocalService.handleAppDied:8395 
03-04 17:43:33.778  4957  5772 V WindowManager: Changing focus from Window{aaa37f6 u0 com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity} to null displayId=0 Callers=com.android.server.wm.RootWindowContainer.updateFocusedWindowLocked:575 com.android.server.wm.WindowManagerService.updateFocusedWindowLocked:6338 com.android.server.wm.ActivityRecord.commitVisibility:5412 com.android.server.wm.ActivityRecord.onRemovedFromDisplay:4213 
03-04 17:43:33.779  4957  5772 D StatusBarManagerService: notifyRequestedSystemKey recent=false home=false
03-04 17:43:33.787  4957  5772 V WindowManager: Setting visibility of Window{aaa37f6 u0 com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity}: false, caller=com.android.server.wm.WindowContainer.sendAppVisibilityToClients:1044 com.android.server.wm.ActivityRecord.setClientVisible:6920 com.android.server.wm.ActivityRecord.onAnimationFinished:7681 com.android.server.wm.ActivityRecord.postApplyAnimation:5437 com.android.server.wm.ActivityRecord.commitVisibility:5419 com.android.server.wm.ActivityRecord.onRemovedFromDisplay:4213 com.android.server.wm.DisplayContent.removeAppToken:1461 com.android.server.wm.ActivityRecord.removeAppTokenFromDisplay:2808 com.android.server.wm.ActivityRecord.removeFromHistory:3971 com.android.server.wm.ActivityStack$RemoveHistoryRecordsForApp.processActivity:620 com.android.server.wm.ActivityStack$RemoveHistoryRecordsForApp.process:535 com.android.server.wm.ActivityStack.handleAppDied:3563 com.android.server.wm.RootWindowContainer.handleAppDied:3751 com.android.server.wm.ActivityTaskManagerService$LocalService.handleAppDied:8395 
03-04 17:43:33.788  4957  5772 D WindowManager: isScreenshotDisabledLocked - win: Window{aaa37f6 u0 com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity}
03-04 17:43:33.788  4957  5772 D WindowManager: isScreenshotDisabledLocked: userId = 0, disabled =false
03-04 17:43:33.790  4957  5772 D InputTransport: Input channel destroyed: 'aaa37f6', fd=617
03-04 17:43:33.791  4957  5772 I SurfaceControl: nativeRelease nativeObject s[483312489472]
03-04 17:43:33.791  4957  5772 I SurfaceControl: nativeRelease nativeObject e[483312489472]
03-04 17:43:33.791  4957  5772 D WindowManager: isScreenshotDisabledLocked - win: Window{aaa37f6 u0 com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity}
03-04 17:43:33.791  4957  5772 D WindowManager: isScreenshotDisabledLocked: userId = 0, disabled =false
03-04 17:43:33.791  4957  5772 I WindowManager: Cancelling animation restarting=true, leash=Surface(name=Surface(name=79f8874 InputMethod)/@0x3a8d1e3 - animation-leash)/@0x6f05048
03-04 17:43:33.791  4957  5772 I WindowManager: Reparenting to original parent: Surface(name=WindowToken{1e64e04 android.os.Binder@ed61a17})/@0x766b7e0, destroy=false, surface=Surface(name=79f8874 InputMethod)/@0x3a8d1e3
03-04 17:43:33.791  4957  5772 I SurfaceControl: nativeRelease nativeObject s[482932491296]
03-04 17:43:33.791  4957  5772 I SurfaceControl: nativeRelease nativeObject e[482932491296]
03-04 17:43:33.792  4957  5772 I WindowManager: Reparenting to leash, surface=Surface(name=79f8874 InputMethod)/@0x3a8d1e3, leashParent=Surface(name=WindowToken{1e64e04 android.os.Binder@ed61a17})/@0x766b7e0
03-04 17:43:33.792  4700  4723 I SurfaceFlinger: id=2915 createSurf (0x0),-1 flag=24004, Surface(name=79f8874 InputMethod)/@0x3a8d1e3 - animation-leash#1
03-04 17:43:33.794  4957  5772 D WindowManager: makeSurface duration=2 leash=Surface(name=Surface(name=79f8874 InputMethod)/@0x3a8d1e3 - animation-leash)/@0x92b27e4
03-04 17:43:33.795  4957  5772 I WindowManager: Destroying surface Surface(name=com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity$_10092)/@0xbdfa44d called by com.android.server.wm.WindowStateAnimator.destroySurface:1804 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:771 com.android.server.wm.WindowState.removeImmediately:2711 com.android.server.wm.WindowState.removeIfPossible:2876 com.android.server.wm.WindowState.removeIfPossible:2734 com.android.server.wm.WindowToken.removeAllWindowsIfPossible:306 com.android.server.wm.ActivityRecord.removeIfPossible:4193 com.android.server.wm.ActivityRecord.onRemovedFromDisplay:4267 
03-04 17:43:33.796  4957  5772 I SurfaceControl: nativeRelease nativeObject s[482932491008]
03-04 17:43:33.796  4957  5772 I SurfaceControl: nativeRelease nativeObject e[482932491008]
03-04 17:43:33.796  4957  5771 I InputDispatcher: Focus left window (10092): aaa37f6 in display 0 0
03-04 17:43:33.797  4700  4723 I Layer   : id=2907 removeFromCurrentState com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity$_10092#0 (80)
03-04 17:43:33.797  4700  4723 I Layer   : id=2910 removeFromCurrentState Bounds for - com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity@0#0 (80)
03-04 17:43:33.797  4700  4723 I Layer   : id=2911 removeFromCurrentState SurfaceView - com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity@921e136@0#0 (80)
03-04 17:43:33.797  4700  4723 I Layer   : id=2912 removeFromCurrentState Background for -SurfaceView - com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity@921e136@0#0 (80)
03-04 17:43:33.803  4700  4723 I Layer   : id=2906 removeFromCurrentState aaa37f6 com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity#0 (80)
03-04 17:43:33.803  4700  4723 I Layer   : id=2914 removeFromCurrentState Surface(name=79f8874 InputMethod)/@0x3a8d1e3 - animation-leash#0 (80)
03-04 17:43:33.804  4700  4700 D SurfaceFlinger: Display 0 HWC layers:
03-04 17:43:33.804  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c50815040 | 0000 | RGBA_8888    |    0.0    0.0   36.0 2000.0 | 1164    0 1200 2000 | StatusBar$_5277#0
03-04 17:43:33.804  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c50816d00 | 0000 | RGBA_8888    |    0.0    0.0  122.0   67.0 |  841 1933  963 2000 | com.samsung.android.app.cocktailbars[...]arservice.CocktailBarService$_8695#0
03-04 17:43:33.804  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c50814780 | 0000 | RGBA_8888    |    0.0    0.0   72.0 2000.0 |    0    0   72 2000 | NavigationBar0$_5277#0
03-04 17:43:33.804  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c50815180 | 0000 | RGBA_8888    |    0.0    0.0 1200.0   36.0 |    0    0 1200   36 | ScreenDecorOverlay$_5277#0
03-04 17:43:33.804  4700  4700 D SurfaceFlinger:      DEVICE | 0x7c50816580 | 0000 | RGBA_8888    |    0.0    0.0 1200.0   36.0 |    0 1964 1200 2000 | ScreenDecorOverlayBottom$_5277#0
03-04 17:43:33.804  4700  4700 D SurfaceFlinger: 
03-04 17:43:33.806  4700  5646 I SurfaceFlinger: id=2906 Removed aaa37f6 com.seko.quick_usb_example/com.seko.quick_usb_example.MainActivity#0 (80)
03-04 17:43:33.807  4957  5772 I SurfaceControl: nativeRelease nativeObject s[482931645120]
03-04 17:43:33.807  4957  5772 I SurfaceControl: nativeRelease nativeObject e[482931645120]
03-04 17:43:33.807  4957  5772 I SurfaceControl: nativeRelease nativeObject s[482931644928]
03-04 17:43:33.807  4957  5772 I SurfaceControl: nativeRelease nativeObject e[482931644928]
03-04 17:43:33.809  4957  5772 D InputDispatcher: Focused application released (0)
03-04 17:43:33.811  4957  5772 D ActivityTaskManager: resumeTopActivityInnerLocked, prev=null next=ActivityRecord{fd55a4f u0 com.sec.android.app.launcher/.activities.LauncherActivity t127} shouldSleepActivities()=false mLastPausedActivity=ActivityRecord{fd55a4f u0 com.sec.android.app.launcher/.activities.LauncherActivity t127} caller=com.android.server.wm.ActivityStack.resumeTopActivityInnerLocked:2089 com.android.server.wm.ActivityStack.resumeTopActivityUncheckedLocked:1979 com.android.server.wm.ActivityRecord.makeActiveIfNeeded:5966 com.android.server.wm.RootWindowContainer.resumeFocusedStacksTopActivities:2752 com.android.server.wm.RootWindowContainer.resumeFocusedStacksTopActivities:2712 com.android.server.wm.ActivityTaskManagerService$LocalService.handleAppDied:8417 com.android.server.am.ActivityManagerService.handleAppDiedLocked:4648 com.android.server.am.ProcessList.removeProcessLocked:3447 com.android.server.am.ProcessList.killPackageProcessesLocked:3373 com.android.server.am.ActivityManagerService.forceStopPackageLocked:6019 com.android.server.am.ActivityManagerService.forceStopPackageLocked:5863 com.android.server.am.ActivityManagerService.forceStopPackage:5578 com.android.server.am.ActivityManagerService.forceStopPackage:5515 com.android.server.am.ActivityManagerShellCommand.runForceStop:1109 com.android.server.am.ActivityManagerShellCommand.onCommand:230 android.os.BasicShellCommandHandler.exec:98 android.os.ShellCommand.exec:44 com.android.server.am.ActivityManagerService.onShellCommand:13144 android.os.Binder.shellCommand:965 android.os.Binder.onTransact:839 
03-04 17:43:33.811  4957  5772 D MARsPolicyManager: onPackageResumedFG pkgName = com.sec.android.app.launcher, userId = 0
03-04 17:43:33.811  4957  5772 V MARsPolicyManager: Current Home Package com.sec.android.app.launcher Resumed
03-04 17:43:33.811  4957  5772 I SemDvfsHyPerManager: acquire hyper - AMS_APP_HOME/4957@35, type = -999
03-04 17:43:33.813  4623  4679 I HYPER-HAL: [RequestManager.cpp]acquire(): Acquired ID : 12462563  [4957 / 35]    HINT : AMS_APP_HOME    list : 
03-04 17:43:33.813  4957  5772 D ActivityManagerPerformance: AMP_acquire() HOME
03-04 17:43:33.814  4957  5772 V WindowManager: Prepare app transition: transit=TRANSIT_ACTIVITY_OPEN mNextAppTransition=TRANSIT_UNSET alwaysKeepCurrent=false displayId=0 Callers=com.android.server.wm.DisplayContent.prepareAppTransition:5990 com.android.server.wm.DisplayContent.prepareAppTransition:5984 com.android.server.wm.ActivityStack.resumeTopActivityInnerLocked:2433 com.android.server.wm.ActivityStack.resumeTopActivityInnerLocked:2089 com.android.server.wm.ActivityStack.resumeTopActivityUncheckedLocked:1979 
03-04 17:43:33.814  4957  5772 V WindowManager: Setting visibility of Window{efeb8a3 u0 com.samsung.android.app.spage}: true, caller=com.android.server.wm.WindowContainer.sendAppVisibilityToClients:1044 com.android.server.wm.WindowState.sendAppVisibilityToClients:3854 com.android.server.wm.WindowContainer.sendAppVisibilityToClients:1044 com.android.server.wm.ActivityRecord.setClientVisible:6920 com.android.server.wm.ActivityRecord.setVisibility:5289 com.android.server.wm.ActivityRecord.setVisibility:5187 com.android.server.wm.ActivityStack.resumeTopActivityInnerLocked:2472 com.android.server.wm.ActivityStack.resumeTopActivityInnerLocked:2089 com.android.server.wm.ActivityStack.resumeTopActivityUncheckedLocked:1979 com.android.server.wm.ActivityRecord.makeActiveIfNeeded:5966 com.android.server.wm.RootWindowContainer.resumeFocusedStacksTopActivities:2752 com.android.server.wm.RootWindowContainer.resumeFocusedStacksTopActivities:2712 com.android.server.wm.ActivityTaskManagerService$LocalService.handleAppDied:8417 com.android.server.am.ActivityManagerService.handleAppDiedLocked:4648 
03-04 17:43:33.814  4623  4679 I HYPER-HAL: [ResourceManager.cpp]updateResource(): [CPUMinFreq] UpdateResource Request ID : 12462563    Value : 2314000
03-04 17:43:33.815  4957  5772 V WindowManager: Setting visibility of Window{f49e08f u0 com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity}: true, caller=com.android.server.wm.WindowContainer.sendAppVisibilityToClients:1044 com.android.server.wm.ActivityRecord.setClientVisible:6920 com.android.server.wm.ActivityRecord.setVisibility:5289 com.android.server.wm.ActivityRecord.setVisibility:5187 com.android.server.wm.ActivityStack.resumeTopActivityInnerLocked:2472 com.android.server.wm.ActivityStack.resumeTopActivityInnerLocked:2089 com.android.server.wm.ActivityStack.resumeTopActivityUncheckedLocked:1979 com.android.server.wm.ActivityRecord.makeActiveIfNeeded:5966 com.android.server.wm.RootWindowContainer.resumeFocusedStacksTopActivities:2752 com.android.server.wm.RootWindowContainer.resumeFocusedStacksTopActivities:2712 com.android.server.wm.ActivityTaskManagerService$LocalService.handleAppDied:8417 com.android.server.am.ActivityManagerService.handleAppDiedLocked:4648 com.android.server.am.ProcessList.removeProcessLocked:3447 com.android.server.am.ProcessList.killPackageProcessesLocked:3373 
03-04 17:43:33.816  4957  5772 D InputDispatcher: Focused application set to (0): fd55a4f
03-04 17:43:33.816  4957  5772 D GameManagerService: TaskStackListener.onTaskFocusChanged(), taskId=127, focused=true
03-04 17:43:33.817  4957  5106 D GameManagerService: onLooperPrepared(), msg: MSG_TASK_FOCUSED, focusedComponent: ComponentInfo{com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity}
03-04 17:43:33.817  4957  5106 D GameManagerService: handleTaskFocused().
03-04 17:43:33.817  4957  5106 D GameManagerService: sendFocusOutConditionally() - mPrevNotiPackage: (unknown)
03-04 17:43:33.817  4957  5106 D GameManagerService:   handleTaskFocused(), pkgName: com.sec.android.app.launcher, clsName: com.sec.android.app.launcher.activities.LauncherActivity, userID:0
03-04 17:43:33.817  6485  6485 I SemDvfsHyPerManager: acquire hyper - com.sec.android.sdhms/6485@13, type = -999
03-04 17:43:33.817  4623  4679 I HYPER-HAL: [RequestManager.cpp]acquire(): Acquired ID : 21115264  [6485 / 13]    HINT : APP_START    list : 
03-04 17:43:33.817  4957  5772 V WindowManager: rotationForOrientation(orient=SCREEN_ORIENTATION_UNSPECIFIED (-1), last=ROTATION_90 (1)); user=ROTATION_0 (0) 
03-04 17:43:33.817  4957  5772 D WindowManager: rotationForOrientation, orientationSource=ActivityRecord{fd55a4f u0 com.sec.android.app.launcher/.activities.LauncherActivity t127}
03-04 17:43:33.817  4957  5772 V WindowOrientationListener: getProp
03-04 17:44:10.265  4422  4422 D io_stats: !@   8,0 r 974098 31198076 w 474213 18350152 d 213950 66528944 f 741954 818566 iot 2296244 572158 th 102400 0 0 pt 0 inp 0 0 180334.793

03-04 17:44:11.085  5564  5564 I IpcDispatcher<0>: handleMessage: EVENT_SEC_CHANNEL_PROXY_DEAD cookie = 89423 mSecChannelProxyCookie = 89423

03-04 17:44:11.478  4957  5162 D BatteryService: Sending ACTION_BATTERY_CHANGED. scale:100, info:{.chargerAcOnline = false, .chargerUsbOnline = false, .chargerWirelessOnline = false, .maxChargingCurrent = 0, .maxChargingVoltage = 0, .batteryStatus = DISCHARGING, .batteryHealth = GOOD, .batteryPresent = true, .batteryLevel = 39, .batteryVoltage = 3756, .batteryTemperature = 263, .batteryCurrent = -446, .batteryCycleCount = 0, .batteryFullCharge = 7040000, .batteryChargeCounter = 2636800, .batteryTechnology = Li-ion}

03-04 17:44:11.486  4957  4957 D BatteryService: !@[BatteryInfo] readFromFile /efs/FactoryApp/batt_discharge_level: 1840
03-04 17:44:11.487  4957  4957 D BatteryService: !@[BatteryInfo] writeToFile /efs/FactoryApp/batt_discharge_level: 1850
03-04 17:44:11.490  4260  4260 I hwservicemanager: getTransport: Cannot find entry android.hardware.power@1.0::IPower/default in either framework or device manifest.
03-04 17:44:11.490  4957  5009 E BatteryStatsService: Unable to load Power Hal or power.stats HAL

03-04 17:44:11.531  4957  4957 D PhoneWindowManagerExt: ACTION_BATTERY_CHANGED - Level=39, status=3
03-04 17:44:11.532  4957  4957 D GameManagerService: new battery level: 39
03-04 17:44:11.532  4957  4957 D SemWifiApBroadcastReceiver: Received : android.intent.action.BATTERY_CHANGED
03-04 17:44:11.535  5277  5277 I PowerUI : BATTERY_HEALTH_CHECK extraHealth=2 mBatteryMiscEvent=65536
03-04 17:44:11.536  5277  5277 D PowerUI : priorPlugType = 0 mPlugType = 0 priorBatteryStatus = 3 mBatteryStatus = 3
03-04 17:44:11.536  5277  5277 I PowerUI : mBatteryMiscEvent = 65536
03-04 17:44:11.536  5277  5277 D PowerUI : showing power sharing dialogfalse
03-04 17:44:11.538  5277  5277 D KeyguardUpdateMonitor: handleBatteryUpdate
03-04 17:44:11.547  4957  5009 D BatteryExternalStatsWorker: done updateExternalStatsLocked
03-04 17:44:11.549  5277  5277 D KeyguardSecIndicationPolicy:  remove Item pos = DEFAULT, type =              BATTERY
03-04 17:44:11.550  5277  5277 D KeyguardSecIndicationPolicy:  remove Item pos = DEFAULT, type =      BATTERY_RESTING
03-04 17:44:11.550  5277  5277 D KeyguardSecIndicationController: addBatteryIndication() status = BatteryStatus{status=3,level=39,plugged=0,health=2,maxChargingWattage=-1,remaining=0ultraFastCharger=0}
03-04 17:44:11.555  5277 31365 D IndicatorGardenInputProperty: updateRotation() prv:-1 >> new:1
03-04 17:44:11.556  5277 31365 D DeviceState: getDeviceResolutionPixelSize - currentDensity = 240 deviceDensity = 240 initialDisplaySizeFactor = 1200 currentDisplaySizeFactor = 1200 initialDisplayDensity = 240 proportionalDensity = 240 proportionalPixel = 0
03-04 17:44:11.556  5277 31365 D DeviceState: getDeviceResolutionPixelSize - currentDensity = 240 deviceDensity = 240 initialDisplaySizeFactor = 1200 currentDisplaySizeFactor = 1200 initialDisplayDensity = 240 proportionalDensity = 240 proportionalPixel = 0
03-04 17:44:11.558  5277  5277 I AODBatteryManager: updateBatteryData: ACTION_BATTERY_CHANGED
03-04 17:44:11.558  5277  5277 I AODBatteryManager: getChargeEstimateTime: not charging
03-04 17:44:11.558  5277  5277 I AODBatteryManager: saveBatteryData : AOD BatteryData [mBatteryLevel=39, mBatteryStatus=DISCHARGING, mBatteryPlugType=NOT_DEFINED, mBatteryPlugged=false, mRemainingChargeTime=0, mBatteryChargingType=0, mBatteryChargerType=NORMAL, mBatteryOnline=NOT_DEFINED, mBatterySwellingMode=NONE, mBatteryProtectMode=false]

03-04 17:44:12.278  4422  4422 D io_stats: !@   8,0 r 974102 31198092 w 474224 18350364 d 213975 66529480 f 741973 818588 iot 2296256 572170 th 102400 0 0 pt 0 inp 0 0 180336.805

03-04 17:44:12.520  5244  5244 I wpa_supplicant: Heartbeat 13419
Sunbreak commented 2 years ago

It seems that you were using a OUT endpoint to bulkTransferIn

Every endpoint has a direction. Check it before using

https://github.com/woodemi/quick_usb/blob/57fdf0f596ef330de4337837168d7cc20dec6426/lib/src/common.dart#L109-L113

class UsbEndpoint {
  // Bit 7 indicates direction
  static const int MASK_DIRECTION = 0x80;

  static const int DIRECTION_OUT = 0x00;
  static const int DIRECTION_IN = 0x80;

  final int direction;
}
Sunbreak commented 2 years ago

Sorry. Missunderstanding

It seems that actualLength is -1

https://github.com/woodemi/quick_usb/blob/57fdf0f596ef330de4337837168d7cc20dec6426/android/src/main/kotlin/com/example/quick_usb/QuickUsbPlugin.kt#L141-L142

According to https://developer.android.com/reference/android/hardware/usb/UsbDeviceConnection#bulkTransfer(android.hardware.usb.UsbEndpoint,%20byte[],%20int,%20int,%20int), -1 means received nothing

I'll rethrow the logic error from Android API to QuickUsb's Dart API