yashsingh1/xdaforums huggingface dataset:
[Fire TV Android Development] 82ross:
You sir are a legend. I know it would be something daft.

Thank you to rbox too for all your work.
[Fire TV Android Development] JUSTINMARMER:
I can't get adb to work while the boot menu is counting down. ADB works fine after the stick has booted, but not during the countdown. I'm using windows 7 64 bit. I see someone else had this same error and was able to resolve it, but he wasn't kind enough to explain how for the next guy. I tried all the methods advised to him so far in this thread, including the drivers posted right above this post which are supposedly the miracle drivers lol. Nothings worked. :(

Edit: I have now tried this on three different pc's. My desktop and two laptops. All running windows 7 64bit. I've tried 6 different usb cables in all usb ports. Apparently this is just a no go if you are using windows 7. Can this be done from linux? I wouldn't mind installing a distro to one of my laptops if it's possible. Don't know how to get adb on linux though. Would need a walk through. Does android sdk have a linux version? I'm such a noob.
[Fire TV Android Development] 2WhlWzrd:
Yes. I used adbLink to connect, and you will need to add this:

# Google
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
# Amazon Fire
SUBSYSTEM=="usb", ATTR{idVendor}=="1949", MODE="0666", GROUP="plugdev"

to the "51-android.rules" file. The file does not exist by default, you will have to create it.
[Fire TV Android Development] JUSTINMARMER:
Okay, now I'm on Linux Mint 18. I created the file 51-android.rules and placed it in /etc/udev/rules.d/

[IMG="rules"]http://i.imgur.com/G7rERY0.png[/IMG]

I then executed chmod a+r /etc/udev/rules.d/51-android.rules

I then rebooted linux.

I open up a terminal, type adb devices both as root and without and this is what I see...

Adblink still also says no permissions.

[IMG="adblink"]http://i.imgur.com/qbfnEt8.png[/IMG]

adb shell doesn't work

What am I missing?

Edit: NEVERMIND, it's working perfectly now after another reboot. Thank you so much for your help sir.
[Fire TV Android Development] pwntrik:
Here's a windows batch script I wrote while rooting a Fire TV Stick that runs "adb shell" as soon as the device comes online.

1. Run the batch file (save as "fire_stick_recovery.bat")

@echo off
echo Waiting for connection...

:check

for /f %%i in ('adb get-serialno') do ( set serial=%%i )

if not "%serial%" == "unknown " goto connected
timeout /t 2 >nul
goto check

:connected

echo Connected... Type "mouse", press ENTER, then press "D" to boot recovery:
adb shell

2. Plug in the device to your computer's USB port

3. Type "mouse", enter, and "D" when instructed

Not a big difference at all, but convenient if you have to do this a lot :) Running `adb shell mouse` does not work for some reason, and TWRP lacks android's `input` command to send mouse events, so this is the best I could come up with.
[Fire TV Android Development] JUSTINMARMER:
Great work now we need a working Google Play Store. Hopefully it won't t be long.
[Fire TV Android Development] sconnyuk:
can you inject this into TWRP for firestick ?
[Fire TV Android Development] aiola1982:
Just flash gapps and replace play store with a resigned version to prevent updates which kills play store

For resigning: https://xdaforums.com/showpost.php?p=22279351&postcount=2

Latest working Play Store: http://www.apkmirror.com/apk/google...-store-7-2-13-j-xhdpi-8-pr-139098199-release/

Follow this guide on aftvnews which is for AFTV2. Its basically the same for the stick, but use arm packages instead of arm64.
[Fire TV Android Development] pwntrik:
You run this before you power up your fire tv stick so that you can boot to TWRP easily.
[Fire TV Android Development] sconnyuk:
No, that wouldnt be any use for what im after, injected into TWRP so the recovery Rbox made will use OTG USB instead of ADB.
[Fire TV Android Development] jpage4500:
Script failed and device won't boot anymore!

Help!

I've done this successfully with a FireTV and now trying to do the same for the Fire TV Stick (V1 - running 5.0.5). Ultimately, I'm doing this to prevent updates to a later version which won't allow FireStarter to launch Kodi with the HOME button which I really love.

Anyway, I uploaded the files and rooted the FTVS using KingRoot.

Next, I connected to the device and got root - then tried running the script.

It failed at the end with "Device or resource busy". I actually had the exact same problem with this script on the FireTV as well but that turned out to be an issue with running the script while I had root.. I fixed it there by exiting from root and running the script again but that doesn't work with this script.

Anyway, I ended up restarting the device thinking I'll re-run the script again but the device doesn't boot. It does launch the TWRP launcher but I'm not able to connect via adb anymore.. after the TWRP screen continues the device is just stuck on the Amazon logo.

Any suggestions? I assume I can't use the USB Micro port on the FireTV stick to connect it to a PC right?

shell@montoya:/ $ su
root@montoya:/ # id
uid=0(root) gid=0(root) context=u:r:init:s0
root@montoya:/ # sh /data/media/0/montoya_recovery_v1.zip
Extracting unzip...
Remounting /system read-write...
Extracting...
Remounting /system read-only...
mount: Device or resource busy

---------- Post added at 07:32 PM ---------- Previous post was at 06:40 PM ----------

Well, I guess my fault for not fully reading the first page of this guide.. here I thought I was an expert after doing this for the FTV already.

I'm not sure why I got the "Device or resource busy" error when running the script but ultimately it must have worked. The part I was missing was to connect the FTVS to my PC to be able to run that "mouse" command and open TWRP from that initial boot prompt.

Once I did that I was able to install the prerooted OS 5.0.5, do a factory restore and changed the build number in build.prop as well.

So, it seemed like everything worked.. but, when I reboot now I see the Amazon logo for a second or 2 and then just a blank screen.. I've waited 15 mins and nothing so far.. is this something else? Now what can I try?
[Fire TV Android Development] pwntrik:
Use the batch file I posted to connect to TWRP then flash rbox's prerooted zip. See if that fixes it
[Fire TV Android Development] jpage4500:
I did install the 5.0.5 rom from https://xdaforums.com/fire-tv/development/firetv-stick-sloane-prerooted-stock-t3521806. It loaded, then I wiped and updated the build.prop. But, after the Amazon logo appears the screen just goes black.

I suppose I can try it again or try with the latest 5.2.1.1 ROM but I'm hoping to stay with 5.0.5 so I can use Firestarted to launch Kodi.

---------- Post added at 09:41 PM ---------- Previous post was at 08:52 PM ----------

Well, re-installing 5.0.5 did the trick! Wish I knew what happened but the end result is working for me :)
[Fire TV Android Development] sconnyuk:
Would anyone know how to add a line of code :

echo 1 > /sys/devices/platform/bcmpmu_otg_xceiv/host

that auto executes in TWRP when it starts up or at the end of the countdown?

I did speak to Rbox in another thread about this :

https://xdaforums.com/fire-tv/general/fire-stick-twrp-recovery-using-mouse-t3539680

He did say it might be a good idea but as he has already done alot for us all id rather not keep pestering him and attempt this myself with a little guidance from maybe anyone else this might benefit, or ask any other peeps on here who might be able to help. Reason i ask is the TWRP supplied by Rbox is all well and good and im very thankful for it, but as i have a home made powered otg connected through my Firestick id like TWRP installed on my Firestick to be used with my USB keyboard, (well actually with my 2.4ghz wireless keyboard, as it would be alot more convenient to use). Its permanently connected and i have the script auto execute on boot which allows me to use my 2.4ghz airmouse/keyboard combo. Anyone have any idea on how to do this ?
[Fire TV Android Development] jj^2:
Can you explain how you did this on the firetv? I have aftv1 stuck on updating, I am hoping to try to force an update if I can get adb to run. More info in this thread. https://xdaforums.com/fire-tv/help/fire-tv1-bricked-lights-t3545739

Thx
[Fire TV Android Development] saiyen2012:
hello everone. I have a question i just received a 1st gen fire stick which was rooted with kingoroot. a custom recovery was not installed. the fw is 5.2.10. i'm trying to unroot the fs now but have no clue on getting the recovery installed to uninstall the root. any help will be greatly appreciated.
[Fire TV Android Development] sconnyuk:
Can I ask why you wound want to unroot your fire stick?
[Fire TV Android Development] saiyen2012:
the fs belongs to my friend she wants to unroot it so she can use psvue.
[Fire TV Android Development] sconnyuk:
All you will need to do is unblock updates and update the stick.

If you look on AFTVNEWS.com check how to block updates and reverse the procedure. Instructions will be on there.

Or you could restore stick to factory defaults. That will remove root and update you.
[Fire TV Android Development] saiyen2012:
i tried that before i made this post. unblocked the updates and facotry reset the stick psvue is still reading it as rooted for some reason. thanks for the suggestion. i don't know what else to do.
[Fire TV Android Development] saiyen2012:
can anyone help?
[Fire TV Android Development] Znesperas:
Montoya Fail

Hi there,

First I want to thank to the people that worked on this.

It would be great If I could have some help as I tried to install montoya TWRP however it fails it this error (device is rooted with the Chinese version of Kingo)

Where 1 is the actual file I renamed it like this to be easier .

Can I please have some help as the firestick is bricked (amazon logo and then black screen) the only thing I have managed to do was to root it and now I want to install TWRP to factory reset if that doesn't work then I'll install a preroot rom.

Many thanks :D

root@android:/ # sh /data/media/0/1.zip

sh /data/media/0/1.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/1.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...
[Fire TV Android Development] Spillunke:
[MENTION=7551670]Znesperas[/MENTION]: I used this tutorial http://www.aftvnews.com/how-to-inst...d-an-initial-rom-on-a-rooted-fire-tv-stick-1/

Works perfect! not sure if you get access to push the recovery file. i think its possible, but you have to be fast while typing in the console.
[Fire TV Android Development] l3ullseye:
Is there something like /cache/bootmenu_recovery, but for a normal boot???

Thanks
[Fire TV Android Development] bula1ca:
Do a factory reset, it will update to the newest s/w and root will be gone.....
[Fire TV Android Development] l3ullseye:
I don't want to remove root, just speed up TWRP boot time...
[Fire TV Android Development] GermanCacha:
someone have the original recovery for 5.2.1.1 or 5.0.5?? i cant update my firetv stick to 5.2.4.1 :(
[Fire TV Android Development] KLit75:
Doesn't appear to be a way to run 'mouse' with my mac. Does anyone have a solution? Or do I need to borrow a Windows laptop and install adb...
[Fire TV Android Development] rpadula:
i use adb and mouse with my mac without issues....

are you sure that adb is running when you try to use it?
[Fire TV Android Development] KLit75:
Its been a couple of weeks since I posted but yes I'm pretty certain I was connected adb. I use it frequently. But you're saying you used a mac to navigate twrp on ftvs?
[Fire TV Android Development] stangri:
Had horrible 20 minutes when "adb devices" would come up empty with FTVStick is booted into recovery. Turns out I've been using Chromecast's micro-USB cable instead of the proper Amazon one.
[Fire TV Android Development] Petesky:
How do i create the file to make it boot into twrp and where do I put it,

I cant connect to fire stick when booting up using adb ,I've tried to PC's , 1 with windows 10 64bit and the other with windows 10 32bit, I'm already rooted with custom rom but the lappy I used back then is long gone(funnily enough windows 10 64bit)
[Fire TV Android Development] tw39515:
i would like to know to. i was on 5.0.5. got twrp on there but now the rom wont load and i cant connect adb to use mouse. when i type adb devices it shows a device but it blank. my best guess is it has to do with drivers. would just like to get a prerooted rom back on it. any help thanks in advance. Tw

got the prerooted rom on using ubuntu ftw pulled my hair out for 3days thinking i bricked it.
[Fire TV Android Development] netgar:
Im sorry if I am asking stupid question....but does TWRP and prerooted ROM exists for fire stick 2?

Thank you
[Fire TV Android Development] 2WhlWzrd:
No.
[Fire TV Android Development] Dakotalee24:
I just got a fire tv stick with alex voice remote. Im pretty sure this is the firetv stick v2 but i cant find which fire devices have what code names. Will this work with my device?
[Fire TV Android Development] 2WhlWzrd:
I think this what you are looking for; the-amazon-fire-tv-stick-2s-codename-is-tank

If you do indeed have a "tank", it is not yet rootable.
[Fire TV Android Development] BOBdotEXE:
EDIT: nevermind, I just rebooted, and reinstalled it just fine

----

How long is flashing the recovery supposed to take?

I've been staring at:

root@montoya:/ # sh /data/media/0/montoya_recovery_v1.zip

For about 20 minutes now.

(and yes, I did press enter after typing the command)
[Fire TV Android Development] gdroid666:
any working drivers for win 8.1 64 bit?

i can not see the device in adb until after the boot menu timer has ended

and even then after i enter adb shell and mouse it says mouse not found

also what does this mean?

you can create file /cache/bootmenu_recovery and it will automatically boot into recovery

WTF is this is is not a file it is just a path what do i do with this?

how do i make boot directly into recovery , can some please elaborate on this vagery
[Fire TV Android Development] gdroid666:
yeah that is great but how are you suppose dot install them?

when i go to device manger i see AOSP enabled emulator and i select update driver from disk and i select this folder ind it says not installed , how do you install it?

---------- Post added at 03:51 AM ---------- Previous post was at 03:35 AM ----------

i replaced the file and it still doesn't work

this does not work

3. go to device Manager, select Device and install the driver again in manually mode (use select list of Devices) and use path C:\Program Files/Amazon.com/Fire_Devices/Drivers to install the driver

it won't let you install the driver , it say not a compatible driver, win 7 64 bit and win 8.1 64 bit

it won't work on either one, please give specific directions on how to install the driver manually because it wont accept it i browse to it and windows just say it is not a compatible driver
[Fire TV Android Development] 2WhlWzrd:
You have to select the "android_winusb.inf" file inside the folder.
[Fire TV Android Development] gdroid666:
yeah that is what i did and it still doesn't work i get "this is not a compatible driver for this device" every single time on 2 different machines can someone please just make an .exe driver installer because this doesn't work

windows won't let you install drivers manually

it was showing up as AOSP on ARM emulator device , i overwrote the android_winusb.inf file in the C:\Program Files (x86)\Amazon.com\Fire_Devices\Drivers directory with the edited one metallica posted

and now it shows up as unrecognized USB device and it won't accept any manually selected drivers i go to have disk and browse to the android_winusb.inf file and select it and hit ok and it says "this is not a valid driver for this device make sure it is a 64 bit driver" and it won't accept it

EDIT:

Ok i got one step closer i think before the problem was that i was trying to install the driver for the device when it was showing up as an unknown USB device and not for the AOSP on ARM emulator becuase the device stopped showing up as AOSP on ARM mulator and was only showing up as unknown USB device after i replaced the android_winusb.ini file with the edited one , but somehow i got it to come back up as AOSP on ARM emulated again

but now i am getting this when i try and install the driver with the 2 lines that metallica said to add in

i used his file from the link

https://i.postimg.cc/vZRSSVYL/fire-stick-twpr-driver-problems.png

can someone at least tell me what the device name is supposed to be that i am supposed to install the driver for? because sometimes is shows up as AOSP on ARM emulator and other times it shows up as unknown USB device , which one am i supposed to manually install the driver for?

this could all be solved if someone could just make an EXE that actually installs the correct drivers
[Fire TV Android Development] DeR4t:
wiped the whole system !

Hi [MENTION=3991724]rbox[/MENTION]

I accidentally Did that, now am stuck at the Amazon logo can't adb or fastboot

can you help me Fix it thanks alot.
[Fire TV Android Development] rbox:
Unfortunately no. Because the bootloader is locked there is not much you can do if you have no /system.
[Fire TV Android Development] kgirlx:
Damn.. I got a 1st gen firestick.. Had it for a while back right after 5.0.5. So it couldn't be rooted back then.. It's been sitting for a year not used and it still seems there isn't a way to root this old thing. But the gen2 is rootable? What a shame.
[Fire TV Android Development] Sus_i:
5.2.1.1 is the last OS that is rootable for now.
[Fire TV Android Development] kgirlx:
I'm going to have to check what version is on the stick.. Curious... What is used to root the stick these days.
[Fire TV Android Development] zainkhan123:
[MENTION=3991724]rbox[/MENTION]

I flashed this TWRP recovery on top of the TWRP recovery I already had, I did it because i thought this was newer. However now my device wont go past the Amazon logo screen. Any clues to what went wrong?
[Fire TV Android Development] Michajin:
You have an original Firestick? or a firestick2? Just curious...
[Fire TV Android Development] zainkhan123:
just realized that this was for the Firestick 2, I have a FireTV 2. Damn it. is it permanently bricked now?
[Fire TV Android Development] Michajin:
WOAH WOAH WOAH... you have a fire tv2???? Or a firestick2? This thread was for the firestick1

the tv2 you might able to go here...

https://xdaforums.com/fire-tv/development/unbrick-fire-tv-stick-2-anti-rollback-t3986303
[Fire TV Android Development] zainkhan123:
Yeah i have the Fire TV 2. Anyway I used that guide, it was long, but now its working! flashed my old rom back. Thanks!!!!
[Fire TV Android Development] Michajin:
Great!
[Fire TV Android Development] zeroxia:
Sorry wrong thread, content removed.
[Fire TV Android Development] Dismal.:
Bricked my device only brings me to a menu to select recovery or normal boot and you cant do that on a stick. Got an error when flashing the first time.
[Fire TV Android Development] rbox:
Here are prerooted stock images for use with my recovery. Note that these contain addon.d support, so any 3rd party things you install to /system need an addon.d script to be retained between flashes.

I STRONGLY recommend that you completely wipe if you had Kingroot installed. This can be accomplished in TWRP by going to Wipe and selecting Format Data. This will blow away everything on it, including whatever garbage Kingroot left behind.

And as always, make sure you DISABLE UPDATES.

Changelog and Downloads:

July 4, 2020 - 5.2.7.3_r1 (md5sum: f8ecbdf986b0033f923e2cbade84bda0)

December 7, 2019 - 5.2.7.2_r1 (md5sum: 68d16fdc9c42fe29c29a88200a932e15)

October 26, 2019 - 5.2.7.1_r1 (md5sum: d9cee3ebfb09a562619466a1efa024f1)

June 29, 2019 - 5.2.7.0_r1 (md5sum: 3d3103f0ad3d88db8fd22b7446a6f49a)

March 31, 2019 - 5.2.6.9_r1 (md5sum: 51edd826d468b73bc6933f57dabd5f01)

November 27, 2018 - 5.2.6.7_r1 (md5sum: 6523dfa933f03c933a3e9f825db6d378)

October 7, 2018 - 5.2.6.6_r1 (md5sum: 559e6dc38c81dc658a85c2e5cf7aeec5)

June 24, 2018 - 5.2.6.3_r1 (md5sum: 529793e0566c8cb6eca1254e3a757206)

January 28, 2018 - 5.2.6.2_r1 (md5sum: b27a84d2160fc46827fca16e2deb1af5)

October 8, 2017 - 5.2.6.0_r1 (md5sum: d7a413209b89774cf09cb3c2f0d3e647)

July 3, 2017 - 5.2.4.1_r2 (md5sum: e7c0dccc2745027b8dfe4941ca15672d)

May 1, 2017 - 5.2.4.1_r1 (md5sum: 080ab90db2f717cef3acfffc15939d8f)

December 18, 2016 - 5.2.1.1_r1 (md5sum: e71b6fd2eae7a0e78ad37e6609f7c36d)

December 19, 2016 - 5.0.5_r1 (md5um: a033912f6586dd7cb8a738a7218d3713)
[Fire TV Android Development] sconnyuk:
Absolutely fantastic!

Im sure you will of made alot of peoples day aswell as mine.

Thankyou for you continued development for the fire line up.

We would all be lost without you.
[Fire TV Android Development] vertycall:
Long awaited awesomeness :) Thank you !
[Fire TV Android Development] Antieco:
Excellent news!! many thanks [MENTION=3991724]rbox[/MENTION] !

---------- Post added at 04:27 PM ---------- Previous post was at 04:25 PM ----------

If i wipe data, will it delete /data/media/0/montoya_recovery_vX.zip Â¿?
[Fire TV Android Development] rbox:
It will erase EVERYTHING in /data. But once TWRP is installed and you are running wipe in it, you don't need that file anymore.
[Fire TV Android Development] Antieco:
Is there a way of debloating all amazon stuff? any recommended launcher besides firestarter?
[Fire TV Android Development] rix1337:
This is awesome news! Now I just have to find a way to root my 5.2.11 sticks ..
[Fire TV Android Development] puppinoo:
Awesome work.

As [MENTION=4704295]Antieco[/MENTION] asked above, I'd really like a debloated rom too to speed the stick up and I'd like to reinstall Firestarted 3.2.3 as it was perfect for my needs using 5.0.5 rom. Are both of the tasks possible?

Again thanks a lot to rbox fot his amazing work.

puppinoo.
[Fire TV Android Development] rbox:
I highly doubt "debloating" would accomplish anything, but yes it's possible.
[Fire TV Android Development] puppinoo:
elsewhere (cant remember where) on the forum I found this link

https://github.com/esc0rtd3w/firestick-loader/tree/master/scripts/debloat.

I used it to disable some service but I've never pushed myself to launch the whole debloat script (be careful if anyone decides to try this because in the bloat-enable script it reenables the ota service too).
[Fire TV Android Development] deanr1977:
Rbox will there be a chance of a prerooted image for a lower fireware please? i know you have one for v5.2.1.0 but i want to continue using the mousetoggle app & also the old firestarter app too, i believe i wont be able to use these after using the prerooted image for 5.2.1.0? Or will there be a mod i can use to enable adb & block the fire tv from calling the adb just for the Amazon apps/favorites quicktoggle when you press or hold the home button? I know it probably sounds like alot but im sure im not the only one asking or thinking about this question?

(By the way i left the same message over at AFTVNews but thought id get a better answer in your thread)

Thanks in advance
[Fire TV Android Development] rbox:
Yeah, I sometimes read AFTVNews, but I rarely respond. As for old versions, yeah, that's not a problem. I can generate any version. What do you want?
[Fire TV Android Development] deanr1977:
Oh great thank you Rbox.... Fire OS 5.0.5 would be the version i would like, thats the version im running now rooted with Kingroot & not bothered about the new system or setup which has just been released because everything is running on here perfectly for me & i would just like the Custom Recovery & Super Su. Cheers mate your the best

sent from the past using my Zx Spectrum