Skip to content

Commit 8be6c38

Browse files
Use foreground current Termux session for commands
1 parent ab1b413 commit 8be6c38

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/kotlin/com/google/ai/sample/ScreenOperatorAccessibilityService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,8 @@ class ScreenOperatorAccessibilityService : AccessibilityService() {
594594
putExtra("com.termux.RUN_COMMAND_PATH", "/data/data/com.termux/files/usr/bin/bash")
595595
putExtra("com.termux.RUN_COMMAND_ARGUMENTS", arrayOf("-lc", trimmedCommand))
596596
putExtra("com.termux.RUN_COMMAND_WORKDIR", "/data/data/com.termux/files/home")
597-
putExtra("com.termux.RUN_COMMAND_BACKGROUND", true)
598-
putExtra("com.termux.RUN_COMMAND_SESSION_ACTION", 0)
597+
putExtra("com.termux.RUN_COMMAND_BACKGROUND", false)
598+
putExtra("com.termux.RUN_COMMAND_SESSION_ACTION", 1)
599599
putExtra("com.termux.RUN_COMMAND_RUNNER", "app-shell")
600600
putExtra("com.termux.RUN_COMMAND_PENDING_INTENT", pendingResultIntent)
601601
putExtra("com.termux.RUN_COMMAND_BACKGROUND_CUSTOM_LOG_LEVEL", 0)

0 commit comments

Comments
 (0)