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: Remote screenshot with the streaming buttons

jesse-agent-232600f78c0f359
diff --git a/NOTICE b/NOTICE
index 9a04331..4e8241f 100644
--- a/NOTICE
+++ b/NOTICE
@@ -94,3 +94,10 @@ App icon in app/src/test/resources/dock-icons/ (screenshot tests only, not in
the app)
The YouTube name and logo belong to its owner. It is shown only to illustrate
the 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.md
index 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.kt
index 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.AppInfo
import app.tellyscope.data.Docked
import app.tellyscope.data.AppNames
import app.tellyscope.data.Device
+import app.tellyscope.data.DeviceLists
import app.tellyscope.data.DeviceState
import app.tellyscope.data.FakeDeviceSource
import app.tellyscope.data.HistoryEntry
@@ -58,6 +59,7 @@ import app.tellyscope.data.TvTweaks
import app.tellyscope.data.ListEntry
import app.tellyscope.data.PickedApp
import app.tellyscope.data.ScanHit
+import app.tellyscope.data.SharedLists
import app.tellyscope.data.ScanKind
import app.tellyscope.data.ScanProgress
import app.tellyscope.data.Suggested
@@ -131,8 +133,10 @@ import com.github.takahirom.roborazzi.captureRoboImage
import com.github.takahirom.roborazzi.captureScreenRoboImage
import java.io.ByteArrayOutputStream
import java.io.File
+import java.io.IOException
import java.io.RandomAccessFile
import java.nio.file.Files
+import java.security.MessageDigest
import kotlin.random.Random
import kotlinx.coroutines.runBlocking
import 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.png
new file mode 100644
index 0000000..6861719
Binary files /dev/null and b/app/src/test/resources/streaming-logos/jellyfin.png differ
diff --git a/app/src/test/resources/streaming-logos/netflix.png b/app/src/test/resources/streaming-logos/netflix.png
new file mode 100644
index 0000000..3f5e710
Binary files /dev/null and b/app/src/test/resources/streaming-logos/netflix.png differ
diff --git a/app/src/test/resources/streaming-logos/youtube.png b/app/src/test/resources/streaming-logos/youtube.png
new file mode 100644
index 0000000..b6f6980
Binary files /dev/null and b/app/src/test/resources/streaming-logos/youtube.png differ
diff --git a/docs/screenshots/remote.png b/docs/screenshots/remote.png
index 552939f..6846c5a 100644
Binary files a/docs/screenshots/remote.png and b/docs/screenshots/remote.png differ