# How to install ClockworkMod Custom Recovery on the Amazon Fire TV

A custom recovery based on ClockworkMod has been released for the Amazon Fire TV by the very talented rbox. ClockworkMod recovery allows you to perform several advanced recovery, backup, restoration, installation and maintenance operations on your Fire TV that isn’t possible with the stock recovery. This is a landmark moment and a huge step towards the development of custom ROMs, kernels, themes, and more. Read on for the full guide to installing this custom recovery.

##### Update

11/3/2014 As of ClockworkMod version 6.0.5.1.4, it is now necessary to first unlock the Fire TV bootloader before installing ClockworkMod. The below guide has been updated accordingly.

Important: If you are setting up a new Fire TV, you should visit the Starters Guide if you haven’t done so yet. This is a very old and outdated guide. Do not follow this guide with a Fire OS 5 device or with a TWRP device.
1. Check the software version on your Fire TV by going to Settings > System > About. If your Fire TV is on version 51.1.0.2_user_510058520, 51.1.0.1_user_510055620, or 51.1.0_user_510047320 you do not need to downgrade, so skip to step 5. Otherwise, continue to step 2.
2. Download the Official Stock Software Package for version 51.1.0.2_user_510058520 from AFTVnews.com/software
4. Downgrading removes root, so you will now need to re-root your Fire TV.
(Note: If you still have the towelroot app installed on your Fire TV, launching it and clicking the “make it rain” button should be all you need to do.)
5. Follow my guide to unlock your Fire TV bootloader. You can ignore the “Important” part about downgrading and skip straight to step 1 of the guide since you’ve already met the downgrading requirement by following the previous 4 steps in this guide.
8. Transfer the file to your Fire TV’s /sdcard directory by running this ADB command:
(Note: This assumes the recovery.img file you renamed in the above step is in the same directory as ADB, otherwise enter the full path to the file like this:
9. Verify the integrity of the file you just transfered using this guide.
10. Run the command: adb shell
11. Run the command: su
(Note: If this is the first time you’ve ever run su, a pop-up will appear on the Fire TV and you need to select “Grant”)
12. Run the command:
dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery

13. Run the command: exit
14. Run the command (yes, again): exit
15. ClockworkMod recovery should now be installed. You need to connect a keyboard to the Fire TV’s USB port to control ClockworkMod. Do so before booting into ClockworkMod because it won’t detect a keyboard being plugged in while it’s already booted. ClockworkMod cannot be controlled using the Fire TV remote. Alternatively, you can control ClockworkMod over the network by following this guide.
16. To reboot into ClockworkMod recovery, run the command adb reboot recovery
17. After the Fire TV reboots, if you see the below screen then you’ve installed ClockworkMod successfully and you’re done. Select “reboot system now” to boot back into the main Fire TV OS. Now you’ll probably want to either continue with the starters guide or install a custom ROM.

Note: You can press the 1 and 2 keys on the connected keyboard to adjust the display scaling if the menu is cutoff.
18. Now go donate to rbox! He has put in a tremendous amount of time and work to make this all possible.

Sourcerbox

1. krasny says:

Great work! rbox is a genius!

I followed this guide and have my AFTV with clockwork recovery. Waiting for a guide to backup files and update with pre-rooted image.

thanks!

2. Rob says:

3. playerjuan says:

thanks for the guide. I cannot seem to get my aftv to enter recovery mode, it just hangs at the white amazon logo. A power cycle boots normally, but no CWM. Any suggestions?

• AFTVnews says:

Hanging on the white Amazon log usually means your Fire TV is in fastboot mode. This happens when the Fire TV is receiving power from the USB port. Are you using a powered hub or other kind of USB splitter that may be providing power back to the Fire TV?

• playerjuan says:

I did have a powered USB hub attached. I removed it, but still cannot get into recovery. aftv just hangs at the amazon logo. a power cycle boots to home screen; no CWM.

• teebs says:

did you get this working in the end as I’m in same boat as you

• eskay993 says:

Botched mine as well, but it was user error! Word of warning if you have using a download manager like I am (FDM in my case), it may look like the correct file downloaded, i.e. named correctly and sitting nicely in your download folder, but it’s not correct. I stupidly did a checksum after flashing and realized this. To get the correct file you have to click through you browser from the site it take you to.

I’m hoping I can patch it with the correct file, but now I can’t adb connect to my box anymore. Tried kill-server and restart with no luck :(

• eskay993 says:

Quick update.. unplugging my network cable and plugging back in worked in order to adb connect. Box must have lost it’s ip or something.

Good news is, with the correctly downloaded recovery file, I re-patched it and it’s working fine and I’m in clockwork. If you had this issue of a white screen, check your img file and make sure it fully downloaded (should be around 8meg). This may seem like pretty obvious stuff, but the fact that I got no error message with my download manager made it look like a complete correct file.

Hope that helps someone somewhere.

• anthony says:

i got hunged by the white logo too, but i do not use any power source..any idea?

Will this allow me to do a full backup of one AFTV and restore on another?

5. dan says:

when I try to push recovery.img i get;

failed to copy ‘recovery.img’ to ‘//recovery.img’: Read-only file system

• AFTVnews says:

There is something wrong with the push command you’re entering. Try moving recovery.img to your C drive (assuming you’re running Windows) so that you can enter this exactly:

• Pat W says:

You may have forgotten the last / after sdcard.

6. Stevie G says:

I cannot get into recovery mode. when it reboots after adb reboot recovery i get An error message says the software update was not successful. then it hangs on it for a minute or 2 before it reboots again into the fire tv. i am on version 5850 and i am rooted.

anyone have suggestions or what could be the problem

• AFTVnews says:

It sounds like you haven’t installed ClockworkMod correctly (step 10). Ensure steps 8, 9, and 10 are being done correctly without any errors being reported by ADB. Remember, step 9 will cause a prompt on the Fire TV to grant access if you’ve never allowed the ‘su’ command before.

• Mario says:

I did install it correctly. I got no errors and it did show files it installed. Will see if I have rights to do It as I did not get a prompt for grant access

• Zizou says:

I mate the same problem, i fixed it easily, check that you have download the good file (clockword) and check the command line 10, it’s not compete when you copy you have caracters after by-
Copy this command it will works

dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery

7. AFTVnews says:

After you type “su” and hit enter, the character before the cursor should change from a “$” to a “#”. That’s how you know you have permission. It wont hurt anything to retry the whole process again. 8. alex says: I am having the same issue as playerjuan “I cannot seem to get my aftv to enter recovery mode, it just hangs at the white amazon logo. A power cycle boots normally, but no CWM.” I successfully did this on another AFTV. This is the second one I am trying it on. Repeated the process a second time after the first didn’t work. Still no luck, just the white amazon logo and flashing white led when attempting to bood into recovery mode. 9. Stevie G says: i do get the # permission. nothong wrong with that 10. Stevie G says: C:\platform-tools>adb shell shell@android:/$ su
su
root@android:/ # dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by
-name/recovery

cursor just flashes after this command, not sure if something els should come up

11. Stevie G says:

shell@android:/ $su su root@android:/ # dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery 20480+0 records in 20480+0 records out 10485760 bytes transferred in 1.875 secs (5592405 bytes/sec) root@android:/ # exit exit shell@android:/$ exit
exit

cursor just flashes after this command, not sure if something els should come up

• AFTVnews says:

That looks correct. The comment above this one was wrong because the different commands got mixed together on one line. When you do the last step (adb reboot recovery), it’s normal for the cursor to just flash because the Fire TV is restarting so your PC has lost connection with it. Nothing is supposed to appear in your command prompt after the last step. Your Fire TV should restart into ClockworkMod.

12. Stevie G says:

but it sill does not boot into recovery mode

13. Stevie G says:

This is the message that comes up

https://www.dropbox.com/s/lwqkpksot2w2mex/image.jpg?dl=0

What else can I try

• AFTVnews says:

That means ClockworkMod has not been installed. Double check everything. Check that your FIre TV in running 51.1.0.2_user_510058520, 51.1.0.1_user_510055620, or 51.1.0_user_510047320. Check that you’re rooted.

Not much left to try other than factory reseting and trying everything over from the beginning. I’m sorry I can’t be more helpful. I’m currently working on including some screenshots to this guide to better help you know how things should be going.

14. Stevie G says:

http://www.aftvnews.com/how-to-unbrick-by-entering-recovery-mode-and-factory-reset-the-amazon-fire-tv/

If you see on the links that is exactly the screen i get, but without the selections in the top. maybe i need to set the orientation or get me a usb keyboard

• AFTVnews says:

On a stock (unmodified) Fire TV, when you run “adb reboot recovery”, the Fire TV will reboot and display that “Update was not successful” screen. If you’re seeing that screen after running the command “adb reboot recovery”, it means you have not installed ClockworkMod successfully. Something is failing between steps 7 and 10. I just finished adding screenshots of the commands to help. I suggest doing a factory reset, then follow all the commands again. Even if you are on 51.1.0.2 or older, I suggest doing steps 2 thru 5 (the downgrade steps) so that you are on a fresh system install.

15. Dinh Bui says:

I installed ClockWorkMod, but I did not downgrade firmware to 51.1.0.2, now I can not downgrade or upgrade to any FW. How do I remove CWM ?

16. pmcd says:

After installing ClockworkMod is it safe to remove recover.img in /scared/ ?

17. Dinh Bui says:

Thanks for your help, it’s working now.

18. Corey says:

I installed ClockWorkMod but I could not use a keyboard or mouse to utilize it. Running Win7. I tried one mouse and two different keyboards. I also tried using my keyboard through the command prompt. Luckily used the command “reboot” to get out of it. Any ideas? Thanks.

19. forty0z says:

Can’t get this working. I have the recovery.img on my c drive but I can’t get to work.

20. TEEBS says:

I am totally stuck !! I have installed ClockworkMod Custom Recovery image as discribed on guide and in terminal (mac)
in adb shell all looks fine
shell@android:/ $su su root@android:/ # dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery 20480+0 records in 20480+0 records out 10485760 bytes transferred in 1.936 secs (5592405 bytes/sec) root@android:/ # exit exit the only thing is different on the last time I type exit it wont then let me type adb reboot recovery I have to reconnect and then type adb reboot recovery . It then tries to restart firetv but then sticks on white amazon screen. No matter how I try I cant get into Clockwork recovery mode. As a last resort I have tried keyboard reboot “alt-print scrn-i” and can see unit reboot 3 times then back to white logo screen. Also right arrow and back button on fire tv remote but can only get orange light at home screen then just restarts. HHHHHEEEELLLLLPPPPPP 21. Jimmy says: Is there any way to control clockworkmod besides using a usb keyboard? Tried all the keyboards I have and none work, the ftv remote won’t work either 22. Stevie G says: got my fire tv to install recovery and install the latest rooted firmware. i factory reset the device and stopped any updates by removing the lan cable. rooted the aftv and pm disable the device. busy loading all my previous apps and getting all xbmc data to run off the usb external drive on the usb port on my router. Thanks Mr AFTVnews 23. New FireTV User says: I installed it using Amazon FireTV Utility App v0.23. Then tried to update the stock rom 51.1.1.0_user_511070220 instead of the pre-rooted stock rom. Now my firetv keeps in the rebooting status. Is there away i can get out of this mode and back to ‘recovery’ mode? Thanks. 24. eville84 says: I have two FireTV devices. I have one rooted and configured with all the goodies I require. The other device is untouched. Can I generate an image from my configured device and then restore on the my other, untouched device? (assuming I root the untouched device first) 25. Freed says: Hi sorry if this is a basic question, however can someone let me know if cwm can be simply installed on a rooted firetv using the firetv utility and the appropriate radio button. Thanks in advance for your help. 26. Fire Starter says: After doing all carefully and correctly, I too got hung on the white “Amazon” screen after “reboot recovery”… My problem was that I had the inet cable plugged in and (for some other reason) it was not connecting during initial setup so I used wireless… when I unplugged the cable, the FTV popped into recovery mode. Next problem to solve is how to control the CWM menu… but after I update my firmware and install XBMC :-) Onwards and upwards…. 27. HP says: I was able to install cwm and latest rooted stock on my 1st aftv. On my second AFTV, I’m on 51.1.1.0_user_511070220 version rooted. I copied cwm recovery.img successfully and followed steps 1-12. running adb reboot recovery causes white amazon logo to flash. I’ve tried few times with wifi and ethenet but no luck. it hangs on amazon white logo • AFTVnews says: Did you downgrade to 51.1.0.2 first like the instructions say? • MxChris says: I’m in the same boat, my other Fire TV went fine but I’m stuck on this second one. 51.1.1.0_user_511070220, rooted, busybox installed. I did not downgrade to 51.1.0.2, I missed that bit. I went through all the other clockwork mod install steps already and it will not enter recovery mode. After that I tried the guide to manually install 51.1.0.2 but again it will not enter recovery mode to complete the install it just hangs at the white amazon logo. How can I fix this? 28. Jitendra says: I rooted fire tv before but somehow it got update and I am now on 51.1.3.0_user_513011820. Is there any way I can root it again? it seems like without root access I cannot downgrade it nor root it at this time. I have another fire tv which in never rooted and it is on I am now on 51.1.3.0_user_513011820 too. what are my chances to get root access? 29. Average Joe says: Is there anyway to do this through the latest version of Fire TV Utility App? Because I keep running into this issue where SuperSU denies me permission if I go through the app’s built in Shell command UI. 30. MarcelloBOX says: Please help root@android:/ # dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery dev/block/platform/msm_sdcc.1/by-name/recovery < /dev/block/platform/msm_sdcc.1/by-name/recovery: write error: No space left on device 20481+0 records in 20480+0 records out 10485760 bytes transferred in 1.299 secs (8072178 bytes/sec) NO SPACE ON • Marcello says: df Filesystem Size Used Free Blksize /dev 974M 48K 974M 4096 /mnt/secure 974M 0K 974M 4096 /mnt/asec 974M 0K 974M 4096 /mnt/obb 974M 0K 974M 4096 /storage/usb 974M 0K 974M 4096 /system 756M 650M 106M 4096 /data 5G 3G 1G 4096 /persist 7M 5M 2M 4096 /cache 756M 13M 743M 4096 /firmware 63M 7M 56M 16384 /mnt/shell/emulated 5G 3G 1G 4096 /storage/emulated/legacy 5G 3G 1G 4096 31. Ed says: Ran all the steps but stuck at amazon white logo. When i power cycle FTV opens normally but no recovery. • Rob says: Make sure you did or re-do step 5 and see Attempting to unlock… All done! Also, try this, connect to wireless on FireTV, then connect the network cable back in and then adb reboot recovery, if the white logo still shows, disconnect the network cable. It may then continue over Wifi 32. Chambonito says: I have the same problem as Ed. Please help. 33. TMC says: After unlocking the bootloader and installing clockworkmod, I want to do a wipe and then install the custom rom. how should I wipe from clockworkmod? thanks. 34. Dusten says: Your guides are awesome, somehow I think I missed something. I’m at adb push c:\recovery /sdcard/ and it says cannot stat….no such file or directory. Everything has worked great until there. What did I miss? • AFTVnews says: Instead of “c:\recovery “, enter the full path to the recovery.img file. If you don’t know the full path, move recovery.img to your C drive and enter “C:\recovery.img” • Dusten says: I’ve tried the full path as well as C:\recovery /sdcard/ I’m getting the same cannot stat no such file or directory. I’m unlocked and everything seemed fine. I downgraded fine but now i cant push the clockwork mod over. I’ve tried the latest release as well as an older one?? Not sure how I got stuck or where to go?? • Dusten says: Problem solved. Newbe mistake. Renamed recovery.img instead of just recovery Thanks for your guides I’m almost done upgraded software with root, wouldn’t be possible without your detailed guides will donate when finished 35. Steve says: Is the only way to get into Recovery mode through adb? 36. David says: Okay pardon me if this is a really stupid question but I’ve gotten into the menu but there’s no instruction on what to do after. Do I “reboot system now” or “Wipe data/factory reset”, “Backup and Restore”. What step do I do to upgrade my software without losing my root • AFTVnews says: Select “reboot system now” to boot into the regular home screen. Now that you have Clockworkmod installed, you should unlock the bootloader, then install pre-rooted 51.1.4.0, then unlock the boot menu, then instal pre-rooted 51.1.4.1 37. madfrog says: I don’t recall seeing this question/answered anywhere (so sorry if it’s a repeat): Clockwork Mod, and the new BootMenu have been successfully installed. If I do “factory reset” (either directly in FTV or from the App), what state will my FTV be in? Rooted? Bootmenu? Factory or Custom ROM? Thanks!! 38. Bill Jobs says: Can we delete the recovery.img file after we install the custom recovery to free up space? 39. Salman says: When I follow directions above and push out 6.0.5.1.4a and try to install it. My AFTV gets stuck on amazon logo. I have to power cycle it and and boots back up normally. If I push out 6.0.5.1.3 and reboot it reboots to clockworks mod recovery. I am not sure what I need to do get 6.0.5.14a installed. If I have 6.0.5.1.3 installed is there a way to upgrade to the latest version right from the clockworks menu? 40. Leroy says: I have a question im root my fire tv im using amazon firetv utility v0.34 every time i reboot into recover or try to reinstall the recovery i get the white amazon logo and a on n off white light! it never goes any father so at this point it seems im not able to install recover or update custom roms. Im running 51.1.2.0 stock still but rooted! What can i do to fix this? 41. Leroy says: Hear a pic screenshot for so reason it seems to not be installing in the rite directory http://postimg.org/image/y1xk9mmaf/ 42. Phil says: Thanks to your guides and the genius of rbox everything worked out great! I ended up using your serial number decoder and purchased two more at best buy! On this second AFTV, there’s a weird issue though. After the AFTV is idle, it will go to the screen saver, then “power down / sleep” as usual. But then, after sleeping for 5 to 10 minutes it will randomly boot into cwm recovery?? Not a huge deal for me, can just reboot system from recovery. But the wife freaks out so I’m trying to make it wife friendly lol. Any ideas on where to look for problems? Any thoughts or ideas are appreciated. 43. wawli says: For all those getting stuck with an eternal white amazon logo when trying to reboot into Clockwork’s recovery, here’s what finally worked for me. I followed the full guide to “…Revert an Amazon Fire TV back to Stock Recovery and Stock Software” that can be found here: http://www.aftvnews.com/how-to-revert-an-amazon-fire-tv-back-to-stock-recovery-and-stock-software/ back to the 51.1.0.1 version my box came with. After this, I went through the steps through installing Clockwork and it finally booted into the recovery. 44. anthony says: any fix for “stuck at while Amazon logo?”…. 45. Juan says: I,m trying to make a backup on a pendrive but i don’t see any option about this. Only it seems possible on the internal Sd. Anybody knows the way to make a backup on a external USB storage ? Thanks. 46. Mjay says: Can I use 6.0.5.1.3 also? 6.0.5.14a and 6.0.5.14 gave me the white Amazon logo. Followed al the steps correctly and didn’t get any error message. I downgraded and rerooted to firmware 51.1.0.2_user_510058520. I wonder why 6.0.5.1.3 gives me the ClockworMod screen and 6.0.5.1.4a the white logo? 47. Mike House says: here’s a copy of everything I did… Microsoft Windows [Version 10.0.10565] (c) 2016 Microsoft Corporation. All rights reserved. C:\WINDOWS\system32>adb version Android Debug Bridge version 1.0.32 C:\WINDOWS\system32>adb kill-server C:\WINDOWS\system32>adb start-server * daemon not running. starting it now on port 5037 * * daemon started successfully * C:\WINDOWS\system32>adb connect 192.168.0.4 connected to 192.168.0.4:5555 C:\WINDOWS\system32>adb devices List of devices attached 192.168.0.4:5555 device C:\WINDOWS\system32>adb shell shell@android:/$ su
su
root@android:/ # chmod 777 /cache
chmod 777 /cache
root@android:/ # chmod 777 /cache/recovery
chmod 777 /cache/recovery
root@android:/ # cd /cache/recovery
cd /cache/recovery
root@android:/cache/recovery # echo –update_package=/cache/update.zip > command

ache/update.zip > command adb push C:\Root Fire Tv\update.zip /cache
/ikonotv.icon/B00NEJS7ZO/thumbnail_f589f49e84a15d36c1fb602c76bce0789c8d6b3913b85
7c0edff0a91cfecaf23.png
c8d6b3913b857c0edff0a91cfecaf23.png’: No such file or directory

48. Blu says:

As with 100+ others’ complaints above, 6.0.5.1.3 works but the latest 6.0.5.1.4 and 6.0.5.1.4a are both broken – hangs at amazon logo on reboot

49. Ricardo Arcila says:

I been trying to factory reset my rooted fire tv 1st gen and it erased my apps but does not erase my files on internal storage so i still have old kodi build still there. is there a way to factory reset it while retaining root and fully cleaning out all the old files

50. Scott Deville says:

Hi
I am completely new to all this, my aftv box has been blocked by amazon.
I’ve been told that I can install a nut custom OS so as to use the box.
My aftv is a 2016 model.
Any help would be appreciated.
Thank you

51. Jason says:

I do not see any of the versions you listed as my current version. I am already Rooted on 5.0.4 (536116920). Will the Clockwork Mod still work?

52. AFTVnews says:

Comments have been disabled for this post due to an increase in spam comments.