Checking the zip signature. TWRP Recovery - instructions for use. Installing TWRP 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; fixing this problem is quite simple.

Many beginners may be discouraged by any steps in installing custom firmware, especially if this procedure is performed for the first time. One of the serious obstacles during firmware installation 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 one name 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 firmware in Recovery?

Option 1 (action 1)

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

If you notice that you downloaded the wrong firmware, then download it 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)

Try to find more information on the Internet new version of custom Recovery and then install it on your device, and then try to install the firmware, which previously gave error 7.

Option 3 (action 3)

In previous articles we talked about CWM Recovery. In this article you will learn in detail what items there are and what the menus in TWRP recovery are responsible for.

Download TWRP

You can download custom recovery TWRP to your Android device from the official TeamWIN page - https://twrp.me/Devices/

You can install TWRP according to these instructions - Installing custom Recovery

Management in TWRP

The TWRP menu is controlled from the touch screen. Confirm actions using a swipe at the bottom of the screen.

Briefly about all the TWRP Recovery menus

The main TWRP interface looks something like this:

Let's look at each submenu

  • Install– Installation of various patches and firmware in ZIP archive format
  • Wipe– erasing (formatting) Android partitions and memory cards (details about WIPE or data reset)
  • Backup– creating backup copies of the system and user data
  • Restore– Android recovery from system backups and user data
  • Mount– connect or disconnect Android partitions
  • Settings– setting up TWRP Recovery
  • Advanced– additional or enhanced TWRP features
  • Reboot– reboot Android into different modes

More about TWRP

Now let's take a closer look at the capabilities of each submenu.

Install menu (install update.zip)

As mentioned above, the Install menu allows you to install patches or firmware. Clicking the button Install you get into the file manager on the memory card or internal memory with your folders and files:

In order to install the ZIP update, you need to click on it and a new menu will appear to confirm your intentions to install the archived update

In order to install the update you need to swipe from left to right

You may also notice that there are buttons in this menu:

Add More Zips- install any additional archive ZIP update

Clear Zip Queue- cancel previously selected ZIP updates

WIPE menu

This menu can perform various resets of various sections of Android. By default, wipe resets the partition. /data And /cache

To activate additional features, you must click the button Advanced Wipe

Read about how to do wipe correctly in the article - wipe Android.

Backup menu

In this menu you can make backup copies (slices) of the current state of Android. You can configure which partitions to backup, and also activate the ability to compress backups - enable compression and also add validation - skip MD5 generation during backup , which will allow, if the backup copy is created “broken,” in the future not to perform a recovery from such a copy.

Backups are stored along the path SdCard/TWRP/BACKUPS, they can be copied to a computer and, if a problem occurs, you can restore Android from the Restore menu.

Restore menu

Allows you to restore from previously created backups (created in the Backup menu of TWRP Recovery):

Mount menu

Allows you to mount or detach Android partitions - this is necessary for applying various patches (which indicate or do not indicate whether the partition needs to be mounted). Also in this section you can enable the ability to connect the device as a flash drive - Mount USB Storage

Settings menu

This menu combines all the settings in the various menus.

  • Checking the signature of ZIP updates
  • Formatting Partitions
  • Skip verification
  • Checking the verification of backup copies
  • Screen brightness, time zone selection and others
  • Interface language (from TWRP version 3)

The wide distribution of modified Android firmware, as well as various additional components that expand the capabilities of devices, became possible largely thanks to the emergence of custom recovery. One of the most convenient, popular and functional solutions among similar software today is TeamWin Recovery (TWRP). Below we will look in detail at how to flash a device via TWRP.

Let us remind you that any change in the software of Android devices in ways and methods not provided by the device manufacturer is a kind of hacking of the system, and therefore carries certain risks.

Important! Every user action with his own device, including following the instructions below, is carried out at his own risk. The user is solely responsible for possible negative consequences!

Before proceeding with the steps of the firmware procedure, it is strongly recommended to make a system backup and/or a backup copy of user data. You can learn how to carry out these procedures correctly from the article:

Before proceeding directly to the firmware through a modified recovery environment, the latter must be installed on the device. There are quite a large number of installation methods, the main and most effective of which are discussed below.

Method 1: Android application Official TWRP App


Method 2: For MTK devices - SP FlashTool

In cases where installing TWRP through the official TeamWin application is not feasible, you will have to use a Windows application to work with device memory partitions. Owners of devices built on the Mediatek processor can use the program SP FlashTool. How to install recovery using this solution is described in the article:

Method 3: For Samsung devices - Odin

Owners of devices manufactured by Samsung can also take full advantage of the modified recovery environment from the TeamWin team. To do this, you need to install TWRP recovery using the method described in the article:

Method 4: Installing TWRP via Fastboot

Another almost universal way to install TWRP is to flash the recovery image via Fastboot. The steps taken to install recovery using this method are described in detail at the link:

Firmware via TWRP

Despite the apparent simplicity of the steps described below, you need to remember that modified recovery is a powerful tool whose main purpose is to work with device memory sections, so you need to act carefully and thoughtfully.

In the examples described below, the microSD card of the Android device is used to store the files used, but TWRP also allows you to use the internal memory of the device and OTG for such purposes. The operations when using any of the solutions are similar.

Installing zip files

  1. We download the files that need to be flashed into the device. In most cases, these are firmware, additional components or patches in the format *.zip, but TWRP allows you to write to memory partitions and image files in the format *.img.
  2. We carefully read the information in the source where the files for the firmware were obtained. It is necessary to clearly and unambiguously clarify the purpose of the files, the consequences of their use, and possible risks.
  3. Among other things, the creators of modified software who have posted packages on the network can note the requirements for renaming the files of their solutions before installing the firmware. In general, firmware and add-ons distributed in the format *.zip There is NO NEED to unpack with an archiver! TWRP manipulates exactly this format.
  4. Copy the necessary files to the memory card. It is advisable to arrange everything in folders with short, clear names, which will avoid confusion in the future, and most importantly, accidental recording of the “wrong” data package. It is also not recommended to use Russian letters and spaces in the names of folders and files.

    To transfer information to a memory card, it is advisable to use a PC or laptop card reader, and not the device itself connected to the USB port. This way the process will happen much faster in many cases.

  5. We install the memory card into the device and enter TWRP recovery in any convenient way. A large number of Android devices use a combination of hardware keys on the device to log in "Volume-" + "Nutrition". With the device turned off, press the button "Volume-" and, while holding it, the key "Nutrition".
  6. In most cases, today users have access to TWRP versions with Russian language support. But in older versions of the recovery environment and unofficial recovery builds, Russification may be missing. For greater versatility in the use of instructions, the work in the English version of TWRP is demonstrated below, and the names of items and buttons in Russian are indicated in parentheses when describing the actions.
  7. Very often, firmware developers recommend performing the so-called “Wipe” before the installation procedure, i.e. cleaning, partitions "Cache" And "Data". This will delete all user data from the device, but avoids a wide range of software errors, as well as other problems.

    To perform the operation, press the button "Wipe"(“Cleaning”). In the menu that opens, move the special procedure unlocker "Swipe to Factory Reset"(“Swipe to confirm”) to the right.

    When the cleaning procedure is completed, the message "Succsessful"("Ready"). Press the button "Back"(“Back”), and then a button at the bottom right of the screen to return to the TWRP main menu.

  8. Everything is ready to start the firmware. Press the button "Install"("Installation").
  9. The file selection screen is displayed - an improvised “Explorer”. At the very top there is a button "Storage"(“Select Drive”), which allows you to switch between memory types.
  10. Select the storage into which the files planned for installation were copied. The list is as follows:
  • "Internal Storage"(“Device memory”) – internal storage of the device;
  • "External SD card"(“MicroSD”) – memory card;
  • "USB-OTG"— a USB storage device connected to the device via an OTG adapter.

Having decided, set the switch to the desired position and press the button "OK".

  • We find the file we need and tap on it. A screen opens with a warning about possible negative consequences, as well as an option "Zip file signature verification"(“Verifying Zip File Signature”). This item should be marked by placing a cross in the checkbox, which will avoid using “incorrect” or damaged files when writing to the device’s memory sections.

    Once all the parameters have been determined, you can proceed to the firmware. To start it, move the special procedure unlocker "Swipe to Confirm Flash"(“Swipe for firmware”) to the right.

  • Separately, it is worth noting the possibility of batch installation of zip files. This is a rather convenient feature that saves a lot of time. In order to install several files in turn, for example, firmware and then gapps, press the button "Add More Zips"(“Add more Zip”). This way you can flash up to 10 packages at the same time.
  • The procedure for writing files to the device’s memory will begin, accompanied by the appearance of inscriptions in the log field and the filling of the progress bar.
  • The completion of the installation procedure is indicated by the inscription "Succsesful"("Ready"). You can reboot into Android - button "Reboot System"(“Reboot into OS”), clean partitions – button "Wipe cache/dalvik"(“Clear cache/dalvik”) or continue working in TWRP – button "Home"("Home").
  • Installing img images


    Thus, using TWRP to flash Android devices is generally a simple procedure that does not require many steps. Success largely determines the user’s correct choice of files for firmware, as well as the level of understanding of the goals of the manipulations and their consequences.