[Magisk][Module] FireTV 4K Stick Add-Ons

Search This thread

tsynik

Senior Member
Dec 14, 2010
206
172
As we have unlocked bootloader on FiteTV 4K stick now, I made Magisk module, which disables OTA updates, and also includes some Google stuff:
  • Google Search for TV (2.2 or 3.13) with working Voice Input,
  • LeanbackOnFire (rockon999) Launcher - support Google Search and Android TV Recommendations,
  • Screen Rotation - allow set proper orientation for mobile Apps,
    [*]Buttons Remapper - allow choose Keyboard, reassign Home, switch between Apps and many more,
    [*]FireTVjack - allow reassign Home, set Language, and freeze stock KFTV Launcher,
  • LeanKey Keyboard Pro (it have multilingual support).
Module also adds Russian language instead Portuguese (and Ukrainian instead Japanese) to FireTV Settings menu and have Russian Settings translation over android resources overlays (must be compatible with future OTA updates).

AFTV Add-Ons (Magisk Module) v20201218 (Fire OS 6.2.7.6 compatible)

Previous:
=======
GDrive (All files)

Tested on Fire TV 4K with FireOS 6.2.6.5 / 6.2.6.6 / 6.2.6.8 / 6.2.7.1 / 6.2.7.3 / 6.2.7.6 and Magisk 20.1-4/21.0. Still under development.

How to install:
===========
- Unlock FireTV bootloader.
- Install Magisk (stable) via TWRP!
* don't ever do install / update Magisk over Magisk Manager on Fire TV 4K!
- Boot to Fire OS and pass Amazon Registration screen
- Check and install all current OS / Apps update in My Fire TV Settings section
- Reboot to TWRP Recovery and install / update module (AFTV-MM-2.0.zip)
* "adb shell reboot recovery" over adb or connect OTG cable with mouse and select Cancel on Power ON

How to update:
===========
Just add new module version in Modules section of Magisk Manager (+) and press Reboot button after.
You need to wait till autorestart on first boot after module update (implemented from v1.8 +).

To freeze stock Amazon launcher:
==========================
adb connect FireTV IP (allow connection on TV)
adb shell
su
settings put global frozenMode enabled
reboot
* KFTV Launcher will be auto-frozen if you'll enable AFTV-XM Xposed Module in Xposed Installer (Modules tab) and have any user launcher installed.

To choose LeanbackOnFire as default Home:
============================
- Install Xposed Framework from Magisk Manager
- Open Xposed Installer - Modules tab and activate AFTV-XM Module
- Reboot

To enable Android TV Recommendations:
================================
- Go to LeanbackOnFire Launcher Settings / Edit Apps Rows / Edit Rows and enable Recommendations Row there
* in case there is toast about needed permissions, do over adb:

adb connect FireTV IP (allow connection on TV)
adb shell
su (grant root access on TV)
pm grant com.amazon.tv.leanbacklauncher android.permission.WRITE_SECURE_SETTINGS
pm disable com.amazon.device.sale.service
reboot

Optional packages to disable:
=============================
pm disable com.amazon.ags.app
pm disable com.amazon.alexashopping
pm disable com.amazon.bueller.music
pm disable com.amazon.bueller.photos # (used for screensaver)
pm disable com.amazon.device.metrics
pm disable com.amazon.device.sale.service # (must be disabled in case LeanbackOnFire recommendations are ON)
pm disable com.amazon.device.software.ota
pm disable com.amazon.device.software.ota.override
pm disable com.amazon.firebat
pm disable com.amazon.hedwig
pm disable com.amazon.tahoe
pm disable com.amazon.tv.alexanotifications
pm disable com.amazon.tv.fw.metrics
pm disable com.amazon.wirelessmetrics.service
pm disable com.android.documentsui
...
GSearch
=======
You can use Voice Input in ATV apps (press on-screen mic and long-press mic on remote and speak)
You can assign ASSIST (keycode 219) in Xposed Edge Pro or other remapper apps to Voice remote button

===
P.S. In case something went wrong You can always do factory reset, remove Module or uninstall / reinstall Magisk and your system will back to full stock - no files in /system partition changed by module.

Have Fun!
 

Attachments

  • GSearch.jpg
    GSearch.jpg
    146.8 KB · Views: 9,381
  • LeanbackOnFire.jpg
    LeanbackOnFire.jpg
    164.1 KB · Views: 8,525
  • LeanbackOnFire-Settings.jpg
    LeanbackOnFire-Settings.jpg
    67.5 KB · Views: 8,447
Last edited:

sconnyuk

Senior Member
Jul 31, 2011
414
161
Sunderland
As we have unlocked bootloader on FiteTV 4K stick now, I made Magick module, which disables OTA updates and Metrics, and also includes some Google stuff: Google Search for TV (3.7), LeanbackOnFire (rockon999) Launcher, Launcher Hijack, Screen Rotation, Buttons Remapper and LeanKeyKeyboardPro (it have multilingual support).
AFTV Add-Ons (Magisk Module)
Tested on FireOS 6.2.6.5 and Magisk 19.3. Still under development.
Have fun!

Thanks very much, I'm wondering if you could help me, I've rooted my 4k stick but the stick won't go past setup screen as I think it's been blocked by Amazon, is there any chance you could upload a TWRP backup for me to restore in TWRP so I can get into my home screen ? Or you wouldn't know any commands I can use in TWRP terminal ?
I'd love to get this up and running along with this lot what you have done.
Thanks.
 

tsynik

Senior Member
Dec 14, 2010
206
172
For anyone interested in debug options: you can enable KFTV Launcher Debug menu (accessible via HUD).
To enable:
- Install MagiskHide Props Config module from repo
- Install busybox module from repo
- Reboot and override those options with props command via shell:
ro.debuggable=0 to ro.debuggable=1
ro.build.type=user to ro.build.type=userdebug

Have fun!
 

puppinoo

Senior Member
Jun 14, 2008
164
30
Great job. I'm a bit scared cause I dont want to be forced to factory reset if something goes wrong but this weekend I could try nonetheless. Any chance to have Chromecast support (Shield like) and/or Google services?

Thanks.
 

tsynik

Senior Member
Dec 14, 2010
206
172
Any chance to have Chromecast support (Shield like) and/or Google services?
Thanks.
Probably no. There is something weird with fw when placing privileged apps to /system/priv-app. I tried current 7.1 tvstock opengapps package as a module, and it doesn't work (except google search)
 
  • Like
Reactions: puppinoo

sconnyuk

Senior Member
Jul 31, 2011
414
161
Sunderland
@tsynik I cannot get this to work, i unlock bootloader, boot to twrp, install rbox rom then magisk 20.0 reboot to setup then reboot to twrp install your zip file then the commands in your guide wont work.
I am connected to my stick with adb and su but no joy.

---------- Post added at 08:34 PM ---------- Previous post was at 08:33 PM ----------

[/COLOR @tsynik I cannot get this to work, i unlock bootloader, boot to twrp, install rbox rom then magisk 20.0 reboot to setup then reboot to twrp install your zip file then the commands in your guide wont work.
I am connected to my stick with adb and su but no joy.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 22
    As we have unlocked bootloader on FiteTV 4K stick now, I made Magisk module, which disables OTA updates, and also includes some Google stuff:
    • Google Search for TV (2.2 or 3.13) with working Voice Input,
    • LeanbackOnFire (rockon999) Launcher - support Google Search and Android TV Recommendations,
    • Screen Rotation - allow set proper orientation for mobile Apps,
      [*]Buttons Remapper - allow choose Keyboard, reassign Home, switch between Apps and many more,
      [*]FireTVjack - allow reassign Home, set Language, and freeze stock KFTV Launcher,
    • LeanKey Keyboard Pro (it have multilingual support).
    Module also adds Russian language instead Portuguese (and Ukrainian instead Japanese) to FireTV Settings menu and have Russian Settings translation over android resources overlays (must be compatible with future OTA updates).

    AFTV Add-Ons (Magisk Module) v20201218 (Fire OS 6.2.7.6 compatible)

    Previous:
    =======
    GDrive (All files)

    Tested on Fire TV 4K with FireOS 6.2.6.5 / 6.2.6.6 / 6.2.6.8 / 6.2.7.1 / 6.2.7.3 / 6.2.7.6 and Magisk 20.1-4/21.0. Still under development.

    How to install:
    ===========
    - Unlock FireTV bootloader.
    - Install Magisk (stable) via TWRP!
    * don't ever do install / update Magisk over Magisk Manager on Fire TV 4K!
    - Boot to Fire OS and pass Amazon Registration screen
    - Check and install all current OS / Apps update in My Fire TV Settings section
    - Reboot to TWRP Recovery and install / update module (AFTV-MM-2.0.zip)
    * "adb shell reboot recovery" over adb or connect OTG cable with mouse and select Cancel on Power ON

    How to update:
    ===========
    Just add new module version in Modules section of Magisk Manager (+) and press Reboot button after.
    You need to wait till autorestart on first boot after module update (implemented from v1.8 +).

    To freeze stock Amazon launcher:
    ==========================
    adb connect FireTV IP (allow connection on TV)
    adb shell
    su
    settings put global frozenMode enabled
    reboot
    * KFTV Launcher will be auto-frozen if you'll enable AFTV-XM Xposed Module in Xposed Installer (Modules tab) and have any user launcher installed.

    To choose LeanbackOnFire as default Home:
    ============================
    - Install Xposed Framework from Magisk Manager
    - Open Xposed Installer - Modules tab and activate AFTV-XM Module
    - Reboot

    To enable Android TV Recommendations:
    ================================
    - Go to LeanbackOnFire Launcher Settings / Edit Apps Rows / Edit Rows and enable Recommendations Row there
    * in case there is toast about needed permissions, do over adb:

    adb connect FireTV IP (allow connection on TV)
    adb shell
    su (grant root access on TV)
    pm grant com.amazon.tv.leanbacklauncher android.permission.WRITE_SECURE_SETTINGS
    pm disable com.amazon.device.sale.service
    reboot

    Optional packages to disable:
    =============================
    pm disable com.amazon.ags.app
    pm disable com.amazon.alexashopping
    pm disable com.amazon.bueller.music
    pm disable com.amazon.bueller.photos # (used for screensaver)
    pm disable com.amazon.device.metrics
    pm disable com.amazon.device.sale.service # (must be disabled in case LeanbackOnFire recommendations are ON)
    pm disable com.amazon.device.software.ota
    pm disable com.amazon.device.software.ota.override
    pm disable com.amazon.firebat
    pm disable com.amazon.hedwig
    pm disable com.amazon.tahoe
    pm disable com.amazon.tv.alexanotifications
    pm disable com.amazon.tv.fw.metrics
    pm disable com.amazon.wirelessmetrics.service
    pm disable com.android.documentsui
    ...
    GSearch
    =======
    You can use Voice Input in ATV apps (press on-screen mic and long-press mic on remote and speak)
    You can assign ASSIST (keycode 219) in Xposed Edge Pro or other remapper apps to Voice remote button

    ===
    P.S. In case something went wrong You can always do factory reset, remove Module or uninstall / reinstall Magisk and your system will back to full stock - no files in /system partition changed by module.

    Have Fun!
    4
    I updated AFTV-MM Magisk Module with Google Search 2.2 which works on current (6.2.7.1) firmware.
    3
    Doesn't work properly for me. Seems to install fine, but nothing happens.
    I've updated module and instructions how to setup. Read 1st post.
    3
    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
    2
    I too would like to know this, please elaborate for us both.

    just type in adb shell:
    su
    pm uninstall com.amazon.vizzini
    reboot

    Working vizzini apk must be this:
    mantis:/ $ pm path com.amazon.vizzini
    package:/system/priv-app/com.amazon.vizzini/com.amazon.vizzini.apk