Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android (Nvidia Shield) smb shares do not appear in Kodi 19 #19023

Closed
1 of 7 tasks
hoppel118 opened this issue Jan 5, 2021 · 33 comments · Fixed by #19523 or xbmc/libandroidjni#22
Closed
1 of 7 tasks

Android (Nvidia Shield) smb shares do not appear in Kodi 19 #19023

hoppel118 opened this issue Jan 5, 2021 · 33 comments · Fixed by #19523 or xbmc/libandroidjni#22
Labels
Platform: Android Resolution: Fixed issue was resolved by a code change Triage: Confirmed issue has been reproduced by a team member

Comments

@hoppel118
Copy link

Bug report

Describe the bug

Here is a clear and concise description of what the problem is:

I recently downloaded and installed Kodi Matrix version for testing purposes.

In the German Kodinerds Forum we noticed that smb network shares connected via Android OS are no longer shown under Kodi Matrix.

I don't know if this is a general Android option or if it is an Nvidia Shield TV specific option.

Expected Behavior

Here is a clear and concise description of what was expected to happen:

  1. Add your smb network storage at Android OS level to your Nvidia Shield: HOW TO ADD NETWORK STORAGE
  2. Look at Android file manager (for example Xplore). You see all the mounted shares. It looks as follows:

android-smb-x-plore

  1. Look at Kodi Leia file manager. You see all the mounted shares. It looks as follows:

android-smb-leia

Actual Behavior

  1. Look at Kodi Matrix file manager. You don't see any android mounted share. It looks as follows:

android-smb-matrix

Possible Fix

I don't know a fix for this. But you can still mount smb shares via Kodi: https://kodi.wiki/view/SMB

To Reproduce

Steps to reproduce the behavior:

Look at the steps above.

Debuglog

The debuglog can be found here:

If you need a debug log for this, let me know which debug components to activate.

Your Environment

Used Operating system:

  • Android

  • iOS

  • tvOS

  • Linux

  • OSX

  • Windows

  • Windows UWP

  • Operating system version/name: Android OS - Nvidia Shield Experience 8.2.1

  • Kodi version: kodi-20210102-a71d8ffe-master-arm64-v8a.apk

@xbmc-gh-bot xbmc-gh-bot bot added the Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it label Jan 5, 2021
@wsnipex
Copy link
Member

wsnipex commented Jan 10, 2021

sounds like a permission issue, but our psychic powers are limited ;)

@hoppel118
Copy link
Author

hoppel118 commented Jan 10, 2021

Empower my psych, please... What permissions can be set to get it to work under Kodi Matrix, while it works in other apps without setting up special permissions? ;)

What is needed to determine the exact problem?

Different users in different communities recognized this „issue“ for Kodi Matrix.

Is here any user with a Shield and smb shares who has them connected from os level?

Maybe it’s the same for other Android devices.

Regards Hoppel

@fritsch
Copy link
Member

fritsch commented Jan 10, 2021

Might be the SDK change, which required this "legacy flag" to be set. Perhaps that's the reason why they disappear, see: Perhaps the testbuilds from: #18893 are still available for testing.

@hoppel118
Copy link
Author

hoppel118 commented Jan 10, 2021

Hi @fritsch

did you recognize that I already commented that issue some days ago?

@Maven85 gave us a custom build with a unique app name and directory to test if it gets solved with these changes. It was not the case.

Any other ideas?

Regards Hoppel

@fritsch
Copy link
Member

fritsch commented Jan 10, 2021

No - I only recognize reports that include a debuglog - and besides the other thingy nothing comes into my mind. So therefore - no ideas.

@hoppel118
Copy link
Author

@fritsch Which debug components should I activate to get the correct log file?

Thanks

@dilusion
Copy link

Hello having the same problem here.
Nvidia shield - network storage added in Android.

In Kodi 18 they show normally - in 19 they are missing.

@KylePreuss
Copy link

KylePreuss commented Feb 21, 2021

Kodi auto-updated to 19 on my Shield this morning. SMB shares mounted in Android are no longer showing up in the app.

Edit: FYI, Android users can roll back to 18.9 by sideloading the old APK: http://mirrors.kodi.tv/releases/android/arm64-v8a/kodi-18.9-Leia-arm64-v8a.apk

@Morhoo
Copy link

Morhoo commented Feb 21, 2021

+1 same issue

@fritsch
Copy link
Member

fritsch commented Feb 21, 2021

Android is currently not maintained. Please don't spam with +1. If something changes you are the first that are pinged.

If you can contribute code, now is the time to standup for your platform.

@Timbo200
Copy link

Timbo200 commented Feb 22, 2021

I realize that answering the same questions over and over again for experienced members is tiring, but not everybody is either experienced or an expert.

I updated today and got bitten by the same issue. For me I'm attached a Synology NAS using SMB. I was able to get the share recognized again after going into the NAS and changing it from only SMB1 to allow both SMB2 and SMB3.

EDIT - I read elsewhere people also have had success adjusting the client (Kodi).

Settings -> Services -> SMBclient -> Minimum = V1, Maximum = V3

If you leave the default minimum at "none" it doesn't seem to pickup the range correctly.

@dotnet555
Copy link

dotnet555 commented Feb 22, 2021

I'm also using a Synology NAS, and changing the SMB protocol (min V1 - max V3 both on Kodi and on the NAS) didn't work for me, but I found another hack that works in my case:

  • I added the NAS' folders as Mapped Network Drives from the Shield's OS settings.
  • The mapped network drives does not show up anymore in the Kodi Matrix version, but i can I can still access them if I add them manually in Kodi's favourites.xml with a text-editor. The path is something like /storage/<NAS Name>/<share>/. If you're in doubt on how to write it, add at least one favorite from the GUI to have a template to edit.

Oddly enough, if I add the same source in the sources.xml (either via GUI or via manual edit), it still gives "Path not found or invalid".

So, the access mechanism used by the favourites is probably somewhat bypassing something that the sources are doing, or maybe they are using a completely different set of or code, or whatever.

Hope this helps someone, and maybe gives some hints to some developer.

Just, please, leave the favourites as they are, until this sources' problem is fixed. ;)

@TheDeanMan
Copy link

Can confirm as an issue. My mounted network drive is no longer showing up in Kodi on my NVidia Shield as of the 19 update. Can provide more information at request.

@slvl
Copy link

slvl commented Feb 26, 2021

For me, while the shares don't show up in the sources dialog, I can still access the video files through the library. So the mounted shares can be accessed, they just don't show up as a valid source.

@anzax81
Copy link

anzax81 commented Feb 27, 2021

Same thing happened here. Cannot access mounted drives, to much of an amateur to type the commands in via text . I’m using a MacBook Pro > nvidia shield pro > kodi matrix, I cannot access files through library either, or via any of the work around a suggested in this thread, guess I’ll just have to go back to Leia then.

@juxeii
Copy link

juxeii commented Mar 1, 2021

Same issue here with the Shield and a Synology NAS. My entire network runs on >=SMB2 protocol.
In the Synology I also have SMB1 disabled.
In Kodi, changing SMB minimum version to SMB2 or SMB3 does not help.
Only way is to revert back to 18.9

Edit: Just want to mention, that manually adding NFS shares in Kodi Matrix works though. Anyway, that behaviour with SMB shares is a bug.

@bartdeboer
Copy link

Android is currently not maintained. Please don't spam with +1. If something changes you are the first that are pinged.

If you can contribute code, now is the time to standup for your platform.

If it's not maintained then how did it get updated? Seems like a fairly serious issue if the official Android release (10 million installs) is not picking up the Android OS level shares for all Nvidia Shield users.

Perhaps revert the Android app back to v18. Or perhaps have a kodi-dev (20), kodi-beta (v19) and kodi-stable (v18) apps so people can easily revert to a previous version (or help you test the latest version) until all the issues are sorted?

@trucheromayor
Copy link

trucheromayor commented Mar 3, 2021

Same issue for me...
Kodi 19
Shiel TV 2017 Pro
Nas Synology 415+

When using 18.9 it was working perfectly :(

KR

Jon

@gigatux
Copy link

gigatux commented Mar 3, 2021

Same here too.

I'm now using a standard file explorer, like Xplore, and opening video files from there with Kodi.

@DocDat
Copy link

DocDat commented Mar 8, 2021

Same problem her. When is a fix coming?

Kodi 19
Shield TV 2020 pro
Synology DS411+ II

@RayBan91
Copy link

RayBan91 commented Mar 10, 2021

I have this same issue. I needed to disable all updates from Google Play & downgrade Kodi!

When can we expect resolve this problem?

@laimis17
Copy link

Same here.

Kodi 19
Shield TV 2020 pro
macOS 11.2.2 smb server

It's been 2 month since issue appeared.
No worries, in v20 kodi devs will make it right 😉

No issues with Kodi 18.x

@Timbo200
Copy link

Kodi is developed by volunteers so I'm quite sympathetic.

My problem is that it is difficult to provide feedback here in manner that the developers will accept, that the foundation ACTIVELY promotes Android on the Kodi home page and yet we are told here that there is no full time development, and somebody who is completely undisclosed, has the authority to push a version to the Google Play Store and upgrade users to a version that lacks full support.

@Kamikaze01git
Copy link

Same here.

Kodi 19
Shield TV 2017
Synology DS920+

Without problems on Kodi 18

@mronnblom
Copy link

  • I added the NAS' folders as Mapped Network Drives from the Shield's OS settings.
  • The mapped network drives does not show up anymore in the Kodi Matrix version, but i can I can still access them if I add them manually in Kodi's favourites.xml with a text-editor. The path is something like /storage/<NAS Name>/<share>/. If you're in doubt on how to write it, add at least one favorite from the GUI to have a template to edit.

An easier way for the second step that I found is:

  • Take note of the network path(s) you want to add.

    • You can see these paths in for example the X-plore app, or another file manager app
  • In Kodi, add a new source and browse for media locations

  • Choose External Storage

  • Press OK (at the bottom)

  • Path should appear as /storage/emulated/0

  • Click on that path to edit it

  • Change the path to your network path, e.g. /storage/diskstation713/movies

  • Press Done and continue as normal

@ksooo ksooo added Triage: Confirmed issue has been reproduced by a team member and removed Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it labels Apr 6, 2021
@wsnipex wsnipex added the Resolution: Fixed issue was resolved by a code change label Apr 7, 2021
@ksooo ksooo reopened this Apr 7, 2021
@ksooo
Copy link
Member

ksooo commented Apr 7, 2021

Actually it will be fixed once #19523 got merged.

@hoppel118
Copy link
Author

Thanks you so much @ksooo and @koying

It works as expected now.

Regards Hoppel

@kbirger
Copy link

kbirger commented Apr 30, 2021

Any idea when the merged changes are going to be released?

@BitBert007
Copy link

Excuse my question if it seems stupid. I unederstand from reading this: #19523 that the problem of accessing my videos from Kodi on my Shield Pro 2019 is fixed now, on Kodi Ver. 19.2 ???

I actually use ver. 18 since the ver. 19 does not see my shares on a Windows 10 PC on my LAN. Waiting for a release that will fix this!

Thanks in advance.

@SyntaxWarrior
Copy link

Just got this problem today when I updated to Kodi to latest version on my Nvidia Shield Pro.
Back to VLC I guess.

@bartdeboer
Copy link

bartdeboer commented Feb 11, 2023 via email

@SyntaxWarrior
Copy link

How do I do that?
Just to be clear: I can browse all the folders in Kodi, and the interface lists the correct items, but nothing is in the folders and when I try to play from the interface it gives men an error.

@bartdeboer
Copy link

bartdeboer commented Feb 11, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android Resolution: Fixed issue was resolved by a code change Triage: Confirmed issue has been reproduced by a team member
Projects
None yet