All about TWRP you need to know (and root)
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.
- Press the "Install" tab.
- Browse for the zip file you want to flash.
- Press on "Add more zip" that you need to flash (if needed).
- 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:
- Press on “Wipe” tab.
- Press on “Advanced Wipe”.
- Select the partitions: Dalvik Cache, System, Data & Cache.
- Swipe the blue button present on the bottom of the screen to initiate the wiping process.
Wiping before Installing a Custom Kernel:
- Press on “Wipe” tab.
- Press on “Advanced Wipe”.
- Select the partitions: Dalvik Cache & Cache.
- 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.
- Press the "Backup" Tab.
- Select the partition we want to backup (for ROM backup, we usually select Boot, System and Data).
- 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
- Press the "Restore" tab.
- Select the backup we want to restore.
- 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:
- Press the "Mount" tab.
- Select the partition we need to mount.
This tab contains all the settings for the recovery.
The following options come under this tab.
- Zip file signature verification (enables flashing, only if the zip file is signed properly).
- Use rm -rf instead of formatting.
- Skip MD5 generation during backup.
- Enable MD5 Verification of Backup Files (enables the restoring of backup files, only if MD5 sum verifies).
- Use 24-hour clock.
- Reverse navbar layout.
- Stimulate actions for theme testing.
- Restore Defaults tab.
It provides advanced options for TWRP. These options include:
- Copy Log to SD (Transfers the error log generated to the SD card).
- Fix permissions (Fixes the permissions of the System files to fix errors).
- File Manager (In-built recovery file manager to manage files on Internal and External memory).
- Terminal Command (In-built terminal emulator to execute commands).
- Reload Theme (Reloads the theme from TWRP/theme, necessary when applying a new theme).
- 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:
- Press on Reboot tab.
- Press the option where we want to boot.
- 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.