https://projects.osmocom.org/https://projects.osmocom.org/favicon.ico?16647414092019-03-11T07:40:30ZOpen Source Mobile Communicationslibosmocore - Bug #3832: libosmocore no longer builds with Android NDKhttps://projects.osmocom.org/issues/3832?journal_id=135272019-03-11T07:40:30Zfixeria
<ul><li><strong>Assignee</strong> set to <i>msuraev</i></li></ul> libosmocore - Bug #3832: libosmocore no longer builds with Android NDKhttps://projects.osmocom.org/issues/3832?journal_id=135292019-03-11T16:10:10Zmsuraev
<ul></ul><p>Thank you for the patch. Right now we're using gerrit for code review and patch submission as described in here:<br /><a class="external" href="https://osmocom.org/projects/cellular-infrastructure/wiki/Gerrit">https://osmocom.org/projects/cellular-infrastructure/wiki/Gerrit</a><br />If you by any chance have some time - please submit it via gerrit (I recommend using git-review for convenience) otherwise I (or someone else) will take care of that but it might take somewhat longer.</p>
<p>Out of curiosity, could you share any details on your project? It's the first time I hear about anyone using libosmocore on Android. Would be cool to add this use-case to our CI setup to prevent this from reoccurring but that's a subject for another ticket of course.</p> libosmocore - Bug #3832: libosmocore no longer builds with Android NDKhttps://projects.osmocom.org/issues/3832?journal_id=135332019-03-11T22:01:20Zsupersat
<ul></ul><p>I've submitted the change to gerrit: <a class="external" href="https://gerrit.osmocom.org/#/c/libosmocore/+/13209/">https://gerrit.osmocom.org/#/c/libosmocore/+/13209/</a></p>
<p>We are working on releasing an app called SeaGlass that uses cell_log and a OsmocomBB-compatible phone connected via USB OTG to scan for suspicious and rogue cell sites. Initially we ran osmocon as well, but that required a USB serial driver to be baked into the kernel as well as permissions set to access the device. We ended up rewriting some of the osmocon and USB driver functionality in Java (before we realized that Android's unix socket and USB APIs were somewhat lacking) so that we could access the USB port directly on unmodified phones.</p>
<p>The source code for that project is available here: <a class="external" href="https://github.com/seaglass-project/seaglass-app">https://github.com/seaglass-project/seaglass-app</a></p>
<p>As for whether Android <strong>should</strong> be supported and tested, that sounds like a policy question. The comments in gsm_utils.c seems to suggest that eventually glibc 2.25+ will become a requirement.</p> libosmocore - Bug #3832: libosmocore no longer builds with Android NDKhttps://projects.osmocom.org/issues/3832?journal_id=135342019-03-12T08:55:34Zmsuraev
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>50</i></li></ul><blockquote>
<p>The comments in gsm_utils.c seems to suggest that eventually glibc 2.25+ will become a requirement.</p>
</blockquote>
<p>Let me clarify this since I was the one who wrote it initially: the part of the code in question deals with random id generation. We either make it via getrandom (1), via GnuTLS (2) or fallback to insecure random (3).</p>
<p>Option (1) requires GNU/Linux kernel and glibc which support getrandom. However, there's a trick which let's you use it when your kernel have getrandom implemented but glibc does not support it (it took quite some time for getrandom support to land in glibc). So the comment you're referring too is about that specific workaround for one particular option which indeed should be dropped once odd combination of kernel supporting getrandom with glibc not supporting it would become oddball instead of mainstream (which was the case when this code was merged).</p>
<p>The libosmocore however is also intended to be used in OsmocomBB (which ATM uses it's own copy of libosmocore because nobody had time yet to port it to master version) via '--enable-embedded' configure option which builds it without glibc.</p>
<p>To summarize, I don't think we'll have any glibc version as a strict dependency of libosmocore so Android SDK is a viable option in foreseeable future.</p> libosmocore - Bug #3832: libosmocore no longer builds with Android NDKhttps://projects.osmocom.org/issues/3832?journal_id=136062019-03-20T16:39:03Zmsuraev
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>50</i> to <i>100</i></li></ul><p>Fixed with 76f025eae8f642537886e879301561b5eb9bd6c6 commit.</p>