Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

docs: the Fire OS lists stop calling restore's launcher pm enable harmless (#2950)

xbshenga3010b5b9c14
diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.md
index 1877438c3..1043f9762 100644
--- a/docs/TROUBLESHOOTING.md
+++ b/docs/TROUBLESHOOTING.md
@@ -1226,6 +1226,17 @@ Android 11 (SDK 30), build RS8185.3885N:
Debloat: `tools/disable.sh examples/amazon-fire-tv-aftdec012e/debloat.txt` disables telemetry, ACR, shopping and
tutorial packages. Undo with `tools/restore.sh examples/amazon-fire-tv-aftdec012e/debloat.txt com.amazon.tv.launcher`.
+**The undo prints one `Cannot disable a protected package` stack trace.** `tools/restore.sh` enables every
+package the recovery record holds as on, and the record also holds the package that owned Home, because putting
+Home back is what undo is for - on Fire OS that is `com.amazon.tv.launcher`. Fire OS protects that package in
+both directions, so the `pm enable com.amazon.tv.launcher` line in the batch answers
+`java.lang.SecurityException: Cannot disable a protected package: com.amazon.tv.launcher` with a stack trace,
+once per run. Nothing failed: the package was already on, `tv.py --batch` carries on and sends every command
+after it, and the run still exits 0. Leaving `com.amazon.tv.launcher` off the `restore.sh` command line does
+not remove the line - the record puts it back. Reported on an AFTKM (`karat`, Fire OS 8.1.8.5, build
+`RS8185/3898`) replaying five recovery records after an OTA
+([#2950](https://github.com/Gathin23/cleanyourtv/issues/2950)).
+
**Home and the Alexa button do nothing, every other button works**, seen on a Fire TV Stick 4K 1st gen
(`AFTMM`, `mantis`, Fire OS 6.7.1.1, build `NS6711`). It was there before any debloat and survived a factory
reset, so check it before blaming a list. The remote is fine: `getevent -lt` shows `KEY_HOMEPAGE` and
diff --git a/examples/amazon-fire-tv-stick-4k-2018/debloat.txt b/examples/amazon-fire-tv-stick-4k-2018/debloat.txt
index 4403a4412..78d321c28 100644
--- a/examples/amazon-fire-tv-stick-4k-2018/debloat.txt
+++ b/examples/amazon-fire-tv-stick-4k-2018/debloat.txt
@@ -10,7 +10,10 @@
#
# Apply: TV_HOST=<stick ip> tools/disable.sh examples/amazon-fire-tv-stick-4k-2018/debloat.txt
# Undo: TV_HOST=<stick ip> tools/restore.sh examples/amazon-fire-tv-stick-4k-2018/debloat.txt com.amazon.tv.launcher
-# (restore.sh re-enables the stock launcher as a matter of routine; on Fire OS it was never disabled, which is harmless.)
+# (restore.sh re-enables every package the record holds as on, the stock launcher included, since it is what owned
+# Home. On Fire OS it was never off, and Fire OS refuses the attempt with a `Cannot disable a protected package`
+# stack trace once per run (reported on Fire OS 8), which the batch carries on past:
+# docs/TROUBLESHOOTING.md, 'Fire TV (Fire OS)'.)
# Everything is DISABLED for user 0, never uninstalled. Comment out any line you want to keep.
# ADB on Fire OS 6: Settings > My Fire TV > Developer options > ADB debugging. If Developer options is hidden,
# Settings > My Fire TV > About > highlight the first entry and press select 7 times. Port 5555, no pairing.
diff --git a/examples/insignia-ns42f201na22/debloat.txt b/examples/insignia-ns42f201na22/debloat.txt
index 4ff683aca..61fffd48a 100644
--- a/examples/insignia-ns42f201na22/debloat.txt
+++ b/examples/insignia-ns42f201na22/debloat.txt
@@ -9,7 +9,10 @@
#
# Apply: TV_HOST=<tv ip> tools/disable.sh examples/insignia-ns42f201na22/debloat.txt
# Undo: TV_HOST=<tv ip> tools/restore.sh examples/insignia-ns42f201na22/debloat.txt com.amazon.tv.launcher
-# (restore.sh re-enables the stock launcher as a matter of routine; on Fire OS it was never disabled, which is harmless.)
+# (restore.sh re-enables every package the record holds as on, the stock launcher included, since it is what owned
+# Home. On Fire OS it was never off, and Fire OS refuses the attempt with a `Cannot disable a protected package`
+# stack trace once per run (reported on Fire OS 8), which the batch carries on past:
+# docs/TROUBLESHOOTING.md, 'Fire TV (Fire OS)'.)
# Everything is DISABLED for user 0, never uninstalled. Comment out any line you want to keep.
# ADB on Fire OS 6: Settings > My Fire TV > Developer options > ADB debugging. If Developer options is hidden,
# Settings > My Fire TV > About > highlight the first entry and press select 7 times. Port 5555, no pairing.
diff --git a/examples/insignia-ns55f301na25/debloat.txt b/examples/insignia-ns55f301na25/debloat.txt
index 29770a0c9..fff153126 100644
--- a/examples/insignia-ns55f301na25/debloat.txt
+++ b/examples/insignia-ns55f301na25/debloat.txt
@@ -11,7 +11,10 @@
# Undo (bash): TV_HOST=<tv ip> tools/restore.sh examples/insignia-ns55f301na25/debloat.txt com.amazon.tv.launcher
# Apply (PowerShell): powershell -ExecutionPolicy Bypass -File tools\disable.ps1 -TvHost <tv ip> examples\insignia-ns55f301na25\debloat.txt
# Undo (PowerShell): powershell -ExecutionPolicy Bypass -File tools\restore.ps1 -TvHost <tv ip> examples\insignia-ns55f301na25\debloat.txt -Stock com.amazon.tv.launcher
-# (restore.sh re-enables the stock launcher as a matter of routine; on Fire OS it was never disabled, which is harmless.)
+# (restore.sh re-enables every package the record holds as on, the stock launcher included, since it is what owned
+# Home. On Fire OS it was never off, and Fire OS refuses the attempt with a `Cannot disable a protected package`
+# stack trace once per run (reported on Fire OS 8), which the batch carries on past:
+# docs/TROUBLESHOOTING.md, 'Fire TV (Fire OS)'.)
# Everything is DISABLED for user 0, not uninstalled. Comment out any line you want to keep.
#
# Keep enabled: com.amazon.tv.livetv, com.amazon.tv.quicksettings and com.amazon.tv.settings.v2 (HDMI/tuner inputs and
diff --git a/examples/toshiba-fire-tv-aftha004/debloat.txt b/examples/toshiba-fire-tv-aftha004/debloat.txt
index fe1dc3500..10895d433 100644
--- a/examples/toshiba-fire-tv-aftha004/debloat.txt
+++ b/examples/toshiba-fire-tv-aftha004/debloat.txt
@@ -8,7 +8,10 @@
#
# Apply: TV_HOST=<tv ip> tools/disable.sh examples/toshiba-fire-tv-aftha004/debloat.txt
# Undo: TV_HOST=<tv ip> tools/restore.sh examples/toshiba-fire-tv-aftha004/debloat.txt com.amazon.tv.launcher
-# (restore.sh re-enables the stock launcher as a matter of routine; on Fire OS it was never disabled, which is harmless.)
+# (restore.sh re-enables every package the record holds as on, the stock launcher included, since it is what owned
+# Home. On Fire OS it was never off, and Fire OS refuses the attempt with a `Cannot disable a protected package`
+# stack trace once per run (reported on Fire OS 8), which the batch carries on past:
+# docs/TROUBLESHOOTING.md, 'Fire TV (Fire OS)'.)
# Everything is DISABLED, not uninstalled. Comment out any line you want to keep.
#
# Kept on purpose: Alexa, OTA updates, AirPlay, DIAL/whisperplay (Netflix and YouTube casting), the streaming apps