<div dir="ltr">@petri this actually begs the question, do you or videolan in general want the license enforced for when people embed copyleft code in their commercial products without releasing the code (ala what the busybox people did). just wondering (this is probably also a Q for JBK)<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 25, 2021 at 5:04 PM Petri Hintukainen <<a href="mailto:phintuka@users.sourceforge.net">phintuka@users.sourceforge.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">ma, 2021-01-25 kello 10:44 -0300, Vitor Dall'Acqua kirjoitti:<br>
> So close yet so far... <br>
> <br>
> It seems, 5 years ago, that a group forked Kodi (in that time named<br>
> XBMC) and sold it as Vidon XBMC.<br>
> This had bluray menu support for Android boxes. <br>
> <br>
> You can get the apk today from their site:<br>
> <a href="http://vidon.me/" rel="noreferrer" target="_blank">http://vidon.me/</a><br>
> <br>
> If you unpack the library you see a libbdjvm.so <br>
> So renamed it to libjvm.so and packed it inside the 32bits version of<br>
> Kodi.<br>
<br>
The files are also in github: <a href="https://github.com/vidonme" rel="noreferrer" target="_blank">https://github.com/vidonme</a><br>
<br>
This is some version of PhoneME, with system classes embedded in the<br>
library (except xmlparser.jar, which is in lib/). <br>
<br>
I can't find libbluray.jar file, looks like they embedded it to jvm<br>
too.<br>
<br>
> Fired Kodi and a bluray ISO:<br>
> <br>
> 2021-01-25 11:28:52.360 T:20316 DEBUG <general>:<br>
> CBlurayCallback::Logger - dl_posix.c:54: can't open library<br>
> 'libjvm.so': dlopen failed: "/mnt/expand/cab01563-bcca-48fa-a0bf-<br>
> 0fbddaf9b192/app/org.xbmc.kodi19DV32-<br>
> Oul0BM1JFWrYMUmo3Pd3yA==/lib/arm/libjvm.so" has text relocations ( <br>
> <a href="https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23" rel="noreferrer" target="_blank">https://android.googlesource.com/platform/bionic/+/master/android-changes-for-ndk-developers.md#Text-Relocations-Enforced-for-API-level-23</a><br>
> )<br>
> No source, not possible to recompile =(<br>
> <br>
> I guess this protection is now part of Android OS and can't be<br>
> disabled just for testings, right?<br>
><br>
> On Sun, Jan 24, 2021 at 1:11 PM Vitor Dall'Acqua <<a href="mailto:veggav@gmail.com" target="_blank">veggav@gmail.com</a>><br>
> wrote:<br>
> > This is a neat idea but this kind defeats the purpose, unless it<br>
> > was mostly a copy and paste solution from what you already did and<br>
> > easy to achieve. Also I don't know much of how to work with the<br>
> > skin kodi uses. I believe it uses information stored in xml files<br>
> > to show content on the screen. <br>
> > <br>
> > but it's kinda of a bittersweet solution, menus are part of the<br>
> > appeal of physical media, that's the beauty of it. <br>
> > <br>
> > On Sun, Jan 24, 2021 at 1:03 PM Shaya Potter <<a href="mailto:spotter@gmail.com" target="_blank">spotter@gmail.com</a>><br>
> > wrote:<br>
> > > ah, ok :) understood.<br>
> > > <br>
> > > On Sun, Jan 24, 2021 at 6:02 PM Vitor Dall'Acqua < <br>
> > > <a href="mailto:veggav@gmail.com" target="_blank">veggav@gmail.com</a>> wrote:<br>
> > > > the thing is, I'm not a computer engineer, I'm just a<br>
> > > > veterinary that knows how to solve a few problems. Doing a<br>
> > > > project in this magnitude is beyond what I can do. <br>
> > > > <br>
> > > > I would gladly help fund something like that, and I believe<br>
> > > > many others in the Kodi forum would feel the same but this is<br>
> > > > as far as my skills go. <br>
> > > > <br>
> > > > On Sun, Jan 24, 2021 at 12:55 PM Shaya Potter < <br>
> > > > <a href="mailto:spotter@gmail.com" target="_blank">spotter@gmail.com</a>> wrote:<br>
> > > > > as I said, reach out to them to get the source code and put<br>
> > > > > the work into building it with the ndk that kodi uses. One<br>
> > > > > can also look at phoneme (as petri mentioned)<br>
> > > > > <br>
> > > > > <a href="https://github.com/nikita36078/phoneME-android" rel="noreferrer" target="_blank">https://github.com/nikita36078/phoneME-android</a> (example,<br>
> > > > > don't know if this is the most uptodate version of the<br>
> > > > > phoneme / android code floating around)<br>
> > > > > <br>
> > > > > this is a java me environment and while not what libbluray is<br>
> > > > > commonly used with today, should be all that's needed for<br>
> > > > > blurays to run. With that said, I don't know what<br>
> > > > > limitations it has and how its graphic drawing capabilities<br>
> > > > > will work with libbluray. <br>
> > > > > <br>
> > > > > getting it to build with the ndk that kodi uses is probably<br>
> > > > > going to be a bit of work (perhaps an understatement), but if<br>
> > > > > you do, all these linking problems should hopefully<br>
> > > > > disappear. (in the case of java me, it's no longer the jvm<br>
> > > > > binary, but the cvm binary that you will be using)<br>
> > > > > <br>
> > > > > On Sun, Jan 24, 2021 at 5:45 PM Vitor Dall'Acqua < <br>
> > > > > <a href="mailto:veggav@gmail.com" target="_blank">veggav@gmail.com</a>> wrote:<br>
> > > > > > Today I tried with the 32bits build of Kodi with the arm<br>
> > > > > > build of that java for termux, now that I know how to add<br>
> > > > > > files to the apk, it was much easier. <br>
> > > > > > So, the files for java need to be in the lib folder of the<br>
> > > > > > apk and adding subfolders break the jarsigner. <br>
> > > > > > This means some files will be overwritten and I used the<br>
> > > > > > JRE ones to do so. <br>
> > > > > > <br>
> > > > > > with the 64bits version the error is always the same ELF<br>
> > > > > > TLS DT entry is failing, with some google skills this seem<br>
> > > > > > like something about improperly linking the libs and this<br>
> > > > > > would only be possible to overcome with the source and the<br>
> > > > > > possibility to build our own java for android.<br>
> > > > > > <br>
> > > > > > Next the 32bits, first it failed because of ld-linux-<br>
> > > > > > armhf.so.3 not found. This isn't part of the package so I<br>
> > > > > > grabbed it from arm-linux-gnueabihf.<br>
> > > > > > $ sudo apt-get install libc6-armhf-cross <br>
> > > > > > and it was found in usr/arm-linux-gnueabihf/lib/ld-linux-<br>
> > > > > > armhf.so.3<br>
> > > > > > <br>
> > > > > > so, after that the error is:<br>
> > > > > > 2021-01-24 13:32:26.058 T:18658 DEBUG <general>:<br>
> > > > > > CBlurayCallback::Logger - dl_posix.c:54: can't open library<br>
> > > > > > 'libjvm.so': dlopen failed: unknown reloc type 17 @<br>
> > > > > > 0x981984c8 (65342)<br>
> > > > > > <br>
> > > > > > If you guys know anything else I would be happy to try<br>
> > > > > > but... <br>
> > > > > > beyond that I have no idea what can be done.<br>
> > > > > > I'm throwing the towel and giving up. <br>
> > > > > > <br>
> > > > > > It would be outstanding to have full blurays and blurays<br>
> > > > > > uhd on Android. As Shaya said it is the holy grail because<br>
> > > > > > it's a much better experience than having a computer<br>
> > > > > > running windows and CoreElec is very hardware restricted. <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > <br>
> > > > > > On Sat, Jan 23, 2021 at 9:02 PM Vitor Dall'Acqua < <br>
> > > > > > <a href="mailto:veggav@gmail.com" target="_blank">veggav@gmail.com</a>> wrote:<br>
> > > > > > > I managed to insert everything into the apk, here's how:<br>
> > > > > > > use sdk command lines tool aapt and do:<br>
> > > > > > > $aapt add -v apkname.apk files/*<br>
> > > > > > > <br>
> > > > > > > sign with <br>
> > > > > > > jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -<br>
> > > > > > > keystore ~/.android/debug.keystore apkname.apk<br>
> > > > > > > androiddebugkey<br>
> > > > > > > <br>
> > > > > > > ok, now that we have everything inside the apk and<br>
> > > > > > > unpaking the way we want here's the new problem:<br>
> > > > > > > 2021-01-23 21:58:03.326 T:30186 DEBUG <general>:<br>
> > > > > > > CBlurayCallback::Logger - dl_posix.c:54: can't open<br>
> > > > > > > library 'libjvm.so': dlopen failed: unsupported ELF TLS<br>
> > > > > > > DT entry in "/mnt/expand/cab01563-bcca-48fa-a0bf-<br>
> > > > > > > 0fbddaf9b192/app/org.xbmc.kodi19DV-<br>
> > > > > > > ZUB_1OMT4YBiycijbgSzvA==/lib/arm64/libjvm.so"<br>
> > > > > > > <br>
> > > > > > > so, is this a game over without the source code?<br>
> > > > > > > <br>
> > > > > > > <br>
> > > > > > > On Sat, Jan 23, 2021 at 7:53 PM Vitor Dall'Acqua < <br>
> > > > > > > <a href="mailto:veggav@gmail.com" target="_blank">veggav@gmail.com</a>> wrote:<br>
> > > > > > > > Ok 10 hours of work is enough for a day. I'll be back<br>
> > > > > > > > tomorrow. <br>
> > > > > > > > And from what I see we actually need the files inside <br>
> > > > > > > > /mnt/expand/cab01563-bcca-48fa-a0bf-<br>
> > > > > > > > 0fbddaf9b192/app/org.xbmc.kodi19DV-<br>
> > > > > > > > BHAaVSj7u8lhvDk_OSQttQ==/<br>
> > > > > > > > <br>
> > > > > > > > looking clearly now it's no == the path actually has 2<br>
> > > > > > > > =<br>
> > > > > > > > <br>
> > > > > > > > I already know how to pack stuff using Kodi make apk,<br>
> > > > > > > > I'm adding here:<br>
> > > > > > > > build/tools/android/packaging/xbmc/build/intermediates/<br>
> > > > > > > > stripped_native_libs/debugUnsigned/out/lib/arm64-v8a/<br>
> > > > > > > > <br>
> > > > > > > > and when compiling those are showing up.. but for some<br>
> > > > > > > > reason.. the *so.6 isn't going.. probably because it is<br>
> > > > > > > > a link...<br>
> > > > > > > > <br>
> > > > > > > > On Sat, Jan 23, 2021 at 7:37 PM Petri Hintukainen < <br>
> > > > > > > > <a href="mailto:phintuka@users.sourceforge.net" target="_blank">phintuka@users.sourceforge.net</a>> wrote:<br>
> > > > > > > > > la, 2021-01-23 kello 23:38 +0200, Shaya Potter<br>
> > > > > > > > > kirjoitti:<br>
> > > > > > > > > > On Sat, Jan 23, 2021, 11:32 PM Petri Hintukainen <<br>
> > > > > > > > > > <a href="mailto:phintuka@users.sourceforge.net" target="_blank">phintuka@users.sourceforge.net</a>> wrote:<br>
> > > > > > > > > > > la, 2021-01-23 kello 17:43 -0300, Vitor<br>
> > > > > > > > > Dall'Acqua kirjoitti:<br>
> > > > > > > > > > > > Well, I'm no expert but when I tried to add it<br>
> > > > > > > > > along with other<br>
> > > > > > > > > > > > libraries it ended up in the same folder along<br>
> > > > > > > > > with all other<br>
> > > > > > > > > > > libs.<br>
> > > > > > > > > > > <br>
> > > > > > > > > > > Then, it should find libjvm.so from there without<br>
> > > > > > > > > any path ? If<br>
> > > > > > > > > > > JAVA_HOME is unset, first probed library is<br>
> > > > > > > > > "libjvm.so" without any<br>
> > > > > > > > > > > path added to it.<br>
> > > > > > > > > > > <br>
> > > > > > > > > > > If not, you could try adding following snippet to<br>
> > > > > > > > > > > bdj.c:_load_jvm(),<br>
> > > > > > > > > > > before "java_home = getenv("JAVA_HOME")" line:<br>
> > > > > > > > > > > <br>
> > > > > > > > > > > handle = dl_dlopen("/lib/arm64/libjvm.so",<br>
> > > > > > > > > NULL);<br>
> > > > > > > > > > > if (handle) {<br>
> > > > > > > > > > > return handle;<br>
> > > > > > > > > > > }<br>
> > > > > > > > > > > <br>
> > > > > > > > > > > But JVM probably won't find other files it needs<br>
> > > > > > > > > if those are<br>
> > > > > > > > > > > inside<br>
> > > > > > > > > > > the apk.<br>
> > > > > > > > > > <br>
> > > > > > > > > > I was arguing that the whole jvm needs to be in the<br>
> > > > > > > > > apk, see the<br>
> > > > > > > > > > phoneme apk I linked to. It includes cvm in<br>
> > > > > > > > > /assets/<br>
> > > > > > > > > <br>
> > > > > > > > > Yes, that seems to allow keeping the directory<br>
> > > > > > > > > structure. libjvm.so<br>
> > > > > > > > > probably looks for the other files using paths<br>
> > > > > > > > > relative to it's<br>
> > > > > > > > > location. But how are files in assets accessed? If<br>
> > > > > > > > > those are not<br>
> > > > > > > > > accessible from "normal" filesystem it doesn't work.<br>
> > > > > > > > > <br>
> > > > > > > > > Can we use something similar to this:<br>
> > > > > > > > > /mnt/expand/cab01563-bcca-48fa-a0bf-<br>
> > > > > > > > > 0fbddaf9b192/app/org.xbmc.kodi19DV-<br>
> > > > > > > > > BHAaVSj7u8lhvDk_OSQttQ==/lib/arm64/libkodi.so<br>
> > > > > > > > > <br>
> > > > > > > > > If not, those files need to be extracted somewhere in<br>
> > > > > > > > > the filesystem.<br>
> > > > > > > > > <br>
> > > > > > > > > > _______________________________________________<br>
> > > > > > > > > > libbluray-devel mailing list<br>
> > > > > > > > > > <a href="mailto:libbluray-devel@videolan.org" target="_blank">libbluray-devel@videolan.org</a><br>
> > > > > > > > > > <br>
> > > > > > > > > <a href="https://mailman.videolan.org/listinfo/libbluray-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/libbluray-devel</a><br>
> > > > > > > > > <br>
> > > > > > > > > <br>
> > > > > > > > > _______________________________________________<br>
> > > > > > > > > libbluray-devel mailing list<br>
> > > > > > > > > <a href="mailto:libbluray-devel@videolan.org" target="_blank">libbluray-devel@videolan.org</a><br>
> > > > > > > > > <a href="https://mailman.videolan.org/listinfo/libbluray-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/libbluray-devel</a><br>
> > > > > > _______________________________________________<br>
> > > > > > libbluray-devel mailing list<br>
> > > > > > <a href="mailto:libbluray-devel@videolan.org" target="_blank">libbluray-devel@videolan.org</a><br>
> > > > > > <a href="https://mailman.videolan.org/listinfo/libbluray-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/libbluray-devel</a><br>
> > > > > _______________________________________________<br>
> > > > > libbluray-devel mailing list<br>
> > > > > <a href="mailto:libbluray-devel@videolan.org" target="_blank">libbluray-devel@videolan.org</a><br>
> > > > > <a href="https://mailman.videolan.org/listinfo/libbluray-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/libbluray-devel</a><br>
> > > > _______________________________________________<br>
> > > > libbluray-devel mailing list<br>
> > > > <a href="mailto:libbluray-devel@videolan.org" target="_blank">libbluray-devel@videolan.org</a><br>
> > > > <a href="https://mailman.videolan.org/listinfo/libbluray-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/libbluray-devel</a><br>
> > > _______________________________________________<br>
> > > libbluray-devel mailing list<br>
> > > <a href="mailto:libbluray-devel@videolan.org" target="_blank">libbluray-devel@videolan.org</a><br>
> > > <a href="https://mailman.videolan.org/listinfo/libbluray-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/libbluray-devel</a><br>
> _______________________________________________<br>
> libbluray-devel mailing list<br>
> <a href="mailto:libbluray-devel@videolan.org" target="_blank">libbluray-devel@videolan.org</a><br>
> <a href="https://mailman.videolan.org/listinfo/libbluray-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/libbluray-devel</a><br>
<br>
<br>
_______________________________________________<br>
libbluray-devel mailing list<br>
<a href="mailto:libbluray-devel@videolan.org" target="_blank">libbluray-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/libbluray-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/libbluray-devel</a><br>
</blockquote></div>