Modern Android OS Architecture: Linux Kernel, GMS Modules & OEM Skins Explained

Published

Android powers billions of devices globally, spanning compact smartphones, foldables, and specialized computing hardware. Beneath diverse manufacturer interfaces lies a layered software stack built on top of the open-source Linux kernel.

Understanding how Android functions helps clarify why devices with identical silicon can perform differently in memory retention, background processing, and battery longevity.

1. The Multi-Tier Android Architectural Stack

2. Project Treble: Decoupling the OS Framework from Vendor Hardware

Before Android 8.0 (Oreo), the Hardware Abstraction Layer described in Section 1 was tightly bound to each OEM’s specific Android build. Updating the OS framework often meant rebuilding and requalifying an entire chipset vendor’s drivers alongside it — a major reason updates historically took months to reach devices, or never arrived at all.

Project Treble addressed this by introducing a stable Vendor Interface (VINTF) between the Android OS framework and the underlying vendor implementation:

Pre-Treble:                          Post-Treble:
[ Android Framework ]                [ Android Framework ]
        | (tightly coupled)                  | (stable VINTF)
[ Vendor HAL + Kernel ]               [ Vendor Interface  ]
                                              |
                                      [ Vendor HAL + Kernel ]

Treble and the Project Mainline modular updates described later in this article solve related but distinct problems: Treble separates the OS framework from vendor-specific hardware code, while Mainline (via Google Play system updates) further breaks the framework itself into independently updatable modules. Together they explain why a modern Android device can receive security patches without a full vendor-signed OTA reboot.

3. AOSP vs. Google Mobile Services (GMS)

A common misconception is that Android and Google are strictly inseparable. The operating system operates on two distinct layers:

  1. Android Open Source Project (AOSP): The open-source core containing the kernel patches, base runtime, networking stack, and foundational UI framework. Anyone can fork, modify, and build upon AOSP without Google licensing.
  2. Google Mobile Services (GMS): A proprietary suite of cloud services, APIs, and applications licensed to hardware manufacturers. GMS includes Google Play Services (push notifications, location fusion, Play Integrity), the Google Play Store, and core Google applications.

Without GMS certification, devices lack access to safety verification APIs required by modern banking apps and streaming DRM platforms (Widevine L1).

4. OEM Skin Philosophies: Stock vs. Heavy Customization

While the base operating system is standardized, manufacturers alter how memory management, background services, and design languages are implemented:

OEM InterfacePrimary PhilosophyMemory Management StrategyDesign Language
Pixel UI (Google)Clean stock foundation, deep Gemini integrationStandard Android low-memory killer (LMK)Material You (Dynamic theming)
One UI (Samsung)Feature density, multitasking, DeX desktop modeAggressive process suspension for batteryUnified squircle card hierarchy
Nothing OSMinimalist retro-futurism, bloatware reductionLight background thread overheadDot-matrix monochrome accents

Why RAM Management Varies Across Brands

Different OEMs configure how aggressively the system terminates background processes. While a device with 12 GB of RAM on stock Android might keep 15 apps cached in memory indefinitely, aggressive third-party battery optimization suites may kill background tasks after a few minutes of screen-off time.

For pro users and developers, understanding an OEM’s background policy is just as vital as reviewing raw hardware specifications.