saki4510t/UVCCamera

mUsbManager.requestPermission() does not show the dialog if versionTarget= 28

Opened this issue · 4 comments

If versionTarget = 27, everything works fine. If versionTarget is set to 28, mUsbManager.requestPermission() never shows the dialog..

https://github.com/jiangdongguo/AndroidUSBCamera.git you can try.

This application also does not work above 27

Screenshot 2023-07-19 at 10 10 23 AM
According to the document, If Target API>= 28, you need to grant Manifest.permission.CAMERA permission, after that you will see the permission dialog.

In Android 10, except for the version with internal version number R30, there is a bug that the uvc camera cannot obtain USB device permissions, and there is no permission application pop-up window.
https://issuetracker.google.com/issues/145082934?pli=1