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

Search This thread

king200

Senior Member
Feb 13, 2012
1,072
402
Best way to update is to flash 3 zips from TWRP recovery in sequence:
- update-kindle-mantis-NS6276_user_2933_0004396381572.zip
- Magisk-v20.4.zip
- AFTV-MM-v20201101.zip

I updated by:

- update-kindle-mantis-NS6276_user_2933_0004396381572.zip
- Magisk-v20.4.zip
- AFTV-GAPPS-MM-v1.3.zip

Using AFTV-MM caused my to not have Play Store.
 

murtzsch

Member
May 10, 2014
36
20
Hi and thanks for great work, I wanted to disable amazon Packages for having lightweight Kodi OS, but after restarting cannot boot. Still I have access via ADB as root but Package Manager not work and return this error "Error: Could not access the Package Manager. Is the system running?". Please help to find out situation and somehow turn on packages.


[ [email protected]] init: Starting service 'zygote'...
[ [email protected]] init: Starting service 'audioserver'...
[ [email protected]] init: Starting service 'cameraserver'...
[ [email protected]] init: couldn't write 9012 to /dev/cpuset/camera-daemon/tasks: No such file or directory
[ [email protected]] init: Starting service 'media'...
[ [email protected]] init: Starting service 'netd'...
[ [email protected]] mtk-afe-pcm 11220000.audio-controller: mt8695_afe_dais_startup
[ [email protected]] mtk-afe-pcm 11220000.audio-controller: mt8695_afe_hdmi_shutdown
[ [email protected]] mtk-afe-pcm 11220000.audio-controller: mt8695_afe_spdif_startup IEC
[ [email protected]] mtk-afe-pcm 11220000.audio-controller: mt8695_afe_dais_startup
[ [email protected]] mtk-afe-pcm 11220000.audio-controller: mt8695_afe_spdif_shutdown IEC
[ [email protected]] mtk-afe-pcm 11220000.audio-controller: mt8695_afe_dais_startup
[ [email protected]] mtk-afe-pcm 11220000.audio-controller: mt8695_afe_dais_startup
[ [email protected]] mtk-afe-pcm 11220000.audio-controller: mt8695_afe_dais_startup
[ [email protected]] mtk-afe-pcm 11220000.audio-controller: mt8695_afe_dais_startup
[ [email protected]] mtk-afe-pcm 11220000.audio-controller: mt8695_afe_dais_startup
[ [email protected]] mt_xgpt_mmap physical address: 10008000 - 10008fff
[ [email protected]] init: Service 'zygote' (pid 9010) killed by signal 9
[ [email protected]] init: Service 'zygote' (pid 9010) killing any children in process group
[ [email protected]] init: write_file: Unable to open '/sys/android_power/request_state': No such file or directory
[ [email protected]] init: write_file: Unable to write to '/sys/power/state': Invalid argument
[ [email protected]] init: Service 'audioserver' is being killed...
[ [email protected]] init: Service 'cameraserver' is being killed...
[ [email protected]] init: Service 'media' is being killed...
[ [email protected]] init: Service 'netd' is being killed...
[ [email protected]] init: Service 'cameraserver' (pid 9012) killed by signal 9
[ [email protected]] init: Service 'cameraserver' (pid 9012) killing any children in process group
[ [email protected]] init: Service 'media' (pid 9013) killed by signal 9
[ [email protected]] init: Service 'media' (pid 9013) killing any children in process group
[ [email protected]] init: Service 'netd' (pid 9014) killed by signal 9
[ [email protected]] init: Service 'netd' (pid 9014) killing any children in process group
[ [email protected]] init: Service 'audioserver' (pid 9011) killed by signal 9
[ [email protected]] init: Service 'audioserver' (pid 9011) killing any children in process group


pm disable com.amazon.net.smartconnect
pm disable com.amazon.tv.resolutioncycler
pm disable com.amazon.recess
pm disable com.amazon.platform.fdrw
pm disable com.amazon.ssmsys
pm disable com.amazon.tv.ime
pm disable com.amazon.whisperplay.contracts
pm disable com.amazon.device.rdmapplication
pm disable com.amazon.venezia
pm disable com.amazon.dcp.contracts.library
pm disable com.amazon.metrics.api
pm disable com.amazon.vizzini
pm disable com.amazon.tv.devicecontrolsettings
pm disable com.amazon.bueller.notification
pm disable com.amazon.bueller.photos
pm disable com.amazon.device.sync
pm disable amazon.fireos
pm disable com.amazon.device.logmanager
pm disable com.amazon.ceviche
pm disable com.amazon.alta.h2clientservice
pm disable com.amazon.advertisingidsettings
pm disable com.amazon.tv.parentalcontrols
pm disable com.amazon.whisperjoin.provisioner.middleware.controller
pm disable com.amazon.ftv.glorialist
pm disable com.amazon.dp.logger
pm disable com.amazon.ods.kindleconnect
pm disable com.amazon.tv.intentsupport
pm disable com.amazon.sharingservice.android.client.proxy
pm disable com.amazon.webview
pm disable com.amazon.android.marketplace
pm disable com.amazon.device.backup.sdk.internal.library
pm disable com.amazon.tifobserver
pm disable com.amazon.dialservice
pm disable com.amazon.client.metrics.api
pm disable com.amazon.aca
pm disable com.amazon.cpl
pm disable com.amazon.dcp
pm disable com.amazon.imp
pm disable com.amazon.ssm
pm disable com.amazon.sync.service
pm disable com.amazon.fireinputdevices
pm disable com.amazon.whisperjoin.provisioner.middleware.firetv
pm disable com.amazon.tv.csapp
pm disable com.amazon.logan
pm disable com.amazon.tahoe
pm disable com.amazon.tcomm
pm disable com.amazon.naatyam
pm disable com.amazon.storm.lightning.tutorial
pm disable com.amazon.identity.auth.device.authorization
pm disable com.amazon.kindle.cms
pm disable com.amazon.kindleautomatictimezone
pm disable com.amazon.uxcontrollerservice
pm disable com.amazon.tv.fw.metrics
pm disable com.amazon.device.backup
pm disable com.amazon.firehomestarter
pm disable com.amazon.securitysyncclient
pm disable com.amazon.unifiedshare.actionchooser
pm disable com.amazon.firerestapiframework
pm disable com.amazon.tv.routing
pm disable com.amazon.device.messaging
pm disable com.amazon.device.bluetoothkeymaplib
pm disable com.amazon.device.metrics
pm disable com.amazon.device.messaging.sdk.internal.library
pm disable com.amazon.providers
pm disable com.amazon.tv.devicecontrol
pm disable com.amazon.tv.ottssocompanionapp
pm disable com.amazon.device.sale.service
pm disable com.amazon.cardinal
pm disable com.amazon.tcomm.client
pm disable com.amazon.tv.forcedotaupdater.v2
pm disable com.amazon.client.metrics
pm disable com.amazon.device.settings.sdk.internal.library
pm disable com.amazon.autopairservice
pm disable amazon.jackson19
pm disable com.amazon.tmm.tutorial
pm disable com.amazon.device.software.ota
pm disable com.amazon.wifilocker
pm disable com.amazon.dcp.contracts.framework.library
pm disable com.amazon.device.bluetoothdfu
pm disable com.amazon.storm.lightning.services
pm disable com.amazon.whisperlink.core.android
pm disable com.amazon.device.messaging.sdk.library
pm disable com.amazon.tv.notificationcenter
pm disable com.amazon.tv.support
pm disable com.amazon.ags.app
pm disable com.amazon.tv.nimh
pm disable com.amazon.tv.oobe
pm disable com.amazon.sync.provider.ipc
pm disable com.amazon.tv.legal.notices
pm disable com.amazon.firebat
pm disable android.amazon.perm
pm disable com.amazon.tv.keypolicymanager
pm disable com.amazon.android.service.networkmonitor
pm disable com.amazon.kso.blackbird
pm disable com.amazon.providers.contentsupport
pm disable com.amazon.avl.ftv
pm disable com.amazon.awvflingreceiver
pm disable com.amazon.device.crashmanager
pm disable com.amazon.application.compatibility.enforcer
pm disable com.amazon.whisperplay.service.install
pm disable com.amazon.uxnotification
pm disable com.amazon.shoptv.client
pm disable com.amazon.device.software.ota.override
pm disable com.amazon.alexashopping
pm disable com.amazon.franktvinput
pm disable com.amazon.aria
pm disable com.amazon.avod
pm disable com.amazon.communication.discovery
pm disable com.amazon.alexa.externalmediaplayer.fireos
pm disable com.amazon.tv.releasenotes
pm disable com.amazon.ssdpservice
pm disable com.amazon.device.settings
pm disable com.amazon.tv.livetv
pm disable com.amazon.device.sync.sdk.internal
pm disable com.amazon.connectivitydiag
pm disable com.amazon.device.lowstoragemanager
pm disable com.amazon.providers.tv
pm disable com.amazon.webview.chromium
pm disable com.amazon.bueller.music
pm disable com.amazon.hedwig
pm disable com.amazon.kindle.devicecontrols
pm disable com.amazon.application.compatibility.enforcer.sdk.library

We're quite a bunch willing to disable as much useless app as possible.
If you're curious enough, have a look at this post : https://forum.xda-developers.com/android/help/enable-disable-apps-terminal-twrp-t3715677

IOW, if you want to experiment with disabling a lot of apps, make a backup of your package-restrictions.xml first :)
 

SoulInfernoDE

Member
Nov 20, 2014
34
12
Everyone who has problems to install xposed framework needs to modify the 'xposed-framework-magisk.zip'.

- Open the file with an archiver.
- find the 'installer.sh' file
- edit the 'installer.sh'file like this: https://github.com/topjohnwu/Magisk/issues/2951#issuecomment-691764603

The reason why this bug exists, is because some core routine command changed in the latest Magisk from v.20.4+ and above. If you are using Magisk 20.3 and older it is not necessary to change this as Magisk 20.3 still knows to handle the old command 'mv' correctly.

If anyone needs a fixed magisk xposed framework.zip i can provide it if wanted..

The Magisk Modules zip from this thread also contains the old xposed framework magisk.zip until writing this. Maybe @tsynik will fix it I don't know. If tsynik allows me I can provide the fixed version to him also.

Thank you all and best regards
 

tsynik

Senior Member
Dec 14, 2010
212
188
The Magisk Modules zip from this thread also contains the old xposed framework magisk.zip until writing this. Maybe @tsynik will fix it I don't know. If tsynik allows me I can provide the fixed version to him also.
I don't know why we need this mod. Bundled Xposed Framework zip shrinked to have only API25 binaries and (auto)installed fine on Magisk v20.4, but fails on Magisk v21.1 with or without this change because of changes to busybox in util_functions.sh.
 
  • Like
Reactions: nin97

SoulInfernoDE

Member
Nov 20, 2014
34
12
I don't know why we need this mod. Bundled Xposed Framework zip shrinked to have only API25 binaries and (auto)installed fine on Magisk v20.4, but fails on Magisk v21.1 with or without this change because of changes to busybox in util_functions.sh.

I tried it with 20.4 and it installed but if you open xposed framework installer app it says "xposed is not installed". In the log of the xposed installer is an error about XposedBridge.jar not found..
 

tsynik

Senior Member
Dec 14, 2010
212
188
I tried it with 20.4 and it installed but if you open xposed framework installer app it says "xposed is not installed". In the log of the xposed installer is an error about XposedBridge.jar not found..
It's strange, because xposed-framework-magisk.zip bundled with AFTV-MM and auto-installed from vendor/preinstall on 1st reboot (from TWRP recovery) without any errors with Magisk v20.4. Tested on many Fire TV fw by many users. Maybe it's case of direct Manager install.
 

chinkster

Senior Member
May 31, 2010
618
59
Google Pixel 6
anyone else have this problem? i just took the firestick 4k back from the in-laws house after leaving it there for a couple of months. i plugged it into the TV and was able to boot to the launcher but the WiFi was completely turned off. i restarted the firestick but all it did was display the Fire TV logo then continuous black screen. cant see a damn thing. anyone else?
 

SoulInfernoDE

Member
Nov 20, 2014
34
12
It's strange, because xposed-framework-magisk.zip bundled with AFTV-MM and auto-installed from vendor/preinstall on 1st reboot (from TWRP recovery) without any errors with Magisk v20.4. Tested on many Fire TV fw by many users. Maybe it's case of direct Manager install.

Yes it installs without "showing" any errors but Xposed won't load AFTV-XM Module for me. With Magisk 20.1 it will load but not with Magisk 20.4 and upwards. The error is visible only in the xposed installer log of the xposed app.

I had the problem now with 3 sticks.

I also only flash from TRWP as far as it is possible.
This is another bug not the one you mentioned on github by the way. :)
Screenshot_20210101_030027_com.android.chrome.jpg
 
Last edited:

tsynik

Senior Member
Dec 14, 2010
212
188
Yes it installs without "showing" any errors but Xposed won't load AFTV-XM Module for me. With Magisk 20.1 it will load but not with Magisk 20.4 and upwards. The error is visible only in the xposed installer log of the xposed app.
You doing something wrong. Xposed module and framework will be (auto)installed fine with Magisk v20.4 or Magisk v21.2. It will fail on bundled xposed framework install only with Magisk 21.0-21.1
 

tokoam

Senior Member
Jun 24, 2007
927
167
Plantation
The YouTube tv app is not correct resolution its off to the right side of my screen when I cast videos or play videos from the YouTube TV app using air receiver how do i fix this ? Also how do I get Gsearch to work I know OP said it can be assigned using Edge pro x. But I have no clue where to go in there to assign that any help would be helpful .
 
Last edited:
edited .......due to misinformative post.on my part in regard to google apps . I had made numerous amendments such as modifying build.prop and clearing out priv-app folder of around 138mb of aps before installing gapps mini. although it worked amazingly ' i had not yet had to FR the stick sooo....
soz OP my bad

cheers again.
 
Last edited:
  • Like
Reactions: Kramar111 and Sus_i

tsynik

Senior Member
Dec 14, 2010
212
188
Everything works flawlessly:

Google voice search
Google playstore
Leanback recommendations

Thanks mate 👌 this is what ive been waiting for cheers again.

For those who want add playstore and google services in that manner (in addition to AFTV-MM), I suggest do not install full opengapps tvmini (it doesn't fit sysem and have broken launcher / tvsearch 5.6 and unbooable ROM after reset to factory settings in case leanbacklauncher exists in priv-app), but only essential packages from it. gapps-config.txt and tvsearch v4.5 on my GDrive under google/opengapps. place gapps-config.txt + open_gapps-arm-7.1-tvmini-XXXXXX.zip + update_katniss-4.5.zip in /sdcard and flash from recovery in addition to AFTV-MM.
Use fix_accounts.sh to remove stale google credentials from device if you can't login to Google. It will work on any fw, tesed with 6.2.7.1 / 6.2.7.3 / 6.2.7.6 / 6.2.7.7.
 
Last edited:
For those who want add playstore and google services in that manner (in addition to AFTV-MM), I suggest do not install full opengapps tvmini (it doesn't fit sysem and have broken launcher / tvsearch 5.6 and unbooable ROM after reset to factory settings in case leanbacklauncher exists in priv-app), but only essential packages from it. gapps-config.txt and tvsearch v4.5 on my GDrive under google/opengapps. place gapps-config.txt + open_gapps-arm-7.1-tvmini-XXXXXX.zip + update_katniss-4.5.zip in /sdcard and flash from recovery in addition to AFTV-MM.
Use fix_accounts.sh to remove stale google credentials from device if you can't login to Google. It will work on any fw, tesed with 6.2.7.6 / 6.2.7.7.

@tsynik post edited m8
 

Michajin

Senior Member
Oct 23, 2012
1,304
524
@Bertonumber1 @tsynik

I hope you are doing well! Just wondering if anyone would know how to make the channel guide work from the leanback launcher? Kind of really useful when you have a recast, Any help would be great! Thanks!
 

robin994

Member
Jan 19, 2011
33
13
Salerno
OnePlus 7T
Xiaomi Mi Pad 5
hi, i just installed latest version of this module, i was just wondering after installing prime video for android tv, how can i get prime video recommendation to my homescreen ? Leanback launcher doesn't find it.

I'd like to install playstore and google assistant, anyone knows how to do it?
 

robin994

Member
Jan 19, 2011
33
13
Salerno
OnePlus 7T
Xiaomi Mi Pad 5
For those who want add playstore and google services in that manner (in addition to AFTV-MM), I suggest do not install full opengapps tvmini (it doesn't fit sysem and have broken launcher / tvsearch 5.6 and unbooable ROM after reset to factory settings in case leanbacklauncher exists in priv-app), but only essential packages from it. gapps-config.txt and tvsearch v4.5 on my GDrive under google/opengapps. place gapps-config.txt + open_gapps-arm-7.1-tvmini-XXXXXX.zip + update_katniss-4.5.zip in /sdcard and flash from recovery in addition to AFTV-MM.
Use fix_accounts.sh to remove stale google credentials from device if you can't login to Google. It will work on any fw, tesed with 6.2.7.1 / 6.2.7.3 / 6.2.7.6 / 6.2.7.7.
i'm trying to flash open_gapps-arm-7.1 but i get error 70 on twrp. I did a clean installation.
what i did:
- install prerooted rom fire os 6.2.7.7 (configured)
-updated magisk 21.4
-installed AFTV-MM

Actually i have 3,25gb of free storage. I still have mantis , aftv and magisk zip in my storage (800mb~ all together), should i remove them too ?
 
Last edited:

tsynik

Senior Member
Dec 14, 2010
212
188
Actually i have 3,25gb of free storage. I still have mantis , aftv and magisk zip in my storage (800mb~ all together), should i remove them too ?
You don't need to remove anything. Just put gapps-config.txt in same folder with opengapps-mini flash zip before flash
 

Top Liked Posts

  • There are no posts matching your filters.
  • 23
    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
    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!