Smartphone owners are often faced with a situation where the manufacturer stops releasing official updates for their device, leaving users with an outdated version of the operating system. In such cases, the only way out is to obtain root access, which opens access to system partitions that were previously blocked for modification. Having superuser rights allows you not only to remove pre-installed software, but also to install custom firmware, extending the life of the gadget for several years.
The update process Android via root is radically different from the standard over-the-air (OTA) procedure. If a regular update occurs automatically through the settings menu, then in the case of a modified system the user has to take on the role of an engineer. You have to manually download the firmware image, check its integrity and correctly flash the device through a special recovery mode. Errors at any stage can lead to data loss or the smartphone turning into a โbrick.โ
Nevertheless, this opens up broad horizons for enthusiasts. You can install the latest version Android on a device released five years ago, receiving new interface features and security improvements. The main thing is to understand the architecture of the process and strictly follow the sequence of actions. In this article, we will analyze in detail the update methods, the necessary tools and pitfalls that you may encounter.
Preparing the device and backing up data
Before starting any manipulations with the system partition, it is critical to create a complete backup copy of all user data. Obtaining Root access and subsequent flashing almost always entails a complete reset of the device to factory settings (Wipe Data). The loss of photos, contacts and correspondence in instant messengers will be irreversible if you do not take care of it in advance.
Use reliable backup tools. Google's standard tools can save contacts and apps, but they often don't save system app settings or game data without cloud syncing. For deeper copying, accessible only with superuser rights, it is recommended to use specialized software that can clone entire partitions.
- ๐ธ Take photos of important documents and QR codes from two-factor authentication.
- ๐พ Copy the DCIM and Download folder to an external hard drive or to cloud storage.
- ๐ฑ Export the SMS database and call log to XML or JSON format.
- ๐ Write down passwords from Wi-Fi networks and save encryption keys.
โ ๏ธ Attention: Data encryption on modern smartphones may prevent the backup from being restored after changing the Android version. If possible, before creating a backup, disable encryption of internal memory in the security settings, although on new versions of the OS this option is often hidden.
You also need to make sure that the device's battery is at least 60-70% charged. The flashing process, especially if it involves wiping partitions and installing a new system, can take anywhere from 15 minutes to an hour. A sudden power outage while writing data to the memory of the eMMC or UFS chip will damage the bootloader.
โ๏ธ Ready for flashing
The necessary tools and drivers
For a successful update you will need not only the firmware file itself, but also a set of software for computer. Communication between the PC and the smartphone is carried out via the ADB (Android Debug Bridge) protocol and Fastboot mode. Without installed drivers, the computer simply will not see the device in the desired mode, and all commands will be ignored.
You need to download Platform Tools from the official Android developers website. This package contains the executable files adb.exe and fastboot.exe. After unpacking the archive, it is recommended to add the path to this folder to the Windows system environment variables in order to be able to run commands from any directory via the command line.
In addition, to install a custom recovery (Custom Recovery), such as TWRP or OrangeFox, you will need an unlocked bootloader. On smartphones from different manufacturers, this process is different: in some cases itโs enough to enter a command in the terminal, but in others you need to get a special unlock code on the vendorโs website and wait several days.
adb devicesfastboot oem unlock
fastboot flash recovery twrp.img
Do not forget about the drivers of a specific manufacturer. For Xiaomi devices you often need Mi USB Drivers, for Samsung - Odin and corresponding drivers, and for OnePlus - standard ADB drivers work most stably. If Device Manager shows an unknown device with a yellow exclamation mark, it means that the drivers are not installed correctly.
Use the original USB cable that came with your smartphone. Cheap "charge only" cables do not have data lines, which will make it impossible to connect to a computer for firmware.
Finding and selecting the appropriate firmware
Selecting the correct firmware is the foundation of a successful update. An error in selecting a file can lead to a cyclic reboot (bootloop) or inoperability of communication modules. Firmware files for rooted devices are usually distributed in the format .zip for installation via recovery or .img for firmware via Fastboot.
There are two main types of custom firmware: Nightly (daily builds with the latest edits, but possible bugs) and Stable (stable versions, passed the test). For everyday use, it is recommended to choose stable builds from trusted developers on forums like XDA Developers or w3bsit3-dns.com.
| Firmware type | Stability | Update frequency | Recommendation |
|---|---|---|---|
| Stock (Official) | High | Rarely | For ordinary users |
| Custom Stable | High | Once a month | For advanced users |
| Custom Nightly | Average | Daily | For testers and enthusiasts |
| GSI (Generic System Image) | Low | Depends on AOSP | Only if not native firmware |
Be sure to check the compatibility of the firmware with your device code name (Codename). For example, the firmware for Redmi Note 8 (ginkgo) will not install on Redmi Note 8 Pro (begonia), even if they look the same. Using an incompatible image will overwrite sections of the radio module, and you will lose the ability to make calls.
Where to look for firmware?
Official mirrors of developers (SourceForge, GitHub), thematic threads on the XDA Developers forum, Telegram channels of specific firmware projects. Avoid suspicious sites with a lot of advertising.
Installing custom recovery (TWRP)
The standard recovery menu (Stock Recovery) has limited functionality and does not allow you to install update packages that are not signed by the manufacturer. Therefore, the first step after unlocking the bootloader is to install a custom recovery. TWRP (Team Win Recovery Project) is the gold standard in this area thanks to its user-friendly touch interface and plugin support.
The installation process is usually performed in Fastboot mode. Connect the switched off smartphone to the computer by holding down the button combination (usually Volume Down + Power), and enter the command to flash the recovery image. It is important to note that on some devices with dynamic partitions (A/B partitions), the command may differ.
After successfully recording the image, do not reboot into the system immediately. This may cause the stock recovery to overwrite the custom one. Immediately hold down the combination of buttons to enter recovery mode (usually Volume Up + Power) to boot into TWRP.
โ ๏ธ Attention: On devices with data encryption (FBE/FDE), when you first log into TWRP, you may be asked to enter the screen unlock password. If you forgot your password or reset it, you may have to format the data (Format Data), which will delete all information from the internal memory.
In the recovery interface you will see the option to create a full backup (Nandroid Backup). It's empfiehlt to do right now. Nandroid backup saves the state of all partitions (System, Data, Boot, Vendor) in the form of images. If the new firmware turns out to be inoperative, you can restore the phone exactly to its pre-firmware state in a couple of minutes.
Custom recovery is a gateway for installing any modifications. Without it, you will not be able to install custom firmware or a patch to obtain root access after the update.
The process of installing a new version of Android
When all the preparatory stages have been completed, you can begin the installation itself. Copy the downloaded zip archive with the firmware to the internal memory of your smartphone or to an SD card. In the menu TWRP go to the Wipe section and clean the Dalvik / ART Cache, System, Data and Cache partitions. There is no need to clear the Internal Storage section if the firmware files are there.
Next, go to the Install section, select the archive with the firmware and swipe to confirm the installation. The process will take a few minutes. If you plan to maintain root access, immediately after installing the firmware (before rebooting), you need to flash the patch Magisk or KernelSU. In new versions of Android, without this step, root access will be lost.
Sometimes it is necessary to flash additional components, such as GApps (Google services package), if they are not included in the firmware by default. The procedure in this case is strictly regulated: first Firmware, then GApps, then Magisk. Violation of the order may lead to errors during the first launch.
- ๐ Run Wipe Dalvik/Cache before installing each new package.
- ๐ฆ Install GApps only for the version of Android that matches the firmware.
- ๐ก๏ธ Flash Magisk last, so that it modifies the boot image of a ready-made system.
- โ After completion, clear the recovery cache (Wipe Cache) to prevent conflicts.
The first launch after installing custom firmware always takes longer than usual. This is due to the fact that the system optimizes applications and creates new cache files. The process can last from 5 to 15 minutes. Do not panic and do not try to force reboot the device if you see the loading logo longer than usual.
Possible problems and ways to solve them
Even with careful preparation, unforeseen situations may arise. One of the most common problems is โsoft brickโ, when the phone turns on but constantly reboots or gets stuck on the logo. In most cases, this is solved by entering recovery again and performing a hard reset (Format Data), and then reinstalling the firmware.
Another common problem is VoLTE or Wi-Fi not working. This often happens when moving between different versions of the base firmware (base). The solution is to flash the current image of the modem (Modem.img) and bootloader (Bootloader.img) from the stock firmware for your region via Fastboot mode.
If the device does not turn on at all and does not respond to buttons (Hard Brick), you will need to use specialized utilities to restore the bootloader. For Qualcomm this is QPST and EDL mode, for MediaTek - SP Flash Tool. These tools allow you to write images directly into memory, bypassing the bootloader, but require signed firmware files.
โ ๏ธ Attention: Interfaces and firmware methods are constantly changing. What worked on Android 10 may not work on Android 14 due to the introduction of dynamic partitions and new verification schemes. Always check the instructions (README) in the topic of the specific firmware before starting work.
It is also worth mentioning the problem with banking applications. After obtaining root access and installing custom firmware, Google Play Protect services may mark the device as unsafe. To bypass this limitation, you need to set up an exception list in the application Magisk (Zygisk) and use root hiding modules, such as Shamiko or Universal SafetyNet Fix.
What to do if you forgot the pattern key after flashing the firmware?
If you made a backup in TWRP, restore it. If not, go into recovery, open the terminal (Advanced -> Terminal) and enter the command: rm /data/system/gesture.key (for a pattern key) or rm /data/system/password.key (for a PIN code), then reboot.
Frequently asked questions (FAQ)
Will I lose my warranty after obtaining root access?
In most cases, obtaining root access and unlocking the bootloader will automatically void the manufacturer's warranty. Although it is difficult to physically prove the fact of the firmware (you can return stock software), during serious repairs service centers check the status of the bootloader (Bootloader Status), and if it has the โUnlockedโ status, warranty repairs may be refused.
Is it possible to update over the air (OTA) on a rooted phone?
Standard An OTA update on a modified system usually does not install or results in an error when checking the integrity of the system. Moreover, an attempt to install an official update over a custom recovery may overwrite TWRP and remove root access, but the system may stop booting due to a version conflict. It is safer to download full firmware images and install them manually.
Is it safe to use banking applications with Root?
root access themselves do not steal data, but they reduce the level of security of the application sandbox. However, using modern tools like Magisk Hide (or its Zygisk equivalents), you can effectively hide the fact that you are rooted from most banking applications. The risk remains minimal if you do not install dubious apps with superuser rights.
How to return to the official firmware?
To return to stock, you need to download the full image of the official firmware for your model. Depending on the manufacturer, a different tool is used: Odin for Samsung, Mi Flash Tool for Xiaomi, SP Flash Tool for MediaTek or fastboot command for Google Pixel and other devices. The process includes unlocking the bootloader (if not already done), flashing all partitions and re-locking the bootloader (optional).
Does custom firmware speed up a smartphone?
Often yes. Official firmware contains a lot of pre-installed software and background processes that load the system. Custom builds (especially those based on AOSP, LineageOS, Pixel Experience) are usually cleaner and more optimized, which can give an increase in performance and battery life on older devices. However, on new flagships the difference may be less noticeable due to the high power of the hardware.