Owners of smartphones released several years ago are often faced with an annoying situation: the device is working properly, but the manufacturer has officially stopped releasing operating system updates. This means no new features, no security patches, and no support for current app versions. However, technically advanced users know that the life of a gadget can be significantly extended by installing on it custom firmware more recent versions of Android.

The process of replacing standard software with third-party software requires certain skills and understanding of the architecture of the mobile operating system. You have to go from unlocking the bootloader to installing a new recovery and the firmware itself. Although the procedure seems complicated, if the algorithm is strictly followed, it is quite doable at home. The main thing is to be aware of all the risks and prepare the necessary tools in advance.

In this article we will analyze in detail how to revive an old device, turning it into a modern device. We will discuss choosing a suitable assembly, the nuances of working with bootloader and recovery methods in case of failure. Even if your phone does not support official updates, the developer community may have already created a worthy alternative for it.

Assessing compatibility and choosing firmware

The first and most critical step is to find information about support for your specific model. The world of custom firmware is huge, but it is not all-encompassing. For popular models from Xiaomi, OnePlus or Google Pixel there are dozens of options, while for budget or rare brands there may be no support at all.

โš ๏ธ Attention: Installing firmware designed for a different model or board revision is guaranteed to turn the device into a โ€œbrickโ€. Always check the device codename before downloading files.

The main resource for searching is the forum XDA Developers. Here, enthusiasts publish their builds based on the source code AOSP (Android Open Source Project). You need to find the thread that matches the exact name of your smartphone. Pay attention to the status of the firmware: it may be marked as โ€œStableโ€ (stable) or โ€œBetaโ€ (test).

In addition to the forum, it is worth checking the repositories of popular projects such as LineageOS, Pixel Experience or crDroid. These teams support a huge fleet of devices and regularly release security updates. If your model is on the official list of supported devices, this is the best option to start with.

When choosing the Android version, consider the hardware capabilities of the phone. Installing a heavy shell on a device with 2 GB of RAM may lead to unstable operation. Sometimes it makes sense to stay on the version Android 11 or 12if they are better optimized than the raw version Android 14.

๐Ÿ“Š What is your main purpose of updating?
Get new features
Extend security support
Speed up an old phone
Just for the sake of experiment

It is also important to check the requirements for the basic firmware version. Some custom builds require that the phone already has a certain version of the factory software or a specific version firmware. Ignoring this requirement often leads to boot errors or non-functioning communication modules.

Device preparation and backup

Before making any changes to the system partition, you must create a complete copy of all important data. The process of installing a new OS will inevitably lead to a complete clearing of the device's internal memory. The loss of photos, contacts and messages will be irreversible without a preliminary backup.

Use cloud services or connect your phone to a computer to copy media files. To save application settings and app lists, you can use Googleโ€™s built-in backup tools or specialized software like Swift Backupif the device already has root access.

โ˜‘๏ธ Ready for flashing

Done: 0 / 5

Be sure to enable USB debugging mode. To do this, go to Settings โ†’ About phone and click on the build number seven times to activate the developer menu. Then in the section that appears For developers activate the item USB debugging.

It is also critical to remove the Google account lock (FRP). If you reflash the phone without logging out of your account first, the security system may request a password from the previous owner upon first boot, and this will be extremely difficult to bypass. Delete all accounts in the menu Users and accounts.

Unlocking the bootloader

The bootloader is a app that runs before the operating system and verifies the digital signature of the loaded software. Manufacturers block it to prevent the installation of unauthorized modifications. To install custom recovery and firmware, this lock must be removed.

The unlocking procedure differs for different brands. Devices from Xiaomi require special permission through a proprietary utility Mi Unlock Tool and wait from 3 to 7 days. Smartphones Motorola and OnePlus allow you to receive the unlock code officially through the manufacturer's website.

fastboot oem unlock

fastboot flashing unlock

These commands are entered in the mode Fastboot after connecting the unlocked phone to the computer. It is worth remembering that unlocking the bootloader will void the device's warranty and initiate a full data reset (Wipe Data) process. This is a security measure to prevent data theft when physically accessing the device.

๐Ÿ’ก

After unlocking the bootloader, a warning may appear on the boot screen indicating that the device is not certified. This is normal and does not affect the operation of the system, but the message can only be removed by flashing the modified bootloader, which is not recommended for beginners.

Some telecom operators or regional versions of smartphones may have a permanently locked bootloader that cannot be unlocked using software methods. In such cases, installing a new Android is impossible without interfering with the hardware, which carries huge risks.

Installing custom Recovery (TWRP)

The stock recovery menu (Stock Recovery) has limited functionality and allows you to install only updates signed by the manufacturer. To work with custom firmware, you need to install an alternative recovery, the most popular of which is Team Win Recovery Project (TWRP).

File image twrp.img downloaded from the official project website specifically for your device model. Installation is carried out through a computer in Fastboot mode using the command:

fastboot flash recovery twrp.img

Immediately after installation, it is important to prevent booting into the system, since stock Android can automatically replace custom recovery with stock at the first start. You must immediately hold down a combination of buttons (usually Volume Up + Power) to enter the newly installed TWRP.

Action Description Risk
Wipe Data Full data clearing before installation Data loss without backup
Install Selecting a zip archive of the firmware for installation Installing a broken file
Reboot Rebooting the system or recovery Loading into the old OS (changing TWRP)
Backup Creating a full image of partitions Taking up space on the memory card

Inside the TWRP menu, the first step is to make a full backup of the current system (Nandroid Backup). This will save an exact copy of all memory partitions to a microSD card or OTG drive. In case of unsuccessful firmware, you can restore to the state โ€œbefore the experimentโ€ in a couple of minutes.

The process of installing a new operating system

Now that all the preparatory stages have been completed, you can begin the installation itself. The downloaded zip archive with the firmware (and often a package of add-ons GAppsif they are not built into the firmware) must be copied to the internal memory of the phone or to a memory card.

In the TWRP menu, go to the partition Wipe and format the partitions Data, Cache i Dalvik / ART Cache. This is called "Clean Flash" and is a must when changing Android version or firmware type to avoid file conflicts and errors.

โš ๏ธ Warning: Do not format the Internal Storage partition if you store the firmware files there, otherwise you will delete the installation file before the installation begins. Use an external memory card for installation files.

Next select item Install, find the archive with the firmware and move the slider to confirm the flash. The process will take from 5 to 15 minutes depending on the speed of the device's memory. If the firmware does not include Google services, immediately after it, without rebooting, install the package OpenGApps the corresponding version of Android and processor architecture (usually arm64).

What to do if the installation was interrupted?

If the installation process froze or gave an error, do not panic. Try reformatting the Data partition and flashing the firmware again. If the error persists, the firmware file may be damaged or incompatible with the current bootloader version. As a last resort, restore from Nandroid Backup.

After successful completion of all operations, press the button Reboot System. The first boot after installing custom firmware always takes much longer than usual - from 5 to 10 minutes. At this time, the system optimizes applications and configures partitions.

Possible problems and methods for solving them

Even with careful preparation, unforeseen situations may arise. The most common problem is โ€œbootloopโ€, where the phone endlessly reboots at the logo. This may be caused by kernel incompatibility, an error when wiping data, or a module conflict.

To resolve the problem, boot back into TWRP (usually by holding the volume buttons while turning on). Try Wipe Data again and install the firmware again. If this does not help, check the installation logs (button Copy Log in TWRP) to understand the cause of the error.

Another common problem is non-working functions: camera, Wi-Fi, Bluetooth or fingerprint. This is often due to driver incompatibility in the custom kernel. In such cases, you should look for an alternative kernel on the forum or report the error to the firmware developer.

๐Ÿ’ก

If the phone stops responding to buttons and the screen is black (Hard Brick), you will need to connect to a PC in EDL mode (for Qualcomm) or use a special box for flashing at a low level.

Remember that using custom software is always a compromise. You get new features and security, but you may lose the stability of some specific features depending on the manufacturer's proprietary drivers. Always check the "Bugs" section in the ROM thread before installing.

Frequently asked questions (FAQ)

Is it safe to install banking applications on custom firmware?

No by default, since an unlocked bootloader violates the integrity of the system (SafetyNet/Play Integrity). However, this problem can be circumvented by installing the module Magisk and configuring the hiding of root access and the unlocked bootloader for specific applications.

Is it possible to return to the official firmware after the experiment?

Yes, it is possible. You will need to download the official firmware image (Stock ROM) for your model and flash it via Fastboot mode or a special tool from the manufacturer (for example, Mi Flash or Odin for Samsung). This will also lock the bootloader back.

Will the new Android speed up the operation of the old smartphone?

Often yes. Custom firmware is usually devoid of pre-installed garbage (bloatware) from the manufacturer and operator, which frees up RAM and processor. However, the performance gain depends on the optimization of a specific assembly by the developer.

What are GApps and why you need them?

GApps (Google Apps) is a package of Google services (Play Market, YouTube, Gmail, etc.). Many custom firmwares are shipped without them due to licensing restrictions. If you want to use the application store, you need to separately flash the GApps package immediately after installing the system.

Will the firmware erase my photos and contacts?

Yes, installing a new firmware (Clean Flash) completely deletes all data from the internal memory. Backup to a computer or to the cloud before starting the procedure is a mandatory requirement.