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

Search This thread

tsynik

Senior Member
Dec 14, 2010
213
193
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 (v2.2) with working Voice Input,
  • LeanbackOnFire (rockon999) Launcher - support Google Search and Android TV Recommendations,
  • Screen Rotation - allow set proper orientation for mobile Apps,
  • LeanKey Keyboard Pro (it have multilingual support).
  • Google Play Store and Services for TV
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) v20230914 (Fire OS 6.2.6.8 - 6.2.8.0 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.4-26.1 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: 10,410
  • LeanbackOnFire.jpg
    LeanbackOnFire.jpg
    164.1 KB · Views: 9,548
  • LeanbackOnFire-Settings.jpg
    LeanbackOnFire-Settings.jpg
    67.5 KB · Views: 9,469
Last edited:

sconnyuk

Senior Member
Jul 31, 2011
414
162
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.
 

Tepifan

Senior Member
Nov 22, 2009
59
17
Thanks, installed and working without any discernable issues as of yet. I'll update if I see anything.
 
  • Like
Reactions: puppinoo

tsynik

Senior Member
Dec 14, 2010
213
193
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
183
35
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.
 

sconnyuk

Senior Member
Jul 31, 2011
414
162
Sunderland
The pm grant com.amazon.fireh1jack android.permission.SYSTEM_ALERT_WINDOW command is not working for me, it gives me a huge list on how to execute pm commands correctly.
 

sconnyuk

Senior Member
Jul 31, 2011
414
162
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.
  • 1
    Will soon try aftv- gapps along with aftv-mm
    it's outdated. now gapps bundled with latest AFTV-MM-20230914.zip and will be flashed on 2nd reboot. If you don't need gapps just remove system/vendor/opengapps folder from archive before flash.
  • 24
    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 (v2.2) with working Voice Input,
    • LeanbackOnFire (rockon999) Launcher - support Google Search and Android TV Recommendations,
    • Screen Rotation - allow set proper orientation for mobile Apps,
    • LeanKey Keyboard Pro (it have multilingual support).
    • Google Play Store and Services for TV
    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) v20230914 (Fire OS 6.2.6.8 - 6.2.8.0 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.4-26.1 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
    3
    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!