Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

No camera preview on Android 10 #5

Open
RomanIvn opened this issue Oct 19, 2021 · 2 comments
Open

No camera preview on Android 10 #5

RomanIvn opened this issue Oct 19, 2021 · 2 comments

Comments

@RomanIvn
Copy link

RomanIvn commented Oct 19, 2021

Camera is recognized and controls listed. No frames are recieved.
EasyCap USBCamera app works on the same device with that camera

2021-10-20 18:47:30.866 5204-5204/? I/rgence.excamer: Late-enabling -Xcheck:jni 2021-10-20 18:47:30.902 5204-5204/? E/rgence.excamer: Unknown bits set in runtime_flags: 0x8000 2021-10-20 18:47:30.951 5204-5222/com.convergence.excamera D/Typeface: Invaild or same path: 2021-10-20 18:47:30.975 5204-5204/com.convergence.excamera W/ActivityThread: Application com.convergence.excamera can be debugged on port 8100... 2021-10-20 18:47:30.983 5204-5204/com.convergence.excamera I/rgence.excamer: The ClassLoaderContext is a special shared library. 2021-10-20 18:47:31.245 5204-5204/com.convergence.excamera D/ApplicationPackageManager: hasSystemFeature android.software.picture_in_picture com.convergence.excamera 2021-10-20 18:47:31.310 5204-5204/com.convergence.excamera W/rgence.excamer: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) 2021-10-20 18:47:31.313 5204-5204/com.convergence.excamera W/rgence.excamer: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) 2021-10-20 18:47:31.832 5204-5204/com.convergence.excamera W/AudioCapabilities: Unsupported mime audio/x-adpcm-ms 2021-10-20 18:47:31.833 5204-5204/com.convergence.excamera W/AudioCapabilities: Unsupported mime audio/x-adpcm-dvi-ima 2021-10-20 18:47:31.833 5204-5204/com.convergence.excamera W/AudioCapabilities: Unsupported mime audio/alac 2021-10-20 18:47:31.834 5204-5204/com.convergence.excamera W/AudioCapabilities: Unsupported mime audio/ape 2021-10-20 18:47:31.836 5204-5204/com.convergence.excamera W/AudioCapabilities: Unsupported mime audio/mpeg-L2 2021-10-20 18:47:31.836 5204-5204/com.convergence.excamera W/AudioCapabilities: Unsupported mime audio/x-ms-wma 2021-10-20 18:47:31.850 5204-5204/com.convergence.excamera W/VideoCapabilities: Unrecognized profile/level 1/32 for video/mp4v-es 2021-10-20 18:47:31.850 5204-5204/com.convergence.excamera W/VideoCapabilities: Unrecognized profile/level 32768/2 for video/mp4v-es 2021-10-20 18:47:31.850 5204-5204/com.convergence.excamera W/VideoCapabilities: Unrecognized profile/level 32768/64 for video/mp4v-es 2021-10-20 18:47:31.858 5204-5204/com.convergence.excamera W/VideoCapabilities: Unsupported mime video/x-ms-wmv 2021-10-20 18:47:31.860 5204-5204/com.convergence.excamera W/VideoCapabilities: Unsupported mime video/xvid 2021-10-20 18:47:31.869 5204-5204/com.convergence.excamera W/VideoCapabilities: Unrecognized profile/level 1/32 for video/mp4v-es 2021-10-20 18:47:31.975 5204-5204/com.convergence.excamera I/SurfaceFactory: [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@13ffbbc 2021-10-20 18:47:31.991 5204-5204/com.convergence.excamera D/ViewRootImpl[UsbMicroCamActivity]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false 2021-10-20 18:47:31.998 5204-5204/com.convergence.excamera V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@7ef17a8, this = DecorView@df272c1[UsbMicroCamActivity] 2021-10-20 18:47:32.111 5204-5204/com.convergence.excamera E/GraphicExt: Can't load libboost_ext_fwk 2021-10-20 18:47:32.111 5204-5204/com.convergence.excamera E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-10-20 18:47:32.113 5204-5236/com.convergence.excamera I/GPUD: @gpudInitialize: successfully initialized with GL, dbg=0 mmdump_dbg=0 mmpath_dbg=0 2021-10-20 18:47:32.137 5204-5236/com.convergence.excamera D/Surface: Surface::connect(this=0x72021de000,api=1) 2021-10-20 18:47:32.139 5204-5236/com.convergence.excamera D/Surface: Surface::setBufferCount(this=0x72021de000,bufferCount=3) 2021-10-20 18:47:32.139 5204-5236/com.convergence.excamera D/Surface: Surface::allocateBuffers(this=0x72021de000) 2021-10-20 18:47:32.178 5204-5204/com.convergence.excamera D/TextureView: getHardwareLayer, createNewSurface:true 2021-10-20 18:47:32.179 5204-5204/com.convergence.excamera I/BufferQueue: [unnamed-5204-0](this:0x71a5b44800,id:0,api:0,p:-1,c:-1) BufferQueue core=(5204:com.convergence.excamera) 2021-10-20 18:47:32.182 5204-5204/com.convergence.excamera E/libc: Access denied finding property "vendor.debug.bq.dump" 2021-10-20 18:47:32.182 5204-5204/com.convergence.excamera I/BufferQueueConsumer: [unnamed-5204-0](this:0x71a5b44800,id:0,api:0,p:-1,c:5204) connect(C): consumer=(5204:com.convergence.excamera) controlledByApp=true 2021-10-20 18:47:32.179 5204-5204/com.convergence.excamera W/rgence.excamera: type=1400 audit(0.0:1072): avc: denied { read } for name="u:object_r:debug_bq_dump_prop:s0" dev="tmpfs" ino=128 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:debug_bq_dump_prop:s0 tclass=file permissive=0 2021-10-20 18:47:32.182 5204-5204/com.convergence.excamera E/libc: Access denied finding property "vendor.debug.bq.dump" 2021-10-20 18:47:32.182 5204-5204/com.convergence.excamera I/BufferQueueConsumer: [unnamed-5204-0](this:0x71a5b44800,id:0,api:0,p:-1,c:5204) setConsumerName: unnamed-5204-0 2021-10-20 18:47:32.179 5204-5204/com.convergence.excamera W/rgence.excamera: type=1400 audit(0.0:1073): avc: denied { read } for name="u:object_r:debug_bq_dump_prop:s0" dev="tmpfs" ino=128 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:debug_bq_dump_prop:s0 tclass=file permissive=0 2021-10-20 18:47:32.182 5204-5204/com.convergence.excamera E/libc: Access denied finding property "vendor.debug.bq.dump" 2021-10-20 18:47:32.183 5204-5204/com.convergence.excamera I/BufferQueueConsumer: [SurfaceTexture-0-5204-0](this:0x71a5b44800,id:0,api:0,p:-1,c:5204) setConsumerName: SurfaceTexture-0-5204-0 2021-10-20 18:47:32.179 5204-5204/com.convergence.excamera W/rgence.excamera: type=1400 audit(0.0:1074): avc: denied { read } for name="u:object_r:debug_bq_dump_prop:s0" dev="tmpfs" ino=128 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:debug_bq_dump_prop:s0 tclass=file permissive=0 2021-10-20 18:47:32.183 5204-5204/com.convergence.excamera E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-10-20 18:47:32.183 5204-5204/com.convergence.excamera I/BufferQueueConsumer: [SurfaceTexture-0-5204-0](this:0x71a5b44800,id:0,api:0,p:-1,c:5204) setDefaultBufferSize: width=1200 height=1200 2021-10-20 18:47:32.183 5204-5204/com.convergence.excamera D/OpenGLRenderer: 0x72023036c0 setSurfaceTexture: 0x0 to 0x71a5bdb800 2021-10-20 18:47:32.230 5204-5236/com.convergence.excamera W/Gralloc3: mapper 3.x is not supported 2021-10-20 18:47:32.233 5204-5236/com.convergence.excamera E/ion: ioctl c0044901 failed with code -1: Invalid argument 2021-10-20 18:47:33.554 5204-5241/com.convergence.excamera D/UsbDeviceConnectionJNI: close 2021-10-20 18:47:33.568 5204-5241/com.convergence.excamera I/USBMonitor: name=/dev/bus/usb/001/045,desc=72,busnum=1,devnum=45,rawDesc=[B@383255 2021-10-20 18:47:33.597 5204-5241/com.convergence.excamera D/UsbDeviceConnectionJNI: close 2021-10-20 18:47:33.598 5204-5241/com.convergence.excamera I/libusb/core: [5241*core.c:2085:libusb_init2]:libusb v1.0.19.10903 2021-10-20 18:47:33.598 5204-5241/com.convergence.excamera I/libusb/usbfs: [5241*android_usbfs.c:504:op_init2]:start up hotplug event handler 2021-10-20 18:47:33.598 5204-5241/com.convergence.excamera I/libusb/usbfs: [5241*android_usbfs.c:512:op_init2]:call android_scan_devices 2021-10-20 18:47:34.140 5204-5204/com.convergence.excamera E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false 2021-10-20 18:47:34.140 5204-5204/com.convergence.excamera D/Surface: Surface::setBuffersUserDimensions(this=0x71a5e47000,w=640,h=480) 2021-10-20 18:47:34.140 5204-5204/com.convergence.excamera I/libUVCCamera: [5204*UVCPreview.cpp:276:callbackPixelFormatChanged]:PIXEL_FORMAT_YUV20SP: 2021-10-20 18:47:34.163 5204-5246/com.convergence.excamera E/libusb/usbfs: [5246*android_usbfs.c:2882:handle_control_completion]:LIBUSB_TRANSFER_STALL 2021-10-20 18:47:34.168 5204-5246/com.convergence.excamera E/libusb/usbfs: [5246*android_usbfs.c:2882:handle_control_completion]:LIBUSB_TRANSFER_STALL 2021-10-20 18:47:34.185 5204-5247/com.convergence.excamera I/libUVCCamera: [5247*UVCPreview.cpp:496:prepare_preview]:frameSize=(640,480)@MJPEG 2021-10-20 18:47:34.185 5204-5247/com.convergence.excamera D/Surface: Surface::setBuffersUserDimensions(this=0x71a5e47000,w=640,h=480) 2021-10-20 18:47:34.204 5204-5249/com.convergence.excamera I/libUVCCamera: [5249*UVCPreview.cpp:276:callbackPixelFormatChanged]:PIXEL_FORMAT_YUV20SP: 2021-10-20 18:47:35.831 5204-5204/com.convergence.excamera V/UVCCamera: ControlSupports = 14 D0: Scanning Mode : Disable D1: Auto-Exposure Mode : Enable D2: Auto-Exposure Priority : Enable D3: Exposure Time (Absolute) : Enable D4: Exposure Time (Relative) : Disable D5: Focus (Absolute) : Disable D6: Focus (Relative) : Disable D7: Iris (Absolute) : Disable D8: Iris (Relative) : Disable D9: Zoom (Absolute) : Disable D10: Zoom (Relative) : Disable D11: PanTilt (Absolute) : Disable D12: PanTilt (Relative) : Disable D13: Roll (Absolute) : Disable D14: Roll (Relative) : Disable D15: Reserved : Disable D16: Reserved : Disable D17: Focus, Auto : Disable D18: Privacy : Disable D19: Focus, Simple : Disable D20: Window : Disable D21: Region of Interest : Disable D22: Reserved, set to zero : Disable D23: Reserved, set to zero : Disable 2021-10-20 18:47:35.831 5204-5204/com.convergence.excamera V/UVCCamera: ProcessSupports = 5979 D0: Brightness : Enable D1: Contrast : Enable D2: Hue : Disable D3: Saturation : Enable D4: Sharpness : Enable D5: Gamma : Disable D6: White Balance Temperature : Enable D7: White Balance Component : Disable D8: Backlight Compensation : Enable D9: Gain : Enable D10: Power Line Frequency : Enable D11: Hue, Auto : Disable D12: White Balance Temperature, Auto : Enable D13: White Balance Component, Auto : Disable D14: Digital Multiplier : Disable D15: Digital Multiplier Limit : Disable D16: Analog Video Standard : Disable D17: Analog Video Lock Status : Disable D18: Contrast, Auto : Disable D19: Reserved. Set to zero : Disable D20: Reserved. Set to zero : Disable D21: Reserved. Set to zero : Disable D22: Reserved. Set to zero : Disable D23: Reserved. Set to zero : Disable 2021-10-20 18:47:35.850 5204-5204/com.convergence.excamera V/UVCCamera: UVC Camera Param Limit : ScanningMode : min = 0 , max = 0 , def = 0 ExposureMode : min = 0 , max = 0 , def = 0 ExposurePriority : min = 0 , max = 0 , def = 0 ExposureAbs : min = 1 , max = 10000 , def = 166 FocusAbs : min = 0 , max = 0 , def = 0 FocusRel : min = 0 , max = 0 , def = 0 IrisAbs : min = 0 , max = 0 , def = 0 IrisRel : min = 0 , max = 0 , def = 0 ZoomAbs : min = 0 , max = 0 , def = 0 ZoomAbs : min = 0 , max = 0 , def = 0 PanAbs : min = 0 , max = 0 , def = 0 PanRel : min = 0 , max = 0 , def = 0 TiltAbs : min = 0 , max = 0 , def = 0 TiltRel : min = 0 , max = 0 , def = 0 RollAbs : min = 0 , max = 0 , def = 0 RollRel : min = 0 , max = 0 , def = 0 Brightness : min = 0 , max = 255 , def = 128 Contrast : min = 0 , max = 255 , def = 32 Hue : min = 0 , max = 0 , def = 0 Saturation : min = 0 , max = 255 , def = 32 Sharpness : min = 0 , max = 255 , def = 24 Gamma : min = 0 , max = 0 , def = 0 Gain : min = 0 , max = 255 , def = 64 WhiteBalance : min = 0 , max = 10000 , def = 4000 WhiteBalanceComponent : min = 0 , max = 0 , def = 0 BacklightCompensation : min = 0 , max = 1 , def = 0 PowerLineFrequency : min = 0 , max = 0 , def = 0 DigitalMultiplier : min = 0 , max = 0 , def = 0 DigitalMultiplierLimit : min = 0 , max = 0 , def = 0 AnalogVideoStandard : min = 0 , max = 0 , def = 0 AnalogVideoLockStatus : min = 0 , max = 0 , def = 0 2021-10-20 18:47:35.873 5204-5246/com.convergence.excamera E/libusb/usbfs: [5246*android_usbfs.c:2882:handle_control_completion]:LIBUSB_TRANSFER_STALL 2021-10-20 18:47:39.039 5204-5219/com.convergence.excamera W/System: A resource failed to call release. 2021-10-20 18:47:50.416 5204-5210/com.convergence.excamera I/rgence.excamer: Compiler allocated 5175KB to compile void android.view.ViewRootImpl.performTraversals() 2021-10-20 18:48:01.008 5204-5204/com.convergence.excamera D/Surface: Surface::connect(this=0x71a5e47000,api=2) 2021-10-20 18:48:01.008 5204-5204/com.convergence.excamera I/BufferQueueProducer: [SurfaceTexture-0-5204-0](this:0x71a5b44800,id:0,api:2,p:5204,c:5204) connect(P): api=2 producer=(5204:com.convergence.excamera) producerControlledByApp=true 2021-10-20 18:48:01.010 5204-5204/com.convergence.excamera W/Gralloc3: allocator 3.x is not supported 2021-10-20 18:48:01.026 5204-5204/com.convergence.excamera E/ion: ioctl c0044901 failed with code -1: Invalid argument 2021-10-20 18:48:01.029 5204-5204/com.convergence.excamera D/Surface: Surface::disconnect(this=0x71a5e47000,api=2) 2021-10-20 18:48:01.029 5204-5204/com.convergence.excamera I/BufferQueueProducer: [SurfaceTexture-0-5204-0](this:0x71a5b44800,id:0,api:2,p:5204,c:5204) disconnect(P): api 2 2021-10-20 18:48:01.061 5204-5236/com.convergence.excamera I/GED: ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 2, oppidx_max 2, oppidx_min 0 2021-10-20 18:48:05.850 5204-5236/com.convergence.excamera D/Surface: Surface::disconnect(this=0x72021de000,api=1) 2021-10-20 18:48:05.927 5204-5204/com.convergence.excamera V/PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = android.view.ViewRootImpl@7ef17a8, this = DecorView@df272c1[UsbMicroCamActivity]

@ConvergenceSoftware
Copy link
Owner

To support Android 10 devices using USB Connection, you need to keep your targetSdkVersion below 27 (27 is ok). For more information, you can see UVCPermissionTest and this issue

@heaveninfosoft
Copy link

https://play.google.com/store/apps/details?id=com.shenyaocn.android.usbcamera
how this guy work? for play store publish now target>=29 must

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants