Skip to content

Add Expert Mode debug screen for getevent input device monitoring#2115

Closed
keymapper-ai wants to merge 2 commits intodevelopfrom
claude/implement-issue-2081-oMgaW
Closed

Add Expert Mode debug screen for getevent input device monitoring#2115
keymapper-ai wants to merge 2 commits intodevelopfrom
claude/implement-issue-2081-oMgaW

Conversation

@keymapper-ai
Copy link
Copy Markdown
Collaborator

Summary

This PR adds a new debug screen that allows users to view raw input device information and record input events using the getevent command. This feature requires Expert Mode to be enabled and provides developers with a tool to diagnose input device issues.

Key Changes

  • New GetEventScreen composable: A full-featured debug UI with:

    • Display of input device information and event logs
    • Record/stop recording functionality for capturing live input events
    • Copy to clipboard and save to file options
    • Expert Mode requirement check with setup prompt
    • Auto-scrolling output and loading indicators
  • New GetEventViewModel: Manages the debug screen state and logic:

    • Executes getevent shell commands via ADB
    • Handles device info loading on Expert Mode connection
    • Manages recording start/stop with process termination
    • Provides clipboard and file export functionality
    • Monitors Expert Mode connection status
  • Navigation integration:

    • Added NavDestination.GetEvent route
    • Integrated into settings screen with new menu option
    • Added navigation handler in BaseMainNavHost
  • UI/String resources: Added 11 new string resources for the debug screen labels and messages

Implementation Details

  • The screen automatically loads device information when Expert Mode becomes available
  • Recording uses a 5-minute timeout to prevent indefinite execution
  • Output is automatically scrolled to the bottom as new content arrives
  • File exports are saved to private app storage with timestamp-based naming
  • The FAB changes color (red) when recording is active for visual feedback
  • Expert Mode status is monitored via SystemBridgeConnectionManager

https://claude.ai/code/session_01QG84he6gs9tqgY9QrFhtKb

Creates a new debug screen accessible from Settings > Debugging that shows
raw getevent output using the system bridge. Displays getevent -il on open
(device info) and supports recording getevent -lt events via a red record/stop
FAB. Output can be copied to clipboard or saved to file. Requires Expert Mode.

https://claude.ai/code/session_01QG84he6gs9tqgY9QrFhtKb
@sds100 sds100 self-requested a review April 14, 2026 08:08
@sds100 sds100 closed this Apr 14, 2026
@sds100 sds100 deleted the claude/implement-issue-2081-oMgaW branch April 14, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants