Skip to content

fix: declare input service as accessibility tool - #5

Merged
surendrajat merged 2 commits into
masterfrom
fix/inputservice-accessibility-tool-android16
Jun 12, 2026
Merged

surendrajat merged 2 commits into
masterfrom
fix/inputservice-accessibility-tool-android16

Conversation

@surendrajat

Copy link
Copy Markdown
Collaborator

Fixes VNC clicks on WebView, Android 16

knoxvnc injects remote clicks via AccessibilityService.dispatchGesture().
On Android 16, Chromium WebView only acts on injected gestures that carry
FLAG_IS_ACCESSIBILITY_TOOL, which the OS sets only when the injecting service
declares android:isAccessibilityTool="true". Without it, taps reach native
views but are silently dropped inside WebView web content (dropdown/buttons
unclickable), while keyboard input still works.

*fixes VNC clicks on WebView, Android 16

knoxvnc injects remote clicks via AccessibilityService.dispatchGesture().
On Android 16, Chromium WebView only acts on injected gestures that carry
FLAG_IS_ACCESSIBILITY_TOOL, which the OS sets only when the injecting service
declares android:isAccessibilityTool="true". Without it, taps reach native
views but are silently dropped inside WebView web content (dropdown/buttons
unclickable), while keyboard input still works.

This comment was marked as resolved.

@sammyjeng sammyjeng left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, required to allow for injecting knoxvnc events into custom webview.

@surendrajat
surendrajat merged commit e8a1b86 into master Jun 12, 2026
4 checks passed
@surendrajat
surendrajat deleted the fix/inputservice-accessibility-tool-android16 branch June 12, 2026 07:25
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