Thursday, February 23, 2012

Android Builders Summit Videos

The Linux Foundation has posted the videos for the Android Builders Summit. You can find them all here:

http://video.linux.com/categories/2012-android-builders-summit

OTA Updateing via Android

One of the hardest problems that embedded Linux companies have to solve is updating devices. Given the changing nature of software, and the desire to include new features on existing products, being able to update devices in the field can be a critical feature. While Linux has some great tools (dpkg with apt, rpms, etc) for updating systems, the standard desktop features do not apply very well to embedded systems.

The Android platform is distributed with some great tools to update devices in the field. These tools range from package updates to full system updates. Generally this is called Over The Air (OTA) updates. There isn't a lot of information available on this topic. One of the clearest presentations I have seen on this topic was at the Android Builders Summit. Andrew Boie from Intel gave the presentation and the video and slides are now available. I highly recommend them.

http://video.linux.com/videos/android-ota-software-updates

One of the problems I noticed as I attended this session though was that it appears the update process has at least some dependency on a user interface. Obviously, with headless Android systems that poses a problem. One of the things that needs to be answered from an OTA perspective is what would need to be modified for an OTA process to complete without a user interface.

Building Your Favorite Glibc App for Android

There are a lot of great applications built on glibc that embedded Linux developers have made the mainstay of building embedded Linux systems. Among these are busybox, wget, cron, thttpd, and many others. The question is, can you get these to run under Android?

The answer is yes! (and no). Technically it would be a LOT of work to port these to use bionic, the c library that Android uses. However, nothing in Android restricts you from adding a standard glibc to your distribution and then using it with the standard programs.

Karihm did a great presentation on this at the Android Builders Summit. He showed an example of building busybox and adding glibc to the system. You can download his slides here: (a video of the presentation will be coming soon.)

https://events.linuxfoundation.org/images/stories/pdf/lf_abs12_yaghmour_heritage.pdf

Another option is to statically compile your binaries with the libraries that they would normally find on a glibc based system. The problem with statically compiling is that it pulls in all the code from the libraries that the code needs directly into the binary. If you have more than one program you are going to do this to, however, you would be better off building against the library. Busybox, which is usually just a few hundred K ends up being 2 MB if it's statically linked.

As the post about Ubuntu on Android shows, this is a great way to have your cake and eat it too.

Wednesday, February 22, 2012

Ubuntu for Android

An interesting new development effort by Canonical has Ubuntu running in parallel with Android on a multi-core phone. When you dock, you get Ubuntu's desktop on a monitor, while the phone still looks and acts like Android.


http://www.ubuntu.com/devices/android

Very cool stuff! Not really headless related, per se, but having Ubuntu fully run on the Android kernel and have glibc and the Ubuntu UI in all it's glory sitting on a phone definitely proves a point that this convergence of technology is where the future is headed.

Tuesday, February 21, 2012

Slides from Android Builders Summit

The slides from the Android Builders Summit are now available from the Linux Foundation site. You can find them all here:

https://events.linuxfoundation.org/events/android-builders-summit/slides

I recommend the following for anyone interested in Headless Android type applications.

- Leveraging Linux's History With Android by Karim Yaghmour, Opersys
- Customizing Android by Marko Gargenta, Marakana
- Using Android outside the Mobile Phone Space by Jason Krinder & Khasim Syed Mohammed, TI
- Android Device Porting Walkthrough by Benjamin Zores, Alcatel-Lucent
- Android OTA SW Updates by Andrew Boie, Intel

The folks at the Linux Foundation will be posting the videos from those events soon, so stay tuned for more information.

Saturday, February 18, 2012

Androgenizer - A tool for converting autotools makefiles

One of the things that Android developers have wanted to do for a while was to take standard C/C++ applications that are generally used in standard embedded Linux systems and use them in Android. There are a couple of ways this can be accomplished, but for those larger systems converting the Makefiles into something that Android can use natively in a build has been a problem.

Some creative folks came up with a solution. Androigenizer. It takes autotools generated infrastructure and creates Android.mk files.

Here is a good write up on it from Igalia's blog.

http://blogs.igalia.com/eocanha/?p=242

It's a good resource for headless Android systems.

Friday, February 17, 2012

Headless Android Website

I just got the Headless Android website up. Check it out. It's mostly a landing page to get back to this blog, but it will be a nice place to post more static data over time.


http://headlessandroid.com