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.

Escape the closing brace in the Fire alert regex

jesse-agent-232ae5ad2c5180f
diff --git a/adb/src/main/kotlin/app/tellyscope/adb/ConnectionPrompt.kt b/adb/src/main/kotlin/app/tellyscope/adb/ConnectionPrompt.kt
index 8c076cb..c98d7d0 100644
--- a/adb/src/main/kotlin/app/tellyscope/adb/ConnectionPrompt.kt
+++ b/adb/src/main/kotlin/app/tellyscope/adb/ConnectionPrompt.kt
@@ -99,7 +99,7 @@ class ConnectionPrompt(private val shell: AdbShell) {
private val FOCUS = Regex("mCurrentFocus|mFocusedWindow")
/** Fire OS's alert is a window of the system itself, `android`, with no activity. */
- private val ALERT_FOCUS = Regex("mCurrentFocus=Window\\{\\S+ u\\d+ android}")
+ private val ALERT_FOCUS = Regex("mCurrentFocus=Window\\{\\S+ u\\d+ android\\}")
/** [ALERT_FOCUS] for the TV's grep, in the call that sends the key. */
private const val ALERT_FOCUS_SH = "mCurrentFocus=Window{[^ ]* u[0-9]* android}"
/** Its OK button, the one id that says it's the remote alert and not some other system window. */