One of the problems with buying an Android smartphone is that there is usually no way to tell just how long it will be supported and how long you'll get Android updates. Unless you have a Google-branded device, it's hit-and-miss when, or indeed if, you'll receive an upgrade to the latest and greatest version of the mobile OS.
With the impending release of Android O, however, Google is trying out a solution to the problem which has led to endless fragmentation of the Android market. Going by the name of Project Treble, the solution sees Google introducing a modular base to Android. It's described as "the biggest change to the low-level system architecture of Android to date" and it should make it quicker, easier and cheaper for device-makers to roll out updates to handsets in future.
One of the things that holds back updating handsets from different manufacturer and carriers is the customization that companies like to introduce. Google may make an Android update available, but carriers then need to take the time to tweak it to suit their needs, and this takes time. Google's solution is to create a modular base for Android that is far more easily updated.
Google explains how this will work:
The core concept is to separate the vendor implementation -- the device-specific, lower-level software written in large part by the silicon manufacturers -- from the Android OS Framework.
This is achieved by the introduction of a new vendor interface between the Android OS framework and the vendor implementation. The new vendor interface is validated by a Vendor Test Suite (VTS), analogous to the CTS, to ensure forward compatibility of the vendor implementation.
The introduction of a new vendor interface means that manufacturers will be able to push out new versions of Android to users without the need to change anything other than the OS framework. Project Treble is already present in the Developer Preview of Android O, and Google says that it will be included in all future versions. Documentation will be released in due course as the company explains:
In addition to the architectural changes, we're working with our silicon and device partners to take their code changes, such as features for a carrier network in a specific country, and move them into the common Android Open Source Project (AOSP) codebase. For example, Sony and Qualcomm contributed dozens of features and hundreds of bugfixes to Android O so they no longer need to rework these patches with each new release of Android.
We plan to publish the full documentation for Project Treble on source.android.com with the launch of O later this summer.