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.

data/launchers.json: Projectivy's install details

tellyscope-agent45ca14f14951
diff --git a/app/src/test/java/app/tellyscope/DataListsTest.kt b/app/src/test/java/app/tellyscope/DataListsTest.kt
index 35bfce2..e330dcc 100644
--- a/app/src/test/java/app/tellyscope/DataListsTest.kt
+++ b/app/src/test/java/app/tellyscope/DataListsTest.kt
@@ -29,6 +29,9 @@ class DataListsTest {
private val package_ = Regex("[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z0-9_]+)+")
private val logoName = Regex("[a-z0-9]+")
private val hex = Regex("#[0-9A-Fa-f]{6}")
+ private val signer = Regex("[0-9a-f]{64}")
+ // "." and ".." are not repo names; they would walk the URL out of the repo.
+ private val releases = Regex("https://github\\.com/[A-Za-z0-9-]+/(?!\\.\\.?/)[A-Za-z0-9._-]+/releases")
/** The Remote's sheet in dark mode; a service's `dark` fill replaces a colour that sinks into it. */
private val darkSheet = 0xFF161D1D
@@ -44,17 +47,31 @@ class DataListsTest {
@Test fun launchers() {
val errors = mutableListOf<String>()
val seen = mutableSetOf<String>()
+ val fire = mutableListOf<String>()
val entries = schema1("launchers.json").getJSONArray("launchers").objects()
entries.forEachIndexed { i, l ->
val where = "launchers.json: launcher ${i + 1}"
- val unknown = l.keys().asSequence().toSet() - setOf("package", "name", "about")
+ // Install details only: a list never asks for an accessibility service.
+ val unknown = l.keys().asSequence().toSet() - setOf("package", "name", "about", "signers", "max_mb", "releases", "fire_os")
if (unknown.isNotEmpty()) errors += "$where: unknown keys ${unknown.sorted()}"
val pkg = l.optString("package")
if (!package_.matches(pkg)) errors += "$where: not a package name: $pkg"
if (!l.nonEmpty("name")) errors += "$where: 'name' must be a non-empty string"
if (l.has("about") && !l.nonEmpty("about")) errors += "$where: 'about' must be a non-empty string"
+ val signers = l.optJSONArray("signers")?.let { a -> (0 until a.length()).map { a.opt(it) } }
+ if (l.has("signers") && (signers.isNullOrEmpty() || !signers.all { it is String && signer.matches(it) })) {
+ errors += "$where: 'signers' must be a non-empty list of SHA-256s, 64 lowercase hex"
+ }
+ if (l.has("max_mb") && (l.opt("max_mb") as? Int)?.takeIf { it in 1..256 } == null) errors += "$where: 'max_mb' must be a whole number from 1 to 256"
+ if (l.has("releases") && !releases.matches(l.optString("releases"))) errors += "$where: 'releases' must be https://github.com/<owner>/<repo>/releases"
+ if (l.has("fire_os") && l.opt("fire_os") != true) errors += "$where: 'fire_os' can only be true; leave it out otherwise"
+ if (l.opt("fire_os") == true) {
+ fire += pkg
+ if (!l.has("signers")) errors += "$where: 'fire_os' needs 'signers', or Fire OS has nothing to check the APK against"
+ }
if (!seen.add(pkg)) errors += "$where: $pkg is listed twice"
}
+ if (fire.size > 1) errors += "launchers.json: 'fire_os' is on ${fire.size} launchers; Fire OS installs one"
if (errors.isEmpty()) assertEquals("launchers.json: the app drops none", entries.size, parseLaunchers(text("launchers.json")).size)
assertNone(errors)
}
diff --git a/data/index.json b/data/index.json
index ec80574..374d095 100644
--- a/data/index.json
+++ b/data/index.json
@@ -1,10 +1,10 @@
{
"schema": 1,
- "version": 2026110301,
+ "version": 2026110302,
"lists": {
"launchers": {
"file": "launchers.json",
- "sha256": "22ccc5eac974ccc7d04d85282da866307abdf46149d91787c8c844f4e7a456cf"
+ "sha256": "53bf057e8ed7eb58b517e14d1cf82392e67227ceea9a4dd670d9c11e2c6349d9"
},
"labels": {
"file": "labels.json",
diff --git a/data/launchers.json b/data/launchers.json
index 2530cd1..6b9c952 100644
--- a/data/launchers.json
+++ b/data/launchers.json
@@ -1,7 +1,9 @@
{
"schema": 1,
"launchers": [
- { "package": "com.spocky.projengmenu", "name": "Projectivy Launcher", "about": "The most popular. Rows, wallpapers and icons you can change." },
+ { "package": "com.spocky.projengmenu", "name": "Projectivy Launcher", "about": "The most popular. Rows, wallpapers and icons you can change.",
+ "signers": ["f6697bf4082ee97511e4de07863193884a015b7ab5860430321bda1042b0aadd"], "max_mb": 64,
+ "releases": "https://github.com/spocky/miproja1/releases", "fire_os": true },
{ "package": "me.efesser.flauncher", "name": "FLauncher", "about": "Simple: your apps in rows, nothing else." }
]
}