flutter_zxing icon indicating copy to clipboard operation
flutter_zxing copied to clipboard

onScan is not working on the Xiaomi Poco M3 device

Open Coin-ai opened this issue 1 year ago • 1 comments

onScan is not working on the Xiaomi Poco M3 device. I have provided camera permission, the camera image appears, but the code does not scan.

On the Samsung A30s device and emulator - it works.

Code sample

code from Example not work too

Logs
I/CameraManagerGlobal( 3943): Connecting to camera service
W/CameraManagerGlobal( 3943): [soar.cts] ignore the status update of camera: 2
W/CameraManagerGlobal( 3943): [soar.cts] ignore the status update of camera: 3
W/CameraManagerGlobal( 3943): [soar.cts] ignore the status update of camera: 4
W/CameraManagerGlobal( 3943): [soar.cts] ignore the status update of camera: 5
W/CameraManagerGlobal( 3943): [soar.cts] ignore the status update of camera: 6
W/CameraManagerGlobal( 3943): ignore the torch status update of camera: 3
W/CameraManagerGlobal( 3943): ignore the torch status update of camera: 4
W/CameraManagerGlobal( 3943): ignore the torch status update of camera: 5
E/libc    ( 3943): Access denied finding property "persist.vendor.camera.privapp.list"
W/ne.appany.reach( 3943): type=1400 audit(0.0:3041): avc: denied { read } for name="u:object_r:persist_camera_prop:s0" dev="tmpfs" ino=16035 scontext=u:r:untrusted_app:s0:c48,c262,c512,c768 tcontext=u:object_r:persist_camera_prop:s0 tclass=file permissive=0
W/CameraManagerGlobal( 3943): ignore the torch status update of camera: 3
W/CameraManagerGlobal( 3943): ignore the torch status update of camera: 4
W/CameraManagerGlobal( 3943): ignore the torch status update of camera: 5
I/Camera  ( 3943): startPreview
W/libc    ( 3943): Unable to set property "persist.vendor.camera.mi.cameraid" to "false": connection failed; errno=13 (Permission denied)
W/ne.appany.reach( 3943): type=1400 audit(0.0:3044): avc: denied { write } for name="property_service" dev="tmpfs" ino=14666 scontext=u:r:untrusted_app:s0:c48,c262,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0
E/CameraManager( 3943): setprop error: java.lang.RuntimeException: failed to set system property
W/BpBinder( 3943): Slow Binder: BpBinder transact took 218ms, interface=android.hardware.camera2.ICameraDeviceUser, code=6 oneway=false
I/Camera  ( 3943): CameraCaptureSession onConfigured
I/Camera  ( 3943): Updating builder settings
D/Camera  ( 3943): Updating builder with feature: ExposureLockFeature
D/Camera  ( 3943): Updating builder with feature: ExposurePointFeature
D/Camera  ( 3943): Updating builder with feature: ZoomLevelFeature
D/Camera  ( 3943): Updating builder with feature: AutoFocusFeature
D/Camera  ( 3943): Updating builder with feature: NoiseReductionFeature
I/Camera  ( 3943): updateNoiseReduction | currentSetting: fast
D/Camera  ( 3943): Updating builder with feature: FocusPointFeature
D/Camera  ( 3943): Updating builder with feature: ResolutionFeature
D/Camera  ( 3943): Updating builder with feature: SensorOrientationFeature
D/Camera  ( 3943): Updating builder with feature: FlashFeature
D/Camera  ( 3943): Updating builder with feature: ExposureOffsetFeature
D/Camera  ( 3943): Updating builder with feature: FpsRangeFeature
I/Camera  ( 3943): refreshPreviewCaptureSession
W/pool-13-thread-( 3943): type=1400 audit(0.0:3045): avc: denied { read } for name="u:object_r:camx_hq_prop:s0" dev="tmpfs" ino=15920 scontext=u:r:untrusted_app:s0:c48,c262,c512,c768 tcontext=u:object_r:camx_hq_prop:s0 tclass=file permissive=0
E/libc    ( 3943): Access denied finding property "persist.vendor.camera.mi.cameraid"
W/BpBinder( 3943): Slow Binder: BpBinder transact took 215ms, interface=android.hardware.camera2.ICameraDeviceUser, code=14 oneway=false
W/BpBinder( 3943): Slow Binder: BpBinder transact took 293ms, interface=android.hardware.camera2.ICameraDeviceUser, code=6 oneway=false
I/Camera  ( 3943): startPreviewWithImageStream
I/Camera  ( 3943): CameraCaptureSession onConfigured
W/ne.appany.reac( 3943): Long monitor contention with owner main (3943) at boolean android.os.BinderProxy.transactNative(int, android.os.Parcel, android.os.Parcel, int)(BinderProxy.java:-2) waiters=0 in void android.hardware.camera2.impl.CameraDeviceImpl$4.run() for 512ms
I/Camera  ( 3943): Updating builder settings
D/Camera  ( 3943): Updating builder with feature: ExposureLockFeature
I/Camera  ( 3943): refreshPreviewCaptureSession
W/ne.appany.reach( 3943): type=1400 audit(0.0:3046): avc: denied { read } for name="u:object_r:camx_hq_prop:s0" dev="tmpfs" ino=15920 scontext=u:r:untrusted_app:s0:c48,c262,c512,c768 tcontext=u:object_r:camx_hq_prop:s0 tclass=file permissive=0
E/libc    ( 3943): Access denied finding property "persist.vendor.camera.mi.cameraid"
D/Camera  ( 3943): Updating builder with feature: ExposurePointFeature
I/Camera  ( 3943): CameraCaptureSession onClosed
D/Camera  ( 3943): Updating builder with feature: ZoomLevelFeature
D/Camera  ( 3943): Updating builder with feature: AutoFocusFeature
D/Camera  ( 3943): Updating builder with feature: NoiseReductionFeature
I/Camera  ( 3943): updateNoiseReduction | currentSetting: fast
D/Camera  ( 3943): Updating builder with feature: FocusPointFeature
D/Camera  ( 3943): Updating builder with feature: ResolutionFeature
D/Camera  ( 3943): Updating builder with feature: SensorOrientationFeature
D/Camera  ( 3943): Updating builder with feature: FlashFeature
D/Camera  ( 3943): Updating builder with feature: ExposureOffsetFeature
D/Camera  ( 3943): Updating builder with feature: FpsRangeFeature
I/Camera  ( 3943): refreshPreviewCaptureSession
E/libc    ( 3943): Access denied finding property "persist.vendor.camera.mi.cameraid"
W/System  ( 3943): A resource failed to call release.
Doctor output
[√] Flutter (Channel stable, 3.13.9, on Microsoft Windows [Version 10.0.19045.3570], locale en-US)
    • Flutter version 3.13.9 on channel stable at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d211f42860 (5 days ago), 2023-10-25 13:42:25 -0700
    • Engine revision 0545f8705d
    • Dart version 3.1.5
    • DevTools version 2.25.0

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

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2) 
    • Android SDK at G:\DB\soft_db\Android\Sdk\
    • Platform android-33-ext5, build-tools 33.0.2
    • ANDROID_HOME = G:\DB\soft_db\Android\Sdk\
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java       
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
    • All Android licenses accepted.

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

[√] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)       

[√] VS Code (version 1.83.1)
    • VS Code at C:\Users\ooovid\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.46.0

[√] Connected device (3 available)
    • M2010J19CG (mobile) • 931c654c0920 • android-arm64  • Android 10 (API 29)
    • Chrome (web)        • chrome       • web-javascript • Google Chrome 118.0.5993.118
    • Edge (web)          • edge         • web-javascript • Microsoft Edge 118.0.2088.61

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

• No issues found!

Coin-ai avatar Oct 30 '23 22:10 Coin-ai

any updates?

bonsoirelliot avatar Apr 16 '24 12:04 bonsoirelliot