yashsingh1/xdaforums huggingface dataset:
[Fire TV Original Android Development] sousa_jeferson:
Good morning guys!

I hope you are well! I have the fire tv stick 4k model E9L29Y, which is in the fire logo loop.

So far I haven't found a step-by-step guide here to help reset the factory, or even change the system.

When I started the script:

sudo ./bootrom-step.sh

Return error: error: serial protocol mismatch, expected 0000 got 2001

I tried the command:

./boot-recovery.sh

The message on the Fire TV stick returned: no command, but 1 minute passes and restarts for the fire loop.

Please!!!
[Fire TV Original Android Development] vasir13:
Does not allow me to uninstall ... I disabled it.

1|mantis:/system/priv-app/com.amazon.vizzini # pm disable com.amazon.vizzini

Package com.amazon.vizzini new state: disabled

Had to rw /system
[Fire TV Original Android Development] xam1988:
It was s bad idea disable Alexa.

You need only delete new version from data.

In module the old version of vizzini from 2.6.4 firmware.

It correctly works together katnis.
[Fire TV Original Android Development] xionbunny:
the google assistant is horribly hobbled anyway since you can't sign in for it to work fully.
[Fire TV Original Android Development] tsynik:
With Russian language setup there is no Assistant suggestions, but you can speek any local text or search in all local ATV Apps by Voice. Current Location / Units also detected correctly. Alexa doesn't support Russian at all.
[Fire TV Original Android Development] xionbunny:
Well I meant things like getting her to tell you a joke or the nice little functions, require a sign in, I can get other basic functions working.
[Fire TV Original Android Development] ChronoWerX:
1.3 can't install here. Redownloaded, same problem
[Fire TV Original Android Development] Harry44:
Same here.

UPDATE: I got it by doing things manually.

- https://i.imgur.com/ungSMyv.jpg

- Download and extract YoureFIREd.zip

- Connect to ADB via network

- Run

adb install com.amazon.fireh1jack-4.0.9.apk
adb install com.amazon.setorientation-1.1.4.apk
adb install com.amazon.tv.leanbacklauncher-1.4.apk
adb install com.irishin.buttonsremapper-1.14.3.apk
adb install LeanKeyKeyboardPro_v4.3.30_r.apk
adb shell
su
pm grant com.amazon.fireh1jack android.permission.SYSTEM_ALERT_WINDOW
pm grant com.amazon.fireh1jack android.permission.CHANGE_CONFIGURATION
pm grant com.amazon.fireh1jack android.permission.WRITE_SECURE_SETTINGS
pm grant com.amazon.tv.leanbacklauncher android.permission.WRITE_SECURE_SETTINGS

- Follow the steps in the OP to set the launcher.
[Fire TV Original Android Development] xionbunny:
shame that launcher has glitches with duplicating apps etc.
[Fire TV Original Android Development] tsynik:
You can't install module direct with Magisk install after reset (when /data/adb sill empty). System must be loaded 1st so Magisk environment in /data will be constructed. After that, you can reboot to TWRP and install module - it will not have error in that case.

P.S. Manual method doesn't contain google search and not have KFTV launcher tweaks from module (/vendor/overlay). It also misses WRITE_SECURE_SETTINGS permission for Button Remapper (it can't activate accessibility service without it). And your OTA probably still active (check common/service.sh contents on module).
[Fire TV Original Android Development] Harry44:
tsynik, I had already rebooted twice before attempting to flash it. I received the same error. OTA is disabled. Any suggestions?
[Fire TV Original Android Development] ChronoWerX:
My stick is on 1.2, I want upgrade on 1.3 ... no new Magisk install
[Fire TV Original Android Development] tsynik:
То understand what caused an error, we need Recovery log. It can be done from TWRP Menu - Advanced - Copy Log - it will copy it to internal memory - > recovery.log. Tried reflash AFTV-MM-1.3 - no error. Does yourth zip have MD5 = bbfb58b8f55f68f46ba5c9eed636ecf0 ?
[Fire TV Original Android Development] DarkH2O:
When ever I go into system setting of the firestick and try to select something like "APPS" it just brings up a keyboard and then crashes back to the home.

*Edit*

I figured out it was asking for my PIN. I am seeing the full keyboard for that now instead of the circle with the numbers. Is there a way to change that back? I know this mod had the alternate keyboard option but I dont see where you select or deselect it.
[Fire TV Original Android Development] gb160:
First off this is cool so thanks.

One slight glitch is on the recommendations row, it shows Kodi/Netflix shows but all just have a red/blue square instead of the show image, the background image shows correctly and changes when I scroll through them.

Also when rebooting the stick quite often ill get the message 'No internet connection at this time' and no recommendations row at all.

Any ideas?
[Fire TV Original Android Development] enestu:
Is module Fire TV tank compatible?
[Fire TV Original Android Development] tsynik:
You can enable Switch Keyboard Dialogue on any (long|repeated) button press in Button Remapper (I used twice-pressed Menu for it) and switch from FireTV to LeanKey or any other installed keyboard on the fly (to enter PIN for example). Otherwise there is only "ime set" command other adb. Also FireTV keyboard will be restored if you'll disable LeanKey Keyboard Pro package and uninstall FiteTVjack.
[Fire TV Original Android Development] tsynik:
run this over adb:

su
pm disable com.amazon.device.sale.service
reboot

(must be disabled in case LeanbackOnFire recommendations are ON)
[Fire TV Original Android Development] tsynik:
It's not tested on tank, but I have reports about apps from it work on FireTV 2 etc
[Fire TV Original Android Development] gb160:
Thanks for the advice, but it's still the same after performing those steps.
[Fire TV Original Android Development] tsynik:
Maybe those are old corrupted by Amazon local recommendations service ones (it removes recommendations covers). In case new recommendations with sale service disabled all will be fine with covers.
[Fire TV Original Android Development] gb160:
Scratch that, I powered down the stick completely, restarted and it's now showing the images fine.

Looks excellent now, cheers!

Ive found that if when I get the 'No internet...' error, I go into launcher settings, then back out, the recommendations appear and work fine.
[Fire TV Original Android Development] tsynik:
About No Internet: launcher starts early and probably there is still no Wi-Fi connection at this time. If you use LeanBackOnFire as launcher, you can completely disable stock one so only Settings will be available (see 1st post how to do it). Recommendations show triggered automatically after stick goes online.
[Fire TV Original Android Development] gb160:
Ok sorry for the stupid questions.

Ive disabled the launcher so that when I restart my stick I just get the settings option, now how do I get to the Leanback Launcher? do I need to assign a button through the remapper?
[Fire TV Original Android Development] tsynik:
Yes, just reassign Home press in Button Remapper or set your launcher in FireTVJack (you can uninstall it if you're using Button Remapper to reassign Home). You can launch those apps from Manage Apps menu for setup.
[Fire TV Original Android Development] gb160:
Thanks for your assistance, its working great now.
[Fire TV Original Android Development] asislife20:
Download link is dead!
[Fire TV Original Android Development] xionbunny:
probably gonna be an update inbound, who knows.
[Fire TV Original Android Development] tsynik:
Strange. I've updated module to v1.5 and added link to whole GDrive dir.

There is also instructions how to set default launcher via Xposed Module in README.EN/RU (best solution).
[Fire TV Original Android Development] gb160:
Whats the best way to uninstall v1.3 completely, so I can install v1.5 from scratch?
[Fire TV Original Android Development] xionbunny:
thanks for your continued work on this.

---------- Post added at 12:01 PM ---------- Previous post was at 11:58 AM ----------

delete the module in magisk and factory reset in twrp, that's what the dev will recommend.
[Fire TV Original Android Development] gb160:
In the readme it says:

Install AFTMM-XMods.1.5.133t.apk and enable it in Xposed Installer

Where can I obtain this apk?

Cheers
[Fire TV Original Android Development] tsynik:
You don't need to factory reset nor to uninstall mudule. Just update (install) new version and it will replace previous one and do the preinstall stuff on 1st boot.
[Fire TV Original Android Development] tsynik:
It's on GDrive in Xposed folder, and now included with Magisk module (I added it to preinstall apks).

You can install Xposed from Xposed Installer and module will be there also under modules section.

Just redownload base 1.5 zip and update it via twrp.
[Fire TV Original Android Development] gb160:
Cheers buddy I'll do that now.
[Fire TV Original Android Development] ChronoWerX:
Same problem here with 1.5 log as attach (line 596)
[Fire TV Original Android Development] tsynik:
/tmp/updater: line 46: /data/adb/magisk/busybox: Too many symbolic links encountered

The same error I've seen with bundled Magisk on Rbox prerooted images. Probaly you just need to reinstall Magisk from it's original zip (can be found on my GDrive also) via TWRP to fix. So, try to reflash Magisk-v20.0.zip, reboot, and try again.
[Fire TV Original Android Development] aasoror:
thanks, [MENTION=3320499]tsynik[/MENTION] for sharing your work.

One Q, which part of the addon is dependant on signing in with an amazon account (as I see this part of the installation steps).

Thanks,
[Fire TV Original Android Development] ChronoWerX:
Yes, now the update works, thanks
[Fire TV Original Android Development] tsynik:
No parts are related to signing, except if you disable com.amazon.tv.forcedotaupdater.v2 before signing you'll get loop on OOBE setup screen. That's why this step executed _after_ oobe and signing to Amazon account in service.sh script, and I commented disabling forcedotaupdater.v2 there at all.
[Fire TV Original Android Development] godlike1984:
is it possible to create something that would enable mirroring from windows 10 pc to stick?
[Fire TV Original Android Development] rocker0:
i am still planning to root my device soon
[Fire TV Original Android Development] gb160:
What were the changes in v1.6?

Is it worth updating from v1.5?
[Fire TV Original Android Development] rocker0:
I'm still unable to update it somehow
[Fire TV Original Android Development] ChronoWerX:
One question, was not fast enough at stick and shell were blocked for superuser. How can I grant superuser? No superuser app will work for this, like on smartphone
[Fire TV Original Android Development] tsynik:
Mainly fixes in Launcher - no more shortcuts duplicates, Wi-Fi signal display, new graphics (screens on 1st post), etc.

Also there are updated versions of KFTV Launcher and Alexa which work with Google better (you don't need to confirm voice input). FireTVjack was removed (useless) and Xposed Installer version was changed.

It's enough to Add 1.6 zip via Magisk Manager Modules tab, no recovery or uninstall steps needed.
[Fire TV Original Android Development] tsynik:
Do it via Magisk Manager (Superuser tab) or enable allow access to all globally in it's settings.
[Fire TV Original Android Development] ChronoWerX:
Ah ok there, thanks it works. In Leanback I cannot order the apps how I wish. Long ok not working.

And second question, can I change the background pic from Leanback?
[Fire TV Original Android Development] tsynik:
- Long OK works 4 many except you. Do you have some OK reassignments?

- You can build Leanback Launcher from github source with desired graphics
[Fire TV Original Android Development] ChronoWerX:
- Yes my harmony remote was the problem. With the fire remote it works, but every restart the favorites are in default order not in my order, why?

- Replace the graphics in apk, but the old are still there. Think I have to clear the cache, but thanks
[Fire TV Original Android Development] tsynik:
Because sorting order applied to all rows: Apps / Video / Music / Games - except Favorites. Favorites row have no sorting.
[Fire TV Original Android Development] ChronoWerX:
I can order, but it's not save? Ok :D
[Fire TV Original Android Development] johnnypicnic:
Is there a way to set which app/launcher is opened after a sleep timeout? When my Fire TV wakes it goes to the Settings screen as I have the KFTV Launcher frozen.

I know I could disable the sleep timeout but I like it and have an automation that turns off my tv after the screen goes blank.

Thanks for putting this module together :D
[Fire TV Original Android Development] tsynik:
If you'll install Xposed Framework (magisk module), and enable AFTV-XM (Launcher switcher) Xposed Module in Xposed Installer, stick will bring your user-installed launcher on wake from sleep directly.
[Fire TV Original Android Development] johnnypicnic:
Magisk is installed and the module enabled. How does it know what launcher to use?
[Fire TV Original Android Development] tsynik:
Not only Magisk but also Xposed Framework must be installed and you need to enable AFTMM-XM module in Xposed Installer (bundled with AFTV-MM module). It looks for fist user-installed launcher (it have priority = 0), freeze and swap Amazon's laucher with it (except Settings calls). If there is no user launcher installed or it's disabled - KFTV Launcher will be unfreezed and used (reboot required after disabling frozen mode in KFTM Launcher). If there is more than one user launcher installed and enabled - first found will be used.
[Fire TV Original Android Development] johnnypicnic:
Thanks for the tip. I didn't have Xposed Framework installed. Once that was done I rebooted and enabled the module and it's working great. Thanks again!
[Fire TV Original Android Development] rawos:
Thanks [MENTION=3320499]tsynik[/MENTION] for your work!

Tried to install on my tank but many things like app management and keyboard don't work anymore.

Do you think it would be possible doing a similar module for tank?

many thanks
[Fire TV Original Android Development] tsynik:
Yes, it's possible for tank too. There are system apps from FireOS 6.2.6.8 for compatibility in module. You can try just remove system/priv-app folder and probably vendor/overlay/launcher-overlay.apk from module's zip and references to them in install.sh script (REPLACE="" section) and reinstall.
[Fire TV Original Android Development] rawos:
Thanks, seems quite easy

By removing them, i will lose some of your launcher's tweaks and google voice search right?

REPLACE="
/system/app/PicoTts
/system/priv-app/com.amazon.aca
/system/priv-app/com.amazon.aria
/system/priv-app/com.amazon.avl.firetv
/system/priv-app/com.amazon.avod
/system/priv-app/com.amazon.firebat
/system/priv-app/com.amazon.hedwig
/system/priv-app/com.amazon.tv.launcher
/system/priv-app/com.amazon.venezia
/system/priv-app/com.amazon.vizzini
/system/priv-app/DocumentsUI
[Fire TV Original Android Development] tsynik:
Not really, Google Voice installed as user app, and probably you don't need bundled launcher (Your launcher can have different version). Freezing / swithing louncher done in bundled Xposed Module, which you will have also.
[Fire TV Original Android Development] rawos:
Thanks, G search 3.7 didn't work for tank firestick. I've found a 2.2 module in a russian board, I was able to make it work only text search, better than nothing
[Fire TV Original Android Development] llukezz:
[MENTION=3320499]tsynik[/MENTION] I'm trying to get this to work for Halauncher (I deleted leanback and install hal) but it doesn't want to use that as the default launcher. When I did the FrozeMode enabled and rebooted it rebooted into just the settings menu with no launcher. When I enabled your module (yes I have the framework installed), it rebooted into the regular amazon launcher. When I tried FrozeMode enabled with your module enabled, it still boots into the amazon launcher.

Thoughts?

Thanks

Edit:

After more playing around with it, it looks like the issue is HaLauncher isn't recognized by the system as a launcher so your module doesn't launch it (I was able to use a different launcher and it worked with your module).

My only option is going back to using Launcher Hijack app :(

If you can think of any work around to get halauncher working with your module I would greatly appreciate it. I need to use halauncher for it's parental control (locking out settings with a pin) that leanback can't do.
[Fire TV Original Android Development] tsynik:
You can try do decompile HALauncher and check it have

<category android:name="android.intent.category.HOME"/>

for it's main activity. Add it, recompile, and probaly it will be detected as user launcher and module will switch to it.
[Fire TV Original Android Development] llukezz:
Thanks I decompiled and see that it might be missing from the main activity but now I can't recompile. I've tried many different suggestions online (this is my first time modifying apks) and can't get anything to work.

If you have time and want to take a stab at it I have attached the halauncher apk.

Thanks
[Fire TV Original Android Development] tsynik:
AFTV-MM v1.8 TINY | FOTA

===========

Changes:

- enabled Adoptable and External storage support

- fix for [unknown-device] in Russian locale

- addons / fixes in Russian locale strings

* recheck AFTV-XM module in Xposed Installer (Modules tab) after second boot in case there is no launcher switch

* wait till auto-reboot on first launch after update
[Fire TV Original Android Development] z0oinks:
Lorem ipsum
[Fire TV Original Android Development] Droid Workstation:
THIS IS fantastic and beautiful, got it working. made a video showcasing your stuff.,

i hope is ok
[Fire TV Original Android Development] llukezz:
[MENTION=3320499]tsynik[/MENTION] I'm really stuck here trying to get halauncher working. I tried to resort to my method on the FTV stick 2 method of just using hijacker and a different settings app but that settings app doesn't work on the 4K stick :(

Any additional help you can provide? Any way I can preserve the OS settings like you did while still using the work around method of before?

Really would appreciate the help

Thanks

EDIT:

After trying to get halauncher to work I also noticed that creating shortcuts for files is broken on the 4K stick. It looks like I will just have to keep my setup on the previous version of the stick and not get the processing power boost. ****ty.
[Fire TV Original Android Development] culot:
How exactly do you go about enabling that Xposed module? I press it and it replies 'this module does not offer a user interface'. Apparently the checkbox is out of reach for the Fire TV remote?
​
[Fire TV Original Android Development] llukezz:
You need a mouse or mousetoggle app to select that checkmark box
[Fire TV Original Android Development] JJ2017:
How about Vysor installed on Chrome using PC? That's worked for me when I've been messing about with the regular Firestick (Tank).

Looking forward to trying this mod when I get a 4k stick in couple of weeks....
[Fire TV Original Android Development] FeelslikeanArbysNight:
My goal is to debloat and setup for my non-tech parents. Minimal choices on screen and nothing to select that requires paying a one-time or subscription fee. Mantis is rooted and I have uninstalled OTAs and disabled items per OP.

AFTV Add-on: What is the difference between TINY and FOTA?

Freezing stock Amazon launcher: Uncertain on which Xposed items I need. I have AFTV-MM-1.8-6.2.6.8.zip (although it doesn't say TINY or FOTA) and AFTV-XM-1.7.apk.

If I freeze the KFTV launcher, do I still have access to the Wifi settings and the Developer Options settings? I want to setup the stick and turn off ADB and Apps from Unknown Sources, but leave the option open to reactivate down the road in case I need to update Magisk, etc.

# of Rows: I can get it down to 1 row only (Apps). Is there any way to do this to just have the Video row? I want to hide Magisk and any non-video icons so my parents can't accidentally choose them.
[Fire TV Original Android Development] TheVeryLostOne:
I'm unable to scroll down in downloads and select xposed framework using the remote. Any way to solve this?

Update: managed to find a workaround. Now the other issue I'm having is that I'm unable to activate AFTV-XM. I keep getting a message that says "This module does not provide a user interface."

Update 2: I used Vysor as suggested by JJ2017. Worked perfectly, what an amazing app!
[Fire TV Original Android Development] tsynik:
With v1.9 MM version, there is no need to check module in Xposed Installer anymore, and xposed framework will be installed on autoreboot after install. It also includes Xposed Installer with extended context menu, where you can enable / disable modules with remote on long SELECT press.
[Fire TV Original Android Development] ChronoWerX:
Any chance to a version with your FireTVjack? Want Kodi as my launcher, but when I downloaded Hijack I become the accessibility service message :(
[Fire TV Original Android Development] brick00444:
I get this error when trying to open some of the Tv apps like DiscoveryGo, NatgeoTv, Fox Sports, History.

"Amazon Appstore connection failure

An error occurred connecting to Amazon Appstore.

Please try opening this app again."

Any help would be appreciated, Thank you in advance.

I enabled all of the things that I disabled in the instructions, now the apps are working. Not sure which one fixed my issue.
[Fire TV Original Android Development] selbyog:
[MENTION=3320499]tsynik[/MENTION], thank you for sharing such wonderful work.

Your plugin really cleans up the UI and the interface looks much nicer.

Is there a way to autostart apps both at boot time and when resuming from sleep?

As Kodi is the main app, I'd like to save some clicks and not have to go through the home launchers but instead resume the previous app directly.

Thanks!

P.S. How did you get the weather forecast on the home screen in your screenshot?

P.P.S. For new users, I think it would be quite useful if the unneeded packages (part of the readme `pm disable ..` are executed automatically at install or startup. For example disabling OTA is strongly recommended so why not do that out of the box.
[Fire TV Original Android Development] brick00444:
To get the weather just press and hold the mic button and say "weather" then let go and it shows up on the screen. Hope that helps.
[Fire TV Original Android Development] tsynik:
OTA disabled on 1st boot after module update ) Even sale.service and alexa notifications disabled by default too with v1.9. All other parts are optional and depends of user prefs ;)
[Fire TV Original Android Development] selbyog:
That works thanks. The weather in the first screenshot looks to be through google assistant which doesn't seem to work for me - I only get the one through Alexa.

A fellow user was mentioning the same thing a few post back - I'd much rather have the mic go to Google assistant (which I couldn't even make sign in) instead of Alexa.

Thanks.

---------- Post added at 10:10 PM ---------- Previous post was at 10:08 PM ----------

That's great - thanks!

Could you please include a mouse-like app (toggle mouse?) in the future?

Cheers.
[Fire TV Original Android Development] tsynik:
You can add any apps you want. Just place them in module archive to folder /system/vendor/preinstall and they'll install on module flash / update.
[Fire TV Original Android Development] ChronoWerX:
[MENTION=3320499]tsynik[/MENTION] any chance?
[Fire TV Original Android Development] Lei_Wulong:
Is there any add-on that adds NTFS support?
[Fire TV Original Android Development] tsynik:
(As I remember) there was apk which behave as Launcher to OS and do only one thing - it starts Kodi. So if you'll install such app, module will switch to it as Launcher (any user-installed launcher have priority) and it will start Kodi on every Home press.
[Fire TV Original Android Development] tsynik:
You can mount NTFS drives with bundled StickMount (it will be accessible under /sdcard/USB/XXX) or check other XDA FireTV sections - there is module with native NTFS/ExFAT/E2FS support via vold