Google is to replace its own Java library implementations with Oracle’s open source alternative, openJDK, in the upcoming Android N. The change of direction, presumably sparked by recent reversals in Google’s five-year legal battle with Oracle, could loosen the search giant’s control of its operating system and even delay the appearance of the new release, argue some industry players.
When Oracle filed suit in 2011, accusing Google of Java patents and copyright in Android and its own Java virtual machine, it was seen as an attempt to enhance the power of Oracle’s own Java platform in the mobile world, rather than letting Google entirely dominate smartphone software. Now, the database firm may get its chance to leverage Java in the mobile world at last.
Google was the winner, on balance, of the first round of court hearings, but most of those decisions were reversed by the federal court of appeals in 2014. The company then hoped to take the case to the Supreme Court, but has failed to do so, recently there have been rumors of an out of court settlement. Last summer, Oracle expanded its allegations to cover 40 major and minor Android releases spread over six versions.
The main issues relate to copyright on some Oracle APIs which Google used in its implementation of the Java libraries. While Oracle has claimed “billions of dollars” of licensing fees, Google has argued “fair use”, insisting APIs cannot be copyrighted.
The dispute, when it is finally resolved, will set important precedents in a software industry where copyright law is often confused and where some developers accuse API owners of holding them to ransom. But there are also issues of market power and commercial weight at stake for both players, and by adopting openJDK, the pendulum has swung significantly in Oracle’s favor.
Google’s choice of open source licence for Android has been highly strategic and an important element of its success. When it announced Android, it irritated Sun (now owned by Oracle) by choosing Apache v2 – which had been a thorn in Sun’s side – for its open source process, and also passed on the opportunity to support the older firm’s Java FXMobile as the technology to deliver rich internet applications.
The launch showed Google taking the decision to split the mobile Java community down the middle in the interests of its own control, trying to bypass Sun rather than partner with it. The choice of Apache 2 supported the attempt to launch an open source platform which was, nevertheless, tightly controlled, because it allows handset and chip vendors to modify library code without having to share those changes publicly. By contrast, the GPL2 licence which Oracle uses for OpenJDK requires the sourcecode for any changes to be published.
Former Mozilla CTO Andreas Gal told ZDNet that Apache 2 has enabled Google to develop Android in secret, and only publish once it is complete, while GPL2 would force it to open up early access to its code, even to rivals like Microsoft. Oracle has the ability to control Java beyond the sourcecode, so it owns the OpenJDK roadmap, and can exert its power even in the open GPL2 environment. Although vendors can make proprietary enhancements to OpenJDK, outside the GPL2 licence, this can only be done with Oracle’s permission.
“Oracle can easily force Google to include pretty much any other code or service that pleases Oracle,” argued Gal. “How about Java Push Notifications, specified and operated by Oracle? All Oracle has to do is add it to OpenJDK, and it will make its way into Android. Google is now on Oracle’s Hamster wheel.”
The effort of converting from Google’s libraries, based on the defunct Apache Harmony project, to OpenJDK will also be significant, believes Gal, and could cause delays to Android N, while developers test their applications and potentially sign new licensing agreements.
These factors could give Microsoft an opportunity to muscle in on the market with its own Android implementation, speculates Gal. The Windows giant already has a partnership with Oracle, which could be extended to Android, and with Cyanogen, a start-up which supplies a non-Google implementation based on Android’s open sourcecode. The Cynanogen/Microsoft venture delivered an update last week, promising “deeply integrated features” for Microsoft’s Cortana, its competitor to Apple Siri and Google Now, which was developed for Windows Phone but is going multi-platform.
The combination of potential Android N delays, and weakened Google control, could also benefit other rival Android implementations. Amazon, Baidu, Alibaba and others have their own versions of the operating system, based on the open sourcecode but not on the Open Handset Alliance’s (OHA) specifications, which means they can omit Google’s services from the platform. Facebook is rumored to be the latest major company to be considering breaking away from the OHA with its own Android flavor. The social media company backed away from creating its own OS and HTML5-based developer platform, and has recently concentrated on offering its applications on mainstream mobile platforms. However, it is said to be testing a Google-free version of Android, as an insurance policy against any moves by its rival to oust Facebook from the Google Play Android store.
The option to be Android compatible without having to play by Google’s rules is one of the secrets of the OS’s success, but of course it leads to fragmentation and it limits the search firm’s ability to monetize its own platform.
This has ironic echoes of the situation Sun was in with Java, as highlighted by the early stages of its relationship with Google Android. Sun, too, struggled to strike a balance between full control of its software platform, and the openness which enabled it to gain widespread adoption on all kinds of devices – though it came down a lot further on the side of laisser-faire than either Google or Oracle.
This perennial dilemma of open software was highlighted, in the first Oracle-Google hearings in 2012, by the testimony of Jonathan Schwartz, head of Java at Sun and then its CEO at the time of the Oracle acquisition. He had welcomed Android’s launch warmly in 2007 even though Google had adopted its own Java virtual machine, Dalvik. Giving evidence for Google, he said the development of Java in the mid-1990s was designed to open up a Microsoft dominated computing world, and that entailed promoting the open use of Java APIs, in order to get the platform broadly accepted round the world.
Open APIs gave Sun the opportunity to be “bigger than the monopoly itself”, he added, on the basis that partners would all get the same set of APIs, but would then create their own virtual machines and products, provided they did not use the Java brand (for which fees needed to be paid). He said Sun would have liked a big licence fee in return for Google calling its product a ‘Java phone’, but conceded that, “like almost all companies, Google wanted to control their destiny … and “felt they could better execute on their own and didn’t need what we had to offer”.
That left Sun with the same choice Google sometimes faces when companies create their own Android-like platforms. Sun could have sued Google, but instead decided to embrace Android because at least it brought Google into the Java fold, and away from Microsoft. “We didn’t like it, but we weren’t going to stop it by complaining about it,” Schwartz commented. “Imagine for a moment if Google selected Microsoft Windows.” Now, as Google adjusts to a new balance of power with Sun’s more aggressive current parents, it may be looking over its shoulder to see whether, and how, Microsoft finally adopts Android.