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 screenshots: re-render with the top bar and tabs
jesse-agent-3623926d5312bd6
diff --git a/app/src/test/java/app/tellyscope/ScreenshotTest.kt b/app/src/test/java/app/tellyscope/ScreenshotTest.ktindex 3c2d363..20f1aad 100644--- a/app/src/test/java/app/tellyscope/ScreenshotTest.kt+++ b/app/src/test/java/app/tellyscope/ScreenshotTest.kt@@ -21,6 +21,10 @@ import androidx.compose.ui.test.onAllNodesWithTextimport androidx.compose.ui.test.assertCountEqualsimport androidx.compose.ui.test.onRootimport androidx.compose.ui.test.performClick+import androidx.compose.ui.test.performScrollToNode+import androidx.compose.ui.test.performScrollToIndex+import androidx.compose.ui.test.hasScrollAction+import androidx.compose.ui.test.hasTextimport app.tellyscope.adb.ApkInfoimport app.tellyscope.adb.ConnectionRequestimport app.tellyscope.adb.InstallRefusal@@ -672,8 +676,7 @@ class ScreenshotTest {compose.onNodeWithText("Disable 4 apps?").assertExists()}- // Tall, like device_history: frame.py shows it scrolled down to History under the top bar.- @Config(qualifiers = "w411dp-h2600dp-xxhdpi")+ // Phone-sized, like every README shot: Recent changes (item 1 on Tweaks) scrolled to the top.@Test fun readme_history() {val history = listOf(HistoryEntry(4, xgimi.ip, now - 40_000, Action.Disable, "com.google.android.tvrecommendations", "TV Recommendations", Action.Enable, null),@@ -681,7 +684,7 @@ class ScreenshotTest {HistoryEntry(2, xgimi.ip, now - 5 * 60_000, Action.Stop, "com.netflix.ninja", "Netflix", Action.Open, null),HistoryEntry(1, xgimi.ip, now - 2 * 3_600_000, Action.Stop, "com.google.android.youtube.tv", "YouTube", Action.Open, now - 3_500_000),)- shot("22_readme_history") { DeviceTabsScreen(deviceState { copy(history = history) }, DeviceActions(), startTab = TvTab.Tweaks) }+ shot("22_readme_history", before = { compose.onNode(hasScrollAction()).performScrollToIndex(1); Unit }) { DeviceTabsScreen(deviceState { copy(history = history) }, DeviceActions(), startTab = TvTab.Tweaks) }compose.onNodeWithText("Restore everything (2)").assertExists()}@Test fun readme_install() {@@ -694,8 +697,6 @@ class ScreenshotTest {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),@@ -708,16 +709,13 @@ class ScreenshotTest {compose.onNodeWithText("wallpaper-mountains.jpg").assertExists()}- // Tall, like readme_history: frame.py scrolls it down to TV tweaks.- @Config(qualifiers = "w411dp-h2600dp-xxhdpi")@Test fun readme_tweaks() {val tweaks = TvTweaks(dnsHost = TvSettings.ADGUARD, animationScale = null)shot("29_readme_tweaks") { DeviceTabsScreen(deviceState { copy(tweaks = tweaks) }, DeviceActions(), startTab = TvTab.Tweaks) }compose.onNodeWithText(Copy.dnsState(TvSettings.ADGUARD)).assertExists()}- // Tall, like readme_history: frame.py scrolls it down to the confirm.- @Config(qualifiers = "w411dp-h2600dp-xxhdpi")+ // The list scrolls to the confirm, as a user would.@Test fun readme_home() {// Google TV's own launcher is Home; Projectivy, installed by the user, offers to replace it.val stock = AppInfo("com.google.android.tvlauncher", "Google TV Home", 0xFF1A73E8, true, true, "this is your home screen", "1.0.4")@@ -725,7 +723,7 @@ class ScreenshotTest {val projectivy = { a: AppInfo -> a.copy(protectedReason = null, system = false, removable = true, homeInstead = stock.packageName) }copy(apps = listOf(stock) + apps.map { if (it.packageName == "com.spocky.projengmenu") projectivy(it) else it }, pending = "com.spocky.projengmenu" to Action.Home)}- shot("30_readme_home") { DeviceTabsScreen(state, DeviceActions(), startTab = TvTab.Apps) }+ shot("30_readme_home", before = { compose.onNode(hasScrollAction()).performScrollToNode(hasText("Yes, switch home screen")); Unit }) { DeviceTabsScreen(state, DeviceActions(), startTab = TvTab.Apps) }compose.onNodeWithText("Yes, switch home screen").assertExists()}diff --git a/docs/screenshots/files.png b/docs/screenshots/files.pngindex 034f1cf..be865cc 100644Binary files a/docs/screenshots/files.png and b/docs/screenshots/files.png differdiff --git a/docs/screenshots/frame.py b/docs/screenshots/frame.pyindex b6c1b16..b0f3b92 100644--- a/docs/screenshots/frame.py+++ b/docs/screenshots/frame.py@@ -16,25 +16,24 @@ from PIL import Image, ImageDrawSRC = Path("app/build/outputs/roborazzi")OUT = Path(__file__).parent-# Output name, the screenshot it comes from, and how far down the page it is scrolled, in dp.-# Tall renders are cut to one phone screen; a scrolled one keeps its top bar, as on a phone.+# Output name and the phone-sized screenshot it comes from. The tests scroll the page themselves,+# so the top bar and the tabs along the bottom stay in shot.SHOTS = {- "tv-page": ("04_device", 0),- "debloat": ("20_readme_debloat", 0),- "debloat-confirm": ("21_readme_confirm", 0),- "install": ("23_readme_install", 0),- "send": ("25_readme_send", 0),- "files": ("24_readme_files", 400),- "history": ("22_readme_history", 300),- "tweaks": ("29_readme_tweaks", 645),- "request": ("17_device_request", 0),- "home": ("30_readme_home", 600),- "uninstall": ("27_apps_uninstall_confirm", 0),+ "tv-page": "04_device",+ "debloat": "20_readme_debloat",+ "debloat-confirm": "21_readme_confirm",+ "install": "23_readme_install",+ "send": "25_readme_send",+ "files": "24_readme_files",+ "history": "22_readme_history",+ "tweaks": "29_readme_tweaks",+ "request": "17_device_request",+ "home": "30_readme_home",+ "uninstall": "27_apps_uninstall_confirm",}DP = 3 # the tests render at xxhdpiSCREEN_DP = 891 # the tests' 411 x 891 dp phone-TOP_BAR_DP = 64WIDTH = 540 # screen width in the output; GitHub shows it at about half thatSTATUS = 30 # status bar height, where the camera sits@@ -42,15 +41,9 @@ BEZEL = 14RADIUS = 46-def frame(src: Path, scroll_dp: int) -> Image.Image:+def frame(src: Path) -> Image.Image:shot = Image.open(src).convert("RGB")- phone_h, bar, scroll = SCREEN_DP * DP, TOP_BAR_DP * DP, scroll_dp * DP- if scroll:- page = shot.crop((0, bar + scroll, shot.width, scroll + phone_h))- shot = shot.crop((0, 0, shot.width, phone_h))- shot.paste(page, (0, bar))- else:- shot = shot.crop((0, 0, shot.width, min(shot.height, phone_h)))+ shot = shot.crop((0, 0, shot.width, min(shot.height, SCREEN_DP * DP)))shot = shot.resize((WIDTH, shot.height * WIDTH // shot.width), Image.LANCZOS)# A status bar in the app's own top colour, as on a phone.@@ -70,6 +63,6 @@ def frame(src: Path, scroll_dp: int) -> Image.Image:if __name__ == "__main__":- for name, (src, scroll) in SHOTS.items():- frame(SRC / f"{src}.png", scroll).save(OUT / f"{name}.png", optimize=True)+ for name, src in SHOTS.items():+ frame(SRC / f"{src}.png").save(OUT / f"{name}.png", optimize=True)print(f"{name}.png")diff --git a/docs/screenshots/history.png b/docs/screenshots/history.pngindex bdca089..d12820a 100644Binary files a/docs/screenshots/history.png and b/docs/screenshots/history.png differdiff --git a/docs/screenshots/home.png b/docs/screenshots/home.pngindex 629ecb8..e249c6e 100644Binary files a/docs/screenshots/home.png and b/docs/screenshots/home.png differdiff --git a/docs/screenshots/install.png b/docs/screenshots/install.pngindex b830772..a469d6e 100644Binary files a/docs/screenshots/install.png and b/docs/screenshots/install.png differdiff --git a/docs/screenshots/request.png b/docs/screenshots/request.pngindex 8df1511..70ad198 100644Binary files a/docs/screenshots/request.png and b/docs/screenshots/request.png differdiff --git a/docs/screenshots/send.png b/docs/screenshots/send.pngindex 98dcbd5..e1ea8ab 100644Binary files a/docs/screenshots/send.png and b/docs/screenshots/send.png differdiff --git a/docs/screenshots/tv-page.png b/docs/screenshots/tv-page.pngindex c6e32dc..eae7953 100644Binary files a/docs/screenshots/tv-page.png and b/docs/screenshots/tv-page.png differdiff --git a/docs/screenshots/tweaks.png b/docs/screenshots/tweaks.pngindex 643a108..3e21f7d 100644Binary files a/docs/screenshots/tweaks.png and b/docs/screenshots/tweaks.png differdiff --git a/docs/screenshots/uninstall.png b/docs/screenshots/uninstall.pngindex cd895f8..ba51f36 100644Binary files a/docs/screenshots/uninstall.png and b/docs/screenshots/uninstall.png differ