Flash not working on Redmi Note 8 Pro
See original GitHub issueI have made a demo app for my school project and it works just fine until I tested it on a Xiaomi Redmi Note 8 Pro running MUI Global v12.0.5 Stable, Android 10. Tested the app on several Samsung phones and everything works. Permissions and all, focus, flashlight, scanning. Except when I installed it on a Xiaomi Redmi Note 8 Pro. Here, everything but the flashlight work perfectly.
The only errors I see in Android Studio when running on debug mode are:
E/GraphicExt: GraphicExtModuleLoader::CreateGraphicExtInstance false
E/libc: Access denied finding property “camera.aux.packagelist”
E/libc: Access denied finding property “vendor.camera.hal1.packagelist”
I am using the latest version of the code scanner:
implementation("com.github.yuriy-budiyev:code-scanner:2.1.2")
And I am using the permissions:
<uses-permission android:name="android.permission.CAMERA">
and I have also tried with:
<uses-feature android:name="android.hardware.camera">
I would appreciate so, so much if anyone found or finds a fix to this.
Edit: Is it possible to make the app no longer have access to the flashlight? This way I believe I can turn it on from the top bar (quick access menu) because right now, when the app runs, the flashlight button is disabled.
Thank you!
Issue Analytics
- State:
- Created a year ago
- Comments:9
Top GitHub Comments
@yuriy-budiyev any update on this?
Hello @yuriy-budiyev could you please help and suggest what will the issue for the flashlight working in some devices and not working in some devices?