How to flash a custom recovery (like CWM or TWRP) on Android

How to flash a custom recovery (like CWM or TWRP) on Android
If you have decided to take a trip to the land of custom ROMs and Android hacking in general, you’d need to take one first step - flash (install) a custom recovery. In this article, we explain what exactly is a ‘custom recovery’, how you install it, and what are some popular solutions.

Let’s start with the fact that every phone ships with stock recovery software. Stock recoveries vary slightly between phone makers, but they are identical in their essence - they allow you to manually flash official updates and clear your phone’s cache. Sounds limited? It is, and that’s why custom recoveries exist.

Custom recoveries that we’ll flash here replace the limited stock ones, adding all sorts of functionality to your phone. Flashing a custom recovery is often a key part of the rooting process, but that is not its only use. Here is a short summary of all that you can do with a custom recovery:

  • Create and restore a backup image - A backup image makes a copy of all your phone settings, application and app data. Such a backup copy is crucial if your hacking experiments fail - in such cases, you can use the created backup image to restore your phone to a fully functional earlier state without losing any data.

  • Flash custom ROMs - custom ROMs can completely overhaul the looks and functionality of an Android smartphone, and usually they are the main reason for first flashing a custom recovery.

Important: You have to unlock the bootloader on your phone before flashing a custom recovery! Here’s how to do it on Motorola phones.

How to flash a custom recovery

Now that you know what a custom recovery is and what it does, it’s time to go through some popular names of recovery software. ClockworkMod (shortened to CWM) and Team Win’s Recovery Project (commonly referred to as TWRP) are the two most popular solutions, and while the two differ slightly, they both have the essential features you need.

  • USB drivers for your phone must be installed on a computer. You can grab them from the official website of the company that made the phone. Get the latest:
Samsung Android USB drivers here
HTC Android USB drivers (included in HTC Sync) here
LG Android USB drivers here (go to “Software updates” > Select your phone > Click on “Install USB Drivers”)
Sony Android USB drivers here
Motorola Android USB drivers (included in Motorola Device Manager) here

  • Download the latest version of either CWM or TWRP (we prefer CWM, but both work equally well). For CWM go to this website, find your device, and download the image for it:
Download CWM here
For TWRP go to this website, click on “Get TWRP for your device” and type you device's name to download the image for it:

  • Your phone must be connected to your computer via USB. If you get stuck at some point in the tutorial, a common fix is to try disconnecting the phone and re-connecting it again.

Note: You can use this how-to tutorial guide to install custom recovery on phones like the Samsung Galaxy S5, Galaxy S4, Galaxy S III, Galaxy Note 3, Galaxy Note 2, HTC One (M8), LG G3, LG G2, Moto X, Moto G, Sony Xperia Z2, Xperia Z1, etc.

Story timeline



1. XperiaFanZone

Posts: 2278; Member since: Sep 21, 2012

Wait for it....."The beauty of Android". ;) Sorry, that was terrible. If only there was a delete button.

2. PapaSmurf

Posts: 10457; Member since: May 14, 2012

I was going to show you this article since you want to try rooting, but you beat me here. Did you actually do it or no?

3. XperiaFanZone

Posts: 2278; Member since: Sep 21, 2012

No I needed to downgrade the kernel to root without unlocking the bootloader - not sure if downgrading such would wipe everything. :s Just want to save app data from my old phone to use for the new one. Lesson learnt - when buying a new phone, root it ASAP!

4. XperiaFanZone

Posts: 2278; Member since: Sep 21, 2012

Cont.: which is what I have done with the new one.

7. XperiaFanZone

Posts: 2278; Member since: Sep 21, 2012

Anyways put a link up of the srticle.

10. SuperAndroidEvo

Posts: 4888; Member since: Apr 15, 2011

It's never too late to root your phone. The reason you want to root your phone is so you can have FULL control. Once you root you can always put the most up to date ROMs & Kernels. Just back up you phone to your PC just so you don't lose anything important & follow directions & you will be fine. The only time you could ever f*ck something up is if you deviate or just not follow directions. Trust me I have been rooting EVERY phone I have ever owned that has been Android that is. Root is the only WAY to go & the reason why to me Android is the CLEAR winner in the mobile world. My rooted Samsung Galaxy Note 3 is by FAR the most epic phone I have ever had the pleasure to root & install a custom ROM. TouchWiz is pure garbage. I have an AOSP ROM BUT with all the core Samsung Galaxy Note 3 functionality & it's truly a pleasure to use...

11. XperiaFanZone

Posts: 2278; Member since: Sep 21, 2012

I just want my app DATA backed up from my non-rooted phone - in any way, root or no root.

13. SuperAndroidEvo

Posts: 4888; Member since: Apr 15, 2011

15. XperiaFanZone

Posts: 2278; Member since: Sep 21, 2012

I've seen that before but it doesn't work on Sony (and Moto) phones - Sony's disabled something on their phones.

16. SuperAndroidEvo

Posts: 4888; Member since: Apr 15, 2011

??? That is very interesting... All I have to say is WOW. Looks like the only way you will be able to achieve what you want is through root. Better get going on your root adventure. It will open your eyes to how locked down you really are when running STOCK...

51. jay-t

Posts: 1; Member since: May 08, 2015

hey anyone here can help me i have a motorola droid maxx was trying to root it in its stock on a black screen anyone here know how to recover it for me

5. antonioli

Posts: 200; Member since: Sep 08, 2013

I made it for the first time. The options are more interesting by far.

6. kaikuheadhunterz

Posts: 1157; Member since: Jul 18, 2013

You don't actually need the whole Android SDK, just the necessary files

8. Victor.H

Posts: 1076; Member since: May 27, 2011

True. We recommend getting the whole Android SDK, though, in case you want to continue with development further on.

9. GTX_Ti unregistered

May be Mini-SDK from XDA.

12. tedkord

Posts: 17413; Member since: Jun 17, 2009

It's been a while, but if you're already rooted, can't you just install ROM Manager on your phone and use it to install CWM over your recovery partition? Or GooManager if you prefer TWRP? Much easier. Just make sure it supports your device.

18. networkdood

Posts: 6330; Member since: Mar 31, 2010 can..that is how I do it...twrp is great.

14. AfterShock

Posts: 4147; Member since: Nov 02, 2012

I am thankful, PA didn't suggest a took kit.

17. water99211 unregistered

Phone Arena, you guys should do a article explaining how to combine your micro sd card with your phones memory to putt apps on it for rooted phones :D

19. networkdood

Posts: 6330; Member since: Mar 31, 2010

Some devices have toolkits on XDA that can make this process even long as you have the drivers for tour computer...

20. headaxe

Posts: 2; Member since: Apr 26, 2014

Hi, what do you mean on step 4? I can't understand where i have to put the FILE.IMG (Cwm recovery image).

21. headaxe

Posts: 2; Member since: Apr 26, 2014

By the way (also in the step 4) my phone doesn't appears on the cmd line! What can I do?

22. srujan21

Posts: 2; Member since: Nov 28, 2012

How to replace one with another ?

23. HC1Gunner unregistered

Everything goes great until step 3. In the terminal enter the following: adb devices, my device is listed Next, type in: adb reboot bootloader Wait for the phone to reboot in bootloader mode. Which results in the following below Phone shows green Android character and says...Downloading... do not turn off target!! at top left it says... ODIN mode Product name: SGH-I537 Current binary: Samsung official System status: Official KNOX Kernel Lock: 0x0 KNOX warranty void: 0x0 CSB-CONFIG-LSB: 0x30 Write Protect: Enable (text grayed out) eMMC Burst mode Enable (text grayed out) 4. Now, go to the platform-tools directory (a sub-directory of the Android SDK) In the command line enter the following: fastboot devices Make sure that your device is listed. Nothing appears to be listed.. C:\Android_SDK\PC_tools\sdk\platform-tools>fastboo​t devices C:\Android_SDK\PC_tools\sdk\platform-tools>

29. Mfa901

Posts: 291; Member since: Jul 14, 2012

hey....go to XDA...if you will use this article...than surely you are going to messup your phone.....

24. IlyasMiah

Posts: 1; Member since: Jul 04, 2014

On step 3, after typing in 'adb reboot bootloader' it restarts, but doesn't go into bootloader mode.


Posts: 1; Member since: Aug 21, 2014

stuck on help please???

26. smmytmc unregistered

How do I get from fastboot screen to recovery screen without shutting down phone?

39. Fazz1977

Posts: 153; Member since: Oct 15, 2014

You don't.

27. Alexboey

Posts: 1; Member since: Oct 10, 2014

Please my case is now diffrent I accidentally flashed everything now even there is no android os nor the CWM the device is off and cannot boot to anything. Please how do I install the CWM back to the phone so that I can Intsall the OS also. I have just remained with an empty device.HELP me out PLEASE.

Latest Stories

This copy is for your personal, non-commercial use only. You can order presentation-ready copies for distribution to your colleagues, clients or customers at or use the Reprints & Permissions tool that appears at the bottom of each web page. Visit for samples and additional information.