{"action":"created","issue":{"url":"https://api.github.com/repos/rmtmckenzie/flutter_qr_mobile_vision/issues/49","repository_url":"https://api.github.com/repos/rmtmckenzie/flutter_qr_mobile_vision","labels_url":"https://api.github.com/repos/rmtmckenzie/flutter_qr_mobile_vision/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/rmtmckenzie/flutter_qr_mobile_vision/issues/49/comments","events_url":"https://api.github.com/repos/rmtmckenzie/flutter_qr_mobile_vision/issues/49/events","html_url":"https://github.com/rmtmckenzie/flutter_qr_mobile_vision/issues/49","id":379175552,"node_id":"MDU6SXNzdWUzNzkxNzU1NTI=","number":49,"title":"No autofocus on Xiaomi A2 (Android One)","user":{"login":"krolaw","id":3317970,"node_id":"MDQ6VXNlcjMzMTc5NzA=","avatar_url":"https://avatars0.githubusercontent.com/u/3317970?v=4","gravatar_id":"","url":"https://api.github.com/users/krolaw","html_url":"https://github.com/krolaw","followers_url":"https://api.github.com/users/krolaw/followers","following_url":"https://api.github.com/users/krolaw/following{/other_user}","gists_url":"https://api.github.com/users/krolaw/gists{/gist_id}","starred_url":"https://api.github.com/users/krolaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krolaw/subscriptions","organizations_url":"https://api.github.com/users/krolaw/orgs","repos_url":"https://api.github.com/users/krolaw/repos","events_url":"https://api.github.com/users/krolaw/events{/privacy}","received_events_url":"https://api.github.com/users/krolaw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-09T14:08:24Z","updated_at":"2018-11-13T18:57:32Z","closed_at":null,"author_association":"NONE","body":"Android System 8.1.0 - 5 November 2018.\r\n\r\nNot sure if it matters, but this unit has two rear cameras.\r\n\r\nLaunching lib/main.dart on Mi A2 in debug mode...\r\nInitializing gradle...\r\nResolving dependencies...\r\nGradle task 'assembleDebug'...\r\nBuilt build/app/outputs/apk/debug/app-debug.apk.\r\nInstalling build/app/outputs/apk/app.apk...\r\nSyncing files to device Mi A2...\r\nI/cgr.qrmv.QrReader(32402): Using new camera API.\r\nI/cgr.qrmv.QrDetector(32402): Making detector2 for formats: 256\r\nW/DynamiteModule(32402): Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.\r\nI/DynamiteModule(32402): Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0\r\nD/BarcodeNativeHandle(32402): Cannot load feature, fall back to load whole module.\r\nW/DynamiteModule(32402): Local module descriptor class for com.google.android.gms.vision.dynamite not found.\r\nW/zygote64(32402): Unsupported class loader\r\nW/zygote64(32402): Skipping duplicate class check due to unsupported classloader\r\nI/DynamiteModule(32402): Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:1800\r\nI/DynamiteModule(32402): Selected remote version of com.google.android.gms.vision.dynamite, version >= 1800\r\nW/zygote64(32402): Unsupported class loader\r\nI/Vision  (32402): Loading library libbarhopper.so\r\nI/zygote64(32402): The ClassLoaderContext is a special shared library.\r\nI/zygote64(32402): The ClassLoaderContext is a special shared library.\r\nW/linker  (32402): \"/data/data/com.google.android.gms/app_vision/barcode/libs/arm64-v8a/libbarhopper.so\" unused DT entry: type 0x7ffffffd arg 0x6dd\r\nI/Vision  (32402): libbarhopper.so library load status: true\r\nI/DynamiteModule(32402): Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:3\r\nI/DynamiteModule(32402): Selected remote version of com.google.android.gms.flags, version >= 3\r\nW/zygote64(32402): Unsupported class loader\r\nI/CameraManagerGlobal(32402): Connecting to camera service\r\nW/CameraManagerGlobal(32402): [soar.cts] ignore the status update of camera: 2\r\nW/CameraManagerGlobal(32402): [soar.cts] ignore the status update of camera: 3\r\nE/libc    (32402): Access denied finding property \"camera.aux.packagelist\"\r\nW/Binder:32402_3(32402): type=1400 audit(0.0:10464): avc: denied { read } for name=\"u:object_r:camera_prop:s0\" dev=\"tmpfs\" ino=12226 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:camera_prop:s0 tclass=file permissive=0\r\nE/libc    (32402): Access denied finding property \"camera.aux.packagelist\"\r\nW/Binder:32402_3(32402): type=1400 audit(0.0:10465): avc: denied { read } for name=\"u:object_r:camera_prop:s0\" dev=\"tmpfs\" ino=12226 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:camera_prop:s0 tclass=file permissive=0\r\nE/libc    (32402): Access denied finding property \"camera.aux.packagelist\"\r\nW/CameraManagerGlobal(32402): ignore the torch status update of camera: 2\r\nE/libc    (32402): Access denied finding property \"camera.aux.packagelist\"\r\nW/CameraManagerGlobal(32402): ignore the torch status update of camera: 3\r\nW/Binder:32402_3(32402): type=1400 audit(0.0:10467): avc: denied { read } for name=\"u:object_r:camera_prop:s0\" dev=\"tmpfs\" ino=12226 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:camera_prop:s0 tclass=file permissive=0\r\nI/zygote64(32402): Do partial code cache collection, code=30KB, data=22KB\r\nI/zygote64(32402): After code cache collection, code=30KB, data=22KB\r\nI/zygote64(32402): Increasing code cache capacity to 128KB\r\nE/libc    (32402): Access denied finding property \"persist.camera.cfa.packagelist\"\r\nW/.app.extraorder(32402): type=1400 audit(0.0:10468): avc: denied { read } for name=\"u:object_r:camera_prop:s0\" dev=\"tmpfs\" ino=12226 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:camera_prop:s0 tclass=file permissive=0\r\nI/CameraManager(32402): Using legacy camera HAL.\r\nE/libc    (32402): Access denied finding property \"camera.hal1.packagelist\"\r\nW/Thread-2(32402): type=1400 audit(0.0:10469): avc: denied { read } for name=\"u:object_r:camera_prop:s0\" dev=\"tmpfs\" ino=12226 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:camera_prop:s0 tclass=file permissive=0\r\nE/libc    (32402): Access denied finding property \"camera.aux.packagelist\"\r\nW/Binder:32402_3(32402): type=1400 audit(0.0:10470): avc: denied { read } for name=\"u:object_r:camera_prop:s0\" dev=\"tmpfs\" ino=12226 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:camera_prop:s0 tclass=file permissive=0\r\nI/cgr.qrmv.QrCameraC2(32402): Setting af mode to: 4\r\nI/CameraDeviceState(32402): Legacy camera service transitioning to state CONFIGURING\r\nI/RequestThread-0(32402): Configure outputs: 2 surfaces configured.\r\nD/Camera  (32402): app passed NULL surface\r\nD/Camera  (32402): Lct package name is extraorder.app.extraorder\r\nW/CameraDeviceGLT(32402): type=1400 audit(0.0:10472): avc: denied { read } for name=\"u:object_r:camera_prop:s0\" dev=\"tmpfs\" ino=12226 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:camera_prop:s0 tclass=file permissive=0\r\nE/libc    (32402): Access denied finding property \"persist.camera.legacy_perf\"\r\nI/CameraDeviceState(32402): Legacy camera service transitioning to state IDLE\r\nI/RequestQueue(32402): Repeating capture request set.\r\nW/LegacyRequestMapper(32402): convertRequestMetadata - control.awbRegions setting is not supported, ignoring value\r\nW/LegacyRequestMapper(32402): Only received metering rectangles with weight 0.\r\nW/LegacyRequestMapper(32402): Only received metering rectangles with weight 0.\r\nI/CameraDeviceState(32402): Legacy camera service transitioning to state CAPTURING\r\nI/zygote64(32402): Do partial code cache collection, code=61KB, data=41KB\r\nI/zygote64(32402): After code cache collection, code=61KB, data=41KB\r\nI/zygote64(32402): Increasing code cache capacity to 256KB\r\nD/LegacyFocusStateMapper(32402): onAutoFocusMoving - ignoring move callbacks from old af run6\r\nD/LegacyFocusStateMapper(32402): onAutoFocusMoving - ignoring move callbacks from old af run17\r\nD/LegacyFocusStateMapper(32402): onAutoFocusMoving - ignoring move callbacks from old af run84\r\nD/LegacyFocusStateMapper(32402): onAutoFocusMoving - ignoring move callbacks from old af run108\r\nI/zygote64(32402): Do full code cache collection, code=122KB, data=85KB\r\nI/zygote64(32402): After code cache collection, code=93KB, data=55KB\r\nD/LegacyFocusStateMapper(32402): onAutoFocusMoving - ignoring move callbacks from old af run270\r\nI/zygote64(32402): Do partial code cache collection, code=106KB, data=77KB\r\nI/zygote64(32402): After code cache collection, code=106KB, data=77KB\r\nI/zygote64(32402): Increasing code cache capacity to 512KB\r\nD/LegacyFocusStateMapper(32402): onAutoFocusMoving - ignoring move callbacks from old af run315\r\nD/LegacyFocusStateMapper(32402): onAutoFocusMoving - ignoring move callbacks from old af run458\r\nE/BufferQueueProducer(32402): [SurfaceTexture-1-32402-1] queueBuffer: BufferQueue has been abandoned\r\nE/BufferQueueProducer(32402): [SurfaceTexture-1-32402-1] cancelBuffer: BufferQueue has been abandoned\r\nI/chatty  (32402): uid=10124(extraorder.app.extraorder) Binder:32402_3 identical 1 line\r\nE/BufferQueueProducer(32402): [SurfaceTexture-1-32402-1] cancelBuffer: BufferQueue has been abandoned\r\nE/libc    (32402): Access denied finding property \"camera.aux.packagelist\"\r\n\r\nHope that helps.\r\n"},"comment":{"url":"https://api.github.com/repos/rmtmckenzie/flutter_qr_mobile_vision/issues/comments/438394052","html_url":"https://github.com/rmtmckenzie/flutter_qr_mobile_vision/issues/49#issuecomment-438394052","issue_url":"https://api.github.com/repos/rmtmckenzie/flutter_qr_mobile_vision/issues/49","id":438394052,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODM5NDA1Mg==","user":{"login":"rmtmckenzie","id":3103484,"node_id":"MDQ6VXNlcjMxMDM0ODQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3103484?v=4","gravatar_id":"","url":"https://api.github.com/users/rmtmckenzie","html_url":"https://github.com/rmtmckenzie","followers_url":"https://api.github.com/users/rmtmckenzie/followers","following_url":"https://api.github.com/users/rmtmckenzie/following{/other_user}","gists_url":"https://api.github.com/users/rmtmckenzie/gists{/gist_id}","starred_url":"https://api.github.com/users/rmtmckenzie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmtmckenzie/subscriptions","organizations_url":"https://api.github.com/users/rmtmckenzie/orgs","repos_url":"https://api.github.com/users/rmtmckenzie/repos","events_url":"https://api.github.com/users/rmtmckenzie/events{/privacy}","received_events_url":"https://api.github.com/users/rmtmckenzie/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T18:57:32Z","updated_at":"2018-11-13T18:57:32Z","author_association":"OWNER","body":"Unfortunately because of the way the native stuff works, there's no way to 'incorporate' the other library. All of the processing of frames needs to happen in a performant way in native code.\r\n\r\nI'll try to find some time to look into what the camera plugin does for autofocus and see if I can replicate it; I think at some point I had done the same as they do and it worked for some phones but not for others, but it's likely they've done updates since then."}}
{"actor":{"display_login":"rmtmckenzie"}}