<div dir="auto">Really glad to hear back on this.<div dir="auto"><br></div><div dir="auto">Exactly, having libbluray running on Kodi on Android would make many people happy.</div><div dir="auto"><br></div><div dir="auto">Alas, this is not my first time attempting this and failing.</div><div dir="auto"><br></div><div dir="auto">It would make things much simpler if would be possible to just embed jre into libbluray when compiling but that probably violates several license agreements.</div><div dir="auto"><br></div><div dir="auto">Right now, I'm still working on libbluray and Kodi with a different issue, actually the only remaining issue with bluray and bluray uhd playback on Kodi using libbluray (on linux and windows).</div><div dir="auto"><br></div><div dir="auto">Kodi has 2 states when playing a disc: inside a menu and playback.</div><div dir="auto">The problem I'm facing is the popup menus, which causes Kodi to behave as if it's inside a menu during entire playback.</div><div dir="auto"><br></div><div dir="auto">I need to figure out a way to get any value when the popup menu isn't rendering on screen.</div><div dir="auto"><br></div><div dir="auto">BD_EVENT_POPUP doesn't change.</div><div dir="auto">All the axis, img byte size, the palette, still can't figure out anything that I can use.</div><div dir="auto"><br></div><div dir="auto">Do you have advice of what can be used for this?</div><div dir="auto"><br></div><div dir="auto">This would greatly improve the user experience using Kodi and full discs.</div><div dir="auto"><br></div><div dir="auto">Either way, thank you for taking your time to answer this.</div><div dir="auto"><br></div><div dir="auto">Regards</div><div dir="auto">Vitor</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 20, 2021, 7:11 PM Shaya Potter <<a href="mailto:spotter@gmail.com">spotter@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I can't speak to any specifics, but there are some obvious issues that would prevent libbluray from loading it.<br><br></div><div>libbluray searches for the the java root dir in a number of places (including the JAVA_HOME env)<br></div><div><br></div><div>from the root dir, it searches in a number of subdir's for libjvm.so<br><br></div><div>the dirs it searches are</div><div><br></div><div><pre lang="c"><span id="m_-2434557197559808633gmail-LC416" lang="c">    <span>static</span> <span>const</span> <span>char</span> <span>*</span> <span>const</span> <span>jvm_dir</span><span>[]</span>  <span>=</span> <span>{</span><span>"jre/lib/"</span> <span>JAVA_ARCH</span> <span>"/server"</span><span>,</span></span>
<span id="m_-2434557197559808633gmail-LC417" lang="c">                                            <span>"lib/server"</span><span>,</span></span>
<span id="m_-2434557197559808633gmail-LC418" lang="c">                                            <span>"lib/client"</span><span>,</span></span>
</pre></div><div><br></div><div>it turns out that none of those dirs are where this jvm stores libjvm.so.  it stores it in "lib/arm/client".<br><br></div><div>hence it can't find it.  a simple experiment would be for you to build your own libbluray and add "lib/arm/client" or perhaps even "lib" JAVA_ARCH "/client" (again, unsure) and see if that improves the situation.</div><div><br></div><div>with that said, I have some skepticism that it can work when loaded into the shared data partition as google has gone through efforts to lock down executable code being stored there, with that said, I don't know how that impact dlopen and the like and might only impact Android Q users.<br></div><div><br></div><div>but again, this is just low hanging fruit issues, dont really know what it would be.  (with that said, I think the holy grail for many people would be to have kodi be able to use java on android).<br><br></div><div>The other issue is that these devs don't provide any source code for the jvm that they built.  as it's under the GPL and they aren't providing sources they built it from, they are arguably in violation of the license.  that's going to prevent it from anyone putting significant effort into it.<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 2, 2021 at 4:35 AM Vitor Dall'Acqua <<a href="mailto:veggav@gmail.com" target="_blank" rel="noreferrer">veggav@gmail.com</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"><div dir="ltr">Just wanted to share this with you,<div><br></div><div>Someone made a JRE for Termux that runs on Android devices.</div><div><a href="https://github.com/MasterDevX/Termux-Java" target="_blank" rel="noreferrer">https://github.com/MasterDevX/Termux-Java</a><br></div><div><br></div><div>I've tried to add this to Kodi and setenv</div><div>  setenv("JAVA_HOME", "/storage/emulated/0/JAVA/", 1);<br><br></div><div>added the binaries and the *.jar files</div><div><br></div><div>Libbluray still won't see it. </div><div><br></div><div>DEBUG <general>: CBlurayCallback::Logger - bdj.c:746: BD-J check: Failed to load JVM library<br></div><div><br></div><div>I have little to no experience with Android and how paths are set but if it's just a matter of figuring out how to set it, it would be really nice to have.</div><div><br></div><div>Hope someone shares the sentiment and feels like having a look at it.</div><div><br></div><div>Regards</div><div>Vitor</div><div><br></div></div>
_______________________________________________<br>
libbluray-devel mailing list<br>
<a href="mailto:libbluray-devel@videolan.org" target="_blank" rel="noreferrer">libbluray-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/libbluray-devel" rel="noreferrer noreferrer" target="_blank">https://mailman.videolan.org/listinfo/libbluray-devel</a><br>
</blockquote></div>
_______________________________________________<br>
libbluray-devel mailing list<br>
<a href="mailto:libbluray-devel@videolan.org" target="_blank" rel="noreferrer">libbluray-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/libbluray-devel" rel="noreferrer noreferrer" target="_blank">https://mailman.videolan.org/listinfo/libbluray-devel</a><br>
</blockquote></div>