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: Remote screenshot with the streaming buttons
jesse-agent-232600f78c0f359
diff --git a/NOTICE b/NOTICEindex 9a04331..4e8241f 100644--- a/NOTICE+++ b/NOTICE@@ -94,3 +94,10 @@ App icon in app/src/test/resources/dock-icons/ (screenshot tests only, not inthe app)The YouTube name and logo belong to its owner. It is shown only to illustratethe Apps list in a screenshot.++--------------------------------------------------------------------------------+Streaming service logos in app/src/test/resources/streaming-logos/ (screenshot+tests only, not in the app)+Copies of tellyscope-devices' YouTube, Netflix and Jellyfin logos, under the+same terms as the streaming service logos above, shown only to illustrate the+Remote in a screenshot.diff --git a/README.md b/README.mdindex 2aaff1a..37e6aa2 100644--- a/README.md+++ b/README.md@@ -19,7 +19,7 @@ Debloat your Android TV, install apps, and browse and transfer files on it, all<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/remote.png" alt="The Remote: Screen off and Restart under a menu in the top bar, a D-pad, icon keys for Back, Home, Menu, mute and volume, typing on the TV with a backspace key, and a dock of four TV apps along the bottom"></td>+ <td width="25%"><img src="docs/screenshots/remote.png" alt="The Remote: Screen off and Restart under a menu in the top bar, a D-pad, icon keys for Back, Home, Menu, mute and volume, typing on the TV with a backspace key, and three streaming buttons along the bottom: YouTube, Netflix and Jellyfin"></td><td width="25%"><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 width="25%"><img src="docs/screenshots/install.png" alt="Installing Kodi on the TV from an APK on the phone: the dialog says it is not on this TV yet"></td></tr>diff --git a/app/src/test/java/app/tellyscope/ScreenshotTest.kt b/app/src/test/java/app/tellyscope/ScreenshotTest.ktindex 0f780bc..d251490 100644--- a/app/src/test/java/app/tellyscope/ScreenshotTest.kt+++ b/app/src/test/java/app/tellyscope/ScreenshotTest.kt@@ -49,6 +49,7 @@ import app.tellyscope.data.AppInfoimport app.tellyscope.data.Dockedimport app.tellyscope.data.AppNamesimport app.tellyscope.data.Device+import app.tellyscope.data.DeviceListsimport app.tellyscope.data.DeviceStateimport app.tellyscope.data.FakeDeviceSourceimport app.tellyscope.data.HistoryEntry@@ -58,6 +59,7 @@ import app.tellyscope.data.TvTweaksimport app.tellyscope.data.ListEntryimport app.tellyscope.data.PickedAppimport app.tellyscope.data.ScanHit+import app.tellyscope.data.SharedListsimport app.tellyscope.data.ScanKindimport app.tellyscope.data.ScanProgressimport app.tellyscope.data.Suggested@@ -131,8 +133,10 @@ import com.github.takahirom.roborazzi.captureRoboImageimport com.github.takahirom.roborazzi.captureScreenRoboImageimport java.io.ByteArrayOutputStreamimport java.io.File+import java.io.IOExceptionimport java.io.RandomAccessFileimport java.nio.file.Files+import java.security.MessageDigestimport kotlin.random.Randomimport kotlinx.coroutines.runBlockingimport org.junit.Assert.assertEquals@@ -1141,7 +1145,30 @@ class ScreenshotTest {*/private fun realIcon(pkg: String): ByteArray? = javaClass.classLoader?.getResourceAsStream("dock-icons/$pkg.png")?.use { it.readBytes() }- @Test fun remote_dockFull() {+ /**+ * [body] with the Remote's lists offline but holding these services' real logos, as on a phone+ * that has downloaded them; test resources only (see NOTICE). The lists go back to none after.+ */+ private fun withLogos(vararg names: String, body: () -> Unit) {+ fun sha256(b: ByteArray) = MessageDigest.getInstance("SHA-256").digest(b).joinToString("") { "%02x".format(it) }+ val offline: suspend (String) -> ByteArray = { throw IOException("offline") }+ val dir = Files.createTempDirectory("logos").toFile()+ val logos = names.joinToString { n ->+ val png = javaClass.classLoader!!.getResourceAsStream("streaming-logos/$n.png")!!.use { it.readBytes() }+ File(dir, "logos").mkdirs()+ File(dir, "logos/$n.png").writeBytes(png)+ """"$n": {"file": "logos/$n.png", "sha256": "${sha256(png)}"}"""+ }+ File(dir, "index.json").writeText("""{"schema": 1, "devices": [], "logos": {$logos}}""")+ runBlocking { SharedLists.load(DeviceLists(dir, offline)) }+ try { body() } finally {+ runBlocking { SharedLists.load(DeviceLists(Files.createTempDirectory("none").toFile(), offline)) }+ dir.deleteRecursively()+ }+ }++ // The README's Remote: a full row of streaming buttons, with their logos.+ @Test fun remote_dockFull() = withLogos("youtube", "netflix", "jellyfin") {val three = docked + Docked("org.jellyfin.androidtv", "Jellyfin")shot("12_remote_dock_full", screen = true) { RemoteScreen(remoteState(apps = three), RemoteActions()) }// A full row has no Remote buttons pill.diff --git a/app/src/test/resources/streaming-logos/jellyfin.png b/app/src/test/resources/streaming-logos/jellyfin.pngnew file mode 100644index 0000000..6861719Binary files /dev/null and b/app/src/test/resources/streaming-logos/jellyfin.png differdiff --git a/app/src/test/resources/streaming-logos/netflix.png b/app/src/test/resources/streaming-logos/netflix.pngnew file mode 100644index 0000000..3f5e710Binary files /dev/null and b/app/src/test/resources/streaming-logos/netflix.png differdiff --git a/app/src/test/resources/streaming-logos/youtube.png b/app/src/test/resources/streaming-logos/youtube.pngnew file mode 100644index 0000000..b6f6980Binary files /dev/null and b/app/src/test/resources/streaming-logos/youtube.png differdiff --git a/docs/screenshots/remote.png b/docs/screenshots/remote.pngindex 552939f..6846c5a 100644Binary files a/docs/screenshots/remote.png and b/docs/screenshots/remote.png differ