• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[Guide] [ROM] (mantis) Fire TV Stick 4K Prerooted Android TV Rom (6.2.7.6)

Search This thread

Languor

Member
Jan 26, 2014
25
8
Also getting this with the Plex app. This rom is great but without that app then my fire stick is useless
I had issues with apps not opening on my stock rom rooted when I installed the magisk module fire tv stick 4K addons. The one that includes the leanback keyboard. I see it is included with this rom. Try deactivate it in magisk and see if apps open again. It was my problem for some apps not opening.
 

trecko1234

Senior Member
Apr 27, 2012
105
36
I had issues with apps not opening on my stock rom rooted when I installed the magisk module fire tv stick 4K addons. The one that includes the leanback keyboard. I see it is included with this rom. Try deactivate it in magisk and see if apps open again. It was my problem for some apps not opening.
This one? This is the only other magisk module installed besides xposed and the selinux fix
 

Languor

Member
Jan 26, 2014
25
8
This one? This is the only other magisk module installed besides xposed and the selinux fix

this one:


i disabled it and removed it from xposed and magisk and the app i had that wouldn't load, now opens
 

punkrockfan

Senior Member
Aug 23, 2012
222
7
heyho, just found this thread here

knowing from android smartphones restoriung a backup through twrp often fails

so would there be (which) safe way to get back to fires tick 4k's stock gui/system/launcher after trying this mod?
 

Z23

Senior Member
Aug 25, 2011
155
46
Just flash a Stock Rom, you can find plenty of them on XDA. Flashing roms is always a bit risky. But Mantis is very cheap hardware, so why worry?
 

izeman

Senior Member
Jun 16, 2003
122
0
I was thinking about flashing KODI to a new Pi4, but remembered the not used firetv 4k i got laying around :)
Luckily I didn't upgrade to the latest firmware, so I could root it and install this TWRP backup. Thanks a lot! Works great!

Btw: I also got the error:255 mentioned some pages back. I used a different powered USB hub (3.0) and everything worked fine after.

Now my question: How and where do I set an autostart for one of the installed apps? I'd like it to start KODI once the firetv is started.

Is this even possible, or do I need to add another app for this?

Thanks!!
 

izeman

Senior Member
Jun 16, 2003
122
0
Hello.
I m using that root for some time now and everything worked well. Now I can't open the Plex app anymore. It's always crashing directly, I tried Google Playstore and Amazon store version. Also Spotify does not work after opening. It opens, but then I see a not loading website screen (I m not logged in at the moment). This also happens for the installed Spotify and the Google play version.
Any help? Without these apps the stick would be useless for me. Thanks for any help!

Maybe it helps: I never use PLEX app, but KODI together with the excellent kodiconnect add-on. Works like a breeze here!
 

schoenchen

Member
Mar 8, 2015
13
0
Hello, can I go down from 6.2.7.7 to your software?

edit: have now uploaded your firmware. had to go a different way, because your backup was not recognized but very nice work. thanks
 
Last edited:

subhash_india

Member
Jul 1, 2021
10
1
After so many trial and error, I've finally saved the latest version of my system with TWRP backup. I want to share this personal setup with you guys since it required a lot of work to debloat, install add-ons, apps, kernels and tweaks. This is a single package that contains many modifications from other threads made for simple, one-time installation. I tried to keep it close to Android TV (Nougat) exprience. However, I kept some of the Amazon software that I use like Alexa and Amazon Appstore.

Guides I found and used for this rom:
!!Please read these threads before you begin!!
!!All credit goes to those developers!!
!!Do at your own risk!!

Some Info:
Android Version: 7.1.2​
Fire OS Version: 6.2.7.6​
Working TWRP Version: 3.3.1-0​
Installed Magisk Version: 20.4​
Installed launcher: Google Leanback Launcher​
Available Internal Storage after installition: 3.15 GB​

Screenshots:

Contains:
==========================================================================================

Working:
  • Alexa
  • Voice Input of Amazon keyboard. (need to enable FireTV IME Keyboard from settings) (long press menu button for quick switch)
  • Amazon Settings
  • Fire TV Remote App (I highly suggest this app. Works perfect for navigation and keyboard input)
  • Amazon Appstore (You can install your previous paid apps from here. Search function in amazon appstore only works with alexa)
  • Google Play Store and Services
  • Magisk
  • Xposed
  • Recommendations on launcher
  • Widevine DRM (Netflix, PrimeVideo etc. works fine)
  • Kodi Audio Passthrough
  • Android Screen Cast
Not working:
  • Google Assistant
  • Google Voice Search
==========================================================================================

Some useful apps that I installed (all can be uninstalled):
  • FX (file manager with root access)
  • Link2SD (app manager with root access. It lets you uninstall, freeze system apps or convert them to user apps and vice versa)
  • Xposed Edge (simple alternative to tasker or key mapper with root access. I've mapped long-press of back button to kill foreground app)
  • LeanKey Keyboard Pro (came with tsynik's magisk module and I loved it)
  • Smart Youtube TV (modded youtube app that enables dozens of options. I'm using it to increase the playback speed of videos)
  • MX and VLC Player (to play local or online streams)
  • Aerial Dream TV (really nice screensaver that uses Apple TV visuals)
  • Prime Video, Netflix, Spotify (not to make the launcher look empty)
Installed magisk modules:
  • Xposed Framework (rovo89)
  • Google TV Apps for FireOS 6 (tsynik)
  • FireTV4k Selinux Fix (Pretoriano80)
Installed xposed modules:
  • Xposed Edge
  • AFTV-XM (tsynik)
  • AFTV-GAPPS-XM (tsynik)
==========================================================================================

Requirements:
  • OTG Adapter
  • USB Keyboard/Mouse
  • USB Stick Formatted Fat32
  • TV or Monitor
  • Firestick 4K
How to install:
  1. Be aware that your warranty will be void.
  2. Backup your files.
  3. Unlock bootloader and install twrp using this guide.
  4. Download and extract Firestick 4K Android TV TWRP Backup.rar to TWRP backups path on USB stick; TWRP > BACKUPS > G070VM0984752N1Q
  5. Do a factory reset via TWRP (use otg adapter and keyboard/mouse to navigate)
  6. Restore from TWRP backup that you prepared.
  7. Reboot to system.
  8. Connect to wifi and log in to your amazon account. (still using keyboard or mouse to navigate)
  9. Go to Settings > Fire OS > Controllers and Bluetooth Devices and pair your Fire TV remote. (now you can ditch the keyboard)
  10. Enjoy.
Mirror:
Additional Notes:
  • Developer options and USB debugging enabled.
  • OTA updates disabled.
  • Disable "Stay Awake" option in developer settings if you want the screensaver to start.
  • Long-press to back button kills the foreground app. It makes quitting activities easier.
  • Long-press to menu button opens fast keyboard switching window. It helps to switch to amazon keyboard when I use voice input.
  • You can change the launcher to whatever you want. I'm happy with Leanback Launcher. I didn't try but there's this.
  • Important: Never install magisk updates from magisk. Use TWRP.
  • If you want to create TWRP backup, select "System Image" and "Vendor Image" insted of system and vendor.
  • Suggestion: FX Web Access makes it easier to tranfer files.
  • Suggestion: I think keyboard from FireTV remote app and alexa's speech to text input are the most efficient input methods if you don't have physical keyboard.
  • Important:
  • Installed Netflix and Spotify apps are compatible with alexa.
  • I couldn't make my dualshock 4 controller work with this device. Even with the stock system. Help would be appreciated.
Reddit Posts Of This Guide: Here and Here
==========================================================================================

Big thanks to:
  • @k4y0z and @xyz` for unlocking the bootloader.
  • @tsynik for building those life-saving magisk modules which is basicly the key of this build.
  • @Pretoriano80 for creating a kernel which supports SDCARDFS, exFAT, F2FS, Wireguard, Advanced TCP options, CIFS and NFS, Insecure ADB.
  • @bnevets27 for debloating script.
  • @Skel40 for build.prop tweaks to increase performance.
  • @Bertonumber1 for testing the rom.
Note:
Never use AFTV xm and AFTV gaps xm together , Google voice and Google assistant won't work if you do so.

Update leanback launcher to 1.48,

Uninstall AFTV gaps xm from Magisk , reboot to twrp , just flash open-gaps and katanis in twrp and reboot.

see the magic of Google voice and Google assistant flawlessly after reboot !

Thanks and regards
Subhash India
 

skrippi

Senior Member
Aug 22, 2011
153
16
How am I supposed to use the OTG adapter? I can't power the FireTV stick with usb power because the OTG adapter is blocking the port. Without USB power it's not turning on
 

mposadzy

Member
Sep 11, 2014
9
7
Bradford
adb push ~/Desktop/***.zip /sdcard/
adb push ~/Desktop/***.zip /sdcard/
adb reboot recovery

adb shell
twrp install /sdcard/***.zip
twrp install /sdcard/***.zip
twrp wipe cache
twrp wipe dalvik
reboot -p
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    How am I supposed to use the OTG adapter? I can't power the FireTV stick with usb power because the OTG adapter is blocking the port. Without USB power it's not turning on

    Here's an Amazon Link to a 3 port hub that should do the trick.
  • 12
    After so many trial and error, I've finally saved the latest version of my system with TWRP backup. I want to share this personal setup with you guys since it required a lot of work to debloat, install add-ons, apps, kernels and tweaks. This is a single package that contains many modifications from other threads made for simple, one-time installation. I tried to keep it close to Android TV (Nougat) exprience. However, I kept some of the Amazon software that I use like Alexa and Amazon Appstore.

    Guides I found and used for this rom:
    !!Please read these threads before you begin!!
    !!All credit goes to those developers!!
    !!Do at your own risk!!

    Some Info:
    Android Version: 7.1.2​
    Fire OS Version: 6.2.7.6​
    Working TWRP Version: 3.3.1-0​
    Installed Magisk Version: 20.4​
    Installed launcher: Google Leanback Launcher​
    Available Internal Storage after installition: 3.15 GB​

    Screenshots:
    top.pngbottom.pngrecomendations.png

    Contains:
    ==========================================================================================

    Working:
    • Alexa
    • Voice Input of Amazon keyboard. (need to enable FireTV IME Keyboard from settings) (long press menu button for quick switch)
    • Amazon Settings
    • Fire TV Remote App (I highly suggest this app. Works perfect for navigation and keyboard input)
    • Amazon Appstore (You can install your previous paid apps from here. Search function in amazon appstore only works with alexa)
    • Google Play Store and Services
    • Magisk
    • Xposed
    • Recommendations on launcher
    • Widevine DRM (Netflix, PrimeVideo etc. works fine)
    • Kodi Audio Passthrough
    • Android Screen Cast
    Not working:
    • Google Assistant
    • Google Voice Search
    ==========================================================================================

    Some useful apps that I installed (all can be uninstalled):
    • FX (file manager with root access)
    • Link2SD (app manager with root access. It lets you uninstall, freeze system apps or convert them to user apps and vice versa)
    • Xposed Edge (simple alternative to tasker or key mapper with root access. I've mapped long-press of back button to kill foreground app)
    • LeanKey Keyboard Pro (came with tsynik's magisk module and I loved it)
    • Smart Youtube TV (modded youtube app that enables dozens of options. I'm using it to increase the playback speed of videos)
    • MX and VLC Player (to play local or online streams)
    • Aerial Dream TV (really nice screensaver that uses Apple TV visuals)
    • Prime Video, Netflix, Spotify (not to make the launcher look empty)
    Installed magisk modules:
    • Xposed Framework (rovo89)
    • Google TV Apps for FireOS 6 (tsynik)
    • FireTV4k Selinux Fix (Pretoriano80)
    Installed xposed modules:
    • Xposed Edge
    • AFTV-XM (tsynik)
    • AFTV-GAPPS-XM (tsynik)
    ==========================================================================================

    Requirements:
    • OTG Adapter
    • USB Keyboard/Mouse
    • USB Stick Formatted Fat32
    • TV or Monitor
    • Firestick 4K
    How to install:
    1. Be aware that your warranty will be void.
    2. Backup your files.
    3. Unlock bootloader and install twrp using this guide.
    4. Download and extract Firestick 4K Android TV TWRP Backup.rar to TWRP backups path on USB stick; TWRP > BACKUPS > G070VM0984752N1Q
    5. Do a factory reset via TWRP (use otg adapter and keyboard/mouse to navigate)
    6. Restore from TWRP backup that you prepared.
    7. Reboot to system.
    8. Connect to wifi and log in to your amazon account. (still using keyboard or mouse to navigate)
    9. Go to Settings > Fire OS > Controllers and Bluetooth Devices and pair your Fire TV remote. (now you can ditch the keyboard)
    10. Enjoy.
    Mirror:
    Additional Notes:
    • Developer options and USB debugging enabled.
    • OTA updates disabled.
    • Disable "Stay Awake" option in developer settings if you want the screensaver to start.
    • Long-press to back button kills the foreground app. It makes quitting activities easier.
    • Long-press to menu button opens fast keyboard switching window. It helps to switch to amazon keyboard when I use voice input.
    • You can change the launcher to whatever you want. I'm happy with Leanback Launcher. I didn't try but there's this.
    • Important: Never install magisk updates from magisk. Use TWRP.
    • If you want to create TWRP backup, select "System Image" and "Vendor Image" insted of system and vendor.
    • Suggestion: FX Web Access makes it easier to tranfer files.
    • Suggestion: I think keyboard from FireTV remote app and alexa's speech to text input are the most efficient input methods if you don't have physical keyboard.
    • Important:
      Play Store downloads not fully compatible with Amazon download manager. In case apps won't install from Play Store - uninstall Play Sore updates from ATV Settings.
      NOTE:
      You need to remove and readd Google account after module update.
    • Installed Netflix and Spotify apps are compatible with alexa.
    • I couldn't make my dualshock 4 controller work with this device. Even with the stock system. Help would be appreciated.
    Reddit Posts Of This Guide: Here and Here
    ==========================================================================================

    Big thanks to:
    • @k4y0z and @xyz` for unlocking the bootloader.
    • @tsynik for building those life-saving magisk modules which is basicly the key of this build.
    • @Pretoriano80 for creating a kernel which supports SDCARDFS, exFAT, F2FS, Wireguard, Advanced TCP options, CIFS and NFS, Insecure ADB.
    • @bnevets27 for debloating script.
    • @Skel40 for build.prop tweaks to increase performance.
    • @Bertonumber1 for testing the rom.
    6
    It's possible to interact with this ROM on first boot without a keyboard. You must use adb shell over USB. The USB cable connected to your laptop, and the FireTV Stick plugged into HDMI on your monitor.

    1. First make sure the device is booted and you see the FireTV stick over USB with adb with adb devices.
    2. Open a new shell with adb shell. You should see a prompt showing mantis:/ $ (may differ if you're not using a 4K stick.)
    3. You have multiple options now to interact with the UI.
      • input keyevent <number> which allows you to send keypresses to the device as if you were working with a keyboard.
      • input mouse tap <x> <y> which allows you to click things on screen using a grid of coordinates. The top left of your screen is x=0 and y=0. The bottom right of your screen is x=1920 and y=1080. Figuring out the exact coordinate of where you want to click will take some trial and error. Don't be afraid to try. Add more x to make the mouse click something right. Add more y to make the mouse click something in the direction of the bottom of the screen.
    4. The easiest option is to use the keyevent input.
      • Use the following guide to map your keypresses to numbers: https://stackoverflow.com/a/8483797/6252246
      • Examples:
      • input keyevent 19 - Up arrow on keyboard
      • input keyevent 20 - Down arrow on keyboard
      • input keyevent 21 - Left arrow on keyboard
      • input keyevent 22 - Right arrow on keyboard
      • input keyevent 66 - ENTER key on keyboard
      • input keyevent 29 - 'A' key on keyboard
    Your goal is to get the FireTV Stick on your home network by entering in the wifi password. Once it's on your network, you can then use the FireTV app on your phone to interact with the device. You can also navigate to the FireOS settings for Remotes and Controllers and unpair the non-existent remote ID which ships with this ROM. To do that start the pair process. When it asks you to press "select" on the 'old' remote (which you don't have) just press select (tap the pad) on your FireTV app and it will proceed with the pairing.

    Hope this helps someone without a OTG or keyboard like me.
    4
    i'm doing experiment on this rom and google assistant seems to work (except voice search) , if you try to type it works. I bet it needs to be tweaked out , maybe removing/blocking alexa and reassigning the voice button on the remote to trigger google assistant

    EDIT:
    i was right, google assistant works. I've been able to use voice search and use it to control my smart home.
    to make it work:
    -enable google assistant in atv voice settings
    -go home and agree microphone usage trying to make a search
    -go in xposed edge pro
    -choose a button ( i used volume down for test) and set google assistant on a key ( it is under activity > google > searchactivitytrampoline (don't forget to enable button)
    -done

    how to use it:
    press the chosen button
    and press alexa micrphone button and it will work
    2
    Ok my friend i can confirm we are good to go .
    Everything intact remote paired , wifi /ethernet bluetooth all good (y)smooth operation
    Thank you , again excellent work
    2
    Just a word to the wise as of recent events it is strongly advised members disable OTA updates on Mantis should they wish to continue modifications such as #root, launchers , adb pm commands etc etc . Update bin 6.2.7.7 has a 2nd "system updates" part to it that contains the boogeyman and is breaking things like adb commands etcetera .