How To Install A Custom Recovery To An Android Phone / Device
A custom recovery lets you perform several advanced operations on your Android device and we have covered it before in some of our guides but now, we will be detailing several available methods that you can use to flash a custom recovery to your phone. These will include the automated ROM Manager method for ClockworkMod, the automaded GooManager method for TWRP, the fastboot method for devices with unlocked bootloaders, and the flash_image method for times when other methods just aren’t working.
If you want to learn more about what a custom recovery does, check out our ClockworkMod Recovery guide.
While there may be several custom recoveries available for most Android devices, the most popular ones available today are ClockworkMod Recovery (also called CWM) and TWRP (TeamWin Recovery Project). Apart from the ROM Manager and GooManager methods that are specific to these two recoveries respectively, both the other methods are universal and should work for any recovery as long as it’s compatible with your device.
There are primarily three standard methods of installing a custom recovery to your phone.
- Using ROM Manager or GooManager
- Using Fastboot
- Using flash_image
The ROM Manager or GooManager methods are the easiest for installing ClockworkMod or TWRP respectively. However, both these methods require root access so if that’s the path you’re choosing, check out our guide on how to root your Android phone, if you haven’t done so already.
If you are looking to install any custom recovery directly from command line, the fastboot method is the one for you. A major benefit of this method is that it does not even require you to root your device first. Do note however that for this method to work, you must have an unlocked bootloader.
The flash_image method also allows you to install any custom recovery, and that too from your device itself. It will require root access, a terminal emulator app, and the flash_image binary, but it frees you from the hassle of using your PC to manually install the recovery with the fastboot method.
For both the fastboot and the flash_image methods, you will require the custom recovery image. You can get the latest version of ClockworkMod recovery image and TWRP recovery image for your device from the ClockworkMod download page and the TWRP download page respectively.
The following scenarios will require alternative installation methods:
- Your device does not have a separate recovery partition and its recovery comes built into the kernel (boot partition) itself. Samsung Galaxy devices and many Sony devices come under this category, and require flashing a kernel that includes the recovery using ODIN or FlashTool.
- Your device isn’t a native Android device but Android has been ported to run on it and it therefore requires a specialized method for installing ClockworkMod recovery. The HTC HD2 and the HP TouchPad are good examples of this.
While it is not possible for us to have guides covering all the recovery installation methods for every single device out there, the standard methods provided in this guide should work for most devices. Furthermore, see these guides instead for some specific devices:
Automated Methods
How to Install ClockworkMod
When it comes to custom recoveries, ClockwordMod (CWM) is the most widely used system. The only other thing that I can think of that is as widely used as this, is my sister, lol, sorry sis I’ve seen your diary. A custom recovery can perform several different tasks that will help you in your Android developer adventures. So if you’re wanting to use CWM as your custom recovery, this guide will help you get everything setup properly.
Install CWM Recovery
There are two different ways to get your recovery installed. For those of you that are comfortable with with using ADB, this method is for you. Before we get into it, you’ll need ADB and Fastboot drivers installed.
Install ADB and Fastboot drivers |
---|
To get everything setup properly, you can use this very simple tool created by XDA member Snoop05. Download an install using the guide fro in this XDA thread. |
Enable USB Debugging |
---|
To enable USB debugging, navigate to Settings > Developer Options > USB Debugging |
Install VIA ADB
- Open the folder where your CWM Recovery .img file is saved.
- Then open a CMD window inside that folder. To do that, Shift + Right click on any empty white space inside the folder and then select Open command window here.
- Connect your Android device to the PC. Type the following into the command window to boot your device into bootloader/fastboot mode:
adb reboot bootloader
└ If your asks for permission to “Allow USB debugging”, tap OK. - Once your device boots into bootloader mode, type this into the command line.
fastboot flash recovery twrp-2.8.x.x-xxx.img
└ Here modify CWM.img with the name of your CWM recovery .img file. - Once CWM is successfully flashed on your device, type this final command to reboot your device.
fastboot reboot
Install VIA ROM Manager
A simple way of doing all of this is to install the ROM Manager app from the Play store. If your device is rooted, you should be able to flash the custom recovery right from your phone. No need to plug it into the computer or worry about drivers or anything like that.
CWM Features
Reboot System
This one is pretty self explanatory. Reboot back into your system from the recovery
Install zip from SD card
This is a common feature used by flashaholics. Transfer your ROMs to your SD card from your computer and flash them with ease. Very easy, just like my sister (R.I.P.).
Wipe data/factory reset
Wipe your phone clean and get a fresh start. If you get stuck in a bootloop or something, this is usually your savior.
Wipe cache partition
Your cached data will stack up fast these days. Everytime I check my cache I’ve got about two or three GB being used up. Clear all of that up through your recovery.
Backup and restore
You can do full system backups to you local storage or your SD card. You can then restore from those backups if anything goes wrong.
n essential tool for anybody that loves to modify their Android device is a good custom recovery. TWRP has been around since the invention of the wheel back in 1996 and has been providing modders with all kinds of great tools. If you’re wondering how to get TWRP on your device this guide should help you with that. I’ll also go over all of the basic functions of the recovery and what they can be used for.
Install TWRP
Let’s start by downloading TWRP for your device. You can find a list of devices that are currently supported by following the link.
TWRP Download
Now we will go through a couple different methods that you can use to install the TWRP recovery. Before we get started, go ahead and enable USB Debugging on your device.
Install ADB and Fastboot drivers |
---|
To get everything setup properly, you can use this very simple tool created by XDA member Snoop05. Download an install using the guide fro in this XDA thread. |
Enable USB Debugging |
---|
To enable USB debugging, navigate to Settings > Developer Options > USB Debugging |
Install via ADB
- Open the folder where your TWRP Recovery .img file is saved.
- Then open a CMD window inside that folder. To do that, Shift + Right click on any empty white space inside the folder and then select Open command window here.
- Connect your Android device to the PC. Type the following into the command window to boot your device into bootloader/fastboot mode:
adb reboot bootloader
└ If your asks for permission to “Allow USB debugging”, tap OK. - Once your device boots into bootloader mode, type this into the command line.
fastboot flash recovery twrp-2.8.x.x-xxx.img
└ Here modify twrp.img with the name of your TWRP recovery .img file. - Once TWRP is successfully flashed on your device, type this final command to reboot your device.
fastboot reboot
Install VIA TWRP Manager
TWRP Manager is a root application that will allow you to backup, restore and install your recovery. If your device is compatible with this option, then it should be a little bit easier than the previous method.
TWRP Functions
NANDroid Backup
Perform full system backups to hold onto just in case you screw something up on your phone. It’s always a good idea to backup before you flash any kind of ROM.
Restoring an Existing Backup
If you flash a ROM that you don’t like, or you’re experiencing some kind of bug in your software, restore from a known good backup.
Flash ZIP Files
If you’re installing a mod, flashing Gapps, or flashing a ROM, you’ll need the ability to flash ZIP files through your recovery.
Factory Reset
Sometimes you get stuck and you’re not able to boot into the Android OS. When this happens, you can try to boot into TWRP and perform a factory reset.
Fix Permissions
When you’re flashing ROMs, sometimes your system can forget which permissions were granted to different apps. Fixing permissions will set everything back to the way you had them.
Now you should have TWRP and running with a good idea of the different tasks you can perform. Cool dude.
Comments
Post a Comment