Many smartphone owners are faced with the problem of the operating system being too heavy. Manufacturers often add their own shells on top, which slow down the device, consume extra RAM and contain unnecessary pre-installed applications. Switching to clean Android (also known as AOSP or Stock Android) becomes a salvation for those who want to return the former speed and smoothness of the interface.

The essence of the process is to replace the standard firmware with a lightweight version, devoid of graphic add-ons and system garbage. This is not just a change of theme, but a deep flashing of the system partition. However, it is worth understanding that this procedure requires certain technical training and carries risks associated with loss of warranty or data.

Before taking radical measures, you need to weigh the pros and cons. A clean system gives you freedom and productivity, but may deprive you of some exclusive camera features or specific gestures implemented by the manufacturer. Next, we will look in detail at how to safely make this transition.

Device preparation and backup

Any intervention in system files begins with saving important information. The process of switching to clean firmware will inevitably lead to a complete clearing of the smartphoneโ€™s internal memory. Therefore, creating a reliable copy of your data is the first and most critical step.

Use cloud services such as Google Drive or Yandex.Diskto save photos and documents. The best way to save your list of apps and settings is to use Google's built-in backup feature. Go to Settings โ†’ System โ†’ Backup and make sure the switch is active.

โš ๏ธ Attention: When you unlock the Bootloader on most modern smartphones, all data is automatically reset to factory settings. Save photos, contacts and messages in advance!

In addition to the data, you will need to prepare the smartphone itself. Charge the battery to at least 70-80%, since the firmware process is energy-consuming and a power interruption can turn the device into a โ€œbrick.โ€ Also find the original USB cable, since cheap analogues may not provide stable data transfer.

โ˜‘๏ธ Preparing for the transition

Done: 0 / 4

Unlocking the bootloader

A bootloader is a app that runs before the operating system and verifies the integrity of software signatures. Manufacturers block it to prevent users from installing unofficial software. To install pure Android, this protection must be removed.

Unlocking methods differ radically depending on the brand. For devices Google Pixel or OnePlus this is done through a command in Fastboot mode. For smartphones Xiaomi a special Mi Unlock utility is required and a wait of 3 to 7 days. Owners Samsung often just need to switch the toggle switch to the developer menu.

After turning on the developer mode (clicking 7 times on the build number in Settings โ†’ About phone), find the item โ€œFactory unlockingโ€ or โ€œOEM Unlockingโ€. Activate it, turn off the phone and hold down the combination of buttons (usually Volume Down + Power) to enter Fastboot mode.

What is Fastboot mode?

Fastboot is a communication protocol between a smartphone and a computer that allows you to send commands directly to the bootloader to flash memory sections, bypassing the operating system.

Connect the phone to the PC and enter the status check command in the command line:

fastboot oem device-info

If you see the line Device unlocked: false, then the protection is still active The unlock command usually looks like fastboot flashing unlock or fastboot oem unlock. A warning will appear on the phone screen - confirm the action with the volume buttons.

๐Ÿ’ก

Unlocking the bootloader will void the warranty on the device in most service centers of official brands. Consider this risk before starting the procedure.

Installing custom recovery (TWRP)

The standard recovery menu (Stock Recovery) has extremely limited functionality and allows you to install only updates signed by the manufacturer. To install pure Android, we need an extended menu, the leader among which is TWRP (Team Win Recovery Project).

You can find a suitable recovery image on the official forum 4PDA or resource XDA Developers. Enter your device model in the search and download the file with the extension .img. It is extremely important to download the version specifically for your model, since incompatibility can lead to errors in the touchscreen operation in recovery mode.

The installation process takes place through the computer in Fastboot mode. Connect your smartphone, open a terminal in the folder with the image file and enter the command:

fastboot flash recovery twrp_image_name.img

After successful recording, do not reboot the system immediately. Hold down the Power button and Volume Up button to force enter into the newly installed TWRP. If you just reboot, the stock bootloader can overwrite the custom recovery with its own.

  • ๐Ÿ“‚ In TWRP you can make full system backups (Nandroid Backup).
  • ๐Ÿ“ฆ Installation of ZIP archives with firmware occurs directly from a memory card or flash drive.
  • ๐Ÿงน Advanced options for clearing cache, Dalvik and data before a new installation.
  • ๐Ÿ”’ Ability to obtain root access through Magisk installation.

TWRP interface is touch-sensitive and intuitive. Before flashing the firmware, be sure to go to the Wipe section and format the Data, Cache i Dalvikpartitions. This will prevent conflicts between files of the old and new system.

Selecting and searching for suitable firmware

The concept of โ€œpure Androidโ€ can be implemented in different ways. You can choose official firmware from Google (GSI), if your device supports the Project Treble project, or popular custom builds from the enthusiast community.

The most famous custom firmware projects include LineageOS, Pixel Experience (the project is closed, but forks exist), crDroid and Evolution X. Each of them offers its own balance between the cleanliness of the interface and the presence of additional customization functions.

โš ๏ธ Attention: Interfaces and capabilities of custom firmware are often changed by developers. Always check the list of supported functions (Working/Not Working) in the firmware topic before installation, so as not to be left without a working camera or NFC.

When selecting, pay attention to the build status. Stable versions undergo long-term testing and are suitable for everyday use. Nightly builds may contain new features, but often have errors and bugs.

๐Ÿ“Š What type of firmware are you planning to install?
Official GSI (Project Treble)
LineageOS
Pixel Experience / Forks
Other custom assembly

Place the downloaded firmware file (usually an archive .zip) into the internal memory of the phone or onto a microSD card. Do not unpack the archive, the installation is complete. It is also recommended to download the Google services package (GApps), if they are not built into the firmware, otherwise you will not have the Play Market.

Installation process and initial setup

Now we move on to the most important stage. Boot into TWRP mode. Make a full backup of your current system just in case via the menu Backup. This will take time, but will save you if the new system does not start.

Go to menu Install. Find the downloaded ZIP archive with the firmware. Swipe the slider at the bottom of the screen to confirm the installation. The process will take from 3 to 10 minutes depending on the speed of the device's memory.

If you are using firmware without built-in Google services, immediately after installing the main firmware, without rebooting, install the archive with OpenGApps. Select the processor architecture (usually arm64) and the Android version corresponding to the firmware.

Stage Action in TWRP Risk of error
Cleaning Wipe โ†’ Advanced Wipe (Dalvik, Cache, System, Data) Low
OS installation Install โ†’ Selecting ZIP firmware file Medium
Google Services Install โ†’ Selecting the GApps ZIP file Medium
First launch Reboot โ†’ System High (may freeze)

After completing all installations, press the button Reboot System. The first start of a clean system can last up to 5-10 minutes. This is normal as the system optimizes applications. If the phone is stuck on the logo for more than 15 minutes, you will have to return to TWRP and repeat the Wipe Data.

๐Ÿ’ก

When you first start a clean system, turn off the Internet. This will help avoid forced updating of Google services to a version that may conflict with the new firmware on the old device.

Solving problems and optimizing the system

After successfully logging in, you will notice that the interface has become much easier. However, there may be some nuances with drivers. Cameras on custom firmware often work worse than stock ones due to the lack of proprietary image processing algorithms.

To solve problems with the camera, it is recommended to install GCam (Google Camera) as a port for your processor. Find the appropriate version on the 4PDA forum for your chipset (Snapdragon, MediaTek, Exynos). This will return the photo quality to a high level.

It is also worth setting up energy saving. Pure Android doesn't always aggressively kill background processes. Go to Settings โ†’ Applications โ†’ Accessibility โ†’ Battery optimization and set up restrictions for rarely used apps.

  • ๐Ÿš€ Use developer options to speed up animation (scale 0.5x).
  • ๐Ÿ”‹ Disable unnecessary sensors and geolocation services in the privacy settings.
  • ๐Ÿ›ก๏ธ Install an antivirus only if you plan to download applications from third-party sources.

If you are faced with the fact that banking applications do not work, this is due to a system integrity check (SafetyNet or Play Integrity API). You will need to install Magisk and activate modules for hiding root access, such as Shamiko or Zygisk.

โš ๏ธ Attention: Hiding root access from banking applications is an โ€œarms raceโ€. The methods work temporarily, and after updating the bank application, access may be lost again. Be prepared for periodic adjustments.

Frequently asked questions (FAQ)

Is it possible to return the stock firmware back?

Yes, it is possible. You will need to download the official firmware image for your model from the manufacturer's website and flash it via Fastboot mode or an official utility (for example, Odin for Samsung or Mi Flash for Xiaomi). This will restore the warranty, but the data will be deleted again.

Will the old smartphone speed up?

In most cases, yes. Pure Android consumes less RAM when idle (about 1-1.5 GB versus 2.5-3 GB for heavy shells). This frees up resources for your applications. However, the physical wear and tear of the processor and battery will not go away.

Is it safe to enter card data into a clean system?

Security does not depend on the shell, but on the availability of security updates. Custom firmware may be updated less frequently than official firmware. Make sure that the build you choose receives monthly security patches before linking cards.

What to do if the phone does not turn on after flashing the firmware?

Try entering Recovery mode and doing a Wipe Data/Factory Reset. If this does not help, the firmware image may be damaged or not suitable for the model. In this case, only flashing the stock image via a PC in Download Mode or Fastboot will help.

Are special drivers needed for Windows?

To work in ADB and Fastboot modes, you need universal Google USB Driver or ADB Interface drivers. Usually they are installed automatically upon connection, but sometimes they need to be installed manually through Device Manager.