On Feb 3, 2012, at 11:26 AM, Ralph wrote:
> So far I know there is no way to invoke an apk as root, so I need: su -c 
> 'myexecutable'

I fail to see how that will work, unless you happen to know the root 
password... Perhaps on rooted hardware?

> Ok, doesn't matter. If I would want to write a mono binary, how would I do 
> that?
> I imagine something like creating a mono dll with a predefined entry point
> which I call from a C++ app using libmonodroid.so
> But for that I would need a header and a documentation of the interfaces.

Depending on your needs, building mono from source while targeting ARM may be 
easier.

You could also try using Mono's embedding API:

        http://docs.go-mono.com/?link=root:/embed

> Also, I need to reference Mono.Unix.Native, can I just use the one from the 
> mono build of an arm linux distri?

Mono.Posix.dll isn't included with Mono for Android, and Mono.Posix.dll 
requires libMonoPosixHelper.so, which also isn't included. You would need to 
compile these and distribute these yourself, again by building mono from source.

 - Jon

_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to