Kodi Community Forum
Android Anyone working on Marshmallow API 23 external storage permissions? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+---- Forum: Android Development (https://forum.kodi.tv/forumdisplay.php?fid=184)
+---- Thread: Android Anyone working on Marshmallow API 23 external storage permissions? (/showthread.php?tid=268872)



Anyone working on Marshmallow API 23 external storage permissions? - stane1983 - 2016-04-11

Hi,

question from subject, anyone already working on that? As of now, Kodi can see external storage and can read from it (if Android is properly configured on fw level) but to be able to write it must meet API23 specifications and request user if he/she want to grant access to it.

I managed to issue permission request but for some reason it stays in background. I'm doing it in Splash activity.

Anyway, if someone working on it, let me know, two or cpl devs working separately on same thing Smile


RE: Anyone working on Marshmallow API 23 external storage permissions? - Koying - 2016-04-11

Hi Stane,

I started on it but didn't get that far currently.
Check the spmc github for stuff related to Document.

Fact is, we probably need to be sure how to attack the thing.
Not sure just getting permission, then proceed as usual is the way to go. I was rather envisioning having the Document interface as a vfs, but there are some bugging limitations...

[EDIT] Here is the main commit: https://github.com/koying/SPMC/commit/dc7e05625a60983bb49dbb77bbbd399e73b1c4bb


RE: Anyone working on Marshmallow API 23 external storage permissions? - stane1983 - 2016-04-11

I'll see. I think going with permission should work (works eg on Total Commander). But that solution requires android support library for which I'm not sure Kodi team is fine with (prebuilt jar by Google)?