![]() |
Binary addon not works on Android - 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: Binary addon not works on Android (/showthread.php?tid=306263) Pages:
1
2
|
Binary addon not works on Android - MrDini - 2017-02-08 Hi all, I successfully compiled a static ARM binary and created an addon, which loads it as a daemon. Well, it works fine on an RPi2, but on my phone, it gives a 'No such file or directory'.... ![]() AFAIK, it caused, because the external storages (like /storage/emulated/0, or /storage/sdcard1) is mounted with the noexec flag. Which is okay, because it makes my sdcard more safety. But I want to run this binary. ![]() Well, is there a way to move the binaries under /data/data/org.xbmc.kodi/... folder, where hopefully, I Can run theese binaries? Or what Can I do? (Unfortunately, I haven't got root access) Many thanks! RE: Binary addon not works on Android - ironic_monkey - 2017-02-08 Analysis is correct. You will have to bundle in the kodi apk or build an apk for the addon that installs into kodi dir. RE: Binary addon not works on Android - MrDini - 2017-02-08 But I have to do that with the addon itself. The apk rebuild is an easy way, but not So elegant. And harder to install for the users. RE: Binary addon not works on Android - nickr - 2017-02-08 Please remember that we are not going to be keen on a binary addon being promoted here without being able to see your source code. Is it on github? RE: Binary addon not works on Android - MrDini - 2017-02-08 Okay, that's true. Will upload it to Github! ![]() RE: Binary addon not works on Android - nickr - 2017-02-08 Cheers ![]() RE: Binary addon not works on Android - Koying - 2017-02-08 Assuming your addon is not about piracy and that it's self-compiling and you can build an apk, I'm quite interested to use it as guinea pig to find out how to integrate those with Kodi... RE: Binary addon not works on Android - ironic_monkey - 2017-02-08 this is what i have in my 2013 notes; 'droid cannot use zip files due to noexec stuff. we should build add-ons as native packages, then tap into whatever api's droid has for managing extensions/plugins for applications. this way, add-ons can simply be separate things in the store and we do not have to do distribution mess ourself' - investigate what apis are available (is there such an api? can we use our own frontend?). - check whether cpack can build apk's RE: Binary addon not works on Android - Koying - 2017-02-08 Yep, binary addons apk is still the goal, as it's definitely how it should be. MX Player does it to distribute its "grey" codecs, so there is definitely a way Qt for Android uses some kind of middleware; to be investigated as well RE: Binary addon not works on Android - MrDini - 2017-02-08 Well, my addon contains a native ARM Transmission binary, which is fully static! I created a Git repo too, as You requested: https://github.com/MrDini123/service.transmission This is my first addon, So please ignore my noobness! I am a hobby C developer, not python prof. ![]() Feel free to upload Pull reqs! ![]() Thanks a lot! Off: Is there a way to keep the daemon running, when the python script exits? Because now, it is unusable... RE: Binary addon not works on Android - MrDini - 2017-02-10 Okay, I fixed the addon (see the linked github page). Now works nice on my RPi2. But I think it will not work on my Android device... ![]() Mod: yes, I tried to install it, and said the following error: Code: Traceback (most recent call last): Well, it looks like a compile error, because this Jenkins folder doesn't exist on my device: /home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-17/lib/python2.6/ Binary addon not works on Android - Memphiz - 2017-02-11 If you would tell where it prints out that jenkins path i could guess that this is not a path which it tries to access during runtime but a path which it prints out for debug purposes and which just is an information which was collected during compile time... RE: Binary addon not works on Android - Koying - 2017-02-11 Probably first thing first. How did you compile the "*.bin" in your repo? And that has little chance to work on droid: Code: subprocess.call('chmod +x ' + __path__ + '/bin/*', shell=True) RE: Binary addon not works on Android - MrDini - 2017-02-11 (2017-02-11, 13:46)Memphiz Wrote: If you would tell where it prints out that jenkins path i could guess that this is not a path which it tries to access during runtime but a path which it prints out for debug purposes and which just is an information which was collected during compile time... I copied this part from the kodi.log file. RE: Binary addon not works on Android - MrDini - 2017-02-11 (2017-02-11, 13:50)Koying Wrote: Probably first thing first. How did you compile the "*.bin" in your repo? I compiled theese binaries on an ARMv5 box. So it runs on RPi1, Rpi2, Rpi3 and on Android too, if I copy the binaries under the data partition, and run from here. I forced the static flag, So theese binaries are static and theese only require a libc.so.6 and a linker. Thanks for the code, will try it! But if the internal storage mounted with noexec flag, the chmod +x has no effect. I Cannot start binaries from here. I Can only run it from data system, etc partitions. But theese folders Can only accessible, when I have root permissions... ![]() |