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

Search This thread

Povlig

Member
Sep 1, 2022
6
2
Esposende, Portugal
I've deleted folder "/system/priv-app/com.amazon.tv.oobe" using TWRP file manager and rebooted firestick4k.
Anyway I see screen with login to Amazon using username and password. I'm entering credentials and it shows "registering device" and switching back to the screen with credentials. It can't login to Amazon. I have checked this folder "/system/priv-app/com.amazon.tv.oobe" again after these manipulations and it still there... Is there anything else that must be done in order to bypass login to Amazon on boot of firestick4k ?
 

anphabvn

Senior Member
May 13, 2022
52
6
I've deleted folder "/system/priv-app/com.amazon.tv.oobe" using TWRP file manager and rebooted firestick4k.
Anyway I see screen with login to Amazon using username and password. I'm entering credentials and it shows "registering device" and switching back to the screen with credentials. It can't login to Amazon. I have checked this folder "/system/priv-app/com.amazon.tv.oobe" again after these manipulations and it still there... Is there anything else that must be done in order to bypass login to Amazon on boot of firestick4k ?
You need delete oobe.apk inside that folder and factory reset.
What is your FireOs version ? Try to use 6.2.7.7
 

Povlig

Member
Sep 1, 2022
6
2
Esposende, Portugal
After several different attempts finally I was able to do that.
If you have firetvstick4k that is blocked by Amazon you must boot in TWRP, mount system folder, open file manager - navigate to folder "/system/priv-app/com.amazon.tv.oobe" and set permissions on apk file in this folder to "0400".
(I've tried to delete file as it was recommended but it does not help and it appears again).
Everything works for me except of original Amazon remote control - I can't pair it. I'm using FireTV application on my phone for navigation, also I was able to pair PS4 dualshock controller.
Is there any trick that allows to pair Amazon remote control ?
 
Last edited:

anphabvn

Senior Member
May 13, 2022
52
6
After several different attempts finally I was able to do that.
If you have firetvstick4k that is blocked by Amazon you must boot in TWRP, mount system folder, open file manager - navigate to folder "/system/priv-app/com.amazon.tv.oobe" and set permissions on apk file in this folder to "0400".
(I've tried to delete file as it was recommended but it does not help and it appears again).
Everything works for me except of original Amazon remote control - I can't pair it. I'm using FireTV application on my phone for navigation, also I was able to pair PS4 dualshock controller.
Is there any trick that allows to pair Amazon remote control ?
You have root right? use this
1-Post in thread 'Settings apk Fire TV 2 on Later Fire OS versions' https://forum.xda-developers.com/t/...-later-fire-os-versions.4237823/post-84542879
To Pair Remote
2- Wolf Launcher
3- FireOs Launcher Manager
 
Last edited:

SweenWolf

Senior Member
Mar 18, 2016
681
588
Paradise
Amazon Fire TV
A blacklisted device will not function properly even if you skip oobe, there is a way around it and you will get a fully functional device (but why are there so many blacklisted devices? have you bought the device from amazon?)
If you skip OOBE then all of the apps from Amazon Appstore WILL NOT WORK, and the appstore will also be non-functional, apps like "Downloader" will also not work. Then you can just watch SYTN on it. Other apps will not work on that device. You also won't be able to access Application Section in Settings.

p1.png
p2.jpg
 
Last edited:
  • Like
Reactions: Finnzz

anphabvn

Senior Member
May 13, 2022
52
6
A blacklisted device will not function properly even if you skip oobe, there is a way around it and you will get a fully functional device (but why are there so many blacklisted devices? have you bought the device from amazon?)
If you skip OOBE then all of the apps from Amazon Appstore WILL NOT WORK, and the appstore will also be non-functional, apps like "Downloader" will also not work. Then you can just watch SYTN on it. Other apps will not work on that device. You also won't be able to access Application Section in Settings.

View attachment 5707165View attachment 5707167
i have a "not blacklist" one and run fine without OOBE, no account, just root and twrp.
No Appstore use sideload
and Downloader is useless. Sideload all app or connect your firestick to Usb on computer on TWRP mode you can see Firestick disk.
Cant use setting. There is root setting app
com.markus.firetools.apk ( you can enable ADB ) or flash ATV setting zip in twrp.
im not AMAZON slave.
 
Last edited:

_utsuro

New member
Sep 4, 2022
1
0
If you skip OOBE then all of the apps from Amazon Appstore WILL NOT WORK, and the appstore will also be non-functional, apps like "Downloader" will also not work. Other apps will not work on that device. You also won't be able to access Application Section in Settings.
You can still reenable OOBE to login at any time right? Or will it break something? (rooting for someone—amazon made this device a real hassle 😓)
 

rumc4js

New member
Jul 10, 2013
2
0
Everythings works Well with that ROM besides the pairing of the remote. It simply doesn't work as some described here as well.

Ist there any poasibility to make the remote pairing work?
 

bnevets27

Senior Member
Oct 19, 2010
334
71
Everythings works Well with that ROM besides the pairing of the remote. It simply doesn't work as some described here as well.

Ist there any poasibility to make the remote pairing work?

ri.su did a bunch of things trying to get the new remote to work on the this ROM, as mentions on the previous page, linked here. It's likely something at the core of the system that isn't compatible. A new/newer ROM is probably the best solution.
 

the_cj

New member
Dec 28, 2022
4
0
Everythings works Well with that ROM besides the pairing of the remote. It simply doesn't work as some described here as well.

Ist there any poasibility to make the remote pairing work?
I have the exact same issue with the remote which came with it (the voice one with the TV controls etc), oddly, I tried pairing an old 1st gen remote with it, that works absolutely fine and using it for controlling it, just bummed I can't use the new shiny one with it.
 

Videophile

Member
Apr 30, 2011
41
18
United Kingdom
I've been spending some time working on a similar ROM/Backup from scratch, built on fire OS version 6.2.8.0
(Highest without efuse burn)

Using the latest files (AFTV-MM-20221021) supplied by @tsynik.
Latest Kernel supplied by @Pretoriano80
NTFS/F2FS/EXT4/exFAT OTG supplied by @Pretoriano80
Updated magisk (25.1.FTV)
Updated Leanback Launcher
Updated Xposed
Other Apps updated.
Some frozen Amazon apps, no OTA update etc. (non destructive debloat)
No play store/services (unnecessary and causes issues)
Quick menu on double click Home (Xposed Edge)
Build.prop tweaks (fast boot etc)

Everything working well so far.

If anyone is interested I can make a clean backup and start a new thread. I've reached out to the OP but believe he/she has not been active here for sometime.

Will need to make a backup clear of any credentials.

Does anyone know if there are any apps I can't include following XDA rules? (Cinema, CyberFlix etc)

Let me know if interested and I'll put something together.
 
  • Like
Reactions: burcbuluklu

burcbuluklu

Member
Jun 6, 2018
32
32
I've been spending some time working on a similar ROM/Backup from scratch, built on fire OS version 6.2.8.0
(Highest without efuse burn)

Using the latest files (AFTV-MM-20221021) supplied by @tsynik.
Latest Kernel supplied by @Pretoriano80
NTFS/F2FS/EXT4/exFAT OTG supplied by @Pretoriano80
Updated magisk (25.1.FTV)
Updated Leanback Launcher
Updated Xposed
Other Apps updated.
Some frozen Amazon apps, no OTA update etc. (non destructive debloat)
No play store/services (unnecessary and causes issues)
Quick menu on double click Home (Xposed Edge)
Build.prop tweaks (fast boot etc)

Everything working well so far.

If anyone is interested I can make a clean backup and start a new thread. I've reached out to the OP but believe he/she has not been active here for sometime.

Will need to make a backup clear of any credentials.

Does anyone know if there are any apps I can't include following XDA rules? (Cinema, CyberFlix etc)

Let me know if interested and I'll put something together.
I'm busy with my school for a while so I don't think that I can update my rom in near future. I would appreciate if you share your work with the community.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    I've been spending some time working on a similar ROM/Backup from scratch, built on fire OS version 6.2.8.0
    (Highest without efuse burn)

    Using the latest files (AFTV-MM-20221021) supplied by @tsynik.
    Latest Kernel supplied by @Pretoriano80
    NTFS/F2FS/EXT4/exFAT OTG supplied by @Pretoriano80
    Updated magisk (25.1.FTV)
    Updated Leanback Launcher
    Updated Xposed
    Other Apps updated.
    Some frozen Amazon apps, no OTA update etc. (non destructive debloat)
    No play store/services (unnecessary and causes issues)
    Quick menu on double click Home (Xposed Edge)
    Build.prop tweaks (fast boot etc)

    Everything working well so far.

    If anyone is interested I can make a clean backup and start a new thread. I've reached out to the OP but believe he/she has not been active here for sometime.

    Will need to make a backup clear of any credentials.

    Does anyone know if there are any apps I can't include following XDA rules? (Cinema, CyberFlix etc)

    Let me know if interested and I'll put something together.
  • 21
    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.
    8
    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.
    7
    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
    3
    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
    3
    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
    Thank you very much. What a relief. You're the first beta tester :) much appreciated.