Tips and Tricks

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

2017-06-14 12:51 PM

8,078 186

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.

Install
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.

Wipe
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

Backup
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.

Restore
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.

Mount
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.


Settings
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.

Advance
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).

Reboot
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 Polls, Total 68 Users voted
Your User group have no permission to vote

Rate

Number of participants 5Experience +32 Collapse Reason
Naman Mishra + 10 Interesting!
Saurabh Rai + 1 Useful!
John Bosco + 1 Useful!
Mohammed Faisal + 10 Very nice!
R0user + 10 Very nice!

View Rating Log

2017-06-14 12:51 PM
Reply Report

Rookie Bunny

Gufran Alam | from Redmi Note 4

#1

Sir, my email isn't verified in Mi account, how it will be
2017-06-17 12:07 PM
Reply Report

Advanced Bunny

lvy3535 | from Redmi 3S

#2

nice information
2017-06-18 01:42 PM
Reply Report

Pro Bunny

kamalpahal | from Redmi Note 4

#3

great info
2017-06-18 01:42 PM
Reply Report

Advanced Bunny

Md.Sahir | from Redmi Note 4

#4

Thanks was very useful
2017-06-18 01:42 PM
Reply Report

Pro Bunny

Sankar rana | from Mi 4i

#5

great information
2017-06-18 01:44 PM
Reply Report

Advanced Bunny

R@j@ | from Redmi Note 4

#6

nice information
2017-06-18 01:48 PM
Reply Report
Thanks was very useful
2017-06-18 01:49 PM
Reply Report

Master Bunny

1660027672 | from Redmi 3S

#8

Great........
2017-06-18 01:49 PM
Reply Report

Master Bunny

Bubul | from Redmi Note 3

#9

I love biriyani
2017-06-18 01:52 PM
Reply Report

Pro Bunny

Prem | from Redmi Note 4

#10

very good Information and explained in detail. thanks for your information
2017-06-18 02:02 PM
Reply Report
12345678910... 19
2016 Diwali with Mi
Lucky Draw No.
Mi Explorers
3 Days in a row
7 Days in a row
21 Days in a row
40 Days in a row
Copyright@2010-2016 Xiaomi.com, All Rights Reserved

Quick Reply To Top Return to the list