yashsingh1/xdaforums huggingface dataset:
[Fire TV Android Development] SweenWolf:
MiniTv is another service like prime video that shows videos (local and international dubbed) for free but you have to see ads. Its stub app is already installed in the system and it gets its full version when OTA update is connected.

First DOTA app creates an Inventory list of installed apps (when the app is launched) then it gets a list of app versions from Amazon, then it creates a list of PublishedUpdates which is the main list of updates for your system then it is passed to PendingUpdates which is automatically installed on the system if no manual interaction is needed.
[Fire TV Android Development] nomobytes:
On another device running stock 6.7.0.2 firmware I have some system components that can be installed "now" at my discretion. I have the Install Update Prompt with the sidebar "An update is available. The update will automatically begin the next time your Amazon Fire TV Stick 4K is not in use. Installing the update may require a device reboot. Press select to install now."

And when I invoke the stock OTA Dashboard under Pending Updates (invoked as root) I see there are new versions of com.amazon.firebat and com.amazon.avod, but the system is not forcing an immediate install, and I can presumably delete them from /cache or hit the install button on the dashboard.

So there is additional logic coming into play and I'm hoping its not 3rd party launcher related.

-nomobytes
[Fire TV Android Development] SweenWolf:
Stock Rom with Patch Install Instruction

[ROOT][MANTIS][FIRESTICK 4K] Custom Launcher Support and System Patches

CUSTOM LAUNCHER HANDLER (FIRESTICK 4K) - 6.7.0.2 This is a method to enable certain features disabled/blocked by Amazon, and this method does require TWRP to be installed on the device. This does not require any root access so you don't need to...

xdaforums.com
[Fire TV Android Development] hasobist:
Hello @SweenWolf !

Well listed and lucid instructions to flash stock 6702 or any rom for that matter.

Just to mention from my experience and it being a beginners guide.

1.If we click format(did you mean swipe in advance swipe to initiate clearing the selected partitions as there is the format data option beside the advance wipe) which formats /data and also the data in the internal storage gets cleared as well.

As you mentioned USB drive, all the rom and it's requisites are safe though even if we lose data in the internal storage of the stick,if any happens otherwise.

2.After flashing the stock rom followed by patch ,need to flash Magisk for root before reboot followed by clearing /dalvik-cache,cache and reboot or else root is lost perhaps can achieve by booting to recovery and flashing Magisk,if prior done saves a step.

Thank you for all the support and contributions, much appreciated.

Cheers!
[Fire TV Android Development] SweenWolf:
I meant

after selecting partitions "Swipe to wipe" but as i wrote this from my memory, i wrote"Click to format" instead of "Swipe to wipe".

But this does not clean Internal storage, because if you have noticed there is also an option to select "Internal Storage"

Your Internal storage is internal storage (which gets wiped only if you wish to wipe it) and Storage 1 will be your USB drive (if you have attached only one drive). which also does not get wiped by itself.

/data partitions contains caches, installed apps and their saved data.

These are the simplest instructions which I could have given.

Root can be achieved anytime (as long as the system is working properly), all you have to do is flash the masigk zip in recovery.

You can wipe cache/ dalvik-cache before or after flashing rom or patch or anything because they are rebuild by the system when it hits its first boot, they are not build in twrp.

If anyone doesn't need Magisk then I don't force them to use it, cause mishandling root always **** the system .

And then I'll have to add a note not to flash magisk's update in the system because that will kill your stick.

Appreciate it.
[Fire TV Android Development] SweenWolf:
Anyone here uses SkyGO?

Flash this release, boot to system.

Open a third party launcher, open "Launcher Handler" means CLH.

Long press [Menu]

Click on "Desk UI Mode" to make it active.

reboot

install skygo (if already installed then clear data)

(use set orientation if needed)

open skygo > login (you should be able to login, as i don't have a login i cannot get past that)

reboot system, open CLH and disable "Desk UI Mode"

your Skygo should still work.

NOTE: Changing UI Mode requires a reboot.
[Fire TV Android Development] SweenWolf:
I think this wraps up patches for 6702, will update OP after some testing.
[Fire TV Android Development] hasobist:
Hello @SweenWolf !

Thank you ,appreciate the explanation and your time.

Just quoted ,as a beginner and noob relied and even now rely loads on every bit of information in the OP and the experiences shared in the respective threads,literally read em all and help others in the same pool,adding my own.

Thank you for all........

Cheers!
[Fire TV Android Development] SK4G:
Would it be possible to port this over to the Amazon FTV 2 (Sloane)?

Mainly interested in CLH as it does not have the delay of LM when clicking the home button.

Apart from the attached boot image, removal of the efuse, and needing to change the attached apk's minimum SDK to 22 for Fire OS 5, is anything specific to Mantis?

Unsure if any of these files are Mantis specific.

system/
├── framework
│ ├── fosservices.jar
│ ├── oat
│ │ └── arm
│ │ ├── fosservices.odex
│ │ └── services.odex
│ └── services.jar
└── priv-app
├── CLH
│ ├── CLH.apk
│ └── oat
│ └── arm
│ └── CLH.odex
├── com.amazon.tv.forcedotaupdater.v2
│ └── com.amazon.tv.forcedotaupdater.v2.apk
└── DeviceSoftwareOTA
└── DeviceSoftwareOTA.apk
[Fire TV Android Development] hasobist:
Hello @SK4G !

@SweenWolf ,is better in replying to the same.

Personally use LM with Wolf Launcher on Firetv tank never faced any lag issues.

A couple of seconds lag is fine.......

Cheers!
[Fire TV Android Development] Sus_i:
No need for an efuse patch in system or boot. Seems they are not trying to patch the bootrom access via efuse burning, probably because it's an eol device. There are also no fireOS updates via OTA for ages...
[Fire TV Android Development] SK4G:
@hasobist in the OP it state "No Boot delay on using a custom launcher". I think that is in reference to the delay I mention.

I currently use the FTV2 with no launcher and open Kodi via an adb script. Then I use skin shortcuts to open android apps. Essentially turning Kodi into a launcher. But this is suboptimal as the script needs to be run on every boot.

@Sus_i Yeah I was saying the efuse removal in the updater-script is specific to Mantis and wouldn't be needed on Sloane.

Does Sloane also not receive "system component" (first party app) updates anymore? Would Sloane benefit from the OTA updater or is it recommended to manually install new app updates?
[Fire TV Android Development] SweenWolf:
Added a custom system settings page which can be opened from settings if stock launcher is uninstalled. otherwise can be optionally enabled from settings.

View attachment 6088906
[Fire TV Android Development] SweenWolf:
Actually Other than FOTA and DOTA everything is for Mantis only. the apps should be 99% incompatible.

as mentioned by sus_i you don't have to worry about efuse on that device.

Do not put any of these file on your Sloane.

You can try https://xdaforums.com/attachments/firetv-settings_3-0-apk.5308185/

I think you can easily lower the hardcoded SDK version, so set this app's Compile SDK to 21 or 22

I don't think any dependency would be missing for it.

I have no idea about Sloane but as long as Accessibility is working on the device this app will work.

There will be no boot delay on using any custom launcher and Press to home will also work.

you can find more info about it on this post

[APP][FIRETV][NOROOT] Launcher Manager (Change Launcher without Root)

LAUNCHER MANAGER (FOS 6+) BLOCKED BY AMAZON, USE LAUNCHER MANAGER (MINI) STEPS TO ENABLE CUSTOM LAUNCHER: Before installing version 1.1.8 uninstall any previous version. 1. Download Launcher Manager by clicking or by using short link and...

xdaforums.com
[Fire TV Android Development] SweenWolf:
Shouldn't

https://xdaforums.com/attachments/lm-fos5-1-0-7-apk.5529819/

still work on the devices?

Anyone tried on unpatched device?

needs

adb shell pm grant com.wolf.fos5.settings android.permission.SYSTEM_ALERT_WINDOW
adb shell pm grant com.wolf.fos5.settings android.permission.READ_LOGS
adb shell dumpsys deviceidle whitelist +com.wolf.fos5.settings

to run
[Fire TV Android Development] hasobist:
Hello @SK4G !

Personally use App drawer to display all the apps installed, with Wolf Launcher both on Firetv4k and Tank(never liked the stock) just love the layout and interface especially widgets been since time own the stick.

Firetv 4k is fine has some extra juice and a different platform unlike the Firetv tank can't load it much,yet it comes to the rescue.

Launcher Manager and with CLH is a great combo.

Apps which ain't use much are disabled.

As mentioned a little delay is fine which is unnoticed.

Ain't a Kodi fan ,tried it once on Firetv tank ,slowed it down badly,so stick with native apps for streaming and testing.

Thanks to Sween and Skel keep the developments going for the Firetv 4k.

Cheers!
[Fire TV Android Development] hasobist:
Hello @SweenWolf !

It works indeed,used the Firetv Toolbox app from the LM thread to setup the Wolf Launcher on Firetv Tank,doing great.

Thank you for all your time and support, much appreciated.

Cheers!
[Fire TV Android Development] Sus_i:
Sloane still gets system component app updates (and we don't know if amaz. drops an OTA OS update in the future at some point, therfor manual updates are safer).

I saw many people disable the app updates and call it bloat... ;)

but yeah, would be very nice to see some of sweenwolf's patches ported to fireOS5, the fireTV stick tank and the box sloane needs some love too :)
[Fire TV Android Development] SweenWolf:
Updated version of https://xdaforums.com/attachments/lm-fos5-1-0-7-apk.5529819/

reboot after setting up. Usually it won't be neccessary but my Android Studio giving me headaches and refusing to compile, so cannot optimize.

This version should work on all devices (FireOS).

As the ADB doesn't support local addresses anymore, you'll have to give the permissions using a remote ADB client (any device on WIFI will work)

Home press should show an overlay (till the App Switcher allows switching) and after that it should open custom launcher, it will also open custom launcher on boot.

[EDIT]

Moved here

[APP][FIRETV][NOROOT] Launcher Manager (Change Launcher without Root)

LAUNCHER MANAGER (FOS 6+) BLOCKED BY AMAZON, USE LAUNCHER MANAGER (MINI) STEPS TO ENABLE CUSTOM LAUNCHER: Before installing version 1.1.8 uninstall any previous version. 1. Download Launcher Manager by clicking or by using short link and...

xdaforums.com
[Fire TV Android Development] Skel40:
To confirm, the older interface allows the Profiles app to launch via CLH.
[Fire TV Android Development] SweenWolf:
OP Updated.

(CLH and Boot Image also updated)
[Fire TV Android Development] SweenWolf:
Fixed a bug where CLH would crash and won't allow changing custom launcher if the selected custom launcher is uninstalled. It will still open CLH hud if no selected launcher is not found. you can fix that by going to Applications then select CUSTOM LAUNCHER HANDLER and clear its data, or just update CLH.

Found the bug after updating OP
[Fire TV Android Development] Skel40:
@SweenWolf, can implementation of the Wi-Fi Off/On feature be implemented to (mantis)?
[Fire TV Android Development] SweenWolf:
Ok, I understand about turning wifi on but why do you want to turn it off?

Actually I had added a code to turn wifi and bluetooth ON on every boot to one of my app (don't remember which one) but it was to make sure I don't accidentally lose my remote's connection
[Fire TV Android Development] Itachi7:
please can you add the Option to choose another Keyboard?

I need to swich betwen two languages with the Lean Key Keyboard App
[Fire TV Android Development] hasobist:
Hello @Itachi7 !

You can use the Firetv settings app to change the keyboard or use adb command to change your default keyboard.

You can refer to this:

'Fire TV Stick 4K 1st Gen (mantis) Rom' https://xdaforums.com/t/fire-tv-stick-4k-1st-gen-mantis-rom.4298357/post-89439776

Personally use the below settings app.

Use the below settings app ,push it to /system/app set permissions to r-w-r-r

Reboot the stick.

Tap the home button twice should be in settings CLH select any settings it will give you stock and ATV settings option

Use ATV then select keyboard and click on stock Firetv IME and select your keyboard of choice. Keep clicking on build number in settings you have developer options activated as well.

EDIT: Helllo @Itachi7 ,you can also use the LM settings app from this thread to achieve the same result.

Hope it helps.......

Cheers!
[Fire TV Android Development] bibikalka:
Sorry if has been already answered in the past, but does this modded kernel support exFAT ? I am running this kernel for 3 years now, and exFAT support is excellent:

[KERNEL][FireTV Stick 4K] Custom Kernel For AFTV 4k - 6.2.9.4

Warning !!! Use this kernel on your own risk !!! I can't be held responsible for any kind of damage or data loss !!! Features: SDCARDFS exFAT and F2FS support Wireguard Advanced TCP options CIFS and NFS support Insecure ADB v1...

xdaforums.com

Unfortunately, the poster has disappeared ...
[Fire TV Android Development] Osh1:
Thanks for the workaround much appreciated,

I use netguard to block ota on firestick 4k but accidentally turned it off and firestick sneaked an update in,

Noticed adepfos is no longer showing seperately in netguard, is there any other running system resources needed to block updates now?
[Fire TV Android Development] puppinoo:
Hi and thanks fo your work.

I live in Italy and flashed my Mantis with your 6.7.0.2 + patches to test SkyGo Italy.

Since my Mantis had a very old 6.* installed, first direct installation of 6.7.0.2 didnt work. Device was bricked but Twrp worled so no big deal.

Im not sure how I made it work. Maybe I just installed another older custom rooted 6.7.0.0 but Im not sure (EDIT: Thanks a lot to @Skel40 for his roms).

Btw I was able to install your 6.7.0.2 + patched and found online a Sky it apk to test.

1) It's not possible to use it without a physical mouse cause on your rom I was not able to install Mouse Toggle. Aspect ratio of the app is terrible. Not sure if there's a Android TV version but I dont think so.

Apk was this: https://www.apkmirror.com/apk/sky-italia-s-r-l/sky-go-it/sky-go-it-24-1-1-release/

2) Desktop UI mode breaks some other apps. For example Search into Downloader stopped working cause Mouse pointer was not active and I couldnt click on banners. Not sure if It's just for me.

3) SkyGo 'It' worked at first but after login when I tried to launch a stream, it warned I had HDMI output enabled (??) and cant play videos with that. It's a known protection system by Italian SkyGo android version. Also explained here: https://xdaforums.com/t/app-no-root-skygo-for-fire-tv.3776919/page-12#post-89465165 . So it didnt work. Is it possible to circumvent it?

Thanks.
[Fire TV Android Development] SweenWolf:
Great

Ok, "Mouse Toggle" works on my patched ROM. (I use it, the version I use is 1.12. If the app gives you "Error P1" or "Error P2" then just uninstall the app on FireTV, launch its companion app on your Android Phone.

Install the apk from Companion App, it will set the app on FireTV, It may stuck on starting, close your companion app on the phone, and turn ADB debugging OFF and then ON and allow the new debugging on new RSA fingerprint, this troubleshooting step is also written on the app for FireTV)

You can use "Set Orientation" app to set the orientation "Landscape", it will fix your Aspect Ratio problem

Yeah, Desk UI Mode will break some apps, because will tell the apps that its not a TV, so you'll have to use use mouse instead of DPAD.

It will not break the apps which simply does not check the UI mode.

This is reason why I said turn it off after login.

requires a reboot.

Now, I don't have a login to test SkyGO stream or Anything, I can only test upto the login page.

Anyways.

HDMI output broadcast can also be disabled on CLH (I may have messed up a code, so HDMI broadcast patch is actually inverted, Active is Inactive and vice-versa.)

Just below Desk UI mode there's HDMI Broadcast (Make it active, it is inverted and I will fix the text in future but the Patch will still work)

Reboot and Test SkyGO

And also Disable DeskUI mode.

One thing that doesn't work is Permission Manager X, its not that it will not work, its that the app itself is not able to check if it is connected properly, because it is asking for Authorization so FireTV is allowing the app.

Anyone using Permission Manager X can ask the dev at GitHub to check that.
[Fire TV Android Development] SweenWolf:
Oh Sorry, CLH is the app which turns on Bluetooth and WiFi automatically at boot. Do you want me to add a setting to that? Does it mess with something?

It only does at system boot not after that.
[Fire TV Android Development] SweenWolf:
Moved to

[ROOT][MANTIS][FIRESTICK 4K] Custom Launcher Support and System Patches

CUSTOM LAUNCHER HANDLER (FIRESTICK 4K) - 6.7.0.2 This is a method to enable certain features disabled/blocked by Amazon, and this method does require TWRP to be installed on the device. This does not require any root access so you don't need to...

xdaforums.com
[Fire TV Android Development] SweenWolf:
ADB and Logs stripped, it is the same launcher manager.

Moved here:

[ROOT][MANTIS][FIRESTICK 4K] Custom Launcher Support and System Patches

CUSTOM LAUNCHER HANDLER (FIRESTICK 4K) - 6.7.0.2 This is a method to enable certain features disabled/blocked by Amazon, and this method does require TWRP to be installed on the device. This does not require any root access so you don't need to...

xdaforums.com
[Fire TV Android Development] puppinoo:
Hi, and thanks for reply.,

1) I didnt realize I could (actually had too) disable Desktop UI after login so I kept enabled all the time. Now I got it right and it's ok if it messes up things.

2)I downloaded and installed your latest settings apk and retested my SkyGO and this time it worked. Not sure why probably because I screw up the first time but its working now.

3) I followed your advice and installed set-orientation and now app visual is fine. Thanks a lot.

4) the only thing left to me is Mouse toggle. I tried several versions (1.12 too) and it gives Error 2 error). So I tried to install using Companion app from my android phone but after it finds the device it's not even able to install the app. Gives the link to official troubleshooting page.

EDIT: I tried the Thoubleshooting process from companion app and it fails at "Checking if ADB responds". Suggest me to disable and reenable adb, I do that but still error.

EDIT: Since my daily driver is a (temp-rooted: https://xdaforums.com/t/temp-root-firetv-3rd-gen-cube-gazelle-ps7652.4596733/ ) Cube 3th edition, could patches to enable SkyGo work on that one too?

Thanks a lot.
[Fire TV Android Development] SweenWolf:
Thanks

Uninstall Mouse Toggle from your FireTV

Do not connect any device to your FireTV, do not use any app that uses ADB shell.

Make sure everything is disconnected from your fireTV (only one device can access adb shell at a time)

Open Mouse Toggle on your Phone

Select your FireTV

Go to Install FireTV app

click on "SEND"

it will install the app again on FireTV

go to troubleshoot section

when it says "Checking if ADB responds" it is trying to connect to ADB Shell (if it is busy it will fail)

Toggling ADB Debugging does not work if an adb client is accessing ADB shell (it will reconnect to that device and not to Mouse Toggle) if you are using a pc just run

adb disconnect

or

adb kill-server

As this device has a temp root, you shouldn't use patches like this, your device will fail dm-verity and will not boot anymore. Other way to achieve this is magisk module on a systemless magisk but as stated on the thread most magisk modules do not work.
[Fire TV Android Development] puppinoo:
Hi again,

I was still testing MT versions and since it worked for you retested 1.12 and I realized that even though it gives Error P2 it still started working so I guess if everything is fine I'll keep it the way it is.

Tested on my SkyGO to see if it clicked cards and it did so I guess everythoing is good now.

I suspected it was not safe to install patches on a not unlocked device I myself bricked my Mantis 2 times testing so it is fine for now.

I'll keep updated if and news emerge.

Thanks a lot again.
[Fire TV Android Development] puppinoo:
Hi again @SweenWolf ,

So far so good. Thanks a lot.

Is there a way to add in the context menu for selected app the "force close" option? I think it's the best option when app becomes unresponsive (Kodi sometimes does that).

Thanks
[Fire TV Android Development] SweenWolf:
This option is already present in Recent Apps section
[Fire TV Android Development] puppinoo:
I'm sorry but I cant find the section.

Did you mean the section is in the wolf Launcher itself? Maybe I have and older versione? Cant find versionenumber.

EDIT: Found It 😅 Thanks .
[Fire TV Android Development] puppinoo:
Hi @SweenWolf ,

So far so good using your rom + patches.

I'd like to install a torrent client on my 4k which requires to write files bigger than 4GB on an external USB dongle.

Do you think this kernel could be used with your rom enabling NTFS or ExFAT?

https://xdaforums.com/t/kernel-firetv-stick-4k-custom-kernel-for-aftv-4k-6-2-9-4.4005087/

Or maybe any of these FS could be enabled without need of external dependencies?

Thanks.
[Fire TV Android Development] SweenWolf:
Try this,

Flash Pretoriano80's 6.2.9.4 boot.img using twrp.

If boot image is compatible then the system will turn on just fine.His kernel also has the patches which are needed for CLH to work (Either use his boot.img or mine, just don't use the stock one)

If the system refuses to boot, extract boot.img from CLH patch zip and flash it using TWR

Please report back to me even if it works or not.
[Fire TV Android Development] puppinoo:
Ill try. I'm using your 6.7.0.2. Can I install his latest (6.2.9.4 boot.img extracted from this zip https://xdaforums.com/attachments/custom_boot_mantis_6-2-9-4_r2-zip.5807073/) upon this?

Do I have to extract just the boot.img from the zip and just install that one or I have to flash the whole custom_boot_mantis_6-2-9-4_r2-zip zip file)?

If that will work, will I need to injstall also custom modules (AFTV4K_CIFS_MOUNTING_MODULE.zip and AFTV4k_Selinux_Magisk_Module.zip, mantis_tz_update_6.2.9.4.zip <- this one is probably obsolete?)?

Thanks.
[Fire TV Android Development] SweenWolf:
Even though the result is same, but extract boot.img and flash it to boot partition using TWRP (Select Install Image)

Just install the boot.img and nothing else, then boot the system. If the system boots up normally only then can you install other module.

I need less things to troubleshoot right.

maybe, maybe not
[Fire TV Android Development] puppinoo:
Hi,

Just tried to flash pretorian's boot.img but unfortunately stick doesnt boot (it stops at second FireTv logo with underneath wave animation).

Also a doubt: Can I check if pretorian's boot.img flash without his patches made something happen to my fuse (probably a stupid question cause fuse amzn burning fuse code is not into boot.img).

Thanks
[Fire TV Android Development] SweenWolf:
Guessed so

you are wrong, it is invoked by the boot.img, and both of us remove that, so the efuse doesn't accidentally blow up
[Fire TV Android Development] puppinoo:
Yes, mine was an uneducated guess about if fuse code was into boot.img or not, basically a question but seemed like an affirmation.

Btw I guess Ill have to wait for a possible pretorian's update.

Thanks.
[Fire TV Android Development] SweenWolf:
Ok can you tell me what i should check on my end, i have installed Pretoriano80's kernel, what do i have to check, i need steps for it.