Error 7 when installing custom firmware. Installation aborted during firmware - what to do. Algorithm for working with TWRP for Xiaomi devices

Error 7 when flashing through recovery (TWRP, CWM Recovery). Decided to install custom firmware on your Android smartphone or tablet, entered custom TWRP Recovery, but received error 7 during installation? Don't despair to fix this problem pretty simple.

Many beginners can be discouraged by any steps in installing custom firmware, especially if this procedure is performed for the first time. One of the major obstacles during the installation of the firmware can be error 7 in TWRP Recovery. The seriousness of this error is that it does not allow you to install custom firmware on the device at all and all your preparation will go down the drain. But it turns out that given error 7 in recovery is quite easy to fix without resorting to lengthy actions! Today's article is about how to get rid of this problem!

Where did error 7 come from?

This error can occur in two cases:

  1. If you try to install firmware not from your device, this often happens when under the same name of a smartphone or tablet there can be many models with slight differences for certain markets (for example, the LG G2 smartphone has models VS980, LS980, D800, D802, F320K). Make sure that the firmware is designed specifically for your device!
  2. The firmware installation script does not include the model name of your Android smartphone or tablet.

How to fix Error 7 when flashing in Recovery?

Option 1 (action 1)

If you have already read how error 7 could have occurred, then your very first action will be to check that you really downloaded the firmware for your smartphone or tablet model (check the name and version).

If you notice that you downloaded the wrong firmware, then download for your device. Problem solved! If this is not the case and the firmware is correct, then proceed to the second step.

Option 2 (action 2)

1. Install Notepad++
2. Open the firmware and follow the pathMETA-INF\com\google\android\
3. Extract the file updater-script

4. Delete at the beginning of the installation script the lines starting withassert

Decided to install custom firmware on your Android smartphone or tablet, entered custom TWRP Recovery, but received error 7 during installation? Do not despair, fixing this problem is quite simple.

Many beginners may be discouraged by any of the steps in the installation. custom firmware, especially if this procedure is performed for the first time. One of the major obstacles during the installation of the firmware can be error 7 in TWRP Recovery. The seriousness of this error is that it does not allow you to install custom firmware on the device at all and all your preparation will go down the drain. But it turns out that this error 7 in recovery is quite easy to fix without resorting to lengthy actions! Today's article is about how to get rid of this problem!

Where did error 7 come from?

This error can occur in two cases:

  1. If you try install firmware not from your device, this often occurs when under the same name of a smartphone or tablet there can be many models with slight differences for certain markets (for example, the LG G2 smartphone has models VS980, LS980, D800, D802, F320K). Make sure that the firmware is designed specifically for your device!
  2. The firmware installation script does not include the model name of your Android smartphone or tablet.

How to fix Error 7 when flashing in Recovery?

Option 1 (action 1)

If you have already read how error 7 could have occurred, then your very first action will be to check that you really downloaded the firmware for your smartphone or tablet model (check the name and version).

If you notice that you downloaded the wrong firmware, then download for your device. Problem solved! If this is not the case and the firmware is correct, then proceed to the second step.

Gadgets on the Android platform provide users with almost limitless possibilities. Today, it is one of the most popular operating systems, occupying a leading position in the world. To protect inexperienced users from performing potentially dangerous actions, Android has several powerful protection mechanisms. For example, in order to flash a device with custom firmware, you need to bypass them all. If you do not do this, an error message will appear in the process and the procedure will abort. So, what to do if the inscription " Installation aborted» when flashing the phone.

What is causing the crash?

Being one of the mechanisms to protect the device from interference by inexperienced users, the “installation aborted” message protects the device. After all, incorrect actions during flashing or the use of inappropriate software will turn the gadget into a “brick”. It is not easy to get him out of this state. Often they encounter a problem with custom (unofficial) firmware, because with official update there are no such problems, and it is performed in the normal mode of the phone.

  1. Firmware (update.zip). It must fit exactly under your phone model, otherwise problems cannot be avoided.
  2. Change Recovery to custom (unofficial). Consider installing CWM (Clockworkmod).

This is what the minimum set of components looks like. Depending on the firmware method, the number of required elements increases.

How to fix installation aborted?

Please note that all procedures are performed at your own risk. Also, devices with unofficial firmware and modified Recovery do not apply warranty service. Do not forget that, in addition to installing from the phone's memory, there are different ways firmware, for example, through the Windows console. Installing firmware from the root of the memory card - procedure:

  1. Download the firmware and copy it to the root of the phone.
  2. Reboot your phone and enter the mode Recovery.
  3. Clean up cache and system files ( wipe cache and wipe user data).
  4. Activate the firmware process.
  5. Wait for completion and reboot the device.

In some cases, Xiaomi devices start to crash, glitch, or even some of the main functions fail, which makes it impossible to use them normally. To eliminate any problems cardinal, but at the same time effective way, you can always reflash the device. In the article we will talk about how firmware is made through TWRP and how this way better than alternatives to it (with detailed instruction for implementation).

TWRP and what it is "eaten" with

Initially, it is worth understanding what TWRP is, and then talking about how to install the desired firmware using it. In fact, everything is quite simple if you read the decoding of this abbreviation: TeamWin recovery. In fact, this is an unofficial recovery that can replace the standard software of any smartphone running on the Android platform. TWRP is also called custom and most users who have dealt with it and with standard recovery believe that TWRP is more efficient, functional and easy to use, besides it allows you to install kernels, modems and other system components of the firmware in addition to custom firmware .

Further details will be provided for TWRP recovery instructions with which you can install the firmware on any device from Xiaomi (the instruction has general form, because the system files for different models often differ).

It should be said right away that in order to install custom firmware, it is recommended to delete all data from the phone, which means that you need to make them for subsequent recovery on a device with a clean system. Also important is the smartphone (bootloader). About how we have already been mentioned in one of the articles, and therefore we will immediately move on to information on how to reflash a device using TWRP with our own hands.

Algorithm for working with TWRP for Xiaomi devices

So, when TWRP is already installed on the Xiaomi device, and, of course, the bootloader is also unlocked, you can proceed with the procedure. It is also important to have a firmware file in .zip format, which for each specific device downloaded on the official website of the manufacturer or on thematic forums, if the user liked the unofficial assembly more.

The firmware is installed via TWRP recovery as follows:

  1. The smartphone reboots with the entrance to TWRP recovery mode. To do this, you need to turn it off, and then start it by holding the volume rocker in the up position and the smartphone’s power button. The result of clamping this combination will be the inscription "recovery" on the screen and, as a result, entering the desired menu.

  1. Now you need to reset all data except for SD and OTG. To do this, go to the Wipe - Advanced Wipe sections and check the following items: Dalvik Cache, System, Data, Internal Storage, Cache. The device will be completely cleaned!

Data reset

  1. Then press back, select Reboot recovery and confirm the action (usually you need to stretch the switch across the screen to the right).
  2. The firmware file must first be placed on the device.

It is recommended to place the .zip file on an SD|OTG memory card, because in this case the system information on the device will take up much less space, but not less than 200 megabytes. Similarly, it is worth placing backups created via TWRP .

  1. If a required files are loaded and all the previous steps are completed correctly, then you can click "Install" and confirm the action (also according to the standard, swipe to the right). The firmware procedure may not be displayed on the screen in any way: you just need to wait a long time.

  1. When the firmware via TWRP is completed, you need to select the Wipe cache / dalvik partition, and then Reboot System.

  1. Successful completion of the procedure will lead to the fact that during the first reboot, the three dots under the manufacturer's logo (Xiaomi) will “wink” for about 10 minutes, and then the device will start.

Decryption and troubleshooting TWRP errors

Often, when working with TWRP, users experience various errors. All of them are summarized in the table below and for each error a solution is proposed.

Error codeCauseselimination
error 6The updater-script file in the firmware archive was created in the wrong format.Need to open specified file through the standard "Notepad" or "NotePad ++", change its format to Unix and resave.
error 7The firmware was chosen incorrectly and does not match the device on which the installation should be performed.1. Download correct file firmware from the official site. It is important to check the device version, because, for example, Xiaomi Redmi Note 3 has a Pro modification, which makes the firmware from the first device incompatible with the second.

2. If the firmware is exactly correct, then you need to open the updater-script file in edit mode and delete the first lines in it with the list of devices for which this firmware is intended.

error 0The archive with the firmware is missing one of the files.You need to reload the archive or add the necessary files.
Error 255The file updater-binary is inappropriate.By analogy with the previous paragraph: you need to replace the specified file.

Outcome

After completing the firmware procedure, you can begin to change the settings of your smartphone. It is worth being more careful about the device settings, since most of the problems that lead to the need for firmware arise precisely because of the incorrect operation of the phone.

After setting up the firmware and installing only the most desired programs, we advise you to do full backup firmware, so you can always restore your smartphone.