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.
Put Search apps under the Apps buttons, and give it the screen when open
jesse-agent-232e2ed0e787b2f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex fb49d31..183d60d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -19,6 +19,7 @@ until this file has a section for its version.- **Improved:** Protected apps drop the lock icon; the line saying why stays. [#74](../../pull/74)- **Fixed:** The upload icon draws properly again. [#74](../../pull/74)- **New:** Switch home back to the TV's own launcher in one tap; list keeps only warn. [#76](../../pull/76)+- **Improved:** Search apps sits under the Apps buttons and opens to every matching app, full screen. [#78](../../pull/78)- **Fixed:** Welcome and pairing buttons no longer hide under the phone's navigation buttons. [#69](../../pull/69)## 0.5.0 — 2026-10-24diff --git a/README.md b/README.mdindex 536ea4c..678584e 100644--- a/README.md+++ b/README.md@@ -84,7 +84,7 @@ Tellyscope is a phone app that talks to your Android TV, Google TV or Fire TV ov- **How it's doing.** Every tab of a TV's page opens with the TV itself: its name, maker and model, and a one-line summary such as "Running fine" or "Storage almost full". Scroll, and its icon and name shrink and slide up into the top bar, where a Connected or Offline badge joins them. On Overview, below that is a chip per TV to switch between them, then a **+ Device** chip. Then comes free space as a bar, with CPU, RAM, temperature and network speed. When a TV is offline, it shows the storage from the last time Tellyscope saw it. Its address and how long it's been on are under Advanced.- **The main jobs up front.** Big **Install app**, **Debloat** and **Send file** tiles sit right under the vitals. Debloat shows a count while the TV's list still has apps on, or while apps Tellyscope turned off are back on, often after a TV update. When there's nothing left, it opens Apps instead. Under **Suggested for this TV**, one line says how many of the list's apps are off. If any came back on, a red line says so. Below that are the TV's Android version, when it last updated, and **Check for updates**, which opens the TV's own update screen. The Apps tab has an **Install app** button, and Files has **Upload files**.- **Advanced.** Every number in one place: memory, storage, CPU, temperature, uptime and screen state, CPU and RAM by app, processes, network and data used, and the TV's address.-- **Apps.** Every app on the TV with its real name and icon, under three buttons: **Running** (what's using memory now), **Installed** (only the apps you put on the TV) and **Built-in** (what came with it). The buttons stay pinned under the bar as you scroll. Stop, disable or turn back on any app that isn't protected; each button says what it will do and asks first. Apps you installed yourself also offer **Uninstall**, which asks in a dialog that names the app and says it can't be undone. On Running and Built-in, the protected apps sit last under **System**, which folds away with a tap and stays folded until you open it again. Search looks through every app.+- **Apps.** Every app on the TV with its real name and icon, under three buttons: **Running** (what's using memory now), **Installed** (only the apps you put on the TV) and **Built-in** (what came with it). The buttons stay pinned under the bar as you scroll. Stop, disable or turn back on any app that isn't protected; each button says what it will do and asks first. Apps you installed yourself also offer **Uninstall**, which asks in a dialog that names the app and says it can't be undone. On Running and Built-in, the protected apps sit last under **System**, which folds away with a tap and stays folded until you open it again. **Search apps** sits under the buttons and pins with them. Tap it and the field moves to the top, the TV and the buttons step aside, and every matching app shows in one list. ← or Back brings them back.- **Another home screen.** With a second launcher such as Projectivy installed, its row in Apps offers **Set as default launcher**. Tellyscope makes it Home, checks that Home really opens it, and only then disables the old launcher, so the TV can't switch back by itself. One Undo in History turns the old launcher back on and makes it Home again. Later, the new launcher's row offers **Switch home back to** the one it replaced, or the TV's own if there was no switch: it's turned back on if it's off and made Home, and the added launcher stays, free to uninstall. Settings and other apps that only answer Home as a fallback are never offered as launchers. On Google TV, the Apps row and the Live tab are part of the old launcher and go with it.- **Debloat.** It finds your TV among 230+ tested clean-up lists (adapted from [cleanyourtv](https://github.com/Gathin23/cleanyourtv)) and opens on every app it will turn off, with the model on top. With no list for the model, it shows apps from the maker's other lists, none ticked. With none for the maker either, you tick the TV's own apps by hand; the ones it needs aren't shown. **Not this TV?** searches every list. Your pick is remembered, and the TV's page then says how many of the list's apps are still on. Apps are pre-ticked only when the TV runs the Android version the list was tested on; untick anything you use, and you confirm before anything is disabled. If you'd rather not trust our lists, point the app at your own fork of them in Settings (see [CONTRIBUTING](CONTRIBUTING.md#using-your-own-lists)).- **History.** Every change is listed with an Undo, and **Restore everything** turns back on what Tellyscope turned off. Undoing a **Turn on** asks first, since it disables the app again. History is kept per TV, across restarts.diff --git a/app/src/main/java/app/tellyscope/ui/DeviceTabs.kt b/app/src/main/java/app/tellyscope/ui/DeviceTabs.ktindex 25b3e31..9a704fd 100644--- a/app/src/main/java/app/tellyscope/ui/DeviceTabs.kt+++ b/app/src/main/java/app/tellyscope/ui/DeviceTabs.kt@@ -4,7 +4,9 @@package app.tellyscope.ui+import androidx.activity.compose.BackHandlerimport androidx.compose.foundation.ExperimentalFoundationApi+import androidx.compose.foundation.backgroundimport androidx.compose.foundation.layout.Arrangementimport androidx.compose.foundation.layout.Boximport androidx.compose.foundation.layout.Column@@ -16,10 +18,14 @@ import androidx.compose.foundation.layout.fillMaxWidthimport androidx.compose.foundation.layout.heightimport androidx.compose.foundation.layout.paddingimport androidx.compose.foundation.layout.size+import androidx.compose.foundation.layout.statusBarsPadding+import androidx.compose.foundation.layout.widthimport androidx.compose.foundation.lazy.LazyColumnimport androidx.compose.foundation.lazy.itemsimport androidx.compose.foundation.lazy.rememberLazyListState+import androidx.compose.foundation.shape.CircleShapeimport androidx.compose.material.icons.Icons+import androidx.compose.material.icons.automirrored.filled.ArrowBackimport androidx.compose.material.icons.filled.Addimport androidx.compose.material.icons.filled.Closeimport androidx.compose.material.icons.filled.Delete@@ -51,6 +57,7 @@ import androidx.compose.material3.ShortNavigationBarimport androidx.compose.material3.ShortNavigationBarItemimport androidx.compose.material3.SnackbarHostimport androidx.compose.material3.SnackbarHostState+import androidx.compose.material3.Surfaceimport androidx.compose.material3.Textimport androidx.compose.material3.TextButtonimport androidx.compose.material3.TextField@@ -71,6 +78,8 @@ import androidx.compose.runtime.setValueimport androidx.compose.runtime.snapshotFlowimport androidx.compose.ui.Alignmentimport androidx.compose.ui.Modifier+import androidx.compose.ui.focus.FocusRequester+import androidx.compose.ui.focus.focusRequesterimport androidx.compose.ui.graphics.Colorimport androidx.compose.ui.graphics.PathFillTypeimport androidx.compose.ui.graphics.SolidColor@@ -120,7 +129,8 @@ private fun TvTab.icon() = when (this) {/*** The TV page as four tabs under a bottom bar, in place of one long scroll of folded sections.* Every tab leads with the TV itself, big and centred, Overview with a chip per TV to switch; scrolling- * folds it into the app bar. Search (Apps only) and the overflow sit on the right.+ * folds it into the app bar, with the overflow on the right. On Apps, "Search apps" pins under the+ * three buttons; opening it takes the top of the screen and hides the TV until it closes.*/@OptIn(ExperimentalMaterial3Api::class, ExperimentalMaterial3ExpressiveApi::class, ExperimentalFoundationApi::class)@Composable@@ -138,6 +148,8 @@ fun DeviceTabsScreen(val q = state.query.trim().lowercase()val offline = device.state != DeviceState.Onlineval list = rememberLazyListState()+ val closeSearch = { searching = false; actions.query("") }+ BackHandler(enabled = searching, onBack = closeSearch)// The hero tops every tab and collapses into the bar as the tab scrolls.var heroHeight by remember { mutableIntStateOf(0) }val collapse by remember { derivedStateOf { collapsedFraction(list.firstVisibleItemIndex, list.firstVisibleItemScrollOffset, heroHeight) } }@@ -150,7 +162,7 @@ fun DeviceTabsScreen(val folder by rememberUpdatedState(ui.files.folder)LaunchedEffect(list) {snapshotFlow { list.layoutInfo }.collect { info ->- val content = listOf(tab, appsTab, folder, info.totalItemsCount)+ val content = listOf(tab, appsTab, folder, searching, info.totalItemsCount)if (content != measuredFor) { measuredFor = content; tail = 0 }val items = info.visibleItemsInfoval hero = items.firstOrNull { it.key == "hero" } ?: return@collect@@ -168,6 +180,13 @@ fun DeviceTabsScreen(list.scrollToItem(if (tab == TvTab.Tweaks && toChanges) 2 else 0)toChanges = false}+ // Opening search starts the results from the top; closing it brings the TV back into view.+ var wasSearching by rememberSaveable { mutableStateOf(searching) }+ LaunchedEffect(searching) {+ if (searching == wasSearching) return@LaunchedEffect+ wasSearching = searching+ list.scrollToItem(0)+ }Box {Scaffold(@@ -182,26 +201,7 @@ fun DeviceTabsScreen(},topBar = {if (searching) {- TopAppBar(- title = {- TextField(- value = state.query,- onValueChange = actions.query,- placeholder = { Text("Search apps") },- singleLine = true,- colors = TextFieldDefaults.colors(- focusedContainerColor = Color.Transparent,- unfocusedContainerColor = Color.Transparent,- ),- modifier = Modifier.fillMaxWidth(),- )- },- actions = {- IconButton(onClick = { searching = false; actions.query("") }) {- Icon(Icons.Default.Close, contentDescription = "Close search")- }- },- )+ SearchHeader(state.query, actions.query, onClose = closeSearch)} else {TopAppBar(// Each tab shows the TV big below, and in the bar once it has scrolled under it.@@ -211,12 +211,6 @@ fun DeviceTabsScreen(),actions = {if (REMOTE_ENABLED) TextButton(onClick = actions.remote, enabled = !offline) { Text("Remote") }- // Search only looks through apps, so it only shows on the Apps tab.- if (tab == TvTab.Apps) {- IconButton(onClick = { searching = true }, enabled = !offline) {- Icon(Icons.Default.Search, contentDescription = "Search apps")- }- }AppMenu(state, actions)},)@@ -229,7 +223,7 @@ fun DeviceTabsScreen(selected = tab == t,onClick = {// Leaving Apps closes the search, so the list isn't still filtered on return.- if (t != TvTab.Apps && searching) { searching = false; actions.query("") }+ if (t != TvTab.Apps && searching) closeSearch()tab = t},icon = { Icon(t.icon(), contentDescription = null) },@@ -248,7 +242,7 @@ fun DeviceTabsScreen() {val snap = ui.snapshotval live = snap?.takeIf { !offline }- item(key = "hero") { Box(Modifier.padding(top = 4.dp)) { TvHero(state, live, actions, chips = tab == TvTab.Overview, collapse = { collapse }, morph = morph, onHeight = { heroHeight = it }) } }+ if (!searching) item(key = "hero") { Box(Modifier.padding(top = 4.dp)) { TvHero(state, live, actions, chips = tab == TvTab.Overview, collapse = { collapse }, morph = morph, onHeight = { heroHeight = it }) } }when (tab) {TvTab.Overview -> {val restart = state.restarting[device.id]@@ -291,17 +285,21 @@ fun DeviceTabsScreen(fun rows(apps: List<AppInfo>) = items(apps, key = { it.packageName }) { app ->AppRow(app, procs, ui.pending, ui.busy == app.packageName, actions, homeLabel(ui.apps, app))}- if (q.isNotEmpty()) {- // A search looks through every app, whichever tab it's on.+ if (searching) {+ // One flat list of every matching app, whichever button it sits under; each row says+ // whether it's running, off or protected.val found = ui.apps- .filter { it.label.lowercase().contains(q) || it.packageName.contains(q) }+ .filter { q.isEmpty() || it.label.lowercase().contains(q) || it.packageName.contains(q) }.sortedWith(compareBy({ !it.enabled }, { it.system }, { it.label }))if (found.isEmpty()) item { EmptyLine(q) }rows(found)} else {- // Pinned under the bar once the hero has folded into it.stickyHeader(key = "appsTabs") {- PinnedSegments(AppsTab.entries.map { it.label }, appsTab.ordinal, lerp(MaterialTheme.colorScheme.surface, MaterialTheme.colorScheme.surfaceContainer, collapse), inset = 16.dp) { appsTab = AppsTab.entries[it] }+ PinnedSegments(+ AppsTab.entries.map { it.label }, appsTab.ordinal,+ lerp(MaterialTheme.colorScheme.surface, MaterialTheme.colorScheme.surfaceContainer, collapse), inset = 16.dp,+ below = { SearchPill(enabled = !offline) { searching = true } },+ ) { appsTab = AppsTab.entries[it] }}val split = splitApps(ui.apps, procs, appsTab)if (split.apps.isEmpty() && split.system.isEmpty()) item {@@ -408,6 +406,49 @@ private fun AppMenu(state: UiState, actions: DeviceActions) {}}+/** "Search apps" under the Apps buttons, pinned with them; a tap opens the search at the top. */+@Composable+private fun SearchPill(enabled: Boolean, onClick: () -> Unit) {+ Surface(onClick = onClick, enabled = enabled, shape = CircleShape, color = MaterialTheme.colorScheme.surfaceContainerHigh, modifier = Modifier.fillMaxWidth()) {+ Row(Modifier.padding(horizontal = 16.dp, vertical = 14.dp), verticalAlignment = Alignment.CenterVertically) {+ Icon(Icons.Default.Search, contentDescription = null, tint = MaterialTheme.colorScheme.onSurfaceVariant)+ Spacer(Modifier.width(16.dp))+ Text("Search apps", style = MaterialTheme.typography.bodyLarge, color = MaterialTheme.colorScheme.onSurfaceVariant)+ }+ }+}++/**+ * Search, open: the field on top with ← to close and ✕ to clear, and the results get the rest of+ * the screen. The keyboard comes up with it.+ */+@Composable+private fun SearchHeader(query: String, onQuery: (String) -> Unit, onClose: () -> Unit) {+ val focus = remember { FocusRequester() }+ LaunchedEffect(focus) { focus.requestFocus() }+ Column(Modifier.background(MaterialTheme.colorScheme.surface).statusBarsPadding().padding(horizontal = 16.dp, vertical = 8.dp)) {+ Surface(shape = CircleShape, color = MaterialTheme.colorScheme.surfaceContainerHigh, modifier = Modifier.fillMaxWidth()) {+ Row(verticalAlignment = Alignment.CenterVertically) {+ IconButton(onClick = onClose) { Icon(Icons.AutoMirrored.Filled.ArrowBack, contentDescription = "Close search") }+ TextField(+ value = query,+ onValueChange = onQuery,+ placeholder = { Text("Search apps") },+ singleLine = true,+ colors = TextFieldDefaults.colors(+ focusedContainerColor = Color.Transparent,+ unfocusedContainerColor = Color.Transparent,+ focusedIndicatorColor = Color.Transparent,+ unfocusedIndicatorColor = Color.Transparent,+ ),+ modifier = Modifier.weight(1f).focusRequester(focus),+ )+ if (query.isNotEmpty()) IconButton(onClick = { onQuery("") }) { Icon(Icons.Default.Close, contentDescription = "Clear search") }+ }+ }+ }+}+/** Where the suggested list stands on this TV, worked out from the live app list. */internal data class DebloatState(/** Apps on the list that are installed here and Tellyscope may turn off, on or off. */diff --git a/app/src/main/java/app/tellyscope/ui/TvHeader.kt b/app/src/main/java/app/tellyscope/ui/TvHeader.ktindex 7daff95..804473f 100644--- a/app/src/main/java/app/tellyscope/ui/TvHeader.kt+++ b/app/src/main/java/app/tellyscope/ui/TvHeader.kt@@ -283,9 +283,10 @@ private fun TvChips(state: UiState, actions: DeviceActions) {/*** A tab's own tabs, as connected buttons with a check on the chosen one. The strip runs edge to* edge across the list's side [inset], in [color], so it pins cleanly under the bar once the hero has folded.+ * Whatever is [below] the buttons, such as a search field, pins with them.*/@Composable-internal fun PinnedSegments(labels: List<String>, selected: Int, color: Color, inset: Dp, onSelect: (Int) -> Unit) {+internal fun PinnedSegments(labels: List<String>, selected: Int, color: Color, inset: Dp, below: @Composable () -> Unit = {}, onSelect: (Int) -> Unit) {Box(Modifier.layout { m, c ->@@ -296,14 +297,17 @@ internal fun PinnedSegments(labels: List<String>, selected: Int, color: Color, i.background(color).padding(horizontal = inset, vertical = 8.dp),) {- SingleChoiceSegmentedButtonRow(Modifier.fillMaxWidth()) {- labels.forEachIndexed { i, label ->- SegmentedButton(- selected = selected == i,- onClick = { onSelect(i) },- shape = SegmentedButtonDefaults.itemShape(i, labels.size),- ) { Text(label) }+ Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {+ SingleChoiceSegmentedButtonRow(Modifier.fillMaxWidth()) {+ labels.forEachIndexed { i, label ->+ SegmentedButton(+ selected = selected == i,+ onClick = { onSelect(i) },+ shape = SegmentedButtonDefaults.itemShape(i, labels.size),+ ) { Text(label) }+ }}+ below()}}}diff --git a/app/src/test/java/app/tellyscope/ScreenshotTest.kt b/app/src/test/java/app/tellyscope/ScreenshotTest.ktindex 5c78b2f..1136bf2 100644--- a/app/src/test/java/app/tellyscope/ScreenshotTest.kt+++ b/app/src/test/java/app/tellyscope/ScreenshotTest.kt@@ -19,6 +19,8 @@ import androidx.compose.ui.test.assertIsNotEnabledimport androidx.compose.ui.test.onNodeWithContentDescriptionimport androidx.compose.ui.test.onNodeWithTextimport androidx.compose.ui.test.onAllNodesWithText+import androidx.activity.OnBackPressedDispatcher+import androidx.activity.compose.LocalOnBackPressedDispatcherOwnerimport androidx.compose.ui.test.onFirstimport androidx.compose.ui.test.assertCountEqualsimport androidx.compose.ui.test.onRoot@@ -84,6 +86,7 @@ import app.tellyscope.ui.ScanUiimport app.tellyscope.ui.SideloadUiimport app.tellyscope.ui.TransferUiimport app.tellyscope.ui.brands+import app.tellyscope.ui.nameimport app.tellyscope.ui.UiStateimport app.tellyscope.ui.theme.TellyscopeThemeimport com.github.takahirom.roborazzi.ExperimentalRoborazziApi@@ -467,17 +470,68 @@ class ScreenshotTest {DeviceTabsScreen(tabsState(), DeviceActions(query = { queries += it }), startTab = TvTab.Apps)}}- compose.onNodeWithContentDescription("Search apps").performClick()+ compose.onNodeWithText("Search apps").performClick()compose.mainClock.advanceTimeBy(1_000)compose.onNodeWithText("Overview").performClick()compose.mainClock.advanceTimeBy(1_000)- // Leaving Apps closed the search and cleared its query; the icon is gone with it.+ // Leaving Apps closed the search and cleared its query; the field is gone with it.assertEquals(listOf(""), queries)- compose.onNodeWithContentDescription("Search apps").assertDoesNotExist()+ compose.onNodeWithText("Search apps").assertDoesNotExist()compose.onNodeWithContentDescription("Close search").assertDoesNotExist()compose.onNodeWithText("Apps").performClick()compose.mainClock.advanceTimeBy(1_000)- compose.onNodeWithContentDescription("Search apps").assertExists()+ compose.onNodeWithText("Search apps").assertExists()+ }++ @Test fun tabs_searchHidesTheTvAndBackBringsItBack() {+ val state = tabsState()+ val tv = name(state.selected!!)+ lateinit var back: OnBackPressedDispatcher+ compose.mainClock.autoAdvance = false+ compose.setContent {+ back = LocalOnBackPressedDispatcherOwner.current!!.onBackPressedDispatcher+ TellyscopeTheme(dark = false, dynamic = false) { DeviceTabsScreen(state, DeviceActions(), startTab = TvTab.Apps) }+ }+ compose.mainClock.advanceTimeBy(1_000)+ val shown = { compose.onAllNodesWithText(tv).fetchSemanticsNodes().size }+ val atRest = shown()+ assertTrue(atRest > 0)+ for (close in listOf({ compose.runOnUiThread { back.onBackPressed() } }, { compose.onNodeWithContentDescription("Close search").performClick() })) {+ compose.onNodeWithText("Search apps").performClick()+ compose.mainClock.advanceTimeBy(1_000)+ // The field has the top, and the TV and the buttons are gone.+ compose.onNodeWithContentDescription("Close search").assertExists()+ compose.onNodeWithText("Installed").assertDoesNotExist()+ assertEquals(0, shown())+ close()+ compose.mainClock.advanceTimeBy(1_000)+ compose.onNodeWithContentDescription("Close search").assertDoesNotExist()+ assertEquals(atRest, shown())+ }+ }++ @Test fun tabs_searchOpen() = searchOpen(dark = false)+ @Test fun tabs_searchOpen_dark() = searchOpen(dark = true)++ private fun searchOpen(dark: Boolean) {+ val open = { compose.onNodeWithText("Search apps").performClick(); Unit }+ shot("80_apps_search", dark, before = open) { DeviceTabsScreen(tabsState().copy(query = "xgimi"), DeviceActions(), startTab = TvTab.Apps) }+ }++ @Test fun tabs_searchFindsAppsUnderEveryButton() {+ compose.mainClock.autoAdvance = false+ compose.setContent {+ TellyscopeTheme(dark = false, dynamic = false) {+ DeviceTabsScreen(tabsState().copy(query = "google"), DeviceActions(), startTab = TvTab.Apps)+ }+ }+ compose.mainClock.advanceTimeBy(1_000)+ compose.onNodeWithText("Search apps").performClick()+ compose.mainClock.advanceTimeBy(1_000)+ // YouTube is only under Installed and Google Play services only under Built-in; one list has both.+ compose.onNodeWithText("YouTube").assertExists()+ compose.onNodeWithText("Google Play services").assertExists()+ compose.onNodeWithText("System", substring = true).assertDoesNotExist()}private fun appMenu(dark: Boolean) {