Project Mainline Is Google’s Latest Attempt to Fix Android Updates

Project Mainline Is Google’s Latest Attempt to Fix Android Updates

If Google had known the mess Android updates would become, it probably would have taken a different approach to distribution. Alas, Google gave device makers control over almost every aspect of the OS early on and has been trying to make up for that decision ever since. Its latest effort to make Android easier to update is known as Project Mainline. This Android Q component allows Google to patch certain core system components without an OTA update.

In Android Pie and earlier, changes to core system components require an update. Some phones can install these updates in the background, mandating a restart to initialize the new code. Others like Samsung only install the update during restart, which means several minutes of downtime. Project Mainline can update important parts of the OS silently without a restart.

According to Google, Mainline can update 12 core components via the Play Store. For the record, here are all the supported OS modules:

  • Security: Media Codecs, Media Framework Components, DNS Resolver, Conscrypt
  • Privacy: Documents UI, Permission Controller, ExtServices
  • Consistency: Timezone data, ANGLE (developers opt-in), Module Metadata, Networking components, Captive Portal Login, Network Permission Configuration

These aren’t parts of Android you think about a lot, but you interact with them constantly. To update these components live, Google developed a new file container called APEX (Android Pony EXpress). APEX is similar to the APK container for app distribution. Android Q processes APEX files in the same package manager that installs your apps, but instead of an app, APEX files contain new system components.

Project Mainline Is Google’s Latest Attempt to Fix Android Updates

This is part of Google’s ongoing effort to accelerate Android updates. Years back, it started pulling pieces out of the core OS and packaging them up inside Play Services, which it can update silently in the background. In Oreo, Google added support for Project Treble, making the platform more modular, encouraging faster updates and longer support windows.

Because of limitations in older Linux kernels, Project Mainline won’t work on most devices that get updates to Android Q. Phones that ship with Q should have support baked in. Google says it will roll Mainline updates out to all phones in a matter of weeks via the Play Store. We can expect that to start happening with the 2019 Pixel phones when they launch late this year.

Continue reading

CD Projekt Red Denies Any Plan to Offer Refunds for Cyberpunk 2077
CD Projekt Red Denies Any Plan to Offer Refunds for Cyberpunk 2077

Turns out, CD Projekt Red didn't actually mean for you to think you could get a refund for Cyberpunk 2077.

Breakthrough Listen Project Scans 60 Million Stars, Finds Zero Aliens
Breakthrough Listen Project Scans 60 Million Stars, Finds Zero Aliens

Scientists with the Breakthrough Listen project took up the mantle of the Search for Extraterrestrial Intelligence (SETI) several years ago, continuing the decades-long search for ET. The project has just released its largest survey to date, consisting of more than 60 million stars...and no aliens.

Far Beyond the Stars: Improving Motion, Image Quality in the DS9 Upscale Project
Far Beyond the Stars: Improving Motion, Image Quality in the DS9 Upscale Project

It's been nine months since Joel Hruska's last Star Trek: Deep Space Nine Upscale Project update. The new encode method he debuts here offers better motion and improved image quality relative to what was possible last year.

Deep Space Nine Project Update: Why MakeMKV-Derived Files Don’t Work
Deep Space Nine Project Update: Why MakeMKV-Derived Files Don’t Work

The question of why a MakeMKV source doesn't work has come up again and again, so we decided to investigate it.