Skip to content

fix: fix keyboard unusable on android-36#84

Merged
senzhk merged 1 commit into
senzhk:masterfrom
Rezisn:fix/fix-keyboard-unusable-on-android-36---
Apr 23, 2026
Merged

fix: fix keyboard unusable on android-36#84
senzhk merged 1 commit into
senzhk:masterfrom
Rezisn:fix/fix-keyboard-unusable-on-android-36---

Conversation

@Rezisn
Copy link
Copy Markdown
Contributor

@Rezisn Rezisn commented Apr 23, 2026

Summary

ADB Keyboard stopped receiving am broadcast intents on newer Android versions (including API 36 emulators) because dynamic BroadcastReceiver registration did not follow API 33+ rules and only ran when the soft input view was created. This change registers the receiver when the IME service starts and uses the correct export flag so shell/ADB deliveries work.

Files changed

keyboardservice/src/main/java/com/android/adbkeyboard/AdbIME.java

Testing

  • Install the built APK, enable and set ADB Keyboard as the current IME (adb shell ime set com.android.adbkeyboard/.AdbIME).
  • Open an app with a focused text field.
  • Run: adb shell am broadcast -a ADB_INPUT_TEXT --es msg 'バスケ'

Video

Screen.Recording.2026-04-23.at.11.51.27.mov

@Rezisn Rezisn changed the title fix keyboard unusable on android-36 fix: fix keyboard unusable on android-36 Apr 23, 2026
@Rezisn Rezisn marked this pull request as ready for review April 23, 2026 02:52
@senzhk senzhk merged commit 65874bf into senzhk:master Apr 23, 2026
1 check passed
@senzhk
Copy link
Copy Markdown
Owner

senzhk commented Apr 23, 2026

Thanks!

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.

2 participants