Solved Kodi 20 cannot see local files on HDD connected to Nvidia Shield Pro
#46
Smile 
Go to Settings > apps > App Permissions > Files and Media > Allow all the time ( Check this box ). Go back to  main menu screen. Reboot the media box.
Restart  KODI. Problem fixed.
Reply
#47
(2023-01-24, 12:28)jimmybii Wrote: Does anyone know how you fix this for a 'restricted profile' created for my kids? For some reason the changes i made don't mirror across there, have tried uninstalling (in the restricted profile) and then going back to main profile and re-adding - but to no avail....

I have exactly the same issue as you do. Have you been able to sove it? How? Thanks!
Reply
#48
have this same problem but with windows  Undecided
Reply
#49
@2nzy2 You'll need to post in Windows support and include a proper debug log URL posted to a public paste-bin showing your attempts. The solve was shown in post #44 for the NVIDIA android o/s
Reply
#50
I keep having KODI freeze upon startup when I have my HDD plugged into the Shield TV.  Once I uplug it Kodi starts fine.  It also seems to cause my Shield TV to hang up at certain times.  

Is this related to the same issue with the permissions or is this something else?
Reply
#51
Hey everyone!
I got a brand new Arielli smart tv (androidtv 13).
Tried to install latest kodi , but after installation, upon first launch it asks for permission to access "files and folders" and when provided subsequently it just says "permission denied - exiting" and exits.
It can't access "files and folders", though I have provided this access to Kodi through the TV menu (no "allow all the time" option, just  "on" or "off" permission to access files).
This was not the case with other apps like "downloader" for example, which has access to the TV's hard disk just fine, after I granted this permission to it !

The good news is that I managed to install the Matrix version 19.5 and for now seems to work fine with the addons I wanted (sportshd).
The previous version (18.5 if not mistaken) also worked fine but any above 19.5 stucks on "permission denied" upon first launch. Same goes with UPDATING from 19.5 to later versions.
But I noticed one thing. All the versions from 19.5 and above offer microphone access, but my tv doesn't have one. Could it be that the permission denied regards the non existing microphone of my TV, or is it the files access that prevents the KODI launch?
Thanks in advance!
Reply
#52
(2023-12-06, 20:23)musictracer Wrote: androidtv 13

kodi might not be compatible with the new permissions of android 13 (yet)
 
(2023-12-06, 20:23)musictracer Wrote: It can't access "files and folders", though I have provided this access to Kodi through the TV menu (no "allow all the time" option, just  "on" or "off" permission to access files).
apps have to implement the permission in their android manifest.xml to be available to be granted, see above
if allow all the time is not available, does this have any affect?

Code:
    adb shell pm grant org.xbmc.kodi android.permission.WRITE_EXTERNAL_STORAGE
    adb shell pm grant org.xbmc.kodi android.permission.READ_EXTERNAL_STORAGE
 
(2023-12-06, 20:23)musictracer Wrote: The previous version (18.5 if not mistaken) also worked fine but any above 19.5 stucks on "permission denied" upon first launch. Same goes with UPDATING from 19.5 to later versions.

legacy permissions for older apps is used
 
(2023-12-06, 20:23)musictracer Wrote: Could it be that the permission denied regards the non existing microphone of my TV

No.
 
(2023-12-06, 20:23)musictracer Wrote: or is it the files access that prevents the KODI launch

probably, see above

additional https://developer.android.com/about/vers...changes-13
Reply
#53
Quote:kodi might not be compatible with the new permissions of android 13 (yet)
This "yet" at the end of your sentence fills me with hopefulness Blush
I only hope you are referring to Android TV 13 also, not just Android 13. Smile
 
Quote:apps have to implement the permission in their android manifest.xml to be available to be granted, see above
I searched through the thread replies above but didn't find any reference to the manifest.xml
I  am yearning to edit the code in the xml as you suggest, but I doubt I can access the system files in my android TV.
If you know a way to do so (through an app or something) I'd be more than glad if you showed me. Big Grin
Quote:legacy permissions for older apps is used
That's nice!
Reply
#54
Also, I found this .
Does this mean there is no way to edit the manifest.xml and still be able to install the apk?
Reply
#55
(2023-12-07, 13:39)musictracer Wrote: I only hope you are referring to Android TV 13 also, not just Android 13. Smile
yes, android 13* as a blanket for both android tv and android phone/tablet
 
(2023-12-07, 13:39)musictracer Wrote: I searched through the thread replies above but didn't find any reference to the manifest.xml
I  am yearning to edit the code in the xml as you suggest, but I doubt I can access the system files in my android TV.
If you know a way to do so (through an app or something) I'd be more than glad if you showed me. Big Grin

when compiling an apk the manifest.xml is created at compile from here https://github.com/xbmc/xbmc/blob/master...est.xml.in
using these steps https://github.com/xbmc/xbmc/blob/master...Android.md
Reply
#56
Quote:yes, android 13* as a blanket for both android tv and android phone/tablet
Great!! Thanks for the info!!
Quote:when compiling an apk the manifest.xml is created at compile from here https://github.com/xbmc/xbmc/blob/master...est.xml.in
using these steps https://github.com/xbmc/xbmc/blob/master...Android.md
I suppose I will have to do all that through android studio , right?
This is seems too advanced for my poor knowledge, but I will look into it.
Also any additional info would be much appreciated!!
Regardless, hopefully someone with developer skills that faces the same issue as me will be able to solve it in the future.
Many thanks for your help, izprtxqkft ! Smile
Reply
#57
Quote:when compiling an apk the manifest.xml is created at compile from here https://github.com/xbmc/xbmc/blob/master...est.xml.in
using these steps https://github.com/xbmc/xbmc/blob/master...Android.md
I've been trying to find a solution to my problem , but I didn't understand what I am supposed to do with this information you gave me. I am sure this is the right way you are showing , it's just that I am too newbie to understand I guess.  Undecided
On the other hand, I searched a little bit and found that by renaming the kodi *.apk to *.zip and unzipping subsequently I have access to the AndroidManifest.xml . The problem is the characters don't show up right when I open it, a decoding error obviously.
But I just wanted to ask, if I eventually manage to edit the xml as you suggested, will zipping it and renaming it back to *.apk do the job? I mean do you think I will be able to install it on my TV?
Reply
#58
(2023-12-12, 20:53)musictracer Wrote:
Quote:when compiling an apk the manifest.xml is created at compile from here https://github.com/xbmc/xbmc/blob/master...est.xml.in
using these steps https://github.com/xbmc/xbmc/blob/master...Android.md
I've been trying to find a solution to my problem , but I didn't understand what I am supposed to do with this information you gave me. I am sure this is the right way you are showing , it's just that I am too newbie to understand I guess.  Undecided
On the other hand, I searched a little bit and found that by renaming the kodi *.apk to *.zip and unzipping subsequently I have access to the AndroidManifest.xml . The problem is the characters don't show up right when I open it, a decoding error obviously.
But I just wanted to ask, if I eventually manage to edit the xml as you suggested, will zipping it and renaming it back to *.apk do the job? I mean do you think I will be able to install it on my TV?

the suggestion is to completely compile kodi, from github source, making the needed changes - until a time that kodi themselves do so
the information i gave is more or less just informative, better than saying "yep, doesn't work so downgrade to android 12 until further notice", that way you at least know exactly
but you never did follow up and find out if you can manually grant the existing kodi those permissions from adb shell, sure would cut out all the rest of the bs if it works
Reply
#59
I tried to follow the given instructions (app settings ->…-> files and media -> every time (in German “immer zulassen”), but can’t see the *.iso files located at my external drive. I restarted the shield but nothing changed :/

NVIDIA shield pro 9.1.1
Kodi 20.2.0
Reply
#60
thank you for telling us how to fix the problem on Kodi using external hardrive much appreciated.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi 20 cannot see local files on HDD connected to Nvidia Shield Pro0