GrapheneOS

On this page 7

GrapheneOS is an open-source, privacy- and security-hardened mobile operating system built on the Android Open Source Project (AOSP). Among mobile platforms it occupies a specific niche: it keeps compatibility with Android apps while adding exploit mitigations, stricter sandboxing and finer permission controls that stock Android does not provide.

The project is developed by a non-profit and supports only a narrow set of devices, currently recent Google Pixel phones, because it depends on hardware security features such as a secure element, verified boot with a user-installable key and timely firmware updates. It ships without Google apps or Google Play services by default, yet it can run them in a sandboxed, unprivileged form when the user chooses.

How GrapheneOS hardens Android

GrapheneOS hardens Android by reducing attack surface and making memory corruption bugs harder to exploit, rather than by adding a separate security app layer. Most changes sit deep in the system: the memory allocator, the compiler settings, the kernel configuration and the permission model.

A central component is hardened_malloc, a memory allocator designed to detect and block heap corruption, use-after-free and similar bug classes. The project also enables stronger control-flow and stack protections, restricts dynamic code loading for system processes and tightens SELinux policies. Together these measures aim to turn a working exploit into a crash.

The table below summarizes the main hardening layers and what each one defends against.

LayerMeasureThreat addressed
Memory allocatorhardened_malloc with guard regions and randomizationHeap corruption and use-after-free
KernelReduced attack surface and stricter configurationPrivilege escalation
Boot chainVerified boot with a relocked bootloaderPersistent tampering and evil maid attacks
App sandboxStricter SELinux and seccomp policiesEscape from app isolation
BrowserVanadium, a hardened Chromium-based browser and WebViewWeb-based exploitation
Main hardening layers in GrapheneOS

Privacy features and permission controls

GrapheneOS extends the Android permission model so users can deny access that stock Android grants silently. The most cited example is the Network permission toggle, which removes an app’s internet access entirely; stock Android treats network access as an install-time permission that users cannot revoke.

The following table lists the privacy controls that most clearly distinguish GrapheneOS from a standard Android build.

FeatureWhat it doesPractical benefit
Network permissionBlocks all network access for an appOffline apps cannot send data
Sensors permissionBlocks accelerometer, gyroscope and similar sensorsLimits fingerprinting and motion tracking
Storage ScopesGives an app access only to chosen filesAvoids broad storage permission
Contact ScopesShares selected contacts instead of the whole listProtects the address book
Auto-reboot timerRestarts the phone after a set idle periodReturns data to the encrypted at-rest state
USB-C port controlDisables data on the port when lockedReduces physical attack surface
Privacy controls added by GrapheneOS

Additional options include a duress PIN that wipes the device when entered, per-profile isolation through multiple user profiles, and MAC address randomization per connection. These features matter most for people facing targeted threats or forensic extraction, but they also improve everyday privacy.

Sandboxed Google Play and app compatibility

Sandboxed Google Play is the GrapheneOS compatibility layer that lets Google Play services run as ordinary apps without special system privileges. On stock Android, Play services are privileged components with broad access; on GrapheneOS they receive only the permissions the user grants, like any other app.

This design allows most mainstream apps, including those that need push notifications through Firebase Cloud Messaging, to work normally. Users can also install Play services in only one profile, keeping a separate profile free of Google software. Compatibility is high but not complete: some banking and payment apps rely on Play Integrity attestation and may refuse to run on an operating system that Google has not certified, even though GrapheneOS keeps a locked bootloader.

GrapheneOS compared with other systems built on Android

GrapheneOS differs from other AOSP-based systems mainly in its security model and device policy. Many custom ROMs prioritize broad device support and customization, while GrapheneOS prioritizes verified boot, fast patching and exploit resistance, even at the cost of supporting few devices.

PlatformMain focusDevice supportGoogle services
GrapheneOSSecurity hardening and privacyRecent Pixel phones onlyOptional, sandboxed
Stock Android on PixelFull Google integrationPixel phonesPrivileged, built in
LineageOSLongevity and broad device coverageMany devicesNot included, often added
/e/OSDe-Googled consumer experienceSelected devicesReplaced by microG
Manufacturer skinsVendor features and designVendor devicesPrivileged, built in
GrapheneOS and related platforms built on Android

A key technical distinction is bootloader relocking. GrapheneOS installs its own verified boot key and expects the user to relock the bootloader, restoring the full chain of trust. Many custom ROMs run with an unlocked bootloader, which weakens protection against physical tampering. GrapheneOS also discourages root access, because a rooted system breaks the security model it is designed to enforce.

Installation, updates and limitations

GrapheneOS is installed through an official web installer or command-line tools that flash factory images and then relock the bootloader. Updates arrive as signed over-the-air packages, typically within days of monthly Android security bulletins, and use seamless A/B updates so the phone keeps working during installation.

The decision table below helps match typical needs with a suitable choice.

NeedFitReason
Journalist or activist protectionStrongHardening and duress features target real attacks
Privacy with mainstream appsGoodSandboxed Google Play keeps most apps working
Contactless payments with Google WalletPoorGoogle certification is required
Older or non-Pixel phoneNot possibleOnly supported Pixel models are allowed
Heavy customization and rootPoorThe security model excludes root
When GrapheneOS is a good fit
  • Device support ends when the manufacturer stops shipping firmware, so the supported list changes over time.
  • Some apps detect a non-certified system and refuse to run, which users should test before relying on the phone.
  • Hardening reduces risk but does not guarantee immunity; user behavior and app choices still decide much of the exposure.

In everyday language

GrapheneOS is a replacement system for certain Google Pixel phones. It still runs normal Android apps, but it is built to be much harder to break into and to share less of your data by default.

Think of it as the same house with stronger locks, thicker walls and more doors you control. You can stop an app from using the internet, give it only the photos you pick, or keep Google apps in a separate space. The trade-off is that it runs only on a few phones, and a handful of apps, such as some payment services, may not work.

Seen in the real world

An investigative reporter who travels to border crossings and protests installs GrapheneOS on a supported Pixel phone. Work contacts and an encrypted messenger live in the owner profile without Google services, while a second profile runs sandboxed Google Play for maps and a ride-hailing app.

The reporter sets the auto-reboot timer to 18 hours, disables USB data while the phone is locked and configures a duress PIN. Field recording apps receive no network permission, so audio files cannot leave the device unnoticed. The outcome is a phone that handles everyday tasks while making seizure, forensic extraction and silent data collection considerably harder.