KodiSharp icon indicating copy to clipboard operation
KodiSharp copied to clipboard

Android support

Open smx-smx opened this issue 5 years ago • 0 comments

I'll make this issue to track my experiments with Android support.

Android support is actually hard to pull off due to SELinux restricting native libraries to the apk file being ran (.so files must be in the lib subfolder of the apk).

I tried to work around that by using android_create_namespace to create a new namespace, but it simply won't work until SELinux is set to permissive (which requires root access).

Even after doing that, the Kodi app just crashed upon loading the library and i'm not completely sure why that happened (didn't have time to debug the crash yet)

Due to the aforementioned limitations, it looks like the best course of action would be to repackage the Kodi APK to include the mono host library - so that it can be loaded without hacks.

That would obviously make it annoying to maintain new versions/releases of Kodi, but i don't have any other idea in mind at the moment.

I'm starting to feel like i've reached the point where a proper integration of C# in the Kodi source code is the next step to pursuit, but that's a nontrivial step to pull off

smx-smx avatar May 20 '19 21:05 smx-smx