Mono on the G1

I got a g1 for Fathers’ Day (Thanks Hannah!) and I’ve been futzing with it a bit. I rooted it and set up a chroot debian system. It’s running an ssh server, openvpn and snmpd.

There’s been a lot of talk about getting flash working on the device. They just announced yesterday the next phone by HTC (the folks who make the hardware) which runs the Android OS. It sounds like there will be a ‘lite’ version of Adobe Flash available for that model. With all the natter about the new phone and flash, I thought it might be fun to get Mono running on the current model and see if I can get a Moonlight plugin shoe-horned in to the browser.

I got quite a bit of help from #android on freenode and #mono on gimpnet when I brought the topic up. At this point, I don’t think I can make it look native, but perhaps just getting the project off the ground is enough to start interest.

At a low level, it looks like the phone can manipulate the graphic display by blitting RGB565 pixmaps to the fbdev. This might be enough to put together a quick cairo back-end. Since moonlight draws to cairo, something like this would be required in order to get things moving.

Now to see if I can compile mono + moonlight in such a way that it’s tiny enough to not take up the whole flash….

This entry was posted in c#, debian, Free Software, Graphics, Hardware, irc, linux, mono, Software, video. Bookmark the permalink.

4 Responses to Mono on the G1

  1. Robert Ramsay says:

    Sounds like a lucky Dad.
    Size is a relatively small matter(32GB SDHC) it’s more important that moonlight/mono run smoothly on the G1. I’m curious though about the different configurations: mono compiled to dalvik, mono compiled to G1 native SDK, and mono dynamic vs static.

    • Robert,

      If one wants to make an app that can be installed on a stock G1 from the App store, it has to be small enough to fit on the internal flash. We can’t expect users to have a 32GB SDHC card inserted in their phone at all times.


  2. Stefan says:

    Hey pal

    have a look at

    he ported mono for android some time ago.
    Perhaps a good starting point…


Leave a Reply