One of the main features of Android 4.4 KitKat is Project Svelte, which makes the brand new OS run on older hardware that may be considered obsolete by today’s standards (dual-core CPU, 512MB of RAM and qHD display), but which is a step in the right direction for Google when it comes to fighting OS fragmentation.
Google’s head of engineering Dave Burke in an interview with ReadWrite has shared the untold story of Project Svelte. Here are some revealing quotes:
“The goal of Project Svelte was basically to reduce the memory footprint to fit into 512 megs. The way we did it, by the way-which we didn’t talk about-was to take a Nexus 4 and adapt it to run at 512 megs.”
“We adapted the resolution to qHD that is 960-by-540 because that is kind of the sweet spot for entry level smartphones,” Burke said. “We reduced it from four CPUs to two CPUs. We reduced the clock frequency and whatnot. And literally a bunch of us just used that as our default phone. It was painful, and it was broken to start with.”
Once the special Nexus 4 was “constructed” Google had four objectives in mind:
Reduce the footprint of the system.
Reduce the footprint (memory usage) of the apps that run on a Google Experience (Nexus) device.
Fix how apps react and crash during bad memory situations.
Provide better measurement and instrumentation of how apps are running in Android so developers can see how memory-conscious their apps are.
According to the publication, the first two objectives were achieved thanks to using the dumbed down Nexus 4 version. Furthermore, in order to reduce memory usage, the company stripped Google apps from the OS making them behave as standalone apps. The last two objectives were achieved by creating a RAM usage score – ProcStats – to keep an eye on how apps were using the available memory, and then by monitoring RAM usage efficiency in apps.
Ultimately, KitKat got the best of Project Butter and Project Svelte, both projects being overseen by Burke. “We were kind of joking that, when I started, the first thing that I was working on was Project Butter to make the system smoother,” the exec said. “The thing is, butter puts on weight. So then I did Project Svelte to lose weight. So now my contribution to Android is basically zero,” he joked.