yashsingh1/xdaforums huggingface dataset:
[Fire TV Android Development] Skel40:
I need to look at issues with casting and keep the debloat on the lighter side first.

I'll look into that issue. com.amazon.cast.sink is the package for Display Mirroring. Wi-Fi locker, Whisperplay, Whisperlink, might have broken the functionality. I'll release a lighter list of 6.7.0.1 this week as a test
[Fire TV Android Development] Skel40:
On the debloating. Does anyone want a basic debloat which only remove the Amazon pre-installed apps with the build.prop tweaks? This preserves the other needed functionality for casting to work, including Fire TV back up settings on oobe, allowing users to make the choice to remove the rest?
[Fire TV Android Development] Skel40:
Updated it on my OP. CLH is partially working, I need a patched services.jar/fosservices to get the features. Launcher Manager is working great! Its launching system shortcuts smoothly, I put the deleted pre-installed apps and kept the rest for stability.
[Fire TV Android Development] 0815hoffi:
I think yes, but i dont know it.

I have blocked the OTA-Updates.

4kno-oobe-leanback.zip makes a Backup of the

deleted apk files to sdcard.

In case off error you can recreate the directorys and copy back.
[Fire TV Android Development] WarrenDen:
Unfortunately updater process ended with error. Than checked zip checksum and found a error. Have downloaded your zip multiple times with same result.
[Fire TV Android Development] 0815hoffi:
Error in zip fixed, please redownload

https://xdaforums.com/showpost.php?p=82482781&postcount=19
[Fire TV Android Development] WarrenDen:
Still getting the error. ZIP signature verification failed also.:(
[Fire TV Android Development] 0815hoffi:
How do you install it ??

With connected Keyboard and mouse ??

If Yes, untick Zip verification.

can you post the output

adb push 4kno-oobe-leanback.zip /sdcard/

adb shell reboot recovery

adb shell twrp install /sdcard/4kno-oobe-leanback.zip
[Fire TV Android Development] WarrenDen:
Installing from TWRP with OTG cable and mouse+sdcard connected throw USB hub. Verification unchecked. Getting the message:

Load microloader from recovery...

Remove boot patch...

OK

Updater process ended with ERROR: 6

Install boot patch...

OK

Istall recovery patch...

ALREADY_INSTALLED

Error installing zip file ´/auto1-1/4kno-oobe-leanback.zip´
[Fire TV Android Development] 0815hoffi:
Only for Info.

Can you test it from adb.

adb push 4kno-oobe-leanback.zip /sdcard/

adb shell reboot recovery

adb shell mount -o rw /system

adb shell twrp install /sdcard/4kno-oobe-leanback.zip

Why

´/auto1-1/4kno-oobe-leanback.zip´

And not

´/sdcard/4kno-oobe-leanback.zip´
[Fire TV Android Development] WarrenDen:
Unfortunately, I can´t run it from adb. Can´t connect stick from PC and over WiFi. Device unauthorized.

It is strange, but I have storage auto0, auto1 and auto1-1 came after TWRP install. And auto1-1 is my sdcard storage.
[Fire TV Android Development] 0815hoffi:
Try it with attached WarrenDen.zip.

I have replaced sdcard with auto1-1 in my script.
[Fire TV Android Development] Skel40:
Updated the OP with a new debloated rom version 1.1!
[Fire TV Android Development] WarrenDen:
Nope:crying: The same ERROR: 6.

Thank you 0815hoffi for trying help me.

Skel40 sorry for offtop.
[Fire TV Android Development] Akki67:
Hi Skel40,

I installed your backup on my 4k stick without any problems. The reboot after that went very quickly.

However, updates were downloaded during the subsequent installation, which means that root access is not possible because the file is saved.

There is also no Magisk Manager installed under Programs.

Or do I have to do it differently after the backup?

What changes have you made to build.prop? The scrolling speed is also very good no hangers, good work.

Sorry for the translation I am using a translator.
[Fire TV Android Development] Skel40:
Updates are supposed to go through to prevent kicking out of the setup wizard. Magisk is not pre installed at the moment. I will make a future release soon so there's no need to installing Magisk manually! It'll download the update and not install it on its own if you're careful enough. I recommend downloading a Magisk zip to flash in recovery. The build.prop file is unedited for Magisk purposes. Read below the optional guide for performance improvements on this forum. It'll tell you what zip file to flash for tweaks located in the build.prop directory. If you made a mistake and it updates, reboot to recovery, wipe /system, data, cache, and dalvik cache then restore. After restoring the backup again, flash Magisk and you'll no longer have any issues with rooting!
[Fire TV Android Development] Akki67:
Thank you for your answer, everything worked out the second time. After restoring their backup, I also installed Magisk in TWRP.

After registration and the updates there was still enough time to start su and deactivate the update requests.

I also think it's good that you have also deleted or deactivated some program apps.

A very brisk and harmonic backup and as an encore now an Android media player (logo).:good:
[Fire TV Android Development] Skel40:
Perfect! You're welcome! Thanks for getting back to me! If you want, later today I'm releasing a new rebuilt version of the rom so stay tuned! I deleted the apps for faster performance and if you do want to keep any Alexa features (Alexa Shopping, Alexa Alerts, and Alexa Notifications), I can upload a separate rom on here!
[Fire TV Android Development] Akki67:
But I will certainly continue to accompany you and gladly test your ROMS.

I agree with you that the more storage space we have, the better.

Alexa is not for me anyway, you can remove it from me, you can do it if necessary

install the APKs

Looking forward to the upcoming release from you.

I have a question regarding adbLink as soon as I have activated Root in the settings and I open the file manager

and click with the mouse on a directory, no matter which one, the message Pull File always appears and it cannot be opened.

Do you have problems too? I get into the directories without root access.
[Fire TV Android Development] michael.santos:
Hi 0815hoffi,

you have a bug in your updater-script that makes it fail on TWRP:

ui_print("Cleaning Up...");
delete_recursive("/system/priv-app/com.amazon.tv.launcher");
delete_recursive("/system/priv-app/com.amazon.firehomestarter");

[B][COLOR="Red"]delete_recursive("/system/priv-app/com.amazon.tv.oobe")
delete_recursive("/data/app/com.amazon.tv.oobe")
delete_recursive("/data/data/com.amazon.tv.oobe")
[/COLOR][/B]
delete_recursive("/data/app/com.amazon.tv.launcher-1");

The 3 lines marked above are missing the semicolon at the end of the line... ;)
[Fire TV Android Development] michael.santos:
Hi Skel40,

why don't you repack the original firmware with your changes as an instalable ZIP file for TWRP? It is easier and quicker to install...

Check the tool from Karan Sangaj that I have attached on this post...
[Fire TV Android Development] tokoam:
Running your twrp backup used kernel auditor it to performance.Did you also change the min cpu value ?.No issues so far I flashed aftv 2.1 including magisk 20.4 also have xposed running no issues to report here.
[Fire TV Android Development] 0815hoffi:
[MENTION=2073264]michael.santos[/MENTION]

Thanks for the hint ;)

[MENTION=10745479]WarrenDen[/MENTION]

Fix Attached if you want to try.
[Fire TV Android Development] 0815hoffi:
Howto

https://xdaforums.com/showpost.php?p=72494010&postcount=1
[Fire TV Android Development] Skel40:
Debloated Rom Version 1.2 FINAL has been released
[Fire TV Android Development] Skel40:
Thank you!! I appreciate it! I'm getting the same problem when I delete system packages within the /system/priv-app folders, maybe try unsuperuser it on Magisk and resuperuser again? Try my 1.2 release as its not stock and is prerooted with no issues deleting system packages. I'm not too familiar with adbLink. I never heard of it so I don't really know. If it still won't work with this new release, adb connect your Fire TV Stick 4K, adb shell, su, mount -o remount,rw /system, then try again.
[Fire TV Android Development] Skel40:
That is far out of view for me. If you'd like, you can help me convert it to a flashable zip since it really does help me out from relying on a backup.
[Fire TV Android Development] MichaelPalin:
Hi, thx for this rom. Installed and all works... but i can't set proxy ... on manual --> i set ip, port and when i click save it says impossible save current settings... (with old prerooted fw 6.2.6.8 works) someone have the same problem?
[Fire TV Android Development] Skel40:
That's strange... The ProxyHandler is there on the debloated rom.. It may be possible I deleted the fireos proxy (ArcusListener). Let me add a folder that contains the apk on my OP and copy/paste the folder to /system/priv-app to see if it works.
[Fire TV Android Development] MichaelPalin:
Thx, tested now prerooted 6.2.7.1 and works fine, i can save proxy settings, so Arcus is needed probabily

EDIT: Tested the new v1.3 and all works! Thx [MENTION=10414053]Skel40[/MENTION]!
[Fire TV Android Development] michael.santos:
Hi Skel40,

I could help you build the firmware, but you need to tell me all what you have changed in the firmware so I can repack it correctly... ;)

Have you checked the tool I have sent you, it is really simple to use...
[Fire TV Android Development] Velcro31:
What’s the difference between 1.2 and 1.3? Is it possible to update? I don’t want to reconfigure 2 devices fully lol.
[Fire TV Android Development] Skel40:
There's nothing too different between 1.2 and 1.3. 1.3 has fixes to the notifications not working properly and proxy issues along with a few more system packages added back for stability. You can stay on 1.2 and add the folders to the priv-app folder for manual fixes yourself! Its not required to update! It's possible to update once I get a working zip due to this being a backup atm. What you may want to do which is worth a try. Restore the system image, vendor image and boot only to your Fire TV Stick 4K (1.3) without wiping your data on those two sticks! (Wipe the /system before restoring)
[Fire TV Android Development] Skel40:
Thanks! All I did to the firmware was debloat it for maximum performance in the priv-app folder found in system. Yes! Very carefully and I forgot what it needed but I couldn't find it on my backup, it's not very simple to use yet as I'm still learning how to convert my backup to a .zip
[Fire TV Android Development] spark47:
How to flash this? Sorry i'm a newbie here. I used to flash the pre-rooted rom via a zip package in twrp. Is there a zip package for this version? Thanks in advance for the help
[Fire TV Android Development] Skel40:
I need someone's help with converting it to a zip. I have the application installed on my Windows but due to how complex it is to me, its way out of scope for now. This is a TWRP backup which is optional to restore on your Fire TV Stick 4K!
[Fire TV Android Development] Skel40:
New Debloated ROM V.1.3.1 RELEASED AND COMPLETE!!!!
[Fire TV Android Development] hero6n:
Hello, thank you for this really nice image. It works very fast and smooth. But I want to control the fire tv with my smartphone. How can I add the "Fire TV Remote app" funtion?

Thank you
[Fire TV Android Development] Skel40:
I updated the OP. Extract the given .zip on Google Drive that contains the six necessary folders and paste the folders inside /system/priv-app then reboot. The remote app should work again after that! Yeah no problem! I have another release coming soon without the sync services!
[Fire TV Android Development] Skel40:
New release 1.3.2 without the sync services has been released with ONLY 98 applications out of the 162 installed!
[Fire TV Android Development] corentindcr:
By installing this ROM, do we keep the Widevine L1?
[Fire TV Android Development] Skel40:
​

I'm not too familiar what Widevine L1 is, it would be very much appreciated to know!
[Fire TV Android Development] michael.santos:
Hi [MENTION=10414053]Skel40[/MENTION], Widevine L1 ist the DRM library that allows the Fire TV Stick to stream Netflix in 4K per example.

I suppose that your ROM do not remove the Widevine, because it is embedded in the ROM in form of a library and not an App...
[Fire TV Android Development] chinkster:
Is this rom flashable zip yet?
[Fire TV Android Development] chinkster:
So pretty much we are suppose to update to rbox 6.2.7.1 then use TWRP and restore your debloated backup?
[Fire TV Android Development] Sus_i:
Haven't looked into it, do you see a zip file for download?

Nope, the 'twrp backup' should work without a previous update. Just flash all offered partitions including boot. ;)
[Fire TV Android Development] chinkster:
How to disable the updates again? Thanks
[Fire TV Android Development] Sus_i:
No need to disable updates, i think.

Since [MENTION=10414053]Skel40[/MENTION] offers a debloated rom, the ota updater app should be the first thing he removed...

isn't it? [MENTION=10414053]Skel40[/MENTION]
[Fire TV Android Development] chinkster:
found it. it was buried in the text. so i guess still need to disable updates with ADB.

---------- Post added at 04:59 AM ---------- Previous post was at 04:52 AM ----------

just to save people time from jumping back and forth between other threads on how to disable updates, this was copied from nandroidint newbie guide. please correct me if this is wrong
[Fire TV Android Development] chinkster:
i'm trying to past the 6 folders into the priv-app folder but it keeps saying error? i'm using FX file explorer and i allowed root access but it still wont let me past it into that priv-app folder

edit: nevermind i got it now. didn't see the little LOCK icon on the top left i had to unlock first

---------- Post added at 06:23 AM ---------- Previous post was at 06:04 AM ----------

how to remove the home tab in the FIRE OS settings?

---------- Post added at 06:29 AM ---------- Previous post was at 06:23 AM ----------

FYI: when disabling updater via ADB i wasn't able to disable the last one, i kept getting an ERROR like it didn't exist or something. anyone else?

C:\Minimal ADB and Fastboot>adb shell

mantis:/ $ su

mantis:/ # pm disable com.amazon.tv.forcedotaupdater.v2

Package com.amazon.tv.forcedotaupdater.v2 new state: disabled

mantis:/ # pm disable com.amazon.device.software.ota

Package com.amazon.device.software.ota new state: disabled

mantis:/ # pm disable com.amazon.device.software.ota.override

Error: java.lang.IllegalArgumentException: Unknown package: com.amazon.device.software.ota.override

1|mantis:/ # pm disable com.amazon.device.software.ota.override

Error: java.lang.IllegalArgumentException: Unknown package: com.amazon.device.software.ota.override

1|mantis:/ #
[Fire TV Android Development] chinkster:
Just wanted to say thanks once again
[Fire TV Android Development] Skel40:
I kept com.amazon.device.software.ota alone along with the second ota updater package. I removed com.amazon.device.software.ota.override since removing it doesn't screw up the "My Fire TV" setting in settings so that's why you see it labeled as unknown package for safety and disabling the ota packages messes up the setup wizard upon factory reset. It only screws up the setting if you remove device software ota along with system updates in the priv-app folder. The ota certs.zip.bak is mostly preventing it from verifying which will still check updates but not apply them.
[Fire TV Android Development] chinkster:
So what is your recommended disabling method? I just followed an old disable method because I didn't know what else to do
[Fire TV Android Development] Atomic83:
For those that use Recast, you'll want to keep these 3 packages enabled:

com.android.providers.tv --- DVR menu, and channel viewing

com.amazon.tv.livetv --- Guide and channel preview

com.amazon.providers.tv --- Recordings
[Fire TV Android Development] Michajin:
by chance do you have them that i can install? I installed the debloated and need to install these....
[Fire TV Android Development] Skel40:
I have the full list of priv-app and apps so I'll upload those files onto Google Drive shortly.
[Fire TV Android Development] Pachacouti:
Help?

Wouldn't it be awesome if someone would make an actual tutorial for how to flash this as in, what are the required steps to install? Oh, my apologies, this question has been asked twice before in this thread alone, hidden in amongst the clique that know how to but dont seem to care about anyone else... Any chance of a proper tutorial for how to install this instead of links to other thread's that are not in fact relevant to the latest update, currently 6.2.7.1, for as I've read in other threads regarding earlier firmwares for the 4k, system priv-app no longer exists, and While I'm writing, I'd advise NOT to install the MM.2.2 zip on the latest 4k, because whoever made that made it using older files, and once this file is flashed to latest device, magisk can no longer be installed, due to incompatible zip. Once you get this, magisk cannot be re-installed, the rooted image can be flashed, but NOT magisk.

I'm well up for testing this, but as two others have pointed out, and asked, is it safe to install, and can we have an install procedure that does not break magisk in the latest 4k?
[Fire TV Android Development] michael.santos:
It would be better if [MENTION=10414053]Skel40[/MENTION] build a flashable zip file (I already provided him some tools that could help him to do it).

I also could try to build it, but for that I would need a detailed list of files that have been removed and files/settings that have been changed that only [MENTION=10414053]Skel40[/MENTION] can provide...
[Fire TV Android Development] Pachacouti:
My tests so far..

So I installed the rooted flash zip r1, and all went well, flashed the magisk, all went well, in testing, screwed it up and had to reflash, so I know up t this point, on my brand new 4k, this process wors. Only after flashing AFTVMM2.2.zip does it appear I have root, but dont. Had to reflash r1 rooted zip, and when I tried to re-flash the magisk 20.4, it fails with unsupported zip error, have been unable to flash any magisk in twrp since, the r1 rooted flashed fine, but no magisk can be flashed.

I tested TDUKDebloatToolboxV2.apk and it asked the rsa, gave permissions, app says connected, went for debloat everything, rebooted, still no go, nothing has been removed, despite showing connected as root.

Just a heads up here, dont flash AFTVMM2.2.zip, it uses older files, breaks magisk, r1 can still be flashed, but without decent up to date twrp commands... why does everyone here assume the old commands still work, and by doing so, cut the best from their tut's and leave us all with broken toys because they missed tying out what worked for them?
[Fire TV Android Development] Skel40:
I have the system.zip with the build.prop and everything inside the system. I used the unpack tool and I'm currently stuck on step 4 where I have to have a temp_size.txt but unfortunately I've looked everywhere with no explanation. Error: "place_dat_transfer_list_file_context_here\file_contexts: No such file or directory

Could Not Find C:\Users\skel\Downloads\Android_Unpack_Repack_Nougat (1)\Android Unpack Repack Nougat\temp_size.txt

Press any key to continue . . ."

System.zip (Hopefully you'll be able to convert it somehow with this zip since I'm getting really close of making a flashable zip but stuck at the moment):

https://drive.google.com/file/d/1B6wA1nk78yU5jZvCUXM2OPsBnZmQVCuS/view?usp=sharing
[Fire TV Android Development] michael.santos:
Hi [MENTION=10414053]Skel40[/MENTION], it seems that you did not extract and converted the file_contexts.bin. The file_contexts.bin should be inside the boot.img.

Use the attached tool (file_context_converter) to convert the BIN file or use the file I already extracted from boot.img from firmware 6.2.7.1 (rename "file_contexts.txt" to "file_contexts").

Tool for extracting boot.img is also attached (MTK_Extractor).

Follow this guide on youtube: https://www.youtube.com/watch?v=OsHWPdIgGjY

If you get erros with the python scripts, please use Python 2.7.13 (as mentioned on the youtube guide): https://www.python.org/downloads/release/python-2713/

I will also check this later when I have a little bit more time... :)
[Fire TV Android Development] Skel40:
Thank you! I just fully completed recompiling my rom into a zip and its now working when flashing in TWRP recovery! Everything works now!
[Fire TV Android Development] Skel40:
I updated the rom today so no need to worry about TWRP backups anymore. All you have to do now is download the zip like an ordinary TWRP flashable zip and it'll go through the necessary steps to installing Magisk but unfortunately I looked everywhere online if there's a way to updating Magisk with the .sh file so it doesn't have it installed as 20.0. That's strange. I've avoided installing MM a long time ago.
[Fire TV Android Development] brick00444:
Great work, I love the rom. I'm using the backup you posted and it is very responsive. Can't wait to get home from the cabin and try this zip. I appreciate all you and others do for everyone.
[Fire TV Android Development] Pachacouti:
Testing today, will post results..
[Fire TV Android Development] Pachacouti:
Tested

All seems well, I prefer the android logo compared to the White fire one, however, I cant grant permissions to apps that require root, because the app needing root flashes in front of the permissions box too quickly to give it the permissions it requires. Is there an app for granting permissions apk?
[Fire TV Android Development] Skel40:
Try uninstalling Magisk and reinstalling it with update 20.4. I've had issues in the past before and usually either both reflashing the rom and Magisk should allow the permissions to work as they're supposed to. Not that I can think of I can take a look later to see if there's some sort of apk that manages permissions but I highly doubt it since Magisk has something called Superuser (found inside the app) that can allow you to manage the permissions from there

Edit: I found an app that manages permissions but requires root in the process: https://m.apkpure.com/permissions-manager-root/com.federicogovoni.permissionsmanager
[Fire TV Android Development] Pachacouti:
Hmmm

Tried and tried, ended up with going back to the origional rooted rom, a lot of system apps on mine seem to be different names, so thought it would be a wise idea to delete the system apps manually. Root seems to take a life of it's own with this stick, working when it want's to. For instance, 1st attempt with sdmaid was great, but could not delete from priv-app despite root. Ended up using mount -o rw,remount /system, then started deleting a few tests, they delete fine, but could not for the life of me remount system to ro, a reboot seems to put system back to ro, but since then, sdmaid does not show system apps anymore...?

If there was a definitive list of what is safe to remove, I've read escorted's debloat, but that just does not work, he uses a different port, the old 5037 I think, so that did not work for me, and many apps mentioned seem required in mine... testing continues...

If there is a list of apps we can remove from priv-app without bricking the stick, as I'm actually a bit fed up at the mo having to continually use fireiso to repair my mess, suffice, it's all reset just now until I find out why suddenly there are two user accounts, and ssdmaid no longer shows system apps...

Oops, and forgot about magisk.20.4.zip, after flashing the origional root, I discovered nothing was actually being erased from /sdcard/, and having previously pushed via adb the magisk, I just twrp installed the rooted rom, rebooted, did the account crap, re-enabled debugging, THEN rebooted into twrp to flash magisk, rebooted, then installed busybox to be sure.