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.

README shots: Files and Send, Netflix update, sample app icons

jesse-agent-23207cf64172c1f
diff --git a/README.md b/README.md
index af90123..1ea2fb7 100644
--- a/README.md
+++ b/README.md
@@ -7,26 +7,26 @@ See inside your Android TV from your phone. Check how it's doing, turn off the a
<table>
<tr>
<td width="25%"><img src="docs/screenshots/tv-page.png" alt="A TV's page: the TV at a glance, its vitals, and the Install, Debloat and Send buttons"></td>
- <td width="25%"><img src="docs/screenshots/tv-page-dark.png" alt="The same TV page in dark theme"></td>
<td width="25%"><img src="docs/screenshots/debloat.png" alt="Debloat: reviewing the apps it will turn off, each with its package name"></td>
<td width="25%"><img src="docs/screenshots/debloat-confirm.png" alt="The confirm before disabling, naming every app"></td>
+ <td width="25%"><img src="docs/screenshots/advanced.png" alt="Advanced: memory, storage, CPU and RAM by app"></td>
</tr>
<tr>
<td align="center"><sub>Your TV at a glance</sub></td>
- <td align="center"><sub>Dark theme too</sub></td>
<td align="center"><sub>Review every app Debloat turns off</sub></td>
<td align="center"><sub>It names each app before it acts</sub></td>
+ <td align="center"><sub>Every number, on Advanced</sub></td>
</tr>
<tr>
- <td><img src="docs/screenshots/advanced.png" alt="Advanced: memory, storage, CPU and RAM by app"></td>
- <td><img src="docs/screenshots/scan.png" alt="Finding TVs on the Wi-Fi"></td>
- <td><img src="docs/screenshots/install.png" alt="Installing an app on the TV"></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>
+ <td><img src="docs/screenshots/files.png" alt="Files on the TV: the Download folder, each file one tap from the phone"></td>
<td><img src="docs/screenshots/history.png" alt="History: every change with an Undo, and Restore everything"></td>
</tr>
<tr>
- <td align="center"><sub>Every number, on Advanced</sub></td>
- <td align="center"><sub>Finds TVs on your Wi-Fi</sub></td>
- <td align="center"><sub>Install apps from your phone</sub></td>
+ <td align="center"><sub>Install or update apps</sub></td>
+ <td align="center"><sub>Send files to the TV</sub></td>
+ <td align="center"><sub>Browse and save the TV's files</sub></td>
<td align="center"><sub>Undo anything from History</sub></td>
</tr>
</table>
diff --git a/app/src/test/java/app/tellyscope/ScreenshotTest.kt b/app/src/test/java/app/tellyscope/ScreenshotTest.kt
index 926e122..5b1971c 100644
--- a/app/src/test/java/app/tellyscope/ScreenshotTest.kt
+++ b/app/src/test/java/app/tellyscope/ScreenshotTest.kt
@@ -22,6 +22,7 @@ import app.tellyscope.adb.ApkInfo
import app.tellyscope.adb.InstallRefusal
import app.tellyscope.adb.InstalledVersion
import app.tellyscope.adb.Progress
+import app.tellyscope.adb.TvFile
import app.tellyscope.adb.TvFolder
import app.tellyscope.data.Action
import app.tellyscope.data.AppInfo
@@ -157,7 +158,7 @@ class ScreenshotTest {
selectedId = d.id,
device = DeviceUi(
snapshot = fake.snapshot(d.id),
- apps = fake.apps(d.id),
+ apps = fake.apps(d.id).map { it.copy(icon = sampleIcons[it.packageName]) },
network = fake.network(d.id),
lists = lists(d.id),
).device(),
@@ -284,6 +285,63 @@ class ScreenshotTest {
private fun app(pkg: String, label: String, icon: ByteArray?) =
AppInfo(pkg, label, null, pkg.startsWith("com.xgimi"), true, null, "", icon)
+ /**
+ * Generic icons for the sample apps, so device shots look like a real TV's list. Each is the
+ * app's avatar colour with a plain glyph: no brand artwork in the repo, test-only.
+ */
+ private val sampleIcons: Map<String, ByteArray> by lazy {
+ val white = Paint().apply { color = android.graphics.Color.WHITE; isAntiAlias = true }
+ val line = Paint(white).apply { style = Paint.Style.STROKE; strokeWidth = 7f; strokeCap = Paint.Cap.ROUND }
+ fun icon(argb: Long, glyph: Canvas.() -> Unit): ByteArray {
+ val b = Bitmap.createBitmap(96, 96, Bitmap.Config.ARGB_8888)
+ Canvas(b).apply { drawColor(argb.toInt()); glyph() }
+ return ByteArrayOutputStream().also { b.compress(Bitmap.CompressFormat.PNG, 100, it) }.toByteArray()
+ }
+ fun Canvas.squares() = listOf(26f, 52f).forEach { x -> listOf(26f, 52f).forEach { y -> drawRoundRect(x, y, x + 18f, y + 18f, 4f, 4f, white) } }
+ fun Canvas.screen() { drawRoundRect(22f, 26f, 74f, 62f, 6f, 6f, line); drawLine(38f, 72f, 58f, 72f, line) }
+ fun Canvas.film() {
+ drawRoundRect(30f, 22f, 66f, 74f, 4f, 4f, white)
+ val hole = Paint().apply { color = 0xFF141414.toInt() }
+ listOf(28f, 40f, 52f, 64f).forEach { y -> drawRect(33f, y, 38f, y + 5f, hole); drawRect(58f, y, 63f, y + 5f, hole) }
+ }
+ fun Canvas.stack() = listOf(28f, 44f, 60f).forEach { y -> drawRoundRect(24f, y, 72f, y + 10f, 5f, 5f, white) }
+ fun Canvas.mic() { drawRoundRect(38f, 20f, 58f, 52f, 10f, 10f, white); drawArc(30f, 34f, 66f, 64f, 0f, 180f, false, line); drawLine(48f, 66f, 48f, 76f, line) }
+ fun Canvas.arrow() { drawLine(48f, 22f, 48f, 62f, line); drawLine(34f, 48f, 48f, 62f, line); drawLine(62f, 48f, 48f, 62f, line); drawLine(28f, 74f, 68f, 74f, line) }
+ fun Canvas.star() = drawPath(
+ android.graphics.Path().apply {
+ (0 until 10).forEach { i ->
+ val r = if (i % 2 == 0) 28f else 12f
+ val a = Math.toRadians(i * 36.0 - 90)
+ val x = 48f + r * Math.cos(a).toFloat()
+ val y = 50f + r * Math.sin(a).toFloat()
+ if (i == 0) moveTo(x, y) else lineTo(x, y)
+ }
+ close()
+ },
+ white,
+ )
+ fun Canvas.gear() { drawCircle(48f, 48f, 20f, line); drawCircle(48f, 48f, 6f, white) }
+ fun Canvas.dots() = listOf(30f, 48f, 66f).forEach { drawCircle(it, 48f, 6f, white) }
+ fun Canvas.keys() {
+ drawRoundRect(20f, 32f, 76f, 66f, 6f, 6f, line)
+ listOf(32f, 44f, 56f, 64f).forEach { x -> drawCircle(x, 44f, 3f, white) }
+ drawLine(36f, 56f, 60f, 56f, line)
+ }
+ mapOf(
+ "com.spocky.projengmenu" to icon(0xFF3D5AFE) { squares() },
+ "com.google.android.youtube.tv" to icon(0xFFC4302B) { screen() },
+ "com.netflix.ninja" to icon(0xFF141414) { film() },
+ "org.jellyfin.androidtv" to icon(0xFF7B5EA7) { stack() },
+ "com.xgimi.assistant" to icon(0xFF00897B) { mic() },
+ "com.xgimi.ota" to icon(0xFF00838F) { arrow() },
+ "com.google.android.tvrecommendations" to icon(0xFFF9A825) { star() },
+ "com.android.systemui" to icon(0xFF546E7A) { dots() },
+ "com.android.tv.settings" to icon(0xFF607D8B) { gear() },
+ "com.google.android.gms" to icon(0xFF1E88E5) { gear() },
+ "com.google.android.inputmethod.latin" to icon(0xFF5C6BC0) { keys() },
+ )
+ }
+
@Test fun apps_helperNames() {
val labels = listOf("YouTube", "Netflix", "Jellyfin", "Weather Box", "XGIMI Assistant")
val apps = tvApps.zip(labels) { (pkg, color), label -> app(pkg, label, iconPng(color)) }
@@ -490,4 +548,37 @@ class ScreenshotTest {
shot("22_readme_history", before = openHistory) { DeviceScreen(deviceState { copy(history = history) }, DeviceActions()) }
compose.onNodeWithText("Restore everything (2)").assertExists()
}
+ @Test fun readme_install() {
+ // An update, since the sample TV already has Netflix: the dialog says what changes.
+ val netflix = PickedApp(
+ listOf(apk("base.apk", 38_000_000), apk("split_config.armeabi_v7a.apk", 7_200_000), apk("split_config.xxhdpi.apk", 1_400_000)),
+ ApkInfo("com.netflix.ninja", 11_300, "11.3.0"),
+ "Netflix",
+ )
+ sideload("23_readme_install", SideloadUi(SideloadUi.Step.Ready, netflix, InstalledVersion(11_200, "11.2.0")))
+ }
+
+ // Tall, like readme_history: frame.py scrolls it down to Files.
+ @Config(qualifiers = "w411dp-h2600dp-xxhdpi")
+ @Test fun readme_files() {
+ val files = listOf(
+ TvFile("subtitles.srt", 61_000, now - 40 * 60_000L),
+ TvFile("kodi-21.1-armeabi-v7a.apk", 74_000_000, now - 5 * 3_600_000L),
+ TvFile("projectivy-backup.plbackup", 48_200, now - 26 * 3_600_000L),
+ TvFile("holiday-2025.mp4", 812_000_000, now - 3 * 86_400_000L),
+ TvFile("wallpaper-mountains.jpg", 2_400_000, now - 9 * 86_400_000L),
+ )
+ val openFiles = {
+ compose.onNodeWithText("Apps").performClick() // fold the long list away
+ compose.onNodeWithText("Files on the TV").performClick()
+ Unit
+ }
+ shot("24_readme_files", before = openFiles) { DeviceScreen(deviceState { copy(files = FilesUi(TvFolder.DOWNLOAD, files)) }, DeviceActions()) }
+ compose.onNodeWithText("wallpaper-mountains.jpg").assertExists()
+ }
+
+ @Test fun readme_send() = shot("25_readme_send", screen = true) {
+ val t = TransferUi("family-trip-2025.mp4", toTv = true, folder = TvFolder.MOVIES, progress = Progress(486_000_000, 812_000_000))
+ DeviceScreen(deviceState { copy(transfer = t) }, DeviceActions())
+ }
}
diff --git a/docs/screenshots/files.png b/docs/screenshots/files.png
new file mode 100644
index 0000000..034f1cf
Binary files /dev/null and b/docs/screenshots/files.png differ
diff --git a/docs/screenshots/frame.py b/docs/screenshots/frame.py
index fa46f96..939c761 100644
--- a/docs/screenshots/frame.py
+++ b/docs/screenshots/frame.py
@@ -20,12 +20,12 @@ OUT = Path(__file__).parent
# Tall renders are cut to one phone screen; a scrolled one keeps its top bar, as on a phone.
SHOTS = {
"tv-page": ("04_device", 0),
- "tv-page-dark": ("04_device_dark", 0),
"debloat": ("20_readme_debloat", 0),
"debloat-confirm": ("21_readme_confirm", 0),
"advanced": ("17_advanced", 0),
- "scan": ("01_scan_in_progress", 0),
- "install": ("10_sideload_new", 0),
+ "install": ("23_readme_install", 0),
+ "send": ("25_readme_send", 0),
+ "files": ("24_readme_files", 400),
"history": ("22_readme_history", 300),
}
diff --git a/docs/screenshots/install.png b/docs/screenshots/install.png
index 01e0080..b830772 100644
Binary files a/docs/screenshots/install.png and b/docs/screenshots/install.png differ
diff --git a/docs/screenshots/scan.png b/docs/screenshots/scan.png
deleted file mode 100644
index b5f2b76..0000000
Binary files a/docs/screenshots/scan.png and /dev/null differ
diff --git a/docs/screenshots/send.png b/docs/screenshots/send.png
new file mode 100644
index 0000000..98dcbd5
Binary files /dev/null and b/docs/screenshots/send.png differ
diff --git a/docs/screenshots/tv-page-dark.png b/docs/screenshots/tv-page-dark.png
deleted file mode 100644
index cbec573..0000000
Binary files a/docs/screenshots/tv-page-dark.png and /dev/null differ
diff --git a/docs/screenshots/tv-page.png b/docs/screenshots/tv-page.png
index 7357b5b..c6e32dc 100644
Binary files a/docs/screenshots/tv-page.png and b/docs/screenshots/tv-page.png differ