[Simh] on Android [Was: (no subject)]

Henry Bent henry.r.bent at gmail.com
Fri Sep 16 20:20:52 EDT 2016


When I was working with Android 4 it definitely did not provide pcap of any
sort, neither the header nor the library.  I decided it was easiest to
compile libpcap as a static library and link it into the binaries.

The Android NDK only provides very basic libraries - static versions of
libc, libm, libz, and libstdc++.  What any particular device has available
at runtime is another question entirely.

-Henry

On 16 September 2016 at 19:15, Mark Pizzolato <Mark at infocomm.com> wrote:

> Good point.  Building with pcap network support only requires pcap.h
> visible at simulator build time.  Libpcap is dynamically loaded at
> runtime.  Is libpcap.so usually available in the typical Android runtime
> environment?
>
> Additionally, Linux pcap networking requires running as root.  I guess
> that might be possible on a smart TV, but probably not common...
>
> On Sep 16, 2016 2:54 PM, Sergii Kolisnyk <kolkmail at gmail.com> wrote:
>
> Hi all,
>
> most smart TV use Android,
> and all of them have wired Ethernet port.
>
> Sergii
> On Sep 12, 2016 9:13 PM, "Mark Pizzolato" <Mark at infocomm.com> wrote:
>
> On Monday, September 12, 2016 at 9:38 AM, Pontus Pihlgren wrote:
> > It's a good start :)
> >
> > On Mon, Sep 12, 2016 at 10:55:07AM -0400, Henry Bent wrote:
> > > I did a proof of concept build a while back using the Android NDK. It
> > > required manually compiling libpcap for networking support but as I
> recall
> > > it was fully functional. I was able to bring up 4.2BSD on a vax780 but
> disk
> > > access was painfully slow. I was running as root so I have no idea how
> well
> > > it would run on a non-rooted phone. So it's certainly possible but
> there
> > > are bugs to be worked out.
>
> I think that trying to get libpcap included would be more effort than it
> is worth since essentially all Android devices don't have a wired network
> connection
> and thus would be left trying to use libpcap over WiFi.  In general, this
> isn't something that works too well.
>
> - Mark
>
> _______________________________________________
> Simh mailing list
> Simh at trailing-edge.com
> http://mailman.trailing-edge.com/mailman/listinfo/simh
>
>
>
> _______________________________________________
> Simh mailing list
> Simh at trailing-edge.com
> http://mailman.trailing-edge.com/mailman/listinfo/simh
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.trailing-edge.com/pipermail/simh/attachments/20160916/31a48f36/attachment-0001.html>


More information about the Simh mailing list