This guide will walk you through the steps of installing TWRP custom recovery and a pre-rooted ROM on the 1st generation Amazon Fire TV Stick.
Guide
- Your Fire TV Stick must already be rooted to follow this guide. To learn how to root your Fire TV Stick, see my rooting starters guide.
- Download the latest version of rbox’s TWRP custom recovery from here.
- Download the pre-rooted ROM version you want to install, along with its accompanying md5sum file, from here.
- If you haven’t done so yet, install ADB on your PC.
- Plug your Fire TV Stick’s USB power cable into your PC and wait for the Fire TV Stick to fully boot up. Be sure you have ADB debugging enabled.
- Open a command prompt / terminal window and enter:
adb devices
You should see your Fire TV Stick’s serial number listed. If you don’t, and are using Windows, you probably need to install these drivers.
- Transfer the three files you downloaded earlier to your Fire TV Stick’s
/sdcard directory by running these 3 commands:
adb push [PATH-TO-TWRP-FILE-ON-PC] /sdcard/
adb push [PATH-TO-ROM-FILE-ON-PC] /sdcard/
adb push [PATH-TO-MD5-FILE-ON-PC] /sdcard/
- Enter your Fire TV Stick’s shell prompt by running the command:
adb shell
- Enter SU mode by running the command:
su
(If this is the first time you’ve run this command, be sure to select “Allow” or “Grant” on the pop-up that appears on your Fire TV Stick. Also, if you rooted with KingRoot and see the words “Unknown user” after running this command, launch the Kinguser app on your Fire TV Stick and then run the su command again.)
- Install TWRP custom recovery by running the command:
sh /data/media/0/montoya_recovery_v1.zip
Note: Be sure themontoya_recovery_v1.zip part of the above command exactly matches the file name that you downloaded earlier.
- Exit the shell prompt by running the command
exit twice, and then reboot your Fire TV Stick by running the command:
adb reboot
- While the Fire TV Stick boots, it will show a TWRP logo and then a boot menu with two options. You need to connect to adb shell, start a mouse emulator, and use it to select recovery, all before the boot menu’s countdown runs out. It’s perfectly safe to unplug and replug your Fire TV Stick and try again if you don’t perform these steps fast enough. So, while the Fire TV Stick boots, repeatedly run the following command until you see your Fire TV Stick listed again:
adb devices
Then, as soon as your Fire TV Stick appears in the list of connected devices, quickly run the command:
adb shell
then run the command:
mouse
and lastly, pressD on your keyboard to select the recovery option and wait for the timer to run out.
- Using
W ,A ,S ,D on your keyboard to move the on-screen mouse cursor, andE to select items, move the mouse and select theInstall button.
- Select the ROM file from the
/sdcard directory. Be sure not to select the TWRP recovery file.
- Select
Swipe to confirm Flash . You don’t actually have to swipe. You can just click it like a button.
- Wait for the ROM to install.
- It is highly recommended that you perform a factory wipe to ensure all the junk left behind by KingRoot or Kingo Root is removed. This will delete all of your apps and settings. If you don’t want to do this, skip to step 23, otherwise, select the house icon in the bottom center of the screen to return to the main menu.
- From the main TWRP menu, select the
Wipe button.
- Select the
Advanced Wipe button.
- Check the boxes next to
Dalvik / ART Cache ,Cache ,Data , andInternal Storage . Then select theSwipe to Wipe button.
Be sure you DO NOT CHECK THE SYSTEM BOX.
- Wait until the wipe is complete.
- Since you just performed a factory wipe, you will need to go through the initial setup when you first boot. This means your Fire TV Stick will try to download software updates which could unroot your device. If the pre-rooted ROM you just installed is the latest software version available for the Fire TV Stick, this is not a concern because there won’t be any updates to install. However, if you installed an older pre-rooted ROM, or you’re not sure if there are any potential updates waiting to be downloaded, then you should follow this guide to block software updates from within TWRP right now. You can easily do everything from the ADB terminal you still have open. After you’ve mounted the system (again, details are in the linked guide) just press
CTRL+C to exit the mouse emulator, then enterexit to get out of ADB shell in order to transfer your build.prop file off and on. When you’re done with that, enter shell again with the commandadb shell and restart the mouse emulator with the commandmouse .
- Select the house icon in the bottom center of the screen to return to the main menu. Then select
Reboot and selectSystem to boot into Fire OS.
- Ignore the TWRP boot menu this time and go through the initial setup if you factory wiped your device earlier. Once you’re on the Fire TV Stick home screen, you should enable ADB debugging and block software updates using method 1 of my guide.
- That’s it, you’re all done. If you have the means, please consider donating to rbox for the hard work he put into creating this entire process. If you found this guide helpful, please consider becoming a patron on Patreon.
That was fast, many thanks Elias!
Is it possible to run all these adb commands via WiFi? With the exception of step 12 when it’s time to connect to adb via USB at the boot menu?
Yes, you can do steps 1 thru 11 over wifi if you prefer.
I can get to 13 but then once I try and load recovery all i get is a black screen – the mouse emu still says its moving things but I cant see any output. So I can’t actually install the pre-rooted rom. Is this a glitch on my side? Any help??
I managed to do this – my stick had to be in HDMI port 1 on my TV
Took me a lil while to figure this one out! But I needed this to connect via usb to adb…
http://forum.xda-developers.com/fire-tv/general/adb-usb-fire-tv-stick-t2952214
Thanks! I used a Mac when writing this guide and forgot Windows needs drivers. I’ve added a link to the official drivers to the guide.
Step 12. Try
adb wait-for-device && adb shell
Has there been any Fire TV Sticks updated past 5.2.1.1 as yet?
I have temporarily blocked updates on my Router but after doing the wipe and rebooting I can’t get past the checking for updates screen unless I go through the whole procedure in TWRP.
The method was much quicker than I first thought so just followed the guide and all is good.
Thanks again for the guide(s) Elias!
Hi. I’m having problems on step 12. I’m unable to find windows 7 32 bit drivers while the firestick is in recovery. I just get MTP USB device unplugged.
Solved this. I just plugged into my windows 10 machine and it worked.
Can an earlier Firestarter compatible ROM be installed via these instructions?
managed this … bit of driver issue in windows but ok now.
didnt do the grep number change, hopefully will be a bit easier when rbox brings the wifi keyboard into play.
Any advice on windows drivers would really help. I’m still stuck on part 12. Thanks.
Get thru 12 where mouse loads fine, but W A S D do not work on keyboard so cannot prevent the stick from normal booting.
JAM
I had to hit D and then hit ENTER as well before it sent the instruction. Or rather, I was holding down d because it wasn’t working, and then hit Enter on a hunch and it sent about 32 RIGHT commands. :P
Precisely my experience.
JAM
Well for me…I’m stuck at White Amazon Splash Screen!
Boots to rbox boot menu, waits the 15 seconds then selects boot normally and ends on White Amazon Splash Screen. I cannot find the device via adb when waiting those 15 seconds. Does the builtin adb on the FireTV matter when at the recovery menu? Doesnt the recovery menu have its own adb coded into it?
Figured it out.
JAM
How can I get my Mac to see the fire TV stick? When I run the command adb devices it does not show up. I already installed adb on my Mac and turned off system integrity protection before doing it. I even tried it with windows and it sees it with windows but not before there the TWRP menu has run out and it boots to the fire TV menu. Please help!
I’ve installed only ADBLink http://jocala.com (with adblink you mustn’t change system integrity,..) and press in Menu “Console”, Connect AFTVStick via USB to my Mac and my HDMI Monitor.
would it be possible to flash the zip for xposed framework ? or can i do that already without
this?
all i want is to be able to install a real youtube app,xposed framework and the youtube adaway module so i can stream to my fire stick from my phone or tablet with no ads on my TV making it better than a CC
i think i saw instructions on how to install xposed before and on how to add play store and google services framework
but it was for something else ,would i need a prerooted rom to do that or just plain root,? i am already rooted with kingo, if this is possible then would it matter which fe version rom i used , which one would be best?
any idea why the Recovery is failing to extract ?
sh /data/media/0/montoya_recovery_v1.zip
Extracting unzip…
unknown operand msgfmt
Unable to open /data/local/tmp/unzip: No such file or directory
Remounting /system read-write…
Extracting…
/data/media/0/montoya_recovery_v1.zip[31]: /data/local/tmp/unzip: not found
failed on ‘/system/bin/e2fsck’ – No such file or directory
link failed No such file or directory
Remounting /system read-only…
Hi
Have You fixed it?
Thanks
I am unable to get adb devices to show before normal boot starts? Also, does the mouse emulator only show up before the normal boot up?
Anybody solve this a different way from guide?
I have FW 5.0.5.1 with blocked Updates via adb shell disable otaservice.
Rooting with Kingo ROOT stuck at 90% then fail. I only would need root for AdAway to block Ads on Opera, so I am thinking about just unblock ota and update…
my AFTV was on a previously rooted 51.1.0.1 with clockworkMod 6.0.5.1.4a. I followed this guide all the way through, first installing 51.1.4.0, then TWRP, then 51.1.6.3, then finally 5.2.1.1. Did an advanced Wipe in TWRP, rebooted and went through the initial setup process. ADB shelled in and disabled updates. Everything seemed fine. I installed Kodi and Netflix. Netflix didn’t want to start up so I figured I’d reboot the AFTV again, but it never came back up. It now seems entirely dead. The white light on the front doesn’t show.
I’ve plugged it into my PC with a USB A-to-A cable and my PC detects the device, but it seems to come up and be recognized as a flash drive; there is a single folder called image on there and a whole bunch of oddly named files inside like, dxhdcp2.b00, .b01, .b02, q6.b00, .b01, etc etc.
Anybody recognize what state my device is in and how to kick it back into life? Or should I use as a paperweight?
I’m in the same situation :( Please post the answer if you found something…
Anyone ever really figure the adb part out at boot? I have the druvers.. Installed the recovery but I can’t find device before time runs out.. Its like its not connectable during the twrp countdown.. Soon as its finished and moves on tho, device can be found.
Getting really frustrated at this point. Any help please?
OK I think I found the answer. The fire stick has a different ID during boot.
You have to install a Google fast boot driver to be able to connect at the 15 sec twrp menu in order to access the recovery. Hope that helps someone else that has the issue
My firetv stick has been rooted with Kingo Root and I have updates blocked.I have downloaded the 3 files and have been trying for ages to copy to sd card. I keep getting “failed to copy c:/ users/..montoya etc. Read-only file system”. Any help would be greatly appreciated.
I have not tried this, but for anyone having trouble with the countdown running out before USB drivers are installed, the link in Step #2 has this side note:
To force it to boot in to Recovery, you can create a file
/cache/bootmenu_recovery
how do you create the file and where do you put it?
I got through the guide OK with a few roadblocks I had to work around.
1.) In step #7 “adb push” kept freezing trying to get the files over to /sdcard/ only doing partial uploads / corrupting the files, so I used ES File Explorer to copy them to /sdcard/ from a windows share on the LAN.
2.) On step #12, during the TWRP countown, windows wants a USB driver for “AOSP on ARM Emulator”. I had to keep device manager open on windows and really quickly get the properties on the device and manually specify file “\AmazonFire5thGenSuperTool\usb_driver\android_winusb.inf” and select the first entry, I believe it was called “Android ADB Interface”.
3.) Finally in step 23 I lost mouse emulator control, I think I was trying to send movement commands too fast. Had to CTRL-C, and reconnect to the mouse emulator:
adb kill-server
adb start-server
adb devices
adb shell
mouse
I accidentally Wipe system on 20 ಠ,ಥ (Big noob right)
so now i Got amazon logo tried remote back and right not working
my Question is there a hope?
its Fire stick 1 WAS on 5.0.5 twrp prerooted .
i can not get the mouse program to work.
when i enter mouse after adb shell there comes not found?
do i have to install or insert the mouse emulator in adb?
secondly is the problem that my Stick will not show up in my terminal since it is completely booted, so it is not possible to connect in the moment the recovery has to be enterd.
can anybody tell me how to connect fast to the stick and get into the mouse emulator?
is there a possibility to make a script for entering into the recovery?
is it possible to use adblink?
there is the option boot into recovery, can i bind twrp in this app?
thanks for your replies
Any one a Solution?
Ist the Emulator Integrated in die Recovery?
WHy i can Not Start it?
Is there a Download Page for the Mouse Emulator from RBox?
Please help.
Everything was working exakt that Emu, so i can Not navigator in the recovery
I followed this guide everything was working well for months untill about 3 days ago when the stick first powers on it displays to signal for about a minute + then i see twrp screen then no signal again any ideas please help.
mouse does not work it just says mouse not founf\d how do i get the mouse emulator?
mouse does not work it just says mouse not found how do i get the mouse emulator?
it does not work at all when is v2 coming out because this one sucks ,it don’t work at all
there must be a better way
the device does not get listed when i type adb devices until after the boot menu is over
i can’t get it to list the device until after the boot menu time is out and even after that when i type adb shell and type mouse it just says mouse not found
montoya_recovery_v1.zip
download WO???