Skip to content

Android: HarkRecognitionService silently drops callbacks #10

@0xharkirat

Description

@0xharkirat

Priority: Medium

All three callback methods in HarkRecognitionService (onStartListening, onCancel, onStopListening) are empty. If any system component binds to this service and starts recognition, the callback is never invoked — the caller will wait indefinitely.

Recommended fix

At minimum, call callback?.error(SpeechRecognizer.ERROR_SERVICE) in onStartListening to signal this service does not handle recognition.

Files

  • android/app/src/main/kotlin/com/oacp/hark/HarkRecognitionService.kt (lines 15-21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions