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.

About shows the version, who makes it and the GitHub link

jesse-agent-23286cd5618eb95
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9c25d2d..c4f1fdf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@ until this file has a section for its version.
## 0.8.0 — 2026-10-25
+- **New:** About shows the app's version, who makes it and its GitHub page. [#125](../../pull/125)
- **New:** Dock up to four apps on the Remote, one tap to open. [#120](../../pull/120)
- **Improved:** Restart TV sits in the Remote's top bar and waits with you. [#120](../../pull/120)
- **Improved:** Sleep and Menu leave the Remote, making room for the dock. [#120](../../pull/120)
diff --git a/app/src/main/java/app/tellyscope/ui/ListsCard.kt b/app/src/main/java/app/tellyscope/ui/ListsCard.kt
index 17d4820..75defbf 100644
--- a/app/src/main/java/app/tellyscope/ui/ListsCard.kt
+++ b/app/src/main/java/app/tellyscope/ui/ListsCard.kt
@@ -17,6 +17,7 @@ import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.imePadding
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.padding
+import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
@@ -55,7 +56,9 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
+import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalSoftwareKeyboardController
+import androidx.compose.ui.platform.LocalUriHandler
import androidx.compose.ui.semantics.Role
import androidx.compose.ui.text.input.ImeAction
import androidx.compose.ui.unit.dp
@@ -63,6 +66,7 @@ import app.tellyscope.data.AppInfo
import app.tellyscope.data.Device
import app.tellyscope.data.DeviceKind
import app.tellyscope.data.ListEntry
+import app.tellyscope.data.RELEASES
import app.tellyscope.data.Suggested
import app.tellyscope.data.SuggestedGroup
import app.tellyscope.data.Suggestions
@@ -338,14 +342,31 @@ internal fun DisableDialog(apps: List<Suggested>, onDisable: () -> Unit, onDismi
)
}
-/** About and licences; [commit] is the cleanyourtv commit the downloaded lists were built from. */
+internal val REPO = RELEASES.removeSuffix("/releases")
+
+/**
+ * About and licences: the installed version, who makes it and the repo, then the licences.
+ * [commit] is the cleanyourtv commit the downloaded lists were built from; [version] is the
+ * installed versionName, alpha suffix included.
+ */
@Composable
-fun AboutDialog(commit: String?, onDismiss: () -> Unit) {
+fun AboutDialog(commit: String?, onDismiss: () -> Unit, version: String = installedVersion()) {
+ val browser = LocalUriHandler.current
AlertDialog(
onDismissRequest = onDismiss,
title = { Text("About Tellyscope") },
text = {
Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
+ Text("Version $version", style = MaterialTheme.typography.titleSmall)
+ Text("Made by ${REPO.removePrefix("https://github.com/").substringBefore('/')}", style = MaterialTheme.typography.bodyMedium)
+ Row(
+ Modifier.clickable(role = Role.Button) { runCatching { browser.openUri(REPO) } }.padding(vertical = 4.dp),
+ verticalAlignment = Alignment.CenterVertically,
+ ) {
+ Text(REPO.removePrefix("https://"), style = MaterialTheme.typography.labelLarge, color = MaterialTheme.colorScheme.primary)
+ Spacer(Modifier.width(4.dp))
+ Icon(OpenInNew, contentDescription = null, Modifier.size(16.dp), tint = MaterialTheme.colorScheme.primary)
+ }
Text("Free software under the GNU GPL v3.", style = MaterialTheme.typography.bodyMedium)
Text(
"Device lists are adapted from cleanyourtv by Gathin (MIT licence), " +
@@ -362,6 +383,13 @@ fun AboutDialog(commit: String?, onDismiss: () -> Unit) {
)
}
+@Composable
+private fun installedVersion(): String {
+ val context = LocalContext.current
+ @Suppress("DEPRECATION") // the flags overload is API 33+
+ return remember { context.packageManager.getPackageInfo(context.packageName, 0).versionName.orEmpty() }
+}
+
/** "Android 11" for SDK 30; just the SDK where the release name isn't known. */
internal fun androidName(sdk: Int): String = when (sdk) {
21 -> "Android 5.0"
diff --git a/app/src/main/java/app/tellyscope/ui/SettingsScreen.kt b/app/src/main/java/app/tellyscope/ui/SettingsScreen.kt
index 9504892..9294be8 100644
--- a/app/src/main/java/app/tellyscope/ui/SettingsScreen.kt
+++ b/app/src/main/java/app/tellyscope/ui/SettingsScreen.kt
@@ -187,7 +187,7 @@ private fun ListsFrom(source: String?, onOpen: () -> Unit) {
}
}
-private val OpenInNew = ImageVector.Builder("OpenInNew", 24.dp, 24.dp, 24f, 24f)
+internal val OpenInNew = ImageVector.Builder("OpenInNew", 24.dp, 24.dp, 24f, 24f)
.addPath(
PathParser().parsePathString("M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z").toNodes(),
pathFillType = PathFillType.NonZero, fill = SolidColor(Color.Black),
diff --git a/app/src/test/java/app/tellyscope/ScreenshotTest.kt b/app/src/test/java/app/tellyscope/ScreenshotTest.kt
index a6fdd14..92dca77 100644
--- a/app/src/test/java/app/tellyscope/ScreenshotTest.kt
+++ b/app/src/test/java/app/tellyscope/ScreenshotTest.kt
@@ -60,6 +60,7 @@ import app.tellyscope.data.Suggested
import app.tellyscope.data.SuggestedGroup
import app.tellyscope.data.Proc
import app.tellyscope.data.Suggestions
+import app.tellyscope.ui.AboutDialog
import app.tellyscope.ui.AdvancedScreen
import app.tellyscope.ui.AppsTab
import app.tellyscope.ui.ConnectScreen
@@ -903,6 +904,8 @@ class ScreenshotTest {
@Test fun forget() = shot("09_forget", screen = true) { ForgetDialog("xgimi-projector", {}, {}) }
+ @Test fun about() = shot("83_about", screen = true) { AboutDialog("4f1c2a9e7b3d5c60", {}, version = "0.8.0-alpha.2") }
+
@Test fun scan_offWifi() = scan(
ScanUi(scanning = false, noLan = true, hits = listOf(chromecast), rows = mapOf(chromecast.ip to RowState.Found)),
name = "10_scan_off_wifi",