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.

Keep the report-log test on the TV's failed launch

jesse-agent-232ccbba126eb61
diff --git a/app/src/test/java/app/tellyscope/ReportFlowTest.kt b/app/src/test/java/app/tellyscope/ReportFlowTest.kt
index 4bf2210..c58b84e 100644
--- a/app/src/test/java/app/tellyscope/ReportFlowTest.kt
+++ b/app/src/test/java/app/tellyscope/ReportFlowTest.kt
@@ -6,6 +6,7 @@ import androidx.lifecycle.viewModelScope
import app.tellyscope.adb.AppFacts
import app.tellyscope.adb.Reports
import app.tellyscope.adb.TvFacts
+import app.tellyscope.data.AppInfo
import app.tellyscope.data.Device
import app.tellyscope.data.DeviceSource
import app.tellyscope.data.DeviceState
@@ -46,6 +47,8 @@ private class ReportTv : DeviceSource by FakeDeviceSource(FakeDeviceSource.Scena
)
override fun live(deviceId: String) = emptyFlow<Snapshot>()
+ // No app list read yet, so a launch goes to the TV and fails there.
+ override suspend fun apps(deviceId: String) = emptyList<AppInfo>()
override suspend fun launch(deviceId: String, packageName: String) = false
override suspend fun facts(deviceId: String) = if (readable) facts else throw java.io.IOException("gone")
}