I asked a few people about this.
Technically the linux kernel is a C api, and nothing prevents you from
interacting with it using syscalls, exactly the same way as in normal linux.
However, broadly speaking the JVM interacts with hardware through a set of
daemons that acquire exclusive hardware locks, preventing simultaneous
access from other sources, even if you do have root access on the device.
Interacting with these daemons from outside the JVM is apparently
impossible.
(With the possible exception of the network interface, which for reasons
which are unclear to me, is an exception to this).
Anyhow, you’re probably best off taking your query to the NDK google group (
Redirecting to Google Groups); I would surprised if
no one has tried this before; someone might be able to point you in the
right direction.~
Doug.
On Fri, Aug 8, 2014 at 8:13 AM, Sri Gogineni <sriakhil.gogineni at gmail.com> wrote:
I understand that it works using a NativeActivity but that still requires
an APK and Java code, unless I misunderstood something.
What I?m asking is running the application via init.rc and running it
natively bypassing Dalvik and the JVM.
On Aug 6, 2014, at 10:53 PM, Pallav Nawani wrote:
SDL2 works on Android if that’s what you’re asking. Be Aware that SDL2 is
geared towards gaming. If you are looking to create an non-gaming app, you
might want to look into SDKs such as PhoneGap.
Pallav Nawani
IronCode Gaming Private Limited
Website: http://www.ironcode.com
Twitter: x.com
Facebook: Ironcode Gaming
Mobile: 9997478768
On Wed, Aug 6, 2014 at 11:23 PM, Sri Gogineni <sriakhil.gogineni at gmail.com wrote:
Hi,
I’m writing an application that I want to run on as many platforms as
possible.
Our current test hardware runs Android and has accelerated drivers. We
want to move to embedded Linux but sadly linux driver support is close to
nil.
So the idea is to leverage SDL to write an app using a minimal Android
base platform, which consists of everything in Android below Dalvik /
zygote. Hopefully this image explains things better:
http://i.imgur.com/CRL0zRx.png
The closest thing I found to supporting something like this is:
Google Code Archive - Long-term storage for Google Code Project Hosting. which is a few years old.
Is there a more current solution? Does anyone have any other ideas?
Best,
Sri
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org