In order to fulfill the basic functions of our service, the user hereby agrees to allow Xiaomi to collect, process and use personal information which shall include but not be limited to written threads, pictures, comments, replies in the Mi Community, and relevant data types listed in Xiaomi's Private Policy. By selecting "Agree", you agree to Xiaomi's Private Policy and Content Policy .

Tips & Tricks

Tech class

[Tutorial] [Device Team] [Tech Class] Chapter 16: All About TWRP

2017-06-14 03:21:49
13148 202

Greetings Mi Fans,
Hope you are having a good time in Mi Community. In the previous Tech Class thread, we learnt about CPU Cores. In this thread, we are going to know more about TWRP and how it works.
Let's get started

What is Recovery?
A recovery refers to a dedicated, bootable partition that has the recovery partition installed. It is possible to boot into this partition by the combination of key presses and access the files on our phones without booting in Android OS.
Recovery can be divided into two parts - Stock Recovery and Custom Recovery.
Stock Recovery is pretty much limited to its main purpose is to delete all or some user data and to perform system updates manually with signed and verified update packages.
Custom Recovery has been coded to allow for backup and restore functions, selective data deletion so that we don't have to wipe everything and modified to apply updates which aren't digitally signed by official sources.
Click here to know more about it.

What is TWRP Recovery?

Team Win Recovery Project (TWRP) is an open source custom based recovery for Android Devices, initiated in 2011 with full touch UI. This recovery brought a new trend of touch-based recoveries. It adds customisation support and enormous other amazing features to the AOSP recovery code which makes it one of the best Android Custom Recovery till date.

Why Choose TWRP Over The Others?
As mentioned above, TWRP was the first to bring the concept of touch-based UI, which in turns defines its uniqueness. Since the very beginning, this recovery has evolved more than any other recoveries available with massive changes in its UI.
Now, let's explore the features of TWRP Recovery.

Main Menu
As soon as we boot into TWRP recovery of our Android Device, we will see the following menu, known as the Main Menu.

The main menu consists of 8 tabs (Install, Wipe, Backup, Restore, Mount, Settings, Advanced and Reboot). Each tab has its own sub-tabs/options. Let us now begin exploring them all one by one.

The install tab is simple and helps us flashing ROMs/Kernels/Mods etc. In TWRP, we can add queue of zips we want to flash in their respective order.

Let's see how this work.
1. Press the "Install" tab.
2. Browse for the zip file you want to flash.
3. Press on "Add more zip" that you need to flash (if needed).
4. Swipe the blue button on the bottom of the screen to start flashing process.

This tab helps us wiping the partition of our Android Device which includes System, Dalvik Cache, Data, Internal Storage and USB-OTG (if attached). Wiping a partition is very much important before flashing any zip file. So it is necessary for us to know what we are going to do.

Here, we are going to learn basic steps of wiping before flashing ROMs/Kernels. These steps are Universal for every ROM and kernel unless the developer mentions specific steps for flashing it.

Wiping before Installing a Custom ROM:
1. Press on “Wipe” tab.
2. Press on “Advanced Wipe”.
3. Select the partitions: Dalvik Cache, System, Data & Cache.
4. Swipe the blue button present on the bottom of the screen to initiate the wiping process.

Wiping before Installing a Custom Kernel:
1. Press on “Wipe” tab.
2. Press on “Advanced Wipe”.
3. Select the partitions: Dalvik Cache & Cache.
4. Swipe the blue button present on the bottom of the screen to initiate the wiping process

The backup option has a very important and useful function. Sometimes, the situation might arise when accidentally flash wrong/corrupted files and we find ourselves stuck. So the backup option comes handy here. This option is also known as "Nandroid Backup".
TWRP provides unique privileges for backup option too. We can simply select the partition that we want to backup like "Boot", "System", "Data" etc.

To backup the current ROM, we simply do the following steps.
1. Press the "Backup" Tab.
2. Select the partition we want to backup (for ROM backup, we usually select Boot, System and Data).
3. Swipe the blue button to initiate the backup process.

The restore option restores the backup we have taken. This option allows us to delete the previous backup as well.
Restoring a backup is quite easy
1. Press the "Restore" tab.
2. Select the backup we want to restore.
3. Swipe the blue button to start restoring process.

It is essential to mount partition while flashing some specific files. This includes: System, Data, Cache, Internal Storage, Sd Card and USB-OTG (if available).

To mount a partition:
1. Press the "Mount" tab.
2. Select the partition we need to mount.

This tab contains all the settings for the recovery.

The following options come under this tab.
1. Zip file signature verification (enables flashing, only if the zip file is signed properly).
2. Use rm -rf instead of formatting.
3. Skip MD5 generation during backup.
4. Enable MD5 Verification of Backup Files (enables the restoring of backup files, only if MD5 sum verifies).
5. Use 24-hour clock.
6. Reverse navbar layout.
7. Stimulate actions for theme testing.
8. Restore Defaults tab.

It provides advanced options for TWRP. These options include:
1. Copy Log to SD (Transfers the error log generated to the SD card).
2. Fix permissions (Fixes the permissions of the System files to fix errors).
3. File Manager (In-built recovery file manager to manage files on Internal and External memory).
4. Terminal Command (In-built terminal emulator to execute commands).
5. Reload Theme (Reloads the theme from TWRP/theme, necessary when applying a new theme).
6. ADB sideload (Initiates sideload over ADB to flash zips).

This tab lists the ways to reboot the device in various locations. We can perform the following actions from the reboot tab.
-System (boots the device normally to the installed OS).
-Power Off (switches off the device completely).
-Recovery (reboots into the present recovery).
-Bootloader (Reboots the device into bootloader or fastboot mode).

To Reboot, we need to perform following steps:
1. Press on Reboot tab.
2. Press the option where we want to boot.
3. Swipe the blue button to initiate rebooting.

That's all about TWRP that we all need to know and understand. Every function that this recovery offers, is unique, which in turn makes it most preferred custom recovery of all time. Hope you all enjoyed the thread.

We are not responsible for any damage to your device. Please perform this method at your own risk.

Credits: Google and tech blogs.
Special Thanks to @ansarifauwaz @paramgagan and fellow DT members.

Previous Tech Class Lessons

Was This Thread Helpful?

Single Poll thread Total 106 Users Voted
87.74% (93)
12.26% (13)


Number of participants 7 Experience +34 Pack Reason

View Rating Log

2017-06-14 03:21:49
Favorites132 RateRate
Tech class
It is a platform for all the Community Users to learn about New Technology and also to get the Knowledge from our Community Device Team.
54 Article Description     901 Subscribers

Rookie Bunny

Gufran Alam | from Redmi Note 4


Sir, my email isn't verified in Mi account, how it will be
2017-06-17 02:37:29

Semi Pro Bunny

lvy3535 | from Redmi 3S


nice information
2017-06-18 04:12:36

Master Bunny

kamalpahal | from Redmi Note 4


great info
2017-06-18 04:12:51

Semi Pro Bunny

Md.Sahir | from Redmi Note 4


Thanks was very useful
2017-06-18 04:12:53

Master Bunny

Sankar rana | from Mi 4i


great information
2017-06-18 04:14:05

Advanced Bunny

R@j@ | from Redmi Note 4


nice information
2017-06-18 04:18:27
Thanks was very useful
2017-06-18 04:19:57

Tech - Moderator
Mi FC Trivandrum - President

Master Bunny

1660027672 | from Redmi 3S


2017-06-18 04:19:58

Master Bunny

Bubul | from Redmi Note 3


I love biriyani
2017-06-18 04:22:55

Grandmaster Bunny

Prem | from Redmi Note 4


very good Information and explained in detail. thanks for your information
2017-06-18 04:32:27
please sign in to reply.
Sign In Sign Up


Grandmaster Bunny

2016 Diwali with Mi
3 Days Check-In
7 Days Check-In
21 Days Check-In
40 Days Check-In
70 Days Check-In
100 Days Check-In
Lucky Draw No.
Mi Explorers
July-100 replies in a month
Aug-100 replies in a month
Sep-100 replies in a month
Oct-100 replies in a month
Nov-100 replies in a month
Dec-100 replies in a month
1st Anniversary
71st Independence Day
My Poster My Life
MIUI 7th Anniversary
2 million registered members
Newbie Member
New Home Medal
Device Team Member
2018 New Year Medal
2017 Xiaomi Annual Bill
MIUI Subscriber
MIUI 8th Anniversary
5 Million Registered Users
Ringtones Mania
10 Million Downloads
Throwback With Mi 2018
Xiaomi's 9th Birthday

Read moreGet new
Copyright©2010-2020, All Rights Reserved
Content Policy
Quick Reply To Top Return to the list