Kodi not requesting files and media permission
#16
I've tested this on a Google Pixel 8 (Android 15) and I'm 100% sure that there is no bug and it works as expected. But there could be a bug that only affects your device or it doesn't work properly due to the manufacturer's customization layer, etc.

So a lot more information (including debug log) is needed to draw conclusions:

Does the message asking for access to all files appear?
When you hit "continue" button, are you redirected to Android settings?  (Settings > Apps > Special app access > All files access)
If you change the setting to "allow", does Kodi continue to open?
If it doesn't continue to open, if you close the settings screen, go back to Kodi or is it no longer available?
If you open Kodi again does it ask you for permission again? (in case you haven't granted it yet)

The only thing I think could be improved is the type of message to make it clear that the user must change the setting to "allow" in the Android settings (not only continue / close / back)
Reply
#17
(2024-11-23, 14:41)sky.joshua Wrote: and does not send be to the corresponding settings page

on Pixel 8 appropriate settings page is opened automatically and when enabled permission Kodi continues opening (no bugs).
Reply
#18
Does the message asking for access to all files appear?
- the message by Kodi does appear as an info box. The subsequent system dialog does not ask for files permission, only for mic.
When you hit "continue" button, are you redirected to Android settings? (Settings > Apps > Special app access > All files access)
- no, and that may be the central point
If you change the setting to "allow", does Kodi continue to open?
- yes, if I manually navigate to the special settings and allow all files access for Kodi manually, Kodi works normally
If it doesn't continue to open, if you close the settings screen, go back to Kodi or is it no longer available?
- when I grant mic access in the pop up, next Kodi throws an error about file access not granted and closes immediately
If you open Kodi again does it ask you for permission again? (in case you haven't granted it yet)
- no, just throws the same error error and closes immediately
Reply
#19
Interesting, it now seems confirmed that the bug is only present on certain devices and the cause is the redirection to wrong Android settings page.

It remains to be seen whether there is anything that can be done from the Kodi side and if this bug is still present on the same device when updated to Android 15, etc.
Reply
#20
@sky.joshua

Test this build:

ARM64:
kodi-20241124-982dac12-android-permissions-omega-arm64-v8a.apk

ARM:
kodi-20241124-982dac12-android-permissions-omega-armeabi-v7a.apk

Improved a bit text displayed to request all files permission and added a fallback code path in case main causes an exception (Exception asking for permissions: No Activity found to handle Intent).

I imagine that what happens is the aforementioned exception and that is why the settings do not open, but these are just assumptions without proper logcat...

1. Go to "Settings > Apps > Special app access > All files access" and disable Kodi permission to trigger new request
2. Install test build on top of current Omega v21.1


EDIT:

This is the new message:
Image


The fallback code should open these Android settings:
Image


In case of direct access to Kodi setting not available:
Image

In two cases user MUST change the Android setting from "Not allowed" to "Allowed"
Reply
#21
Hello,
Thanks for the builds, followed your instructions, error message is a bit clearer, maybe the Special Access can be named explicitly (whatever it is called in EN, I am on DE locale).

The fallback code did not kick in, though, the android access settings did not open

Cheers
Reply
#22
(2024-11-24, 22:34)sky.joshua Wrote: The fallback code did not kick in, though, the android access settings did not open

I am out of ideas then... probably this remains unresolved for a time until someone provides logcat or a developer ran into the problem on its own device.

Anyway, the only issue is that it doesn't automatically redirect to Android settings, everything else works as expected (permission not displayed in the app info or the need to change this in Android settings).
Reply
#23
(2024-11-24, 22:34)sky.joshua Wrote: maybe the Special Access can be named explicitly (whatever it is called in EN, I am on DE locale).

In v22 Android strings will be translated --> https://kodi.weblate.cloud/projects/kodi...d-strings/
Reply
#24
I would suggest to add a bit of explanation in the Wiki pages (happy to contribute if I am allowed) and a few more words to the info box guiding the user. With the nudge in the right direction, the topic changes from a show stopper to a non-issue really...
Reply
#25
...seems more people get the same problem. How can I contribute to an explanation in the Wiki or a more exhaustive error message in the app?

https://forum.kodi.tv/showthread.php?tid=379240
Reply
#26
Deleted
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi not requesting files and media permission0