Turning on the camera flash would make it easier to find it in the dark.
Details
Diff Detail
- Repository
- R225 KDE Connect - Android application
- Lint
Lint Skipped - Unit
Unit Tests Skipped
We have had this patch in the past I think.
This requires having Camera privileges, which feels rather shady to me...
I'm also on the side that this permission is not worth asking just for this plugin...
Since it's only an optional Permission IMHO it would be okay to ask for it and provide an explanation. The user can still decline it if unwanted.
res/values/strings.xml | ||
---|---|---|
219 | Please give a better explanation why the flash is needed |
AndroidManifest.xml | ||
---|---|---|
36 | Do we really need the Camera Permission if we got the Flashlight Permission? |
Like with other optional permissions, it's shown in the list of controls for a paired device. So you can decide beforehand if you want the functionality (and grant camera permissions) or not.
I think the functionality is a nice addition. That being said, it does not work for me (even after granting permission). I only get the following messages in the logcat:
E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0 E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0 D/MediaPlayer: setSubtitleAnchor in MediaPlayer D/Ringtone: Successfully created local player E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0 E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0 D/MediaPlayer: setSubtitleAnchor in MediaPlayer D/Ringtone: Successfully created local player
AndroidManifest.xml | ||
---|---|---|
37 | Does such a permission exist? It's not in the list at https://developer.android.com/reference/android/Manifest.permission.html | |
res/values/strings.xml | ||
219 | Something like "To turn on the flashlight in the find-my-phone functionality, you need to give permission to access the phone's camera" seems good to me. It emphasizes for what the functionality is needed, and should make it clearer what happens if you deny the permission. |