Open ReTV opened 7 years ago
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?
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.
@ReTV @DiMartinoXBMC any solutions for make it works on android6+ devices?
You need to package both the .so files (libtorrent.so & liblibtorrent.so) along with the APK, so that its available in the /data/data folder in Android. For this, you will need to compile Kodi from source, or use a decompiler to decompile the APK and repackage it with the .so files.
On Wed, Jul 11, 2018 at 4:24 AM, Bugatsinho notifications@github.com wrote:
@ReTV https://github.com/ReTV @DiMartinoXBMC https://github.com/DiMartinoXBMC any solutions for make it works on android6+ devices?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DiMartinoXBMC/script.module.libtorrent/issues/12#issuecomment-403991270, or mute the thread https://github.com/notifications/unsubscribe-auth/AQcjcxKozQcVZ8-Nkpr-g4uBMNGkEcp-ks5uFTCcgaJpZM4OrKYm .
-- Regards,
Ashish Dinkar
where can i find those files @ReTV ?i can find only libtorrent.so thank you
check this project https://forum.kodi.tv/showthread.php?tid=312515
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?