yashsingh1/xdaforums huggingface dataset:
[Fire TV Android Development] ldeveraux:
Yup, they all wrote, same records in/out, all bytes copied. I'm not running as root user, just the pi user, but using sudo before each line gets it done. I don't know what's going on with it...
[Fire TV Android Development] n2outlaw:
Awesome work rbox

Does anyone know how to get Play Store working on this rom?
[Fire TV Android Development] Kramar111:
6. If dd's & sync executed without errors, unplug USB cable from computer, power off and power on Fire TV.
[Fire TV Android Development] ldeveraux:
Yeah, I reset the fire a few times before I posted that it didn't work.
[Fire TV Android Development] Animux:
I installed the image on my firetv and wiped to remove the kingroot stuff. Now I am in the initial setup and the device wants to update and I cannot get past the update check. Just to be sure, this http://www.aftvnews.com/how-to-complete-the-fire-tv-initial-setup-without-updating/ should still work with fireos 5?
[Fire TV Android Development] rbox:
It should work? If you can get me the URL, I can make the prerooted ROM. Otherwise you'll have to wait until I get it.
[Fire TV Android Development] D-an-W:
I couldn't get that "bypass update" tip to work when trying to check what version my AFTV1 was on so just thought sod it and removed the DNS blocks from my Router. It then got past the checking for updates page and just booted into 5.0.3 telling me there was an update to 5.0.5 available (At this point I re added the DNS block to my Router).

---------- Post added at 08:53 AM ---------- Previous post was at 08:11 AM ----------

@rbox many thanks for your hard work with this, my AFTV1 & 2 are both rooted with 5.0.5.1 thanks to you (My AFTV Stick was replaced under warranty and the new one came with 5.0.5.1 so there is no hope for that!).

I have just sent a donation your way :good:
[Fire TV Android Development] sebr:
Thanks for your hard work rbox! Goin to donate soon. I installed your TWRP on my 1st gen FTV with 5.0.5 and locked bootloader. After that flashed prerooted ROM 5.0.5.1_r1 and factory reset the device to get rid of kingroot stuff by wiping cache, data, dalvik and internal from the recovery menu. Unfortunately it seems I am not rooted. When I try to su I get the following error on adb shell:

Any idea whats wrong?
[Fire TV Android Development] D-an-W:
Have you clicked the "Allow" prompt on the Fire TV when you first enter su?
[Fire TV Android Development] sebr:
There was no prompt or I missed it. How to get the prompt again?
[Fire TV Android Development] D-an-W:
Just send the "su" request again from terminal, it only stays on screen for 15 seconds.
[Fire TV Android Development] sebr:
No prompt showing up...
[Fire TV Android Development] 949BFN:
I believe I followed this guide exactly:

http://xdaforums.com/fire-tv/development/firetv-1-bueller-twrp-recovery-t3383286

i.e. I ran cat /proc/cmdline to confirm boot loader is fully unlocked.

I am on ROM 51.1.4.0_user_514006420

I rebooted into CWM recovery to ensure it is installed

Next I rebooted and followed the rest of the guide to install TWRP recovery

All steps completed as they should

BUT When I reboot into recovery, I get a slow flashing screen, showing "teamwin Recovery Project 3.0.0-6", almost as if the screen is turning on and off. Recovery seems to be hanging.

Tried numerous times with the same result.

The FTV boots fine into the OS (fortunately). This is not the same FTV as the one I referred to earlier.
[Fire TV Android Development] klingon:
Happened the same to me. After system reset (to clean kingroot) i was unable to su via adb shell.

Just flashed the rom again via recovery and now all is working fine.
[Fire TV Android Development] bbenz3:
I'm getting the same issue where TWRP almost loads but then appears to reboot and eventually it flashes on the screen again. I'm going to try and reflash the TWRP recovery and see if that is the issue.
[Fire TV Android Development] mrchrister:
[MENTION=4810201]bbenz3[/MENTION] i had the same issue with twrp only flashing briefly. i had to reinsert my usb stick and then it worked. i didnt even need to reboot, just plugged it while twrp was flashing and then it loaded
[Fire TV Android Development] bbenz3:
I've never had any external USB storage connected. It appears that over in the TWRP thread that a number of people are having this issue and possibly it is related to the monitor/tv that is being used. It appears that TWRP is working but the display is just continuously being reset.
[Fire TV Android Development] KLit75:
Curious why that doesn't work for me...It's also weird that my TV is 1080p and I verified it on the TV, in the AFTV settings and even went into the hidden resolution settings and it's at 1080p. In fact it won't let me switch to any other resolution.

Though inserting the usb while attempting to load recovery didn't work it definitely does something. My USB stick has lights and those lights only flash for a second right before TWRP attempts to load.
[Fire TV Android Development] 949BFN:
Never used a USB stick either (only USB device ever plugged in, was/is the keyboard.)

The FTV having the issue, is usually connected via an AV Amp. I bypassed the amp and plugged it directly into the TV - unfortunately it did not make a difference.
[Fire TV Android Development] rbox:
I think it would be best if the discussion about recovery move to the Recovery Thread and this thread be left to discuss the ROM.
[Fire TV Android Development] kTreb:
I'm having some weird issues. For some reason neither 5.0.5 or 5.0.5.1 wants to boot past the white amazon with yellow fire tv logo. It does the rainbow start up first time then sticks. I have been able to get 5.0.5.1 to boot up and say that it's preparing storage but freezes there. I thought I had bricked my device at one point and had to fastboot CWM recovery and reinstall OS3 prerooted through adb sideload connected directly to my router. Any one have any ideas why I cannot get it to boot to OS5?
[Fire TV Android Development] schneid:
Success

Went fine for me. Used the already rooted route. Confirmed unlocked bootloader. I ADB pushed recovery and the rooted image to /sdcard. I booted to the old CWMR recovery, wiped Dalvik and Cache, and then ran the script Rbox has posted from ADB Shell SU while still in CWMR, ADB rebooted recovery, and went to TWRP from the new boot screen. Installed 5.0.5.1 from there.

To get Xposed back on line you need to go here:

http://xdaforums.com/showthread.php?t=3034811

and sideload the new Installer and flash the Zip from TWRP. You want an SDK 22 ARM. Download the Uninstaller too and push to your SD Card in case you want/need to uninstall it. That to must be flashed from TWRP.

I need Xposed to have Nova replace the Amazon launcher. I updated Rbox's Xposed modules ver. 1.4 from here:

http://xdaforums.com/showthread.php?t=2786618

I had zero issues and have a USB stick inserted. Flashing from while CWMR may avoid USB issues if that is what is causing some to struggle. It also allowed me flash before my old Xposed was loaded avoiding another source of potential problems.

Thanks Rbox. Beer/coffee waiting for you.
[Fire TV Android Development] kTreb:
I just tried this route starting from a prerooted "bueller-51.1.6.3_516012020-rooted.zip" with CWM "firetv-cwm_recovery-6.0.5.1.4a.img". I booted into OS3 fine confirmed unlocked bootloader. Sideloaded TWRP and 5.0.5.1. Rebooted to CWM confirmed wiped Cache/delvik, ran script. Rebooted into TWRP. Installed 5.0.5.1 fine with Unlocked kernel message showing it installed. Rebooted and again stuck at loading screen (white amazon yellow arrow under and yellow fireTV logo. Did not get setting up storage this time. Not sure what to try next.
[Fire TV Android Development] E--Man:
Hi [MENTION=3991724]rbox[/MENTION], first and foremost, a sincere thank you for your hard work on this and the upcoming FTV Rooted Stick ROM which I am very much looking forward to since I am against the bull**** Kingroot crap. I have a couple of new Sticks in the box for a long time and have held off on taking them out until a proper root procedure is established.

I have been following your ROMS/procedures from the beginning to unlock bootloader, install your custom boot menu, and install your prerooted ROMs via CWM. I have been reading here how installing this new version incorrectly can cause permanent issues such as bootloader being locked or efuse being triggered.

For those of us who have followed you from the beginning, is there is a specific set of detailed set of instructions that we can follow to be sure that we remain rooted with unlocked bootloader and don't accidentally screw things up when upgrading? Again I am coming from the latest ROM before the new OS 5, with your custom boot menu and CWM with bootloader unlocked. Perhaps we can run test commands during the upgrade to be sure that the system state is correct before running commands that take irreversible actions.

Thanks.
[Fire TV Android Development] kTreb:
I was able to get it to boot into the initial setup now. Get to the check for updates page and then it displays unable to update your Amazon Fire TV. What I did was ran the script in CWM to install TWRP then again in TWRP. Not sure why this made a difference but once I installed TWRP the second time I installed 5.0.5.1 and am able to boot until the unable to update screen.

I had updates blocked from my router, removed those urls and now it said checking for updates briefly but got through like it usually did on os3. Finally got it all working.
[Fire TV Android Development] Fgarcor:
I think you may have flashed the bootloader from the cm12 ROM, that requires an external USB to boot up. Could it be?

---------- Post added at 01:54 AM ---------- Previous post was at 01:47 AM ----------

Wouldn't this work for manually flashing older ROMs? Or does the bootloader have to be the same to be compatible?
[Fire TV Android Development] rbox:
In what context or usage?
[Fire TV Android Development] Fgarcor:
No I was thinking of flashing older ROMs to get the version that allowed to for example unlock the bootloader, but these steps are for unlocked bootloader.

Although then, they could flash again the latest version that can be unlocked, unlock it again, and try again to update. without losing the unlocked bootloader.
[Fire TV Android Development] rbox:
Once you are on a ROM that blows the fuse, you can't go back to the older bootloader.
[Fire TV Android Development] Fgarcor:
Thanks rbox. I meant only instead of flashing 5.0.5, to flash the version in OS 3 that allowed unlocking the bootloader. Unlocking it again. That way they can boot up again without bootloop. And then update to the 5.0.5.
[Fire TV Android Development] rbox:
The people who are in the situation where they needed to dd the stuff have their fuse blown. So there is no downgrading anything.
[Fire TV Android Development] Fgarcor:
Perfect, that answers my question. Thanks for your time.
[Fire TV Android Development] ldeveraux:
Does the DD need to be done as SU? Because I still have no luck unbricking.
[Fire TV Android Development] dk1keith:
Hope someone can give a quick answer since I am in TWRP recovery and don't want to proceed to the next step without knowing what I am doing. I'm in TWRP and I have the 5.0.5.1 rom on sdcard. I connected the fire tv to a monitor so I can see some of the TWRP screen. (had the TWRP loop before connecting to monitor). Can I just flash the new rom from TWRP? sorry for the urgency....

I am currently on OS3 51.1.6.
[Fire TV Android Development] cd2022:
That's where you flash it. In TWRP screen select "install" then navigate to where you save the rom and follow the screen to flash it.
[Fire TV Android Development] dk1keith:
thanks so much for the quick answer. Because I had to connect to a monitor to get into TWRP I can't see the entire screen when I select the rom to install.....I can't see what I should click next to begin the install.....
[Fire TV Android Development] cd2022:
On the bottom right of your screen, there's a box with 3 arrows pointed to the right and the label "Swipe to install". Click it after you selected the proper rom.
[Fire TV Android Development] NxtGenCowboy:
FireTV is back up and running.. Thanks for this [MENTION=3991724]rbox[/MENTION]

I didn't follow directions and didn't update TWRP first, dumb mistake. Oh well, lost root and what not but at least the device works.
[Fire TV Android Development] dk1keith:
Yeah thats the problem I'm having because I am connected to a pc monitor I can't see the bottom of the screen or the swipe button. I can only see the portion of the screen that says This Operation May Install Incompatible Software. can't really see anything below that because the rest of the screen is cut off.

thanks
[Fire TV Android Development] cd2022:
If your monitor had the vertical and horizontal adjustments, you can try to see if it shows.
[Fire TV Android Development] rbox:
It depends on your dist. If you are getting errors, then yes. If not, then no. You can also try doing eject /dev/sdWHATEVER at the end as well. Maybe you can post what it looks like when you run all the commands.
[Fire TV Android Development] vlarhad:
So I installed this prerooted image (5.0.5) and I factory restored it afterwards and now I can't use Su in adb shell. I've saw some people had the same issue but I wonder if this is normal?
[Fire TV Android Development] wildecard:
Ok, so I was also one of the people who didn't read carefully enough and updated even though I didn't have a fully unlocked bootloader. I was able to recover it with the included instructions (Thank you so much!) My question is now that I'm no longer unlocked but am still rooted and have TWRP what does that mean for me going forward? Am I stuck on this version? Can I update to future prerooted roms? Would I brick it again if I tried? Regardless of the answer I'm just glad that I was able to get it going again and am grateful to all who contribute for all of the help on these forums. Thanks!
[Fire TV Android Development] rbox:
What do you mean you "factory restored" afterwards? What does "I can't use su" mean? What were you before flashing 5.0.5? Unlocked with FireOS3 or rooted with FireOS5 and locked?
[Fire TV Android Development] rbox:
Now you're identical to the people who started out with locked bootloader. So bootmenu/TWRP will still work and you'll still be able to install the updates.
[Fire TV Android Development] ldeveraux:
Interesting. I repeated the commands and ejected at the end. Then it booted just fine. SO I just disabled the updates and I'm safe there. If I su from adb, it claims to be rooted, though don't know if that's remnant from before. Do I still have to install your prerooted image from this thread? The one you linked from the linux fix was stock from Amazon. What should the Software Version be in 'About' for your stock rooted image? Mine now says "Fire OS 5.0.5.1" which makes me think it's not the prerooted variety.
[Fire TV Android Development] schneid:
If you can SU you are rooted. My pre-rooted is 5.0.5.1 from Rbox so I'd expect it to say that in About. If you can TWRP your rooted. If you can run Xposed your rooted. If you are doubting, just go to TWRP and re-install Rbox's pre-rooted image.
[Fire TV Android Development] ldeveraux:
all good points, thanks. I was just wondering what the 'about' is supposed to say for this image compared to what it says on mine. I guess I could just reflash his image in twrp for insurance
[Fire TV Android Development] d3adpool:
for some reason su isn't working for me, i kingrooted, then installed twrp, then prerooted 5.0.5.1 and then a factory reset from twrp to remove kingroot. I'll try reinstalling the rom again.

nvm, got it working
[Fire TV Android Development] davekaz:
you are correct I had same thing with interlaced screen on 720 and it would loop in 1080.. I reflashed cwm through adb then retwrped and still was same problem I finally swapped monitors back to tv and it worked after a few blinking resetting minutes..works great now but many people had screen issues. Now to get google play back. Thats a bit confusing. Im not fire tv 2 so that guide is not good(I tried flashing xposed arm through twrp and didnt work
[Fire TV Android Development] schneid:
For Xposed you must sideload Xposed "Installer_3.0-alpha4.apk":

http://xdaforums.com/attachment.php?attachmentid=3383776&d=1435601440

You must Install SDK22 ARM v.84 within TWRP:

http://dl-xda.xposed.info/framework/sdk22/arm/xposed-v84-sdk22-arm.zip

If you copy this to the same directory it will automatically check MD5 if implemented:

http://dl-xda.xposed.info/framework/sdk22/arm/xposed-v84-sdk22-arm.zip.asc

Copy the Uninstaller too. "Install" it in TWRP to remove Xposed if needed:

http://dl-xda.xposed.info/framework/uninstaller/xposed-uninstaller-20150831-arm.zip

The XDA Thread is here:

http://xdaforums.com/showthread.php?t=3034811

You'll need Rbox's Modules to anything with Xposed. If they were installed before they should still be there.

Ver. 1.4 is here:

http://www.mediafire.com/download/a6oe46yazzlihty/RboxFireTvMods_1.4.apk

Thread is here:

http://xdaforums.com/showthread.php?t=2786618
[Fire TV Android Development] davekaz:
Thanks so much

---------- Post added at 02:26 PM ---------- Previous post was at 01:57 PM ----------

The open gapps fails wrg architecture maybe 64 wrg
[Fire TV Android Development] schneid:
What does that have to do with Xposed?
[Fire TV Android Development] davekaz:
Nothing my friend. You helped greatly. Xposed is running thanks to you . Just my reasoning for it to be on was to put gapps on. I'll work it out. Thanks again
[Fire TV Android Development] schneid:
Well now you got seeking gapps. I actually had them installed but thought they were screwed up as you can't see the cursor in the Play Store. Trying my ist TWRP restore to start over. Anyway I think we want ARM 5.0 nano from:

http://opengapps.org/

This may be a good guide:

http://www.aftvnews.com/how-to-install-the-google-play-store-on-the-fire-tv-2-running-fire-os-5/

but using the 5.0 version instead.
[Fire TV Android Development] vlarhad:
Sorry for the late response, I was kinda busy.

My boot loader was locked and I was original on FireOS5(5.0.5 rooted with KingRoot). And I did a factory restore with TWRP because I saw that in the guid from aftvnews. After the setup I tried a root checker and it said that there wasn't a good root. And with the su do I mean that I used that command in the ADB shell via my computer to disable updates.

But still thanks for all your work.

(sorry for the bad english)
[Fire TV Android Development] rbox:
And you still didn't say what "I can't use su" means. You type in su and what happens?
[Fire TV Android Development] vlarhad:
I got this message "/system/bin/sh: su: not found"
[Fire TV Android Development] schneid:
Is the su executable in your adb directory or in your path?
[Fire TV Android Development] davekaz:
Yes I tried that but seem to be running in a insufficient space issue.. There is almost 3 gig there..so I will just side load the 3 files needed besides play (lean).. Good idea backing up through Twrp
[Fire TV Android Development] vlarhad:
ADB directory but I installed on the amazon fire tv a root checker and it said that there was a problem with the root.

I think it wouldn't work on the aftv either.
[Fire TV Android Development] d3adpool:
root checker told me the same thing, i reinstalled the prerooted rom thru recovery and as a test installed ES file explorer and turned on Root Explorer or whatever its called and got a superuser prompt to give su permission to es file explorer. Maybe you should try the es file explorer root explorer first to see if it grants you superuser access. If it doesn't you're not rooted or something and I advise reinstalling the prerooted rom via recovery.
[Fire TV Android Development] schneid:
I'm suspecting something is wrong with Root. I get root with Root Explorer, ES, and SU from the Command Line but cannot install the Play Store as the target directory errors out as unritable. RootExplorer and ES both show the directory as Read/Write but i cannot manually copy to it.

Wonder if there is a TWRP flashable SU available.
[Fire TV Android Development] ldeveraux:
Logistically, supersu flashes through twrp, not sure if it will work properly with the fire though.
[Fire TV Android Development] YoColdRain:
Apologies if I missed something but I'm not able to connect via adb anymore... anyone else with this issue? unlocked bootloader, twrp and this rom.
[Fire TV Android Development] schneid:
I flashed Chainfire's latest in TWRP. No boot. Had to re-flash 5.0.5.1r1.
[Fire TV Android Development] ldeveraux:
You could try sideloading the supersu apk, then trying from the software side. Again, doubt this would work, but rbox would know.
[Fire TV Android Development] d3adpool:
i tried this during my first attempt but did not work for me. I have to reflash the rom in order for supersu to work correctly. Maybe he/she will have different results if they try sideloading the supersu apk.
[Fire TV Android Development] tdfsu:
Yea, not sure if something is wrong with root, but su works for me (just not the gui), but can't copy/move files to system/priv-app even when changing permissions. Seems something is not exactly right...
[Fire TV Android Development] reiteravi:
i'm on 5..r1 and twrp

though i disabled updates if i boot to os it shows update is underway estimating 1-2 min

rebooted to recovery

deleted all *.bin from cache and data

wiped cache and data from twrp

still shows update

any idea ?

i'm still rooted and all

is this update ok ?

should i fully wipe and reinstall the prerooted r1 again ?
[Fire TV Android Development] jarayn:
So after months of waiting with baited breath trying not to ask the dreaded ETA question I finally (with a couple of small hiccups) got the new ftv version installed thanks to rbox.

Now in a very black fly in my Chardonnay moment, only days after the update, my ftv has killed itself.

The lights are off and no one is home.

The box is deceased.

Timing is everything.
[Fire TV Android Development] vlarhad:
Today I had time take another look at the aftv and I looked at the screen and saw that it had updated to 5.0.5.1.

T_T , the prerooted image I used was 5.0.5 and now i'm on 5.0.5.1. RIP root
[Fire TV Android Development] purav17:
Is it possible for someone to write the scripts for this? I am not very familiar with linux but i can get my way around it if some scripts were provided

Thanks,
[Fire TV Android Development] jarayn:
Never mind. Done. Fixed. Thanks.
[Fire TV Android Development] Nesmaster75:
I'm in the same boat as you, reiteravi. I even tried following the guide "How to stop a software update in progress from installing on a Fire TV or Fire TV Stick" from AFTV news with no luck. Did you happen to figure it out by any chance?
[Fire TV Android Development] reiteravi:
no

with no better idea

guess i'll wait for next build and try again

will use np instead for the time being
[Fire TV Android Development] moeduss:
What would be the fastboot command to do this? cannot get twrp to flash with the method in the recovery thread, tried at least a dozen times and it just keeps saying directory file not found. Thanks.
[Fire TV Android Development] rbox:
fastboot flash recovery
[Fire TV Android Development] moeduss:
Thanks [MENTION=3991724]rbox[/MENTION], tried it but no luck, other issue I seem to be having is I can't get super user permission this is what I get. Thanks.
[Fire TV Android Development] rbox:
And what software do you have installed? Looks like it's not a rooted one...
[Fire TV Android Development] moeduss:
It is the latest prerooted bueller 5.0.5.1rl, had clockwork mod recovery, fully unlocked bootlader 5.0.4.1, I tried to install twrp 3.0.0-6.img about 6 times with a no go ran it a 7 66th time thought it went, installed latest prerooted and now no su or recovery. Thanks again. I have 2 fire tv gen 1 first one went without a hitch, second one not so lucky.
[Fire TV Android Development] rbox:
The only way I know of getting no su with the prerooted is to not use TWRP. Try a factory reset and reinstall it.