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

Not working on android >= 6 #12

Open
ReTV opened this issue Aug 2, 2017 · 6 comments
Open

Not working on android >= 6 #12

ReTV opened this issue Aug 2, 2017 · 6 comments

Comments

@ReTV
Copy link

ReTV commented Aug 2, 2017

Error while loading.

18:20:59 T:18446744071999801648 NOTICE: ### [python-libtorrent v.1.1.1]: Error importing libtorrent from "/temp/xbmcup/script.module.libtorrent/python_libtorrent/android_armv7/1.1.1". Exception: dlopen failed: library "liblibtorrent.so" not found

any fixes in sight?

@ReTV
Copy link
Author

ReTV commented Aug 4, 2017

Ok did some more digging around. Nothing wrong with the .so file
Its basically a permission issue. Some changes in android Marshmallow are preventing the module from being loaded when its in the Kodi userdata folder.

To test this, I built kodi from scratch, and included libtorrent.so within the apk so that it gets installed at /data/data/org.xbmc.kodi/lib folder. There need to be 2 files, libtorrent.so & liblibtorrent.so. Then it works.

Notice that the .so files need to be included in the apk installation as on unrooted android devices, access to "data/data" folder is not available. So this won't work at python level.

So the issue still stands. But atleast we now know that its a permission related issue.

Any suggestions on how to fix?

@DiMartinoXBMC
Copy link
Owner

I think there is no solution for not rooted devices. There was a thread on kodi offical forum about it, guess you should find it.

@bugatsinho
Copy link

@ReTV @DiMartinoXBMC any solutions for make it works on android6+ devices?

@ReTV
Copy link
Author

ReTV commented Jul 11, 2018 via email

@bugatsinho
Copy link

bugatsinho commented Jul 11, 2018

where can i find those files @ReTV ?i can find only libtorrent.so
thank you

@DiMartinoXBMC
Copy link
Owner

check this project https://forum.kodi.tv/showthread.php?tid=312515

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants