Users often encounter a situation where a new smartphone or tablet based on Android is overloaded with pre-installed software that cannot be removed using standard methods. These apps, often called bloatwarenot only take up valuable space in the internal memory, but also consume RAM, reducing the overall performance of the device. The desire to return the device to factory cleanliness or install original firmware from Google (AOSP) is becoming an urgent task for many enthusiasts.
The process of installing โemptyโ or clean Android varies depending on the device model, manufacturer and current version of the operating system. In some cases, it is enough to perform a complete data reset, while in other situations a deep flashing through special tools like Fastboot or Odinwill be required. Below we will look at the main stages of preparation and the process of replacing the software itself.
It is worth noting right away that any manipulation of the system partition carries certain risks. Incorrect actions can lead to the device stopping turning on, turning into a so-called โbrickโ. Therefore, before starting any work, it is critically important to create a backup copy of all important data, since in the process they will be irretrievably lost.
Preparing the device and choosing a cleaning method
Before taking active steps, you need to clearly define what kind of result you want to get. If your goal is to simply delete user data and return the settings to factory settings, then a complete flashing may be an overkill. However, if the task is to remove system applications of a telecom operator or manufacturer, a more radical approach will be required.
First, check the current firmware version in the menu Settings โ About phone. Make a note of the build number and security version. You will need this information to find compatible system images. Installing incompatible firmware is a sure way to disrupt the operation of the radio module or touch screen.
There are two main ways to achieve a clean system. The first is to use the built-in reset feature, which deletes the user cache and data but leaves the system partition intact. The second way is to unlock the bootloader and install a custom recovery to replace the system image with a stock one from Google or a clean port from the developer community XDA.
โ ๏ธ Attention: Unlocking the bootloader on many devices (for example, Huawei or some Samsung models) may be blocked forever by the manufacturer. Make sure this procedure is possible for your specific model before starting work.
It is also important to understand the difference between the terms. Factory Reset cleanses the data partition, but does not affect system applications. Clean Install implies a complete overwriting of the system partition, which ensures the removal of any third-party software introduced by the manufacturer.
Resetting to factory settings as the first stage
The safest and most accessible method of cleaning the device is to perform a_hard reset_ through the recovery menu (Recovery Mode). This method does not require a connection to a computer or special drivers, making it an ideal first step for most users.
Entering recovery mode usually requires turning off the device and then holding down a key combination. Most often this is the power button along with the volume down button or the Home button. The specific combination depends on the brand of your smartphone. For example, on devices Xiaomi this is often Volume up + Power.
After entering the Recovery menu, control is carried out with the volume buttons (up/down) and the power button (select). You need to find the item Wipe data/factory reset. Confirmation of an action usually requires selecting an item Yes or entering a confirmation word if the interface is touch-sensitive.
- ๐ฑ Full cleaning: All accounts, photos, contacts and installed applications are deleted.
- ๐ Saving the system: The Android version and the manufacturer's system applications remain unchanged.
- โก Speed: The process takes no more than 5-10 minutes depending on the amount of memory.
- ๐ก๏ธ Security: The risk of system damage is minimal if you do not interrupt the process.
If after resetting the device continues to work unstable or you are not satisfied with the presence of pre-installed software, you will have to move on to more complex methods. Remember that a standard reset does not delete system partitions, where uninstallable apps are often hidden.
Before performing a reset, remove the SD memory card to avoid accidentally formatting external media along with the phone's internal memory.
Unlocking the bootloader and preparing tools
To install a truly pure Android image (AOSP) or stock Pixel firmware, you need to obtain write permissions to the system partition. This is achieved by unlocking the bootloader (Bootloader). This procedure is officially supported by many manufacturers such as Google, Motorola, OnePlus and Xiaomi, but will void the warranty.
The unlocking process is unique to each brand. For Google Pixel and Nexus devices, just run the command in Fastboot mode. For smartphones Xiaomi a special utility Mi Unlock Tool is required and a wait of 3 to 7 days after linking the account. Devices Samsung require switching flags in Download Mode.
Before starting work, install the package on your computer ADB and Fastboot. This is a set of console utilities that allow you to control the device via a USB cable. You also need to install universal USB drivers for Android so that the computer correctly recognizes the smartphone in bootloader mode.
adb devicesfastboot oem unlock
fastboot flashing unlock
Performing the unlock command will completely delete all data on the device for security purposes. The device screen may display a warning that the device is not certified or its integrity has been compromised - this is normal behavior for an unlocked bootloader.
โ๏ธ Preparing to unlock
It is important to check the status of the bootloader before attempting to flash the firmware. Enter the command fastboot getvar all in the terminal. In the output, look for the line (Un)locked. If the status is Locked, the installation of custom images will be blocked by the system.
Searching and downloading stock firmware
The quality and safety of the final result directly depend on the source from which you download the system image. Using firmware from dubious forums or file hosting services can lead to infection of the device with malware at the deepest level.
Official images for line devices Pixel are available on the Google developers website. For other manufacturers, such as Sony or Motorola, there are official support portals where you can download original software by IMEI or device model. For popular models, the community XDA Developers often creates ports of pure Android.
When choosing firmware, pay attention to the device code (codename). For example, firmware for OnePlus 8 (codename: instantnoodle) will not work for OnePlus 8 Pro (codename: instantnoodlep). An error in choosing a code name can lead to incompatibility of camera or modem drivers.
| Manufacturer | Firmware type | Firmware tool | Complexity |
|---|---|---|---|
| Google Pixel | Factory Image | Flash-all script | Low |
| Xiaomi / Redmi | Fastboot ROM (.tgz) | Mi Flash Tool | Medium |
| Samsung | Firmware (.tar/.md5) | Odin | Medium |
| OnePlus | MSM Download Tool | MSM Tool | High |
| Sony Xperia | Firmware (.sin) | Newflasher / Emma | Medium |
After downloading the archive with the firmware, be sure to check its checksum (MD5 or SHA256) if provided by the author. This ensures that the file was downloaded without errors and was not damaged during the transfer process.
Where to look for drivers for specific devices?
If standard Google drivers are not suitable, visit the manufacturerโs official website in the support section. Often, drivers are packaged in a separate installer or are part of a proprietary software update utility (for example, Samsung USB Driver for Mobile Phones).
The process of installing firmware via Fastboot
Mode Fastboot is the main tool for writing partition images to devices with an unlocked bootloader. In this mode, the device waits for commands from the computer to write data directly to flash memory, bypassing the operating system.
Connect the device to the computer in Fastboot mode (usually the volume down button is pressed when turned on). Make sure that the computer sees the device by running the command fastboot devices. If the list is empty, check the USB cable and driver installation.
The firmware process can be performed one command for each partition or using a script. The main sections that are usually updated: boot (kernel), system (system), vendor (manufacturer drivers), recovery (recovery menu) and radio (modem).
fastboot flash boot boot.imgfastboot flash system system.img
fastboot flash vendor vendor.img
fastboot reboot
Some firmware comes with a script flash-all.bat (for Windows) or flash-all.sh (for Linux/Mac). Running this script automatically executes all necessary commands, including data cleaning. This is the most preferred option for beginners, as it minimizes the risk of human error.
โ ๏ธ Attention: During the firmware process, do not disconnect the USB cable under any circumstances. Interrupting writing to a partition
systemorbootis guaranteed to disable the device, requiring complex recovery through test mode (EDL).
After the image recording is complete, the device will automatically reboot. The first boot after installing a clean system may take 5 to 15 minutes as the system optimizes applications and creates a cache. Be patient and do not try to reboot the phone manually at this moment.
Using the flash-all script is preferable to manually entering commands, as it guarantees the correct sequence of writing partitions and their formatting.
Primary setup and optimization of pure Android
After successfully installing pure Android, you will see a welcome message screen typical for the reference version of the system. The interface will be devoid of unnecessary shells, proprietary launchers and intrusive manufacturer services, which ensures maximum smooth operation.
At the setup stage, you will be asked to log in to your Google account. This is necessary for the operation of the store Play Market, synchronizing contacts and restoring application backups. However, pure Android allows you to use the device without a Google account, although the functionality will be limited.
Pay attention to the privacy settings. In the stock system, application permission management is implemented more strictly and transparently compared to custom shells. It is recommended to immediately revoke unnecessary permissions from system applications in the menu Settings โ Applications โ Permission Manager.
- ๐ Performance: A clean system consumes less RAM when idle, leaving more resources for your tasks.
- ๐ Autonomy: The absence of background manufacturer services often has a positive effect on battery life.
- ๐ Updates: On Pixel devices and some others, pure Android receives security updates the fastest.
- ๐จ Design: You get a Material Design interface in in the form in which Google developers conceived it.
If after installation you notice rapid battery drain, give the system a couple of days to adapt and index files. Also check if the USB debugging mode is still enabled, as it can consume energy when connected to a power source.
What to do if the camera does not work after flashing the firmware?
Often, clean firmware (GSI) does not have specific camera drivers. In this case, you need to look for a modified kernel or GCam (Google Camera) ports, adapted specifically to the sensor of your device.
Possible problems and ways to solve them
Even with careful preparation, the process of installing pure Android may encounter unexpected difficulties. The most common problem is "bootloop", when the device constantly reboots before reaching the desktop.
If the device is stuck in a reboot loop, try entering Recovery mode again and perform Wipe cache partition and Wipe data/factory reset. Often, the remains of old files conflict with the new system, and completely clearing the data solves the problem.
If the device does not turn on at all and does not respond to buttons, you may have โbrickedโ it. For many Qualcomm processors, there is an emergency mode EDL (Emergency Download Mode)that allows you to flash a device even with a locked bootloader, but this often requires authorized service accounts or paid tools.
โ ๏ธ Attention: Specifications and firmware methods may change with the release of new versions of Android and updates to manufacturers' security policies. Always check current topics on specialized forums before starting work with a specific model.
Problems with communication (missing IMEI, LTE does not work) often arise when the partition firmware is incorrect radio or modem. In such cases, you need to find and flash the original modem file that matches the region of your device.
Save the original EFS or Persist partition before any manipulations. These sections contain unique calibration data and IMEI, the loss of which can make restoring communication extremely difficult.
Frequently asked questions (FAQ)
Will installing pure Android void the device's warranty?
In most cases, yes. Unlocking the bootloader, which is required to install third-party or stock firmware on many devices, officially voids the manufacturer's warranty. Some brands allow you to return the bootloader to a locked state, but traces of interference may remain in the logs.
Is it possible to install pure Android on any smartphone?
No, it is impossible. Official Google images are only available for the Pixel and Nexus lineup. There are GSI (Generic System Image) projects for other devices, but they work unstable on many models due to the lack of specific drivers. Success depends on the support of the developer community for your specific model.
Will banking apps work on stock Android?
By default, apps protected by SafetyNet or Play Integrity may not work on a device with an unlocked bootloader. However, using tools like Magisk and modules to hide root access and unlock status, you can bypass these restrictions and make banking applications work correctly.
What is GSI and how does it differ from regular firmware?
GSI (Generic System Image) is a universal system image created as part of Project Treble. It is designed to work on any device that supports Treble, but may have problems with equipment compatibility (camera, sensors), unlike custom firmware compiled specifically for a specific model.
How to return to the manufacturer's original firmware?
To return, you need to download the official firmware for your model from the manufacturer's website and flash it through the proprietary utility (Odin for Samsung, Mi Flash for Xiaomi, etc.). After this, the bootloader can be locked again with the command fastboot oem lock, if supported.