Skip to content

Debloat your Android TV, install apps, browse and transfer files on it, all from your phone. Just 3 MB, no tracking, no root, no PC.

Read Connected devices every 2 minutes, not 30 s; CHANGELOG: #137

jesse-agent-2329c084b81a270
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 777a600..3ce9bf0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,8 +14,8 @@ until this file has a section for its version.
- **Fixed:** Apps show their real icon, not a banner strip or letter. [#136](../../pull/136)
- **Improved:** The dock picker leaves out built-in phone-style apps like Camera. [#138](../../pull/138)
-- **New:** See who has ADB access to your TV, and remove it in one tap. [#PR](../../pull/PR)
-- **New:** Connected devices shows what's paired or plugged into the TV. [#PR](../../pull/PR)
+- **New:** See who has ADB access to your TV, and remove it in one tap. [#137](../../pull/137)
+- **New:** Connected devices shows what's paired or plugged into the TV. [#137](../../pull/137)
## 0.8.1 — 2026-10-25
diff --git a/app/src/main/java/app/tellyscope/ui/TellyscopeViewModel.kt b/app/src/main/java/app/tellyscope/ui/TellyscopeViewModel.kt
index a2e5180..397555a 100644
--- a/app/src/main/java/app/tellyscope/ui/TellyscopeViewModel.kt
+++ b/app/src/main/java/app/tellyscope/ui/TellyscopeViewModel.kt
@@ -957,14 +957,15 @@ class TellyscopeViewModel(
}
/**
- * Who has access every 10 s while the TV's page is open, and what's plugged in every 30 s.
+ * Who has access every 10 s while the TV's page is open. What's plugged in only when it opens
+ * and every 2 minutes after: that read is five `dumpsys` calls, too heavy for every tick.
* A failed read keeps the last answer; a removal in progress does its own reads.
*/
private suspend fun watchAccess(id: String) {
var tick = 0
while (true) {
if (_state.value.device.removal == null) readAccess(id)
- if (tick++ % 3 == 0) {
+ if (tick++ % 12 == 0) {
val found = try { source.peripherals(id) } catch (e: CancellationException) { throw e } catch (_: Exception) { null }
found?.let { p -> updateDevice(id) { it.copy(peripherals = p) } }
}