<div dir="ltr">Petri,<div><br></div><div>When bdj.c is looking at java_home, what exactly is it looking for?</div><div><br></div><div><b>with </b><br>#undef JDK_HOME<br>#define JDK_HOME "/data/data/org.xbmc.kodi19DV/lib/aarch64/"<br><br><b>result</b><br>2021-01-26 12:30:07.473 T:24061   DEBUG <general>: CBlurayCallback::Logger - dl_posix.c:54: can't open library 'libjvm.so': dlopen failed: library "libjvm.so" not found<br>                                                   <br>2021-01-26 12:30:07.477 T:24061   DEBUG <general>: CBlurayCallback::Logger - bdj.c:474: Skipping /data/data/org.xbmc.kodi19DV/lib/aarch64/ (not found)<br><br><b>with </b><br>#undef JDK_HOME<br>#define JDK_HOME "/data/data/org.xbmc.kodi19DV/lib/aarch64/jre/"<br><br><b>result</b><br>2021-01-26 12:51:36.942 T:25917   DEBUG <general>: CBlurayCallback::Logger - dl_posix.c:54: can't open library 'libjvm.so': dlopen failed: library "libjvm.so" not found<br>                                                   <br>2021-01-26 12:51:36.944 T:25917   DEBUG <general>: CBlurayCallback::Logger - bdj.c:474: Skipping /data/data/org.xbmc.kodi19DV/lib/aarch64/jre/ (not found)<b><br></b></div><div><b><br></b></div><div><b>with</b></div><div>#undef JDK_HOME<br>#define JDK_HOME "/data/data/org.xbmc.kodi19DV/lib/aarch64/jre/lib/aarch64/server/"<b><br></b></div><div><br></div><div><b>result</b></div><div>2021-01-26 13:05:06.838 T:27332   DEBUG <general>: CBlurayCallback::Logger - dl_posix.c:54: can't open library 'libjvm.so': dlopen failed: library "libjvm.so" not found<br>                                                   <br>2021-01-26 13:05:06.839 T:27332   DEBUG <general>: CBlurayCallback::Logger - bdj.c:474: Skipping /data/data/org.xbmc.kodi19DV/lib/aarch64/jre/lib/aarch64/server/ (not found)<b><br></b></div><div><br></div><div>I'll start replacing /data/data with /data/user/0 now but it would be a good idea to figure out what is it looking for.</div><div><b><br></b></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 26, 2021 at 10:48 AM Vitor Dall'Acqua <<a href="mailto:veggav@gmail.com">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">Ok made a small python script that puts the jre files inside the data folder of the app the same as the PoajvLauncher does<div><br></div><div>#!/usr/bin/python3.4<br>import os, sys, xbmc, time, stat, xbmcvfs, xbmcaddon<br>from zipfile import ZipFile<br><br>src = os.path.join(xbmcaddon.Addon().getAddonInfo('path'), 'jre.zip')<br>loc = xbmcvfs.translatePath("special://xbmcbin/../../../lib/aarch64/jre.zip")<br>loc2 = xbmcvfs.translatePath("special://xbmcbin/../../../lib/aarch64/")<br><br>if not xbmcvfs.exists(loc):<br>    xbmcvfs.copy(src, loc)<br>    st = os.stat(loc)<br>    os.chmod(loc, st.st_mode | stat.S_IEXEC)<br><br><br>zip = ZipFile(loc)<br>zip.extractall(loc2)<br>zip.close()<br></div><div><br></div><div>need a zip file to preserve the symlinks...</div><div><br></div><div>now, compile libbluray pointing to</div><div>/data/data/org.xbmc.kod/lib/aarch64 and hope for the best</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 25, 2021 at 10:22 PM Vitor Dall'Acqua <<a href="mailto:veggav@gmail.com" target="_blank">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">So, the only way to load libjvm.so on android is if it is inside the lib/aarch64 folder inside the apk directory. <div><br></div><div>The only way to put the files in the right folder structure is with assets. </div><div>Libbluray can't find libjvm.so in assets. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 25, 2021 at 8:23 PM Vitor Dall'Acqua <<a href="mailto:veggav@gmail.com" target="_blank">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">well.. progress I can put the jre folder as is in the assets folder but not in the libs/aarch64 folders...... yet..</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 25, 2021 at 7:02 PM Vitor Dall'Acqua <<a href="mailto:veggav@gmail.com" target="_blank">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">This is the end of the log, it might have crashed because of something that wasn't recorded<div><br></div><div>2021-01-25 17:53:05.255 T:30088   DEBUG <general>: CDVDInputStreamBluray::Open - Disc name           : 3:10 To Yuma - Ultra HD Blu-ray™<br>2021-01-25 17:53:05.255 T:30088   DEBUG <general>: CDVDInputStreamBluray::Open - First Play supported: 1<br>2021-01-25 17:53:05.255 T:30088   DEBUG <general>: CDVDInputStreamBluray::Open - Top menu supported  : 1<br>2021-01-25 17:53:05.255 T:30088   DEBUG <general>: CDVDInputStreamBluray::Open - HDMV titles         : 0<br>2021-01-25 17:53:05.255 T:30088   DEBUG <general>: CDVDInputStreamBluray::Open - BD-J titles         : 6<br>2021-01-25 17:53:05.255 T:30088   DEBUG <general>: CDVDInputStreamBluray::Open - BD-J handled        : 1<br>2021-01-25 17:53:05.256 T:30088   DEBUG <general>: CDVDInputStreamBluray::Open - UNSUPPORTED titles  : 0<br>2021-01-25 17:53:05.256 T:30088   DEBUG <general>: CDVDInputStreamBluray::Open - AACS detected       : 0<br>2021-01-25 17:53:05.256 T:30088   DEBUG <general>: CDVDInputStreamBluray::Open - libaacs detected    : 0<br>2021-01-25 17:53:05.256 T:30088   DEBUG <general>: CDVDInputStreamBluray::Open - AACS handled        : 0<br>2021-01-25 17:53:05.256 T:30088   DEBUG <general>: CDVDInputStreamBluray::Open - BD+ detected        : 0<br>2021-01-25 17:53:05.256 T:30088   DEBUG <general>: CDVDInputStreamBluray::Open - libbdplus detected  : 0<br>2021-01-25 17:53:05.256 T:30088   DEBUG <general>: CDVDInputStreamBluray::Open - BD+ handled         : 0<br>2021-01-25 17:53:05.256 T:30088   DEBUG <general>: CDVDInputStreamBluray::Open - no menus (libmmbd, or profile 6 bdj)  : 0<br>2021-01-25 17:53:05.256 T:30088   DEBUG <general>: CBlurayCallback::Logger - bdj.c:997: bdj_open()<br>                                                   <br>2021-01-25 17:53:05.256 T:30088   DEBUG <general>: CBlurayCallback::Logger - bdj.c:465: JAVA_HOME not set, trying default locations<br>                                                   <br>2021-01-25 17:53:05.256 T:30088   DEBUG <general>: CBlurayCallback::Logger - bdj.c:331: Opening libjvm ...<br>                                                   <br>2021-01-25 17:53:05.341 T:30105   DEBUG <general>: CFileCache::Process - Source read didn't return any data! Hit eof(?)<br>2021-01-25 17:53:05.348 T:30088   DEBUG <general>: CBlurayCallback::Logger - dl_posix.c:56: opened library 'libjvm.so'<br>                                                   <br>2021-01-25 17:53:05.350 T:30088   DEBUG <general>: CBlurayCallback::Logger - dl_posix.c:114: dlsym(0xc2c281e42d63307, 'JVM_DefineModule') failed: undefined symbol: JVM_DefineModule<br>                                  <br></div><div><br></div><div>And I don't know how to keep the folder structure while adding with aapt.</div><div>This is how it works, I need to have a folder named lib/aarch64 in the same folder as aapt so it keeps the folder structure.</div><div>But if I have folders inside when jarsigning it crashes. It doesn't add files in subfolders. </div><div><br></div><div>If we want to use Kodi's own way of adding files it is here:</div><div><a href="https://github.com/xbmc/xbmc/blob/master/tools/android/packaging/Makefile.in#L112" target="_blank">https://github.com/xbmc/xbmc/blob/master/tools/android/packaging/Makefile.in#L112</a><br></div><div><br></div><div>This is why it only adds .so files but I don't know how to add subfolders.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 25, 2021 at 6:07 PM Petri Hintukainen <<a href="mailto:phintuka@users.sourceforge.net" target="_blank">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 22:21 +0200, Shaya Potter kirjoitti:<br>
> to be more specific, they said the android port doesn't support<br>
> "headfull awt" presumably because it doesn't have a framebuffer to<br>
> write to.   That would presumably (though we know what assume means)<br>
> mean it supports headless awt.  the question would be, is headless<br>
> awt sufficient for libbluray.  Basically, how does libbluray draw?<br>
<br>
There's no need for Android AWT. Libbluray implements own AWT (so that<br>
graphics can be passed to the application). But java.awt.* classes are<br>
still required in the java runtime libs.<br>
<br>
I've just built this JDK, and it seems to have all required AWT<br>
classes.<br>
<br>
> I should note in digging into it, it seems there acually is a<br>
> supported android port of java now which they are based on<br>
> <br>
> <a href="http://openjdk.java.net/projects/mobile/android.html" rel="noreferrer" target="_blank">http://openjdk.java.net/projects/mobile/android.html</a><br>
> <br>
> <br>
> <br>
> On Mon, Jan 25, 2021 at 9:32 PM Roald Strauss <<a href="mailto:mr_lou@dewfall.dk" target="_blank">mr_lou@dewfall.dk</a>><br>
> wrote:<br>
> >  <br>
> >  Lemme pitch in, if I can do that by just replying this mail.<br>
> >  AWT = Abstract Windowing Tools, as far as I remember.<br>
> >  It is the framework used for drawing stuff in old Java, and yes,<br>
> > it is very much needed for Blu-ray Disc Java. It's the only way<br>
> > developers can draw stuff to the screen.<br>
> >  <br>
> >  <br>
> >  <br>
> >  <br>
> >  Den 25.01.2021 kl. 20.12 skrev Vitor Dall'Acqua:<br>
> >  <br>
> >  <br>
> > >  <br>
> > > Got a reply! <br>
> > >  <br>
> > >  So, launcher already has all the components of JRE (except for<br>
> > > headful AWT, of course), but it was built with ndk-r12b (i<br>
> > > think?) <br>
> > >  <br>
> > >  <br>
> > >  @Petri what is AWT and is that needed for libbluray?<br>
> > >  <br>
> > >  <br>
> > >  Is it too lazy of my end to ask the guy to compile it with a<br>
> > > newer ndk? O:) <br>
> > >  <br>
> > >  <br>
> > >  <br>
> > >  <br>
> > >  On Mon, Jan 25, 2021 at 3:52 PM Vitor Dall'Acqua <<br>
> > > <a href="mailto:veggav@gmail.com" target="_blank">veggav@gmail.com</a>> wrote:<br>
> > >  <br>
> > >  <br>
> > > >  <br>
> > > > Well.. wish me luck  <br>
> > > >  <br>
> > > >  <a href="https://github.com/PojavLauncherTeam/PojavLauncher/issues/713" rel="noreferrer" target="_blank">https://github.com/PojavLauncherTeam/PojavLauncher/issues/713</a><br>
> > > >  <br>
> > > >  <br>
> > > >  <br>
> > > >  Later, I'll give a go with his JRE files and see what<br>
> > > > happens. <br>
> > > >  <br>
> > > >  <br>
> > > >  <br>
> > > >  On Mon, Jan 25, 2021 at 3:27 PM Shaya Potter <<br>
> > > > <a href="mailto:spotter@gmail.com" target="_blank">spotter@gmail.com</a>> wrote:<br>
> > > >  <br>
> > > >  <br>
> > > > >  <br>
> > > > > this actually includes source code<br>
> > > > >  <br>
> > > > >  see<br>
> > > > >  <br>
> > > > >  <a href="https://github.com/PojavLauncherTeam/PojavLauncher" rel="noreferrer" target="_blank">https://github.com/PojavLauncherTeam/PojavLauncher</a><br>
> > > > >  <br>
> > > > >  Java Runtime Environment (JRE)<br>
> > > > >  <br>
> > > > >  JRE for Android is here, also the build script here.<br>
> > > > >  Follow build instruction on build script README.md.<br>
> > > > >  You can also get CI auto builds.<br>
> > > > >  Spliting JRE and put to the launcher: coming soon.<br>
> > > > >  <br>
> > > > >  I'd reach out to that guy, ask him if he would be interested<br>
> > > > > in trying to get his android work integrated into kodi<br>
> > > > > android build for libbluray usage. <br>
> > > > >  <br>
> > > > >  <br>
> > > > >  On Mon, Jan 25, 2021 at 7:30 PM Vitor Dall'Acqua <<br>
> > > > > <a href="mailto:veggav@gmail.com" target="_blank">veggav@gmail.com</a>> wrote:<br>
> > > > >  <br>
> > > > >  <br>
> > > > > >  <br>
> > > > > >  Received a notice that the e-mails were getting really big<br>
> > > > > > and blocked. <br>
> > > > > >  <br>
> > > > > >  <br>
> > > > > >  <br>
> > > > > >  So, look another thing I found:<br>
> > > > > >  <br>
> > > > > > <a href="https://github.com/PojavLauncherTeam/PojavLauncher/releases" rel="noreferrer" target="_blank">https://github.com/PojavLauncherTeam/PojavLauncher/releases</a><br>
> > > > > >  <br>
> > > > > >  <br>
> > > > > >  Minecraft launcher built for Android that uses JRE. <br>
> > > > > >  <br>
> > > > > >  When you install this apk it will place the files are<br>
> > > > > > normal /data/app/appname/lib and no JRE there.<br>
> > > > > >  After it runs for the first time it will put files here:<br>
> > > > > >  <br>
> > > > > >  <br>
> > > > > >  /data/user/0/net.kdt.pojavlaunch/jre_runtime/lib/aarch64/s<br>
> > > > > > erver/libjvm.so<br>
> > > > > >  <br>
> > > > > >  <br>
> > > > > >  So I took that put in a zip file and added to mega so you<br>
> > > > > > guys can take a look<br>
> > > > > >  <br>
> > > > > > <a href="https://mega.nz/file/XNly2ZgB#DFyM8xq4mEAQQ1d3ERF1GFoTqzIOcuESZXjuGdIguek" rel="noreferrer" target="_blank">https://mega.nz/file/XNly2ZgB#DFyM8xq4mEAQQ1d3ERF1GFoTqzIOcuESZXjuGdIguek</a><br>
> > > > > >  <br>
> > > > > >  <br>
> > > > > >  It seems many use JRE on Android.<br>
> > > > > >  And as you can see it's very similar to the way it's<br>
> > > > > > present in Termux.<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>
> > > > > > <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>
> > > > > <br>
> > > >  <br>
> > > >  <br>
> > > > <br>
> > >  <br>
> > >  <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>
> >  <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>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>