Google has been trying to pull off a difficult balancing act, adopting open source platforms but also asserting strong control over them. This has had mixed results, as the various Google-free implementations of Android show. It has also meant that the search giant, in its quest to turn its own developments into industry standards, has often been outside the open source mainstream, which can be a deterrent for developers and open it up to challenges from other mobile OS initiatives like Mozilla’s Boot2Gecko. There are signs that Google now sees the benefits of re-entering the mainstream and focusing on higher layers, notably apps and content, for its power and differentiation. So Android is being reunited with the main Linux kernel code base, after two years as a ‘fork’, while it seems likely that Google will concede defeat in its effort to replace H.264 video codecs with its own WebM.
Android is based on Linux but has increasingly diverged from the main open source platform, officially becoming a ‘fork’ in 2010. But now the two projects are being reunited, which should simplify life for developers and allow them faster access to new Linux developments.
Linus Torvalds, leader of the Linux project, released version 3.3 of the kernel this week, bridging the gap with Android and basing both systems once again on a common code base. This signals the end of two years when the two platforms were following related but separate paths.
Tim Bird, a Sony programmer who works on the Linux Foundation’s consumer electronics project, announced an ‘Android mainlining project’ in December, writing: “I would like to announce the beginning of a project to make a concerted effort to mainline patches and features from Android into the mainline Linux kernel.’ The results are now seen in Linux 3.3.
The reunification has happened far more quickly than Torvalds had envisaged. Last fall he said: ‘There’s still a lot of merger to be done ‘ eventually Android and Linux will come back to a common kernel, but it will probably not be for four to five years.’ But in October, the Android Mainlining Project was formed to accelerate the work, most of which is now completed.
In February 2010, Novell Fellow and Linux developer Greg Kroah-Hartman deleted Google’s Android driver code from the Linux kernel, saying that the mobile OS was now incompatible with the project’s main tree. That made Android into a Linux fork (a variant that is rejected by the mainline community, or seen as a sideline). Forking is not necessarily a bad thing, but it has aroused considerable suspicion from Linux developers who have also been critical of Google’s poor communication with its community, and its limited support for native Linux tools (it did finally introduce a native development kit two years ago, but most Android apps run on Dalvik, Google’s own Java virtual machine). In Android devices, a Google-customized version of Linux handles OS tasks like multitasking and caching, but this version has run on a separate code base from the main repository overseen by Torvalds at kernel.org.
Bringing Google’s tweaked Linux back in line with Torvalds’ mainline version should bring easier programming and allow the search giant and its partners to benefit more quickly from new features added to the main Linux branch.
Some observers think this is a sign that Google ‘ which draws heavily on various open source communities but still maintains tight development control ‘ is looking to be a more mainstream open player. For instance, it is integrating its Android browser ‘ a separate fork within the WebKit platform ‘ with Chrome, which relies on the mainstream WebKit project.
This may be partly to dilute the impact of ‘purer’ open source platforms, like Mozilla’s new Boot2Gecko, which could start to impinge on Android’s territory especially in the new generation of cloud-oriented devices which use the browser and HTML5 as their main user interface and development platform.
The integration of Android back into the mainline also reflects how operating systems will not, in future, be specifically mobile, but will be expected to span all kinds of browser-driven devices. Many of the differences between Android and mainstream Linux arose because Google engineers made so many changes specifically geared to handsets, addressing many of the failings of previous mobile Linux distributions. However, now the pressure will be to allow developers to target tablets, PCs, set-top boxes and handsets without coding changes.
The change of focus also indicates how, for all its influence, Google cannot always control open source standards’ and will experience more challenges to its power as HTML5 and other open systems help newer web majors like Facebook to create their own software platforms and development communities. Google has often supported an open project but looked to ensure that its own implementation would become the de facto standard ‘ selecting its own virtual machine rather than Sun’s for Java, for instance. Another example was its WebM video codec (based on the VP8 video compression format), which it hoped to promote as an alternative standard to H.264, which is managed by the MPEG LA consortium and is heavily burdened with patent charges. By contrast, Google acquired the basis of WebM along with On2 Technologies, and said it would open source it without any licensing fees.
But one of its key allies for WebM, Mozilla, is now considering adding H.264 codec support to the mobile version of its Firefox browser, because the technology is so prevalent in the smartphone world. “It’s time to focus on shipping products people can love now, and to work on developing a new tactic for bringing unencumbered technology to the world of audio and video codecs,” wrote Mitchell Baker, chair of the Mozilla Foundation, on a blog post. Mozilla has so far relied on Flash to implement H.264 for Firefox users, but that that will not work on Android as Adobe will no longer develop Flash for mobile devices. Mozilla CTO Brendan Eich said on an online discussion: ‘H.264 is absolutely required right now to compete on mobile. I do not believe that we can reject H.264 content in Firefox on Android or in Boot2Gecko and survive the shift to mobile.’
The same dilemma will face Google, which had been expected to push WebM on the upcoming Chrome for Android, to the exclusion of H.264. However, even if the search giant follows through on that, it will still have an uphill struggle to win over mobile developers, which will be attracted to the older codec because it is heavily supported by Apple. “Apple sells a lot of H.264 supporting hardware. That hardware in general, and specifically in video playback quality, is the gold standard,” Eich said, and he does not believe that Google will ship a browser which is handicapped in its ability to play content as well as Apple does. He added: “The pressure to promote WebM was needed from a bigger player than Mozilla, and it was needed a year ago. “It might not have worked then, even with Google onside. Now, with just Mozilla going it alone, all we do is kill our mobile initiatives in order to appear pure…That does not serve our mission or our users.”
Both Google and Mozilla are accepting that the mobile web world is one with many influences and no dominant driver, at least until the new generation of HTML5 software platforms settles down and developers choose their favorites. And they will want to avoid another stand-off like Adobe’s with Apple, before the former backed away from mobile Flash to carve a role in HTML5 instead. That split developer communities and distracted from creating an excellent user experience. Even a year ago, success in mobile software still seemed to be about controlling the most popular core technologies within a distinctive OS. Now, increasingly, the OS will become a slimmer, more invisible item, running basic tasks, while cross-platform environments driven by HTML5 browsers and linked to cloud content will be the order of the day. The most obvious threat that model poses is to Apple, with its iron control of its platform and user experience, but Google too will have to adapt. It has been trying to achieve the difficult trick of harnessing open source technologies to create a fully controlled software platform, but now it may be accepting that it needs to adopt vanilla elements like Linux 3.3 for the core functions, and assert its power via content and services ‘ as reflected in the release of Google Play.