Tips & Tricks

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

2017-06-14 02:21:49
10564 198

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 Poll thread Total 93 Users Voted
 
91.4% (85)
 
8.6% (8)
 
Submit

Rate

Number of participants 6 Experience +33 Pack Reason

View Rating Log

2017-06-14 02:21:49
Favorites124 RateRate

Bunny Novato

Gufran Alam | from Redmi Note 4

#1

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

Bunny Semi-pro

lvy3535 | from Redmi 3S

#2

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

Bunny Master

kamalpahal | from Redmi Note 4

#3

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

Bunny Semi-pro

Md.Sahir | from Redmi Note 4

#4

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

Bunny Pro

Sankar rana | from Mi 4i

#5

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

Bunny Avanzado

R@j@ | from Redmi Note 4

#6

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


Join Our Channel: https://goo.gl/A6dT58

Bunny Master

1660027672 | from Redmi 3S

#8

Great........
2017-06-18 03:19:58

Bunny Master

Bubul | from Redmi Note 3

#9

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

Bunny Master

Prem | from Redmi Note 4

#10

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

    1557

  • Threads

    21

  • Replies

    2617

  • Points

    11719

2016 Diwali with Mi
3 дня подряд
7 дней подряд
21 день подряд
40 дней подряд
70 дней подряд
100 дней подряд
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
1st Anniversary
Columnist
71st Independence Day
My Poster My Life
MIUI 7th Anniversary
2 million registered members
Новичок
Diwali
New Home Medal
Device Team Member

Mi Comm APP

Stay updated on Mi Products and MIUI

Copyright
Content Policty
Quick Reply To Top Return to the list