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.
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
BackupThe 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
Chapter 1: Introduction to Smartphone Specifications
Chapter 3: All You Need To Know About Augmented Reality
Chapter 4: All You Need To Know About Charging Cycle
Chapter 5: All About Activity Tracker & Fitness Band
Chapter 6: Internet of Things & Mi Home
Chapter 7: Infrared Blaster
Chapter 8: CPU Architecture, CPU,GPU
Chapter 9: Megapixels and Photo Quality
Chapter 10: PDAF and its difference with CDAF
Chapter 11: All About Network Bands
Chapter 12: All About Rooting
Chapter 13: All about Kernel
Chapter 14: All you need to know about Wi-Fi!
Chapter 15: All About CPU Cores
Was This Thread Helpful?