yashsingh1/xdaforums huggingface dataset:
[Fire TV Android Development] xenyz:
IMHO, not scientifically proven disabling some Amazon packages and especially their home launcher with your rbox module helps a lot with the limited resources available on the AFTVS1. The list of packages I have disabled is in this post which also includes a very good reason to switch to a proper pre-rooted ROM.

[MENTION=3991724]rbox[/MENTION] is there any word on whether rbox Xposed module works on 5.2.1.1? Or if you have an idea which DB holds the info on the default launcher in FireOS? I just want to hit home and have Fire starter/stopper launch instead.
[Fire TV Android Development] rbox:
No clue.
[Fire TV Android Development] xenyz:
Ok, I'll be the guinea pig and try it tonight. Thanks so much for still supporting montoya
[Fire TV Android Development] rbox:
I updated the OP with 5.0.5
[Fire TV Android Development] notsed:
I've successfully installed TWRP and 5.0.5, then upgraded to 5.2.1.1 just to make sure it would work. Everything went great. I'm going to try installing Xposed and your module tomorrow.

If you're taking ROM requests, would it be possible to have a rooted 54.1.2.3_user_123067020? From what I can tell by reading AFTVnews, it's the last version of Fire OS that's not lollipop. Your module worked perfectly on Fire OS 3, so I'd like to use that if I could. With the limited way I use this stick I don't need much more than Kodi and Xposed.

Thanks for all you do, rbox. We're really lucky to have you.
[Fire TV Android Development] puppinoo:
I was about to ask for the prerooted 5.0.5 version for the same identical reasons [MENTION=3971688]deanr1977[/MENTION] asked and I'm grateful rbox listened. Thanks a lot.
[Fire TV Android Development] zangetsu09x:
hi there i have got an firetv stick gen 2 from tatasky prover and no aap run in it without rechaging for tatasky , i tried root and installed pre rooted rom but still shows that recharge to use this app any fix for this please help
[Fire TV Android Development] reg66:
Please, someone bring me good news lol!! So I have an old gen 1 firestick but it's running firmware/fireoOS version 5.2.8.0.

Is there ANY way to get that back to a rootable/flashable version!? OR even just a previous version... I have been searching for a while now and i'm fearing the worst haha!! Cheers
[Fire TV Android Development] vertycall:
Ask user Ighor in PM for help in downgrading process. If you manage to get to version 5.2.1.1 - apply dirtycow exploit to gain root and flash twrp , etc.
[Fire TV Android Development] Dismal.:
I am on 5.2.7.2 can I downgrade
[Fire TV Android Development] Malte0111:
Hey, I'm currently facing the same problem. Did you find a solution? If so, could you please tell me? That would be great.
[Fire TV Android Development] Rortiz2:
Anyone with a rooted montoya can dump their boot0 partition?

adb shell
su
dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0.bin
exit
exit
adb pull /sdcard/boot0.bin

And send boot0.bin here, please?
[Fire TV Android Development] deanr1977:
Topman! Thankyou Rbox ?

sent from the past using my Zx Spectrum
[Fire TV Android Development] puppinoo:
Thanks [MENTION=3118524]xenyz[/MENTION] . I'm sorry I didn't link your post nor I credited you cause your post helped me a lot.

I'd really like a fully debloated rom with just working essential services AND FTV Settings. Now that there is no more (well, less) brick danger I'd like to try to test mass disabling stuff and see what happens :) .
[Fire TV Android Development] rbox:
Unfortunately no. All of my stuff is built for and designed around lollipop.
[Fire TV Android Development] D-an-W:
Blimy, I go away for one night for an assessment and you and go release all these goodies!

Awesome work as always rbox, will be testing for sure over the Holidays!!!
[Fire TV Android Development] lafester:
Thanks for the recovery and rom images!

So... whats the best way to stop updates in this state? Seems like the build.prop change in recovery is the safest but a lot of work if you don't have a file already configured.

I have read all the aftv news guides so I don't need a lot of detail, just opinion.

Thanks!
[Fire TV Android Development] rbox:
The disable command that aftvnews has listed.
[Fire TV Android Development] lafester:
That's what I started to do but you have to get past the setup. Can you do that from recovery?
[Fire TV Android Development] rbox:
If you're flashing 5.2.1.1, there is nothing to update... Otherwise, the build.prop is probably the only way to do it.
[Fire TV Android Development] lafester:
Great, thanks for the help!
[Fire TV Android Development] xenyz:
To confirm for those wondering:

I'm now running montoya-5.2.1.1-rooted_r1, xposed-v87-sdk22-arm, Fire TV mods by rbox 1.4, and without any additional setup, AppStarter 4.0 works with the home button.
[Fire TV Android Development] deanr1977:
Installed 5.0.5 prerooted with.... hardly any problems haha, but seriously all good at this end & very happy now Kingroots no more!!!! Cheers Rbox & thanks for including 5.0.5 ðŸ–’

sent from the past using my Zx Spectrum
[Fire TV Android Development] nicholsy:
Thanks for the prerooted 5.0.5 rbox, all working great :D
[Fire TV Android Development] scoobysnack:
I deleted almost everything that said "Amazon". I do not need any of that as I use a Roku for all my main streaming. I turned it into a dedicated "Kodi Stick" and I will say it seems way faster and smoother. I did manage to delete the settings apk so if anyone has it and can post it up I would appreciate it.
[Fire TV Android Development] Antieco:
So after deleting all amazon stuff, what launcher are you using?
[Fire TV Android Development] scoobysnack:
I'm using app starter... The only problem is I cannot change wifi connections. I installed a wifi app which will allow me to change with a wifi keyboard. I may pay around with the ROM some and post up a Kodi specific ROM.

---------- Post added at 05:59 PM ---------- Previous post was at 05:58 PM ----------

I'm using app starter. Sorry read my other post I tried to quote you but it didn't work.
[Fire TV Android Development] FiveZeroes:
These files are for the fire TV stick, not the fire TV. I'm not experienced with the base fire TV, but you might be out of luck...
[Fire TV Android Development] bula1ca:
Not sure why (when there is a specific post for FireTV 1) but that is exactly what he did.
[Fire TV Android Development] nikec:
Is it possible to create a pre-rooted 5.2.4.0 image for the FireTV Stick (montoya)?
[Fire TV Android Development] MetaIIica:
will google play (and gapps) working correctly?

Gesendet von meinem LG-H850 mit Tapatalk
[Fire TV Android Development] notsed:
Ah that's a bummer. Thanks again. Have a great holiday.
[Fire TV Android Development] rbox:
Sure. As soon as Amazon starts pushing it...
[Fire TV Android Development] mcmanuf:
Hi rbox.

Thank you for your great archievement.

Will it be possible for you in future rom updates, to block updates in the prerooted rom file?

There is no idea in updates being enabled by default in the roms.
[Fire TV Android Development] king200:
SuperSu that is installed with the image has no user interface. I usually choose no Re-authentication, Default access, [Grant] and Show Notifcations, unchecked.

If I just install Supersu.apk of flash a regular SuperSu.zip, will I get an interace?
[Fire TV Android Development] rbox:
No. It's something Amazon changes that makes it not work.
[Fire TV Android Development] sconnyuk:
If you install SuperSU version 2.01 you will get the user interface, ive done it myself. 2.01 is the latest version that works with fire stick.

You might have a little mess about to get it installed, I think I tried freezing it in Titanium then trying installing then unfreezing it and installing and finally worked.
[Fire TV Android Development] king200:
I found SuperSu 2.01. Could not install. With Titanium Backup, I could not find Supersu app to freeze. I replaced the Supersu in montoya-5.2.1.1-rooted_r1.zip rom and installed with TWRP.

Only after a few hours of used, v 2.01 seems to be working perfectly. There is no shortcut in FireStarter-v3.2.3 unless I have system apps in menu. I rarely access that app after I make my desired settings. I had made an error and denied permissions to ADB and did not know how to change without the SuperSu, user interface. With the interface in v2.01, it was easy to change.

I don't know what problems to look for with the earlier version SuperSu. Here's the app if you want to experiment.
[Fire TV Android Development] MetaIIica:
have anyone a idea how i can shown my USB-Stick or HD connected with a OTG-Adapter in all apps (not only ES-Explorer only (here it works when i use it with Rom-Toolbox at start at boot)) such as Kodi? I have a extern HD with a lots of Videos and Music and will use it with Kodi without a Networkserver

can we do that with a change in fstab?

send and wrote with stickyfingers from my unholy and horny LG H850
[Fire TV Android Development] SanJoseCA:
[MENTION=3991724]rbox[/MENTION] Amazing. Thank you.

[MENTION=4493588]king200[/MENTION], "adb install -r -d supersu-2-01-multi-android.apk" worked for me. Didn't have to modify zip. It asked me to "upgrade" binary (which could very well be a "downgrade" depending upon what version [MENTION=3991724]rbox[/MENTION] has packed, not sure), after that worked normally.
[Fire TV Android Development] tgellen:
Many, many thanks [MENTION=3991724]rbox[/MENTION] this and the TWRP recovery have worked a treat and now my Fire TV Stick is even more awesome than ever.

Just a quick question slightly above the norm ...

Is it possible to set a script to start on boot before the Home screen is launched?

Reason:

I've disabled com.amazon.tv.launcher and use SPMC (Launcher apk) as my Home screen; I've also set SPMC to wait for the network to connect before starting as I use MySQL as the database which is located on a separate system. I want to switch my Fire TV Stick from using Wifi to using Ethernet (AX88772) over OTG which requires enabling OTG at boot time!

I've tried scripts in /system/su.d, /system/etc/intstall-recovery.sh and /system/etc/install-recovery-2.sh all of which I chmoded to be executable, as per the instuctions I've found here on XDA, and I created the files on Linux to ensure they had the correct line-endings before pushing them to the Stick. If I run any of them manually then they work fine so I know the scripts work; it's just that they aren't called on boot!

Any ideas?
[Fire TV Android Development] vjgrace:
Hey tgellen,

I personally use "universal init.d" on google play which has a small footprint and very easy to set up...I think you will need some mouse activity to use it (which can be performed with a usb hub)...I have actually used a separately powered usb hub and have connected a keyboard/mouse, or a usb mouse/remote, usb ethernet, all without issues, didn't really test too much, could have probably used various flash drives because it was separately powered (but would most likely need to use "stickmount" or something to get usb flash to work. Drawback I found is that universal init.d begins after homescreen launches, but because ethernet is so quick, things connect rapidly...I too have disabled amazon's launcher and just use firestarter.

I also have tried various folders and scripts without a third party app to facilitate OTG but was never successful with auto execution they were fine with manual facilitation (if anyone has been successful facilitating OTG without an app, please share, I would match rather used my own scripts without needing a third party app but I found universal init.d to execute scripts pretty efficiently).

Hope that helps.
[Fire TV Android Development] sconnyuk:
I had the otg start at boot and used rom toolbox lite. In the scripter menu add your script and set it to start at boot.

Worked fine for me.
[Fire TV Android Development] tgellen:
Just noticed (5.2.1.2 has been released by Amazon)
[MENTION=3991724]rbox[/MENTION] don't suppose you could produce a 5.2.1.2 pre-rooted image we could upgrade to so we don't have to worry if we need to factory reset our sticks?

I know I'm just paranoid as I've got Updates blocked by disabling the OTA service, put the 2 main domains in the FTVS /etc/hosts file as 0.0.0.0, also have it configured in the 2 DNS servers (Pi-Hole) I run at home as 0.0.0.0 and blocked it at the router (OpenWRT); but better safe than sorry ;)

[MENTION=530946]vjgrace[/MENTION] Just tried "Universal init.d" and it works a treat thank you :)
[MENTION=4196591]sconnyuk[/MENTION] "ROM Toolbox Lite" looks really good; just wondering if installing it's version of BusyBox is safe. I previously followed this Tutorial and afterward had BusyBox installed but KODI started playing up (Internal WebServer stopped working, some plugins errored on startup) :(

Cheers, TG.
[Fire TV Android Development] sconnyuk:
Theres no need to install busybox again, the one you installed previously works fine with it.
[Fire TV Android Development] tgellen:
I removed to old one (Full Wipe in TWRP) because it caused problems. Was just wondering if this version was any better.

No worries though I'll give it a try at the weekend when the wife & kids aren't using the TV ;)
[Fire TV Android Development] rbox:
As with every release, I need someone to get the URL of the update.
[Fire TV Android Development] tgellen:
Doh! Of course. I really shouldn't post before my first coffee of the day!
[Fire TV Android Development] smspop:
Any uncomplicated way for root on Firestick, 5.2.1.1?

Thanx.
[Fire TV Android Development] sconnyuk:
Currently no root for 5.2.1.1
[Fire TV Android Development] JUSTINMARMER:
Can I dirty flash from 5.2 to 5.0? I'd hate to have to set all apps and Google play and everything back up again.

Edit: Well I tried. Huge mess. Could not stay connected to wifi. Adb device was offline after booting completes no matter how much I toggled it. Every app crashed. I ended up just wiping everything anyway. Sooo, don't dirty. At least not backwards anyway.
[Fire TV Android Development] hugge18:
[MENTION=3991724]rbox[/MENTION] I have just rooted my fire stick 5.2.1.2 threw the hardware method and were wondering if i could help in any way with the pre rooted 5.2.1.2 image? by for example doing a image of 5.2.1.2 rooted (do a image of my rooted fire stick on 5.2.1.2)
[Fire TV Android Development] Axecaster:
Dirty flashed from prerooted 5.2.1.1 to prerooted 5.0.5?
[Fire TV Android Development] Spillunke:
Works good. Thanks a lot!
[Fire TV Android Development] diggix:
Edit: works
[Fire TV Android Development] procter:
There was a hack back in the fireOS 3 era, that puts the external usb drive as part of the internal memory. Is it still available for the newest FireOS 5. I have not seen any update on that.
[Fire TV Android Development] -BoneZ-:
Is my FireTV Stick 1 perma-bricked, or can I re-flash 5.0.5 somehow and get it back to stock? Info below...

So, apparently I downloaded and flashed the wrong TWRP for my TV Stick 1 (flashed the TWRP for FTV1 box by accident). and now my stick is in a boot loop. It keeps rebooting over and over at the white Amazon logo. ADB can't see it because it's not booted. And plugging it into my PC's USB does nothing.

Can it be saved, or is it time to throw it away?
[Fire TV Android Development] XDA_h3n:
[MENTION=3991724]rbox[/MENTION]

I'm pretty sure this was on Aftvnews.com's update page; nevertheless, I flashed your 5.2.1.1 on my fire stick and grabbed the update link through a packet sniffer.

Fire OS 5.2.1.2 (562254320)

Full update package (sniffed)

https://amzdigital-a.akamaihd.net/obfuscated-otav3-9/f1ad23d46f7d2592ce4f772a11ed4365/update-kindle-montoya-54.5.6.2_user_562254320.bin

Fire OS 5.2.1.2 (562254320)

Partial update package (from update page on Aftvnews)

https://amzdigital-a.akamaihd.net/obfuscated-otav3-9/4de6091fd393bd658b3e47f468f1b67c/update-montoya_montoya-551203220-to-562254320.bin

Also, I believe 5.2.4.1 is also out for the fire stick, I don't know if this is dependent on the software version being 5.2.1.2?

Seeing my stick checked for updates and received the 5.2.1.2 update and not the 5.2.4.1 update; it either hasn't came out to this batch of fire sticks (this stick is the one that receives updates once most of the people have got it :eek: ) or it is dependent on 5.2.1.2 being updated?

Yep, I believe updates are dependent on each other, my other stick on 5.0.5 will find 5.0.5.1. When an prerooted 5.2.1.2 comes out, I will try to catch the link of the 5.2.4.1 for the stick.

I believe the preloader method of unbricking is only working on the fire tv and not on the stick. Even then we would need an unbrick image.

Update

I have downloaded the 5.2.1.2 full firmware package and renamed the extension from bin to zip. I then flashed that with TWRP, then I flashed the flashable SuperSU zip package (to have root) and the flashable Opengapps (Pico) zip package and lastly the flashable xposed framework zip package. The update worked, but my stick hasn't found the url for 5.2.4.1; that will probably come out in the next couple of weeks :)

The boot menu has gone, but root is kept; after the update just simply follow the steps to running the sh command for the recovery.

Simply use adb shell, then type su (for root permissions) and lastly sh /data/media/0/montoya_recovery_v1.zip

Before using this method, ensure your current installation has working SuperSU and that you have used it at least once used it to allow su in adb shell
[Fire TV Android Development] to_b:
I just sniffed another Update-URL (from Fire OS 5.2.1.1, Germany):

https://amzdigital-a.akamaihd.net/obfuscated-otav3-9/577b3aec9b27e440565f404cb36efd64/update-montoya_montoya-551203220-to-573210520.bin

Edit: According to the AFTVnews update page Build 573210520 should be Fire OS 5.2.4.1.
[Fire TV Android Development] XDA_h3n:
Wow. :good: Thanks ;) The thanks button doesn't seem to be working for me here :eek:

Now we have a collection of 5.2.4.1 firmwares for all of the fire stick devices (apart from the stick 2).

Though.. It isn't anything to get excited about when people are having issues with 24p playback, but to finally have a new interface on the stick; it's good enough :rolleyes:
[Fire TV Android Development] to_b:
Thank you very much!

Works like a charm. :good:
[Fire TV Android Development] D-an-W:
AFTV2 & Stick 1 done, thanks!
[Fire TV Android Development] Cobra11Murderer:
darn I messed up, did a factory wipe before installing what I needed :| now not to sure how to get this installed. The stick keeps checking for a update but I have that blocked not only on the router level but also dns

Edit:

Nvm got it just had to sideload the rom worked like a charm!
[Fire TV Android Development] king200:
I just updated to 5.2.4.1_r1. I tried a dirty flash but got a bootloop with Amazon. A clean wipe worked fine.

I replaced the SuperSu 2.46 in the package because I liked a user interface that I got in SuperSu 201. Learned that the user interface is gone anyway so I flashed the OP download. I went back into recovery and flashed a SR3-SuperSU-v2.79-SR3-20170114223742.zip and it seems to be working fine. The root is not systemless.

The Amazon launcher is not bad. I can get my apps on the first screen at the top. Longpress on home key can get me apps choices...
[Fire TV Android Development] bilitte22:
Hi Rbox --I have a fire tv stick 1 on 5.0.5 rooted but not with with prerooted rom.I d like to install the latest rom you just released.Tell is it possible.I can t seem to find the rbox twrp recovery.zip.
[Fire TV Android Development] Y314K:
Interesting... I am guessing you did this to bypass the SuperSU binary update on v2.46 ? And the UI still won't open without the Holo Themer v3 XPosed trick ?

http://www.aftvnews.com/start/

http://www.aftvnews.com/how-to-inst...d-an-initial-rom-on-a-rooted-fire-tv-stick-1/

Ever step is in that guide.
[Fire TV Android Development] duke_mac_l:
I dirty flashed from 5.2.1.1_r1 to 5.2.4.1_r1 without a problem.

Big thanks to rbox for his work.

Gesendet von meinem A0001 mit Tapatalk
[Fire TV Android Development] hansgustl84:
Will this be coming to 2nd gen Stick too?
[Fire TV Android Development] TMonte87:
[MENTION=3991724]rbox[/MENTION] do you know if its possible to recover from installing Magisk? I believe I bricked my device (stuck at Amazon logo) and adb is not showing my device listed. Am I SOL?
[Fire TV Android Development] Y314K:
In theory you should still have TWRP access to reflash RBox's PreRooted ROM. Switching back to SuperSU. But don't understand why you tried Magisk on a locked bootloader device !

Can you be more detailed on what you tried, please. PM if you like.
[Fire TV Android Development] Protocold:
I want to run a script (to enable OTG) on startup and I did a search on this. Some threads refer to putting something on /system/etc/install-recovery.sh but I dont think it works (my script itself work by manually run it)

Is there a proper way to do this on the pre-rooted images?
[Fire TV Android Development] Axecaster:
Sounds similar to what I experienced between 5.0.5 and 5.2.4.1. OTG can be manually run and enabled on both, but ROM Toolbox Lite's feature to auto-run scripts at boot worked on 5.0.5 but seemed not to on 5.2.4.1. I'm probably overseeing something obvious, but maybe someone else here can clarify.
[Fire TV Android Development] tgellen:
The best way I've found is to call your script /system/bin/factoryadb.sh which is started approx 5 seconds after boot. I use this to call some custom scripts including enabling OTG.

Make sure the permissions and ownership are correct

-rwxr-xr-x root root 302 2017-03-30 14:50 factoryadb.sh

If it works you'll see an entry when running dmesg as root

<3>[ 4.998016] init: Warning! Service factoryadb needs a SELinux domain defined; please fix!

I found the entry which calls this in /init.build.rc

On my FTV Stick v1 the file didn't exist by default.

Hope this helps.
[Fire TV Android Development] tgellen:
Hi,

What's changed between r1 & r2?
[Fire TV Android Development] Y314K:
On the AFTV1's & sticks it seems to have fixed "Dolby Digital over optical on the Fire TV 1" & some other bugs. Possibly the 24p Kodi bug.

http://www.aftvnews.com/amazon-fire-tv-fire-tv-stick-software-update-history/#573210720

http://www.aftvnews.com/new-software-updates-rolling-out-to-all-amazon-fire-tvs-and-fire-tv-sticks/
[Fire TV Android Development] tgellen:
Cheers. I completely missed those posts. What a plonker I am :silly:
[Fire TV Android Development] Y314K:
Howdy, I forwarded your OTG startup option to a friend that had asked me about that. Thanks for sharing that option.
[Fire TV Android Development] micgeb:
done
[Fire TV Android Development] tgellen:
Glad I could give a little something back :)

Just added a quick HOWTO on how I've used this to implement simple /etc/init.d support on boot.
[Fire TV Android Development] Techstro:
There is one file that I need that often gets debloated, com.amazon.venezia.apk is the app store. I need it back. If you have any info on it I would be ecstatic!
[Fire TV Android Development] adoptedmfr:
nm. I was looking at the wrong #'s

I flashed the right one.

mod delete, or leave my reminder of stupidity up
[Fire TV Android Development] Y314K:
Looking to test why 3 APK's won't install on FTVS1's. Can someone on a Rooted FTVS1 please PM me. The test will be very simple. And I will supply all the files.

It will consist of installing a logging app & giving it full root access. Then putting the logging app to record.

Then you will need try to install 3 APK's. All 3 should fail installation. They have all failed in Un-Rooted FTVS1's.

Then you will need to stop the log recording. This will create a log file which should have the info why the installations failed. Will need that log file sent to me.

Any volunteers ? Please PM if you have some free time today.
[Fire TV Android Development] ahasae:
can you please give me the instruction to flash the ROM

i have a clean fire TV stick not rooted nothing changed with the system
[Fire TV Android Development] santamanga:
Check under System > Info what software you are unning, then read here, [MENTION=4944224]ahasae[/MENTION]

http://www.aftvnews.com/root/