Skip to content

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

tools: protect com.android.location.fused in the core package guards (#2803)

Gathin23f5c37c36351d
diff --git a/examples/tcl-32s5400a/debloat.txt b/examples/tcl-32s5400a/debloat.txt
index 18f75981c..607f3636c 100644
--- a/examples/tcl-32s5400a/debloat.txt
+++ b/examples/tcl-32s5400a/debloat.txt
@@ -24,7 +24,8 @@
# com.tcl.tv (Live TV + HDMI), com.tcl.tvinput (HDMI/AV/tuner), com.tcl.tcl_bt_rcu_service
# (Bluetooth remote), com.tcl.system.server (remote-key plumbing), com.tcl.autopair (Bluetooth
# remote pairing), com.tcl.settings (picture/sound), com.tcl.dashboard (TCL HOME tile),
-# com.tcl.messagebox (carries the ttvs receiver), com.tcl.suspension (Quick Panel).
+# com.tcl.messagebox (carries the ttvs receiver), com.tcl.suspension (Quick Panel),
+# com.android.location.fused (boot-looped a 43S5400A into recovery on V325, #2803).
#
# Applied on 2026-10-20 and checked the same day (shorter than CONTRIBUTING.md asks; I will report
# back if anything breaks). The first pass also disabled com.tcl.system.server, com.tcl.autopair,
diff --git a/examples/tcl-40s5400a/debloat.txt b/examples/tcl-40s5400a/debloat.txt
index 44bf11012..48982d4e1 100644
--- a/examples/tcl-40s5400a/debloat.txt
+++ b/examples/tcl-40s5400a/debloat.txt
@@ -106,6 +106,7 @@
# com.tcl.settings # picture/sound settings
# com.tcl.dashboard # "TCL HOME" tile; kept, only hidden in the launcher config
# com.tcl.suspension # Quick Panel; kept, not tested without it
+# com.android.location.fused # boot-looped a 43S5400A into recovery on V325 (#2803)
# com.tcl.providers.config # reported to drop Wi-Fi on the 65C725; not tried here
# com.tcl.keyhelp # remote-key help/virtual keys; kept
diff --git a/examples/tcl-43s5400a/debloat.txt b/examples/tcl-43s5400a/debloat.txt
index d32f13a79..ddf7c094e 100644
--- a/examples/tcl-43s5400a/debloat.txt
+++ b/examples/tcl-43s5400a/debloat.txt
@@ -34,6 +34,7 @@
# com.tcl.autopair # Bluetooth remote auto-pairing
# com.tcl.settings # picture & sound settings
# com.tcl.suspension # source panel / Quick Panel
+# com.android.location.fused # boot loop into recovery when disabled on V325 (#2803)
# com.tcl.keyhelp # virtual keys
# com.android.vending # Google Play Store
# com.google.android.gms # Google Play Services
diff --git a/tests/test_core_packages.py b/tests/test_core_packages.py
index e3a2615ca..e714396d9 100644
--- a/tests/test_core_packages.py
+++ b/tests/test_core_packages.py
@@ -37,6 +37,8 @@ CORE = [
"com.google.android.modulemetadata", "com.android.modulemetadata",
"com.google.android.overlay.modules.ext.services", "com.google.android.overlay.modules.permissioncontroller",
"com.android.sdksandbox",
+ # A TCL 43S5400A boot-looped into recovery with this one off (#2803).
+ "com.android.location.fused",
"com.android.systemui", "com.android.shell", "com.android.phone",
"com.android.settings", "com.android.tv.settings",
"com.android.providers.settings", "com.android.providers.tv", "com.android.providers.media",
@@ -60,6 +62,8 @@ NOT_CORE = [
"com.android.adservices.api", "com.android.ondevicepersonalization.services",
"com.android.federatedcompute.services", "com.android.sdksandbox.overlay",
"com.android.sdksandbox2", "com.example.sdksandbox",
+ # Only the exact fused location package is protected for #2803.
+ "com.android.location.fused.overlay", "com.google.android.location.fused",
]
diff --git a/tools/disable.ps1 b/tools/disable.ps1
index ed1b855a8..adf62484b 100644
--- a/tools/disable.ps1
+++ b/tools/disable.ps1
@@ -60,7 +60,8 @@ if (-not $pkgs -or $pkgs.Count -eq 0) {
# patterns in step with disable.sh and recovery.py (tests/test_core_packages.py). The TV middleware
# (com.cltv.mal, com.mediatek.tis / tv.service / tv.agent) is guarded too (#1578, a Haier boot loop).
# Protect the exact SDK sandbox package (#2557); the reported boot-failure cause is unconfirmed.
-$coreRe = '^(android|android\.ext\.(services|shared)|com\.android\.sdksandbox|com\.android\.systemui|com\.android\.shell|com\.android\.phone|com\.android\.settings|com\.android\.tv\.settings|com\.(google\.)?android\.(permissioncontroller|packageinstaller|ext\.services|ext\.shared|modulemetadata)|com\.google\.android\.overlay\.modules.*|com\.android\.providers\..*|com\.cltv\.mal|com\.mediatek\.(tis|tv\.service|tv\.agent))$'
+# And com.android.location.fused: a TCL 43S5400A (V325) boot-looped into recovery with only it off (#2803).
+$coreRe = '^(android|android\.ext\.(services|shared)|com\.android\.sdksandbox|com\.android\.location\.fused|com\.android\.systemui|com\.android\.shell|com\.android\.phone|com\.android\.settings|com\.android\.tv\.settings|com\.(google\.)?android\.(permissioncontroller|packageinstaller|ext\.services|ext\.shared|modulemetadata)|com\.google\.android\.overlay\.modules.*|com\.android\.providers\..*|com\.cltv\.mal|com\.mediatek\.(tis|tv\.service|tv\.agent))$'
$coreOk = '^com\.android\.providers\.(calendar|contacts|userdictionary|blockednumber)$'
$core = @($pkgs | Where-Object { $_ -cmatch $coreRe -and $_ -cnotmatch $coreOk })
if ($core.Count -gt 0) {
diff --git a/tools/disable.sh b/tools/disable.sh
index 9e0e7941d..114e0bb5e 100755
--- a/tools/disable.sh
+++ b/tools/disable.sh
@@ -64,7 +64,8 @@ fi
# (#1578), and the Haier-built AQUA MatrixTV list keeps all four.
# Keep CORE_RE and CORE_OK the same in disable.ps1 and recovery.py (tests/test_core_packages.py).
# Protect the exact SDK sandbox package (#2557); the reported boot-failure cause is unconfirmed.
-CORE_RE='^(android|android\.ext\.(services|shared)|com\.android\.sdksandbox|com\.android\.systemui|com\.android\.shell|com\.android\.phone|com\.android\.settings|com\.android\.tv\.settings|com\.(google\.)?android\.(permissioncontroller|packageinstaller|ext\.services|ext\.shared|modulemetadata)|com\.google\.android\.overlay\.modules.*|com\.android\.providers\..*|com\.cltv\.mal|com\.mediatek\.(tis|tv\.service|tv\.agent))$'
+# And com.android.location.fused: a TCL 43S5400A (V325) boot-looped into recovery with only it off (#2803).
+CORE_RE='^(android|android\.ext\.(services|shared)|com\.android\.sdksandbox|com\.android\.location\.fused|com\.android\.systemui|com\.android\.shell|com\.android\.phone|com\.android\.settings|com\.android\.tv\.settings|com\.(google\.)?android\.(permissioncontroller|packageinstaller|ext\.services|ext\.shared|modulemetadata)|com\.google\.android\.overlay\.modules.*|com\.android\.providers\..*|com\.cltv\.mal|com\.mediatek\.(tis|tv\.service|tv\.agent))$'
CORE_OK='^com\.android\.providers\.(calendar|contacts|userdictionary|blockednumber)$'
CORE=$(printf '%s\n' "$PKGS" | grep -E "$CORE_RE" | grep -vE "$CORE_OK" || true)
if [ -n "$CORE" ]; then
diff --git a/tools/recovery.py b/tools/recovery.py
index 538941ee9..01d5c51cf 100644
--- a/tools/recovery.py
+++ b/tools/recovery.py
@@ -73,7 +73,8 @@ VERSION = 1
# carry the same two patterns (tests/test_core_packages.py keeps the three in step).
# The TV middleware too: com.cltv.mal (a Haier H50H5F looped with it off, #1578), com.mediatek.tis, tv.service, tv.agent.
# Protect the exact SDK sandbox package (#2557); the reported boot-failure cause is unconfirmed.
-CORE_RE = re.compile(r"^(android|android\.ext\.(services|shared)|com\.android\.sdksandbox|com\.android\.systemui|com\.android\.shell|com\.android\.phone|com\.android\.settings|com\.android\.tv\.settings|com\.(google\.)?android\.(permissioncontroller|packageinstaller|ext\.services|ext\.shared|modulemetadata)|com\.google\.android\.overlay\.modules.*|com\.android\.providers\..*|com\.cltv\.mal|com\.mediatek\.(tis|tv\.service|tv\.agent))$")
+# And com.android.location.fused: a TCL 43S5400A (V325) boot-looped into recovery with only it off (#2803).
+CORE_RE = re.compile(r"^(android|android\.ext\.(services|shared)|com\.android\.sdksandbox|com\.android\.location\.fused|com\.android\.systemui|com\.android\.shell|com\.android\.phone|com\.android\.settings|com\.android\.tv\.settings|com\.(google\.)?android\.(permissioncontroller|packageinstaller|ext\.services|ext\.shared|modulemetadata)|com\.google\.android\.overlay\.modules.*|com\.android\.providers\..*|com\.cltv\.mal|com\.mediatek\.(tis|tv\.service|tv\.agent))$")
CORE_OK = re.compile(r"^com\.android\.providers\.(calendar|contacts|userdictionary|blockednumber)$")