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.

Debloat picks the TV's list itself

jesse-agent-232e1aae8494237
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0f35d42..c1b7801 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,8 @@ until this file has a section for its version.
## Unreleased
+- **Improved:** Debloat finds your TV's list itself, or its maker's, or lets you pick. [#70](../../pull/70)
+
## 0.5.0 — 2026-10-24
- **Improved:** Add your TV step by step, with a screen per TV showing this phone's key. [#66](../../pull/66)
diff --git a/README.md b/README.md
index 2c18bd1..98f5791 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@ Or get updates automatically with [Obtainium](#get-it).
<td align="center"><sub>Your TV at a glance</sub></td>
</tr>
<tr>
- <td><img src="docs/screenshots/debloat.png" alt="Debloat: reviewing the apps it will turn off, each with its package name"></td>
+ <td><img src="docs/screenshots/debloat.png" alt="Debloat: the TV's model on top, then the apps it will turn off, each with its package name"></td>
<td><img src="docs/screenshots/history.png" alt="History: every change with an Undo, and Restore everything"></td>
<td><img src="docs/screenshots/install.png" alt="Updating Netflix on the TV from an APK on the phone"></td>
<td><img src="docs/screenshots/send.png" alt="Sending a video from the phone to the TV's Movies folder"></td>
@@ -86,7 +86,7 @@ Tellyscope is a phone app that talks to your Android TV, Google TV or Fire TV ov
- **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. 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. Protected apps are folded into their own **Can't be changed** section below the list.
- **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. On Google TV, the Apps row and the Live tab are part of the old launcher and go with it.
-- **Debloat.** It asks which TV it is, from 230+ tested clean-up lists (adapted from [cleanyourtv](https://github.com/Gathin23/cleanyourtv)), pre-selecting it when it recognises the model, then shows every app it will turn off. 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)).
+- **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.
- **Install apps.** Pick an APK, several split APKs or an `.apks`/`.xapk`/`.apkm` bundle on your phone. Before installing, Tellyscope shows the app's name, version and size and says whether it's new, an update, a reinstall or an older version. It won't install an older version over a newer one unless you tick the box. If the TV refuses, you get the reason in plain words.
- **TV tweaks.** **Block ads with Private DNS** sends the TV's address lookups to an ad-blocking DNS provider (AdGuard by default, or any other you type in). Tellyscope then checks the TV can still look addresses up, and puts the old setting back if not. It needs Android 9 or newer. **Faster animations** makes menus move at twice the speed. Both land in History with an Undo. **Clear caches** frees space by clearing every app's temporary files; app data and sign-ins stay. **Take screenshot** saves what the TV shows to your phone.
diff --git a/app/src/main/java/app/tellyscope/MainActivity.kt b/app/src/main/java/app/tellyscope/MainActivity.kt
index efb0424..d1a9928 100644
--- a/app/src/main/java/app/tellyscope/MainActivity.kt
+++ b/app/src/main/java/app/tellyscope/MainActivity.kt
@@ -220,7 +220,7 @@ fun TellyscopeApp(vm: TellyscopeViewModel) {
snackbar = snackbar,
)
} else if (debloat) {
- // Its own back handler steps back from the review to the model before leaving.
+ // Its own back handler closes the list search before leaving.
DebloatScreen(
state.device.lists,
onPick = vm::pickList,
@@ -229,6 +229,8 @@ fun TellyscopeApp(vm: TellyscopeViewModel) {
snackbar = snackbar,
source = state.listSource,
tvMakers = listOfNotNull(state.selected?.brand, state.selected?.manufacturer).distinct(),
+ tv = state.selected,
+ tvApps = state.device.apps,
)
} else {
DeviceTabsScreen(
diff --git a/app/src/main/java/app/tellyscope/data/AdbDeviceSource.kt b/app/src/main/java/app/tellyscope/data/AdbDeviceSource.kt
index a617b70..79a7566 100644
--- a/app/src/main/java/app/tellyscope/data/AdbDeviceSource.kt
+++ b/app/src/main/java/app/tellyscope/data/AdbDeviceSource.kt
@@ -446,9 +446,12 @@ class AdbDeviceSource(context: Context) : DeviceSource {
val r = resolve(deviceId)
when {
r.index == null -> Suggestions.Unavailable
- r.entry == null -> Suggestions.Pick(r.index.commit, r.index.devices)
+ r.match == ListMatch.None -> Suggestions.NoList(r.index.commit, r.index.devices)
r.list == null -> Suggestions.Unavailable
- else -> Suggestions.Ready(r.index.commit, r.list, r.sdk, suggest(r.list, apps(deviceId), r.sdk), r.index.devices)
+ else -> Suggestions.Ready(
+ r.index.commit, r.list, r.sdk, suggest(r.list, apps(deviceId), r.sdk), r.index.devices,
+ byMaker = r.match is ListMatch.Maker,
+ )
}
} catch (e: CancellationException) {
throw e
@@ -473,9 +476,9 @@ class AdbDeviceSource(context: Context) : DeviceSource {
}
}
- private class Resolved(val index: ListIndex?, val entry: ListEntry?, val list: DeviceList?, val sdk: Int?)
+ private class Resolved(val index: ListIndex?, val match: ListMatch?, val list: DeviceList?, val sdk: Int?)
- /** This TV's list (picked, else matched), with its keep entries recorded for [apps] and [act]. */
+ /** This TV's list (picked, else matched, else its maker's), with its keep entries recorded for [apps] and [act]. */
private suspend fun resolve(deviceId: String): Resolved {
val index = lists.index() ?: return Resolved(null, null, null, null)
val out = session(deviceId).shell(
@@ -483,10 +486,15 @@ class AdbDeviceSource(context: Context) : DeviceSource {
).output.lines().map { it.trim().ifEmpty { null } }
val props = MATCH_KEYS.withIndex().associate { (i, k) -> k to out.getOrNull(i) }
val key = key(deviceId)
- val entry = lists.entryFor(index, key, props)
- val list = entry?.let { lists.list(it) }
+ val match = lists.find(index, key, props)
+ val list = when (match) {
+ is ListMatch.Model -> lists.list(match.entry)
+ // A list that fails its checksum is left out; the rest still count.
+ is ListMatch.Maker -> match.entries.mapNotNull { lists.list(it) }.ifEmpty { null }?.let { merge(match.maker, it) }
+ ListMatch.None -> null
+ }
keep[key] = list?.keep.orEmpty()
- return Resolved(index, entry, list, out.getOrNull(MATCH_KEYS.size)?.toIntOrNull())
+ return Resolved(index, match, list, out.getOrNull(MATCH_KEYS.size)?.toIntOrNull())
}
override suspend fun press(deviceId: String, key: RemoteKey) = Remote(session(deviceId)).press(key)
diff --git a/app/src/main/java/app/tellyscope/data/DeviceLists.kt b/app/src/main/java/app/tellyscope/data/DeviceLists.kt
index e553b99..b86c482 100644
--- a/app/src/main/java/app/tellyscope/data/DeviceLists.kt
+++ b/app/src/main/java/app/tellyscope/data/DeviceLists.kt
@@ -33,7 +33,7 @@ data class ListEntry(
* "Chromecast with Google TV" is Google's, while "Skyworth Coocaa K3" stays Skyworth's.
*/
fun listMakers(devices: List<ListEntry>): Map<String, String> {
- fun key(w: String) = w.lowercase().filter { it.isLetterOrDigit() }
+ fun key(w: String) = squash(w)
val prefixes = devices.map { it.id.substringBefore('-') }.toSet()
return devices.associate { e ->
val words = e.name.split(' ').filter { it.isNotBlank() }
@@ -43,6 +43,50 @@ fun listMakers(devices: List<ListEntry>): Map<String, String> {
}
}
+/** Lowercase letters and digits only, so "MiTV-AXFR0" and "mitv axfr0" compare equal. */
+fun squash(s: String) = s.lowercase().filter { it.isLetterOrDigit() }
+
+/** How a TV's list was found: one list for its model, every list from its maker, or none. */
+sealed interface ListMatch {
+ data class Model(val entry: ListEntry) : ListMatch
+ data class Maker(val maker: String, val entries: List<ListEntry>) : ListMatch
+ data object None : ListMatch
+}
+
+/**
+ * The one list whose name or id contains the TV's model, letters and digits only. Null when none
+ * or several do, or when that list's maker isn't the TV's manufacturer: a wrong list is worse
+ * than the maker's lists, which start unticked.
+ */
+fun byModel(devices: List<ListEntry>, props: Map<String, String?>): ListEntry? {
+ val model = squash(props["model"].orEmpty()).takeIf { it.length >= 3 } ?: return null
+ val fit = devices.filter { model in squash(it.name) || model in squash(it.id) }.singleOrNull() ?: return null
+ return fit.takeIf { squash(listMakers(devices).getValue(it.id)) == squash(props["manufacturer"].orEmpty()) }
+}
+
+/** Every list from the TV's manufacturer, by [listMakers]. */
+fun byMaker(devices: List<ListEntry>, props: Map<String, String?>): List<ListEntry> {
+ val maker = squash(props["manufacturer"].orEmpty()).ifEmpty { return emptyList() }
+ val makers = listMakers(devices)
+ return devices.filter { squash(makers.getValue(it.id)) == maker }
+}
+
+/**
+ * A maker's lists as one: groups of the same title merged, each app once, and every list's keep
+ * entries together, so a keep in any of them protects the app. No tested Android, so nothing
+ * gets ticked.
+ */
+fun merge(maker: String, lists: List<DeviceList>): DeviceList = DeviceList(
+ id = "maker:" + squash(maker),
+ name = maker,
+ testedOs = null,
+ sdk = null,
+ keep = lists.flatMap { it.keep }.toSet(),
+ groups = lists.flatMap { it.groups }.groupBy { it.title }.map { (title, gs) ->
+ ListGroup(title, gs.flatMap { it.packages }.distinctBy { it.pkg })
+ },
+)
+
data class ListIndex(val commit: String?, val devices: List<ListEntry>)
data class ListPackage(val pkg: String, val note: String?, val optional: Boolean)
@@ -68,8 +112,8 @@ sealed interface Suggestions {
/** No index (offline and nothing cached), or the chosen list failed its checksum. */
data object Unavailable : Suggestions
- /** No list matches this TV and none was picked: ask which TV it is. */
- data class Pick(val commit: String?, val devices: List<ListEntry>) : Suggestions
+ /** No list for this TV's model or maker, and none was picked: clean up by hand in Apps. */
+ data class NoList(val commit: String?, val devices: List<ListEntry>) : Suggestions
data class Ready(
val commit: String?,
@@ -79,6 +123,8 @@ sealed interface Suggestions {
val groups: List<SuggestedGroup>,
/** Every list, for "Not this TV?". */
val devices: List<ListEntry>,
+ /** [list] is [merge] of the maker's lists, as no list fits this model. */
+ val byMaker: Boolean = false,
) : Suggestions {
val sdkMatches get() = sdk != null && sdk == list.sdk
}
@@ -244,11 +290,16 @@ class DeviceLists(
/**
* The list for a TV: the one picked by hand for [key], else the first whose rule matches
- * [props], else null for "Pick your TV".
+ * [props], else the one named after its model. Without one, every list from its maker.
*/
- fun entryFor(index: ListIndex, key: String, props: Map<String, String?>): ListEntry? =
- picked(key)?.let { id -> index.devices.firstOrNull { it.id == id } }
+ fun find(index: ListIndex, key: String, props: Map<String, String?>): ListMatch {
+ val one = picked(key)?.let { id -> index.devices.firstOrNull { it.id == id } }
?: index.devices.firstOrNull { matches(it.match, props) }
+ ?: byModel(index.devices, props)
+ if (one != null) return ListMatch.Model(one)
+ val maker = byMaker(index.devices, props)
+ return if (maker.isEmpty()) ListMatch.None else ListMatch.Maker(listMakers(index.devices).getValue(maker.first().id), maker)
+ }
@Synchronized
fun picked(key: String): String? = readPicks()[key]
diff --git a/app/src/main/java/app/tellyscope/ui/DeviceTabs.kt b/app/src/main/java/app/tellyscope/ui/DeviceTabs.kt
index 803efde..e7dc603 100644
--- a/app/src/main/java/app/tellyscope/ui/DeviceTabs.kt
+++ b/app/src/main/java/app/tellyscope/ui/DeviceTabs.kt
@@ -340,7 +340,7 @@ private fun AppMenu(state: UiState, actions: DeviceActions) {
val device = state.selected ?: return
if (about) AboutDialog(
when (val l = state.device.lists) {
- is Suggestions.Pick -> l.commit
+ is Suggestions.NoList -> l.commit
is Suggestions.Ready -> l.commit
else -> null
},
@@ -447,7 +447,7 @@ internal data class DebloatState(
val back: Int,
/** Apps on the list still on, plus any that came back: the number on the Debloat tile. */
val count: Int,
- /** Debloat has something to do: apps to turn off, or a TV to pick. */
+ /** Debloat has something to show: apps to turn off, or that this TV has no list. */
val todo: Boolean,
)
@@ -460,7 +460,7 @@ internal fun debloatState(ui: DeviceUi): DebloatState {
val candidates = ui.apps.filter { it.packageName in listed && (!it.enabled || it.protectedReason == null) }
val on = candidates.filter { it.enabled }.map { it.packageName }.toSet()
val count = (on + back).size
- return DebloatState(candidates.size, on.size, back.size, count, count > 0 || ui.lists is Suggestions.Pick)
+ return DebloatState(candidates.size, on.size, back.size, count, count > 0 || ui.lists is Suggestions.NoList)
}
@Composable
@@ -486,7 +486,7 @@ private fun SuggestedCard(lists: Suggestions?, d: DebloatState, offline: Boolean
d.on == 0 -> if (d.total == 1) "The suggested app is off" else "All ${d.total} suggested apps are off"
else -> "${d.total - d.on} of ${d.total} suggested apps are off"
}
- is Suggestions.Pick -> "Tap Debloat to pick your TV"
+ is Suggestions.NoList -> "No list for this TV yet"
Suggestions.Unavailable -> "Couldn't load the device lists"
null -> if (offline) "Connect to the TV to see its suggestions" else "Looking up this TV's list\u2026"
},
@@ -507,12 +507,13 @@ private fun SuggestedCard(lists: Suggestions?, d: DebloatState, offline: Boolean
}
val note = when {
lists is Suggestions.Unavailable -> "Check the phone's internet and open this TV again."
- lists is Suggestions.Pick -> "Tellyscope doesn't know this model yet."
+ lists is Suggestions.NoList -> "Tap Debloat to pick the apps to turn off by hand."
+ lists is Suggestions.Ready && lists.byMaker -> "No list for this exact model, so these come from ${lists.list.name}'s other TVs."
lists is Suggestions.Ready && !d.todo -> "Debloat now opens Apps for one-off changes."
else -> null
}
note?.let { Text(it, Modifier.padding(end = 8.dp), style = MaterialTheme.typography.bodySmall, color = c.onSurfaceVariant) }
- if (lists is Suggestions.Ready || lists is Suggestions.Pick) {
+ if (lists is Suggestions.Ready) {
Text("Lists adapted from cleanyourtv (MIT).", Modifier.padding(end = 8.dp), style = MaterialTheme.typography.bodySmall, color = c.onSurfaceVariant)
}
}
diff --git a/app/src/main/java/app/tellyscope/ui/ListsCard.kt b/app/src/main/java/app/tellyscope/ui/ListsCard.kt
index 2cd91ae..d1de0e9 100644
--- a/app/src/main/java/app/tellyscope/ui/ListsCard.kt
+++ b/app/src/main/java/app/tellyscope/ui/ListsCard.kt
@@ -47,7 +47,6 @@ import androidx.compose.material3.TextButton
import androidx.compose.material3.TopAppBar
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
-import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.saveable.rememberSaveable
@@ -60,12 +59,18 @@ import androidx.compose.ui.platform.LocalSoftwareKeyboardController
import androidx.compose.ui.semantics.Role
import androidx.compose.ui.text.input.ImeAction
import androidx.compose.ui.unit.dp
+import app.tellyscope.data.AppInfo
+import app.tellyscope.data.Device
+import app.tellyscope.data.DeviceKind
import app.tellyscope.data.ListEntry
import app.tellyscope.data.Suggested
+import app.tellyscope.data.SuggestedGroup
import app.tellyscope.data.Suggestions
+import app.tellyscope.data.deviceKind
import app.tellyscope.data.listKind
import app.tellyscope.data.listMakers
import app.tellyscope.data.sourceName
+import app.tellyscope.data.squash
@Composable
private fun Muted(text: String) {
@@ -73,9 +78,9 @@ private fun Muted(text: String) {
}
/**
- * Debloat in two steps. First the TV's model: the matched list on its own, with a way to change
- * it; an unknown model starts at a search for the TV's maker, with nothing chosen. Then every
- * app that list would turn off, ticked as the list says, with a final confirm that names each one.
+ * Debloat opens on the apps to turn off, under a card naming what they came from: this TV's model
+ * list, else its maker's lists, unticked, else the TV's own apps to pick by hand. "Not this TV?"
+ * searches every list instead. The confirm names each app before anything runs.
*/
@OptIn(ExperimentalMaterial3Api::class, ExperimentalFoundationApi::class)
@Composable
@@ -89,17 +94,21 @@ fun DebloatScreen(
source: String? = null,
/** The TV's brand, then its manufacturer; the first that names a list starts the search. */
tvMakers: List<String> = emptyList(),
+ /** The TV, for the card when no list fits it. */
+ tv: Device? = null,
+ /** The TV's apps, to pick from by hand when no list fits it. */
+ tvApps: List<AppInfo> = emptyList(),
) {
val ready = lists as? Suggestions.Ready
val devices = when (lists) {
- is Suggestions.Pick -> lists.devices
+ is Suggestions.NoList -> lists.devices
is Suggestions.Ready -> lists.devices
else -> emptyList()
}
- var step by rememberSaveable { mutableIntStateOf(1) }
- var chosen by rememberSaveable { mutableStateOf(ready?.list?.id) }
- // The matched list shows on its own; "Change", or no match, opens the search.
+ // A list picked in the search; until then, the one Tellyscope found.
+ var chosen by rememberSaveable { mutableStateOf<String?>(null) }
var searching by rememberSaveable { mutableStateOf(false) }
+ var marked by rememberSaveable { mutableStateOf<String?>(null) }
val makers = remember(devices) { listMakers(devices) }
fun finds(term: String) = devices.filter { it.name.contains(term, ignoreCase = true) || makers.getValue(it.id).contains(term, ignoreCase = true) }
// Nobody typed the prefill, so a maker no list names shows the full list, not "No results".
@@ -111,33 +120,34 @@ fun DebloatScreen(
mutableStateOf(ready?.groups.orEmpty().flatMap { it.packages }.filter { it.ticked }.map { it.pkg }.toSet())
}
var confirming by remember { mutableStateOf(false) }
- val showing = ready?.takeIf { it.list.id == chosen }
- if (confirming && showing != null) {
+ val showing = ready?.takeIf { chosen == null || it.list.id == chosen }
+ // With no list, every app that's on and not protected, by name.
+ val groups = when {
+ showing != null -> showing.groups
+ lists is Suggestions.NoList -> listOf(
+ SuggestedGroup(
+ "Apps on this TV",
+ tvApps.filter { it.enabled && it.protectedReason == null }.sortedBy { it.label.lowercase() }
+ .map { Suggested(it.packageName, it.label, note = null, optional = false, ticked = false) },
+ ),
+ )
+ else -> null
+ }
+ if (confirming && groups != null) {
// The dialog's list is exactly what gets disabled.
- val apps = showing.groups.flatMap { it.packages }.filter { it.pkg in ticked }
+ val apps = groups.flatMap { it.packages }.filter { it.pkg in ticked }
DisableDialog(apps, onDisable = { confirming = false; onDisable(apps.map { it.pkg }); back() }, onDismiss = { confirming = false })
}
- val next = { chosen?.let { if (it != ready?.list?.id) onPick(it) }; step = 2 }
+ val use = { marked?.let { if (it != ready?.list?.id) { chosen = it; onPick(it) } }; searching = false }
val keyboard = LocalSoftwareKeyboardController.current
- val goBack = {
- when {
- step == 2 -> step = 1
- searching && ready != null -> searching = false
- else -> back()
- }
- }
+ val goBack = { if (searching) searching = false else back() }
BackHandler(onBack = goBack)
Scaffold(
snackbarHost = { SnackbarHost(snackbar) },
topBar = {
TopAppBar(
- title = {
- Column {
- Text(if (step == 1) "Which TV is this?" else "Review the apps")
- Text("Debloat · step $step of 2", style = MaterialTheme.typography.labelMedium, color = MaterialTheme.colorScheme.onSurfaceVariant)
- }
- },
+ title = { Text(if (searching) "Which TV is this?" else "Debloat") },
navigationIcon = {
IconButton(onClick = goBack) { Icon(Icons.AutoMirrored.Filled.ArrowBack, contentDescription = "Back") }
},
@@ -147,16 +157,12 @@ fun DebloatScreen(
// Above the keyboard while the search is typed into.
Surface(tonalElevation = 3.dp, modifier = Modifier.imePadding()) {
Box(Modifier.fillMaxWidth().navigationBarsPadding().padding(16.dp)) {
- if (step == 1) {
- Button(
- onClick = next,
- enabled = chosen != null,
- modifier = Modifier.fillMaxWidth(),
- ) { Text("Next") }
+ if (searching) {
+ Button(onClick = use, enabled = marked != null, modifier = Modifier.fillMaxWidth()) { Text("Use this list") }
} else {
Button(
onClick = { confirming = true },
- enabled = showing != null && ticked.isNotEmpty(),
+ enabled = groups != null && ticked.isNotEmpty(),
modifier = Modifier.fillMaxWidth(),
) { Text("Disable ${ticked.size} ${if (ticked.size == 1) "app" else "apps"}") }
}
@@ -164,22 +170,12 @@ fun DebloatScreen(
}
},
) { pad ->
- if (step == 1) {
- val picked = devices.firstOrNull { it.id == chosen }
+ if (searching) {
LazyColumn(
Modifier.fillMaxSize().padding(pad),
contentPadding = PaddingValues(horizontal = 16.dp, vertical = 8.dp),
verticalArrangement = Arrangement.spacedBy(4.dp),
) {
- if (!searching && ready != null && picked != null) {
- // A match or an earlier pick: just that one, and a way to change it.
- item {
- Text("Tellyscope uses this list for your TV.", style = MaterialTheme.typography.bodyMedium, modifier = Modifier.padding(bottom = 8.dp))
- ListRow(picked, makers.getValue(picked.id), selected = true, onClick = null)
- TextButton(onClick = { searching = true }, modifier = Modifier.padding(top = 4.dp)) { Text("Change") }
- }
- return@LazyColumn
- }
item {
OutlinedTextField(
q, { typed = it },
@@ -191,21 +187,16 @@ fun DebloatScreen(
singleLine = true,
// The keyboard's action key closes it, and moves on once a TV is picked.
keyboardOptions = KeyboardOptions(imeAction = ImeAction.Done),
- keyboardActions = KeyboardActions(onDone = { keyboard?.hide(); if (chosen != null) next() }),
+ keyboardActions = KeyboardActions(onDone = { keyboard?.hide(); if (marked != null) use() }),
modifier = Modifier.fillMaxWidth().padding(bottom = 8.dp),
)
}
- // Empty while a picked list reloads, if they came back to change it.
- if (devices.isEmpty()) {
- item { Muted("Loading the lists…") }
- return@LazyColumn
- }
val term = q.trim()
val shown = if (term.isEmpty()) emptyList() else finds(term).sortedBy { it.name.lowercase() }
// What found nothing: their search, or else the TV's own maker.
val missed = term.ifEmpty { if (typed == null) tvMakers.firstOrNull()?.trim()?.ifEmpty { null } else null }
if (shown.isNotEmpty()) {
- items(shown, key = { it.id }) { d -> ListRow(d, makers.getValue(d.id), d.id == chosen) { chosen = d.id } }
+ items(shown, key = { it.id }) { d -> ListRow(d, makers.getValue(d.id), d.id == marked) { marked = d.id } }
return@LazyColumn
}
if (missed != null) item { Muted("No list for \u201c$missed\u201d. Pick the closest model.") }
@@ -216,7 +207,7 @@ fun DebloatScreen(
Text(makers.getValue(group.first().id), style = MaterialTheme.typography.titleSmall, modifier = Modifier.padding(top = 12.dp, bottom = 4.dp))
}
}
- items(group.sortedBy { it.name.lowercase() }, key = { it.id }) { d -> ListRow(d, makers.getValue(d.id), d.id == chosen) { chosen = d.id } }
+ items(group.sortedBy { it.name.lowercase() }, key = { it.id }) { d -> ListRow(d, makers.getValue(d.id), d.id == marked) { marked = d.id } }
}
}
} else {
@@ -225,7 +216,7 @@ fun DebloatScreen(
contentPadding = PaddingValues(horizontal = 16.dp, vertical = 8.dp),
verticalArrangement = Arrangement.spacedBy(4.dp),
) {
- if (showing == null) {
+ if (groups == null) {
item {
Muted(
if (lists == Suggestions.Unavailable) "Couldn't load that list. Check the phone's internet and try again."
@@ -235,24 +226,43 @@ fun DebloatScreen(
return@LazyColumn
}
item {
+ // A list's own kind: its model's entry, or for a maker's lists, the first of them.
+ val entry = showing?.let { r -> devices.firstOrNull { it.id == r.list.id } ?: devices.firstOrNull { squash(makers.getValue(it.id)) == squash(r.list.name) } }
+ val kind = entry?.let { listKind(it, makers.getValue(it.id)) } ?: tv?.let(::deviceKind) ?: DeviceKind.Tv
+ when {
+ showing == null -> MatchCard(kind, tv?.let(::name) ?: "This TV", "No list for this TV or its maker yet", Match.None) { marked = null; searching = true }
+ showing.byMaker -> MatchCard(kind, showing.list.name, "No list for this model, so these come from ${showing.list.name}'s other models", Match.Loose) { marked = null; searching = true }
+ showing.sdkMatches -> MatchCard(kind, showing.list.name, "This model's list · tested on ${showing.list.testedOs ?: showing.sdk?.let(::androidName)}", Match.Exact) { marked = null; searching = true }
+ else -> MatchCard(
+ kind, showing.list.name,
+ showing.list.testedOs?.let { "This model's list, tested on $it, not this TV's Android" }
+ ?: "This model's list, with no Android it was tested on",
+ Match.Loose,
+ ) { marked = null; searching = true }
+ }
Text(
- "From the list for ${showing.list.name}. Untick anything you use. Nothing is deleted: each app is hidden, and History can turn it back on.",
+ when {
+ showing == null -> "Tick the apps to turn off. Apps the TV needs to run aren't shown."
+ showing.sdkMatches && !showing.byMaker -> "These apps will be turned off. Untick any you use."
+ else -> "Nothing is ticked: tick only the apps you know you don't use."
+ } + " Nothing is deleted, and History can turn each one back on.",
style = MaterialTheme.typography.bodyMedium,
+ modifier = Modifier.padding(top = 12.dp),
)
// Nobody should debloat from a list they didn't mean to use.
- if (source != null) Text(
+ if (source != null && showing != null) Text(
"This list comes from ${sourceName(source)}, not tellyscope-devices.",
style = MaterialTheme.typography.bodyMedium,
color = MaterialTheme.colorScheme.error,
)
- if (!showing.sdkMatches) Muted(
- showing.list.testedOs?.let { "Tested on $it, not this TV's Android version, so nothing is ticked. Tick only what you know you don't use." }
- ?: "This list doesn't say which Android it was tested on, so nothing is ticked. Tick only what you know you don't use.",
- )
- if (showing.groups.isEmpty()) Muted("Nothing on the list is still on here.")
+ if (groups.all { it.packages.isEmpty() }) {
+ Muted(if (showing == null) "Every app left on is one the TV needs." else "Nothing on the list is still on here.")
+ }
}
- showing.groups.forEach { g ->
- item(key = "g:" + g.title) { Text(g.title, style = MaterialTheme.typography.titleSmall, modifier = Modifier.padding(top = 8.dp)) }
+ groups.filter { it.packages.isNotEmpty() }.forEach { g ->
+ item(key = "g:" + g.title) {
+ Text(g.title, style = MaterialTheme.typography.titleSmall, color = MaterialTheme.colorScheme.primary, modifier = Modifier.padding(top = 12.dp))
+ }
items(g.packages, key = { it.pkg }) { p ->
Row(
Modifier.fillMaxWidth().clip(MaterialTheme.shapes.medium)
@@ -264,7 +274,7 @@ fun DebloatScreen(
Column(Modifier.weight(1f)) {
Text(p.label, style = MaterialTheme.typography.bodyLarge)
Text(
- listOfNotNull(p.pkg, p.note, "optional".takeIf { p.optional }).joinToString(" · "),
+ listOfNotNull(p.pkg, p.note, "optional: tick it if you don't use it".takeIf { p.optional }).joinToString(" · "),
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onSurfaceVariant,
)
@@ -277,6 +287,31 @@ fun DebloatScreen(
}
}
+/** How well the list fits the TV: its model on its Android, near enough, or not at all. */
+private enum class Match { Exact, Loose, None }
+
+/** What the apps below came from, on top of the page, with the way out to every list. */
+@Composable
+private fun MatchCard(kind: DeviceKind, name: String, detail: String, match: Match, onNotThis: () -> Unit) {
+ val c = MaterialTheme.colorScheme
+ val (bg, fg) = when (match) {
+ Match.Exact -> c.secondaryContainer to c.onSecondaryContainer
+ Match.Loose -> c.tertiaryContainer to c.onTertiaryContainer
+ Match.None -> c.surfaceContainerHigh to c.onSurface
+ }
+ Surface(color = bg, contentColor = fg, shape = MaterialTheme.shapes.large, modifier = Modifier.fillMaxWidth()) {
+ Row(Modifier.padding(start = 16.dp, top = 12.dp, bottom = 12.dp, end = 4.dp), verticalAlignment = Alignment.CenterVertically) {
+ Icon(DeviceIcons.of(kind), contentDescription = kind.word())
+ Spacer(Modifier.width(16.dp))
+ Column(Modifier.weight(1f)) {
+ Text(name, style = MaterialTheme.typography.titleMedium)
+ Text(detail, style = MaterialTheme.typography.bodySmall)
+ }
+ TextButton(onClick = onNotThis) { Text("Not this TV?") }
+ }
+ }
+}
+
@Composable
internal fun DisableDialog(apps: List<Suggested>, onDisable: () -> Unit, onDismiss: () -> Unit) {
AlertDialog(
diff --git a/app/src/test/java/app/tellyscope/DebloatStateTest.kt b/app/src/test/java/app/tellyscope/DebloatStateTest.kt
index c4224b5..d8a2175 100644
--- a/app/src/test/java/app/tellyscope/DebloatStateTest.kt
+++ b/app/src/test/java/app/tellyscope/DebloatStateTest.kt
@@ -62,6 +62,6 @@ class DebloatStateTest {
}
@Test fun `an unknown TV still has something to do`() {
- assertTrue(debloatState(DeviceUi(lists = Suggestions.Pick(null, emptyList()))).todo)
+ assertTrue(debloatState(DeviceUi(lists = Suggestions.NoList(null, emptyList()))).todo)
}
}
diff --git a/app/src/test/java/app/tellyscope/DeviceListsTest.kt b/app/src/test/java/app/tellyscope/DeviceListsTest.kt
index c4af689..a85f821 100644
--- a/app/src/test/java/app/tellyscope/DeviceListsTest.kt
+++ b/app/src/test/java/app/tellyscope/DeviceListsTest.kt
@@ -8,10 +8,14 @@ import app.tellyscope.data.DeviceList
import app.tellyscope.data.DeviceLists
import app.tellyscope.data.KEEP_REASON
import app.tellyscope.data.LISTS_BASE
+import app.tellyscope.data.ListEntry
import app.tellyscope.data.ListGroup
+import app.tellyscope.data.ListIndex
+import app.tellyscope.data.ListMatch
import app.tellyscope.data.ListPackage
import app.tellyscope.data.keepRefuses
import app.tellyscope.data.matches
+import app.tellyscope.data.merge
import app.tellyscope.data.SourceResult
import app.tellyscope.data.normalize
import app.tellyscope.data.sourceName
@@ -110,9 +114,62 @@ class DeviceListsTest {
val props = mapOf("manufacturer" to "Acme", "model" to "A55")
DeviceLists(tmp.root).pick("sn:one", "other")
val lists = DeviceLists(tmp.root)
- assertEquals("other", lists.entryFor(index, "sn:one", props)?.id)
- assertEquals("acme-55", lists.entryFor(index, "sn:two", props)?.id)
- assertNull(lists.entryFor(index, "sn:two", mapOf("manufacturer" to "Zeta", "model" to "Z1")))
+ assertEquals("other", (lists.find(index, "sn:one", props) as ListMatch.Model).entry.id)
+ assertEquals("acme-55", (lists.find(index, "sn:two", props) as ListMatch.Model).entry.id)
+ assertEquals(ListMatch.None, lists.find(index, "sn:two", mapOf("manufacturer" to "Zeta", "model" to "Z1")))
+ }
+
+ private fun entry(id: String, name: String) = ListEntry(id, name, null, 30, "devices/$id.json", "0".repeat(64))
+
+ private val fakes = ListIndex(
+ null,
+ listOf(
+ entry("xgimi-mogo-2", "XGIMI MoGo 2"),
+ entry("xgimi-horizon", "XGIMI Horizon"),
+ entry("tcl-p7-2021", "TCL P7 2021"),
+ entry("tcl-p7-2023", "TCL P7 2023"),
+ ),
+ )
+
+ private fun find(manufacturer: String, model: String) =
+ DeviceLists(tmp.root).find(fakes, "sn:x", mapOf("manufacturer" to manufacturer, "model" to model))
+
+ @Test fun oneListNamedAfterTheModelIsTheTvsList() {
+ // Case, spaces and dashes don't count.
+ assertEquals(ListMatch.Model(fakes.devices[0]), find("Xgimi", "MOGO-2"))
+ }
+
+ @Test fun twoListsForTheModelFallBackToTheMaker() {
+ val m = find("TCL", "P7") as ListMatch.Maker
+ assertEquals("TCL", m.maker)
+ assertEquals(listOf("tcl-p7-2021", "tcl-p7-2023"), m.entries.map { it.id })
+ }
+
+ @Test fun aModelWithNoListGetsEveryListFromItsMaker() {
+ val m = find("XGIMI", "Halo+") as ListMatch.Maker
+ assertEquals(listOf("xgimi-mogo-2", "xgimi-horizon"), m.entries.map { it.id })
+ // A list named after the model, but from another maker, is not this TV's.
+ assertEquals(ListMatch.None, find("Zeta", "MoGo 2"))
+ }
+
+ @Test fun noListForTheModelOrMakerIsNone() {
+ assertEquals(ListMatch.None, find("Zeta", "Z1"))
+ assertEquals(ListMatch.None, find("", ""))
+ }
+
+ @Test fun aKeepInOneOfTheMakersListsProtectsAnAppAnotherTurnsOff() {
+ val a = DeviceList("tcl-p7-2021", "TCL P7 2021", "Android TV 11", 30, setOf("com.tcl.hdmi"), listOf(ListGroup("Junk", listOf(ListPackage("com.tcl.ads", null, false)))))
+ val b = DeviceList(
+ "tcl-p7-2023", "TCL P7 2023", "Android TV 12", 31, emptySet(),
+ listOf(ListGroup("Junk", listOf(ListPackage("com.tcl.hdmi", null, false), ListPackage("com.tcl.ads", null, false)))),
+ )
+ val merged = merge("TCL", listOf(a, b))
+ assertEquals(listOf("com.tcl.ads", "com.tcl.hdmi"), merged.groups.single().packages.map { it.pkg })
+ val shown = suggest(merged, listOf(app("com.tcl.hdmi"), app("com.tcl.ads")), sdk = 30).flatMap { it.packages }
+ assertEquals(listOf("com.tcl.ads"), shown.map { it.pkg })
+ // No tested Android, so nothing starts ticked.
+ assertFalse(shown.single().ticked)
+ assertEquals(KEEP_REASON, withKeep(null, "com.tcl.hdmi", enabled = true, merged.keep))
}
@Test fun onlyPackagesTheTvHasAndStillHasOnAreSuggested() = runTest {
diff --git a/app/src/test/java/app/tellyscope/ScreenshotTest.kt b/app/src/test/java/app/tellyscope/ScreenshotTest.kt
index 4b39cdd..ba3b9b3 100644
--- a/app/src/test/java/app/tellyscope/ScreenshotTest.kt
+++ b/app/src/test/java/app/tellyscope/ScreenshotTest.kt
@@ -645,58 +645,116 @@ class ScreenshotTest {
@Config(qualifiers = "w411dp-h2400dp-xxhdpi")
@Test fun advanced() = shot("17_advanced") { AdvancedScreen(deviceState(), back = {}) }
- @Test fun debloat_pick() {
- val lists = deviceState().device.lists
- shot("18_debloat_pick") { DebloatScreen(lists, {}, {}, {}, tvMakers = listOf("XGIMI")) }
- // The match on its own, already chosen, with a way to change it; no list of every model.
- compose.onNodeWithText("Next").assertIsEnabled()
- compose.onNodeWithText("Change").assertExists()
+ @Test fun debloat_model() = debloatModel(dark = false)
+
+ @Test fun debloat_model_dark() = debloatModel(dark = true)
+
+ /** The TV's own list: straight to the apps, with "Not this TV?" in case it's wrong. */
+ private fun debloatModel(dark: Boolean) {
+ val lists = deviceState().device.lists as Suggestions.Ready
+ shot("18_debloat_model", dark) { DebloatScreen(lists, {}, {}, {}, tvMakers = listOf("XGIMI")) }
+ compose.onNodeWithText(lists.list.name).assertExists()
+ compose.onNodeWithText("This model's list", substring = true).assertExists()
+ compose.onNodeWithText("These apps will be turned off", substring = true).assertExists()
+ compose.onNodeWithText("optional: tick it if you don't use it", substring = true).assertExists()
+ compose.onNodeWithText("Not this TV?").assertExists()
compose.onNodeWithText("TCL C-series").assertDoesNotExist()
+ val ticked = lists.groups.flatMap { it.packages }.count { it.ticked }
+ compose.onNodeWithText("Disable $ticked ${if (ticked == 1) "app" else "apps"}").assertIsEnabled()
+ }
+
+ /** No list for the model: its maker's lists merged, nothing ticked. */
+ private fun makerLists(): Suggestions.Ready {
+ val r = deviceState().device.lists as Suggestions.Ready
+ return r.copy(
+ list = r.list.copy(id = "maker:xgimi", name = "XGIMI", testedOs = null, sdk = null),
+ groups = r.groups.map { g -> g.copy(packages = g.packages.map { it.copy(ticked = false) }) },
+ byMaker = true,
+ )
+ }
+
+ @Test fun debloat_maker() = debloatMaker(dark = false)
+
+ @Test fun debloat_maker_dark() = debloatMaker(dark = true)
+
+ private fun debloatMaker(dark: Boolean) {
+ val lists = makerLists()
+ shot("18_debloat_maker", dark) { DebloatScreen(lists, {}, {}, {}, tvMakers = listOf("XGIMI")) }
+ compose.onNodeWithText("XGIMI").assertExists()
+ compose.onNodeWithText("No list for this model", substring = true).assertExists()
+ compose.onNodeWithText("Nothing is ticked", substring = true).assertExists()
+ compose.onNodeWithText("tested on", substring = true).assertDoesNotExist()
+ compose.onNodeWithText("Not this TV?").assertExists()
+ compose.onNodeWithText("Disable 0 apps").assertIsNotEnabled()
+ }
+
+ @Test fun debloat_noList() = debloatNoList(dark = false)
+
+ @Test fun debloat_noList_dark() = debloatNoList(dark = true)
+
+ /** Neither model nor maker has a list: the TV's own apps, to tick by hand. */
+ private fun debloatNoList(dark: Boolean) {
+ val s = deviceState()
+ val ready = s.device.lists as Suggestions.Ready
+ val tv = s.selected!!.let { it.copy(model = "TCL 55C735", manufacturer = "TCL", hit = it.hit.copy(maker = "TCL", hostname = null)) }
+ var disabled = emptyList<String>()
+ shot("18_debloat_none", dark) {
+ DebloatScreen(Suggestions.NoList(null, ready.devices), {}, { disabled = it }, {}, tv = tv, tvApps = s.device.apps)
+ }
+ compose.onNodeWithText("TCL 55C735").assertExists()
+ compose.onNodeWithText("No list for this TV or its maker yet").assertExists()
+ compose.onNodeWithText("Not this TV?").assertExists()
+ // Protected and already-off apps aren't offered.
+ compose.onNodeWithText("System UI").assertDoesNotExist()
+ compose.onNodeWithText("TV Recommendations").assertDoesNotExist()
+ compose.onNodeWithText("Disable 0 apps").assertIsNotEnabled()
+ compose.onNodeWithText("XGIMI Assistant").performClick()
+ compose.mainClock.advanceTimeBy(1_000)
+ compose.onNodeWithText("Disable 1 app").performClick()
+ compose.mainClock.advanceTimeBy(1_000)
+ // The confirm still names the app before anything is turned off.
+ compose.onNodeWithText("Disable 1 app?").assertExists()
+ compose.onNodeWithText("Yes, disable them").performClick()
+ compose.mainClock.advanceTimeBy(1_000)
+ assertEquals(listOf("com.xgimi.assistant"), disabled)
}
- @Test fun debloat_pick_change() {
+ private val notThisTv = { compose.onNodeWithText("Not this TV?").performClick(); Unit }
+
+ @Test fun debloat_notThisTv() {
val lists = deviceState().device.lists
- val change = { compose.onNodeWithText("Change").performClick(); Unit }
- shot("18_debloat_pick_change", before = change) { DebloatScreen(lists, {}, {}, {}, tvMakers = listOf("XGIMI")) }
- // The search starts at the TV's maker, and the match stays chosen.
+ shot("18_debloat_search", before = notThisTv) { DebloatScreen(lists, {}, {}, {}, tvMakers = listOf("XGIMI")) }
+ // The search starts at the TV's maker, with nothing marked until a list is tapped.
compose.onNodeWithText("XGIMI MoGo 2 projector").assertExists()
compose.onNodeWithText("TCL C-series").assertDoesNotExist()
- compose.onNodeWithText("Next").assertIsEnabled()
+ compose.onNodeWithText("Use this list").assertIsNotEnabled()
}
- @Test fun debloat_pick_brand() {
+ @Test fun debloat_searchByBrand() {
// Philips TVs report their factory, TPV, as manufacturer; the brand finds the list.
- val ready = deviceState().device.lists as Suggestions.Ready
- shot("18_debloat_pick_brand") { DebloatScreen(Suggestions.Pick(null, ready.devices), {}, {}, {}, tvMakers = listOf("Philips", "TPV")) }
+ val lists = makerLists()
+ shot("18_debloat_search_brand", before = notThisTv) { DebloatScreen(lists, {}, {}, {}, tvMakers = listOf("Philips", "TPV")) }
compose.onNodeWithText("Philips 55OLED708").assertExists()
compose.onNodeWithText("No list for", substring = true).assertDoesNotExist()
- compose.onNodeWithText("Next").assertIsNotEnabled() // found, but not picked for them
}
- @Test fun debloat_unknownModel() {
+ @Test fun debloat_searchUnknownMaker() {
// A maker no list names: the full list, with a line saying so, and nothing guessed.
- val ready = deviceState().device.lists as Suggestions.Ready
- shot("18_debloat_pick_unknown") { DebloatScreen(Suggestions.Pick(null, ready.devices), {}, {}, {}, tvMakers = listOf("TPV")) }
+ val lists = makerLists()
+ shot("18_debloat_search_unknown", before = notThisTv) { DebloatScreen(lists, {}, {}, {}, tvMakers = listOf("TPV")) }
compose.onNodeWithText("No list for \u201cTPV\u201d", substring = true).assertExists()
compose.onNodeWithText("Chromecast with Google TV 4K").assertExists()
- compose.onNodeWithText("Next").assertIsNotEnabled()
}
@Test fun debloat_pickByHand() {
- val ready = deviceState().device.lists as Suggestions.Ready
- val pick = { compose.onNodeWithText("Philips 55OLED708").performClick(); Unit }
- shot("18_debloat_pick_manual", before = pick) { DebloatScreen(Suggestions.Pick(null, ready.devices), {}, {}, {}, tvMakers = listOf("TPV")) }
- compose.onNodeWithText("Next").assertIsEnabled()
- }
-
- @Test fun debloat_review() {
- val lists = deviceState().device.lists as Suggestions.Ready
- val next = { compose.onNodeWithText("Next").performClick(); Unit }
- shot("19_debloat_review", before = next) { DebloatScreen(lists, {}, {}, {}) }
- val apps = lists.groups.flatMap { it.packages }
- for (a in apps) compose.onNodeWithText(a.label).assertExists()
- val ticked = apps.count { it.ticked }
- compose.onNodeWithText("Disable $ticked ${if (ticked == 1) "app" else "apps"}").assertIsEnabled()
+ val lists = makerLists()
+ val picked = mutableListOf<String>()
+ val pick = { notThisTv(); compose.mainClock.advanceTimeBy(1_000); compose.onNodeWithText("Philips 55OLED708").performClick(); Unit }
+ shot("18_debloat_search_manual", before = pick) { DebloatScreen(lists, { picked += it }, {}, {}, tvMakers = listOf("TPV")) }
+ compose.onNodeWithText("Use this list").performClick()
+ compose.mainClock.advanceTimeBy(1_000)
+ assertEquals(1, picked.size)
+ compose.onNodeWithText("Loading the list…").assertExists()
}
@Test fun debloat_review_otherAndroid() {
@@ -704,9 +762,9 @@ class ScreenshotTest {
val lists = (deviceState().device.lists as Suggestions.Ready).let { r ->
r.copy(sdk = 28, groups = r.groups.map { g -> g.copy(packages = g.packages.map { it.copy(ticked = false) }) })
}
- val next = { compose.onNodeWithText("Next").performClick(); Unit }
- shot("19_debloat_review_other_android", before = next) { DebloatScreen(lists, {}, {}, {}) }
- compose.onNodeWithText("so nothing is ticked", substring = true).assertExists()
+ shot("19_debloat_review_other_android") { DebloatScreen(lists, {}, {}, {}) }
+ compose.onNodeWithText("not this TV's Android", substring = true).assertExists()
+ compose.onNodeWithText("Nothing is ticked", substring = true).assertExists()
compose.onNodeWithText("Disable 0 apps").assertIsNotEnabled()
}
@@ -750,16 +808,13 @@ class ScreenshotTest {
}
@Test fun readme_debloat() {
- val next = { compose.onNodeWithText("Next").performClick(); Unit }
- shot("20_readme_debloat", before = next) { DebloatScreen(readmeLists(), {}, {}, {}) }
+ shot("20_readme_debloat") { DebloatScreen(readmeLists(), {}, {}, {}) }
compose.onNodeWithText("Disable 4 apps").assertIsEnabled()
}
@Test fun readme_confirm() {
// Over the review step, as in the app.
val confirm = {
- compose.onNodeWithText("Next").performClick()
- compose.mainClock.advanceTimeBy(1_000)
compose.onNodeWithText("Disable 4 apps").performClick()
Unit
}
diff --git a/docs/screenshots/debloat.png b/docs/screenshots/debloat.png
index 7ec5b3d..feb7341 100644
Binary files a/docs/screenshots/debloat.png and b/docs/screenshots/debloat.png differ