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.
Key the app-name cache like history
jesse-agent-362dcd7e063bbd9
diff --git a/app/src/main/java/app/tellyscope/data/AdbDeviceSource.kt b/app/src/main/java/app/tellyscope/data/AdbDeviceSource.ktindex 47b82aa..815c109 100644--- a/app/src/main/java/app/tellyscope/data/AdbDeviceSource.kt+++ b/app/src/main/java/app/tellyscope/data/AdbDeviceSource.kt@@ -234,8 +234,8 @@ class AdbDeviceSource(context: Context) : DeviceSource {// Older pm rejects --show-versioncode and prints no packages; list again without it.val listed = Parsers.packages(shell.shell("pm list packages --show-versioncode").output).ifEmpty { Parsers.packages(shell.shell("pm list packages").output) }- val serial = shell.shell("getprop ro.serialno").output.trim()- val names = appNames.names(serial.ifEmpty { deviceId }, listed, LabelHelper(shell, helperDex)::describe)+ // Same key as history: a placeholder serial must not give two boxes one cache.+ val names = appNames.names(key(deviceId), listed, LabelHelper(shell, helperDex)::describe)return listed.map { p ->val name = names.getValue(p.name)labels[p.name] = name.labeldiff --git a/app/src/main/java/app/tellyscope/data/AppNames.kt b/app/src/main/java/app/tellyscope/data/AppNames.ktindex a17bed9..20a1ddb 100644--- a/app/src/main/java/app/tellyscope/data/AppNames.kt+++ b/app/src/main/java/app/tellyscope/data/AppNames.kt@@ -26,7 +26,7 @@ class AppNames(private val dir: File) {private val unanswered = mutableSetOf<Pair<String, String>>()/**- * [tv] identifies the TV (its serial); [packages] is `pm list packages --show-versioncode`.+ * [tv] identifies the TV (its [historyKey]); [packages] is `pm list packages --show-versioncode`.* [describe] runs the helper on that TV for the packages it's given, null if it couldn't.*/suspend fun names(