question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

appium-adb: disableIME not working on SDK 28

See original GitHub issue

The problem

The disableIME method in http://github.com/appium/appium-adb calls adb -P 5037 shell ime enable com.google.android.apps.inputmethod/.SoftKeyboard which gives the error:

Exception occurred while executing:
java.lang.IllegalArgumentException: Unknown id: com.google.android.inputmethod.pinyin/.PinyinIME
        at com.android.server.InputMethodManagerService.setInputMethodEnabledLocked(InputMethodManagerService.java:3991)
        at com.android.server.InputMethodManagerService.handleShellCommandEnableDisableInputMethod(InputMethodManagerService.java:4962)
        at com.android.server.InputMethodManagerService.access$1600(InputMethodManagerService.java:181)
        at com.android.server.InputMethodManagerService$ShellCommandImpl.onCommand(InputMethodManagerService.java:4753)
        at android.os.ShellCommand.exec(ShellCommand.java:103)
        at com.android.server.InputMethodManagerService.onShellCommand(InputMethodManagerService.java:4719)
        at android.os.Binder.shellCommand(Binder.java:634)
        at android.os.Binder.onTransact(Binder.java:532)
        at com.android.internal.view.IInputMethodManager$Stub.onTransact(IInputMethodManager.java:486)
        at com.android.server.InputMethodManagerService.onTransact(InputMethodManagerService.java:1497)
        at android.os.Binder.execTransact(Binder.java:731)

Details

Only happens SDK 28, doesn’t happen on 25 or 23.

Code To Reproduce Issue [ Good To Have ]

Just run adb -P 5037 shell ime enable com.google.android.apps.inputmethod/.SoftKeyboard when a 28 emulator is running.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dpgrahamcommented, Apr 8, 2019

I’m trying it with a different IME. Worked locally, waiting for CI result.

0reactions
lock[bot]commented, Apr 15, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

appium-adb - npm
A wrapper over android-adb, implemented using ES6 and along with async/await . This package is mainly used by Appium to perform all adb ......
Read more >
Android design support library for API 28 (P) not working
And build failed error is: Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) ...
Read more >
Behavior changes: apps targeting API level 28+
Apps that set targetSdkVersion to API level 28 or higher must modify their apps to support these behaviors properly, where applicable to the...
Read more >
Android SDK does not include your Target SDK of 28
There were issues related to SDK components discussed in other threads, however this is not one of them. When you set the Target...
Read more >
API Levels | Android versions, SDK/API levels, version codes ...
Version SDK / API level Version code Codename Cumulative usage Year Android 13 Level 33 TIRAMISU Tiramisu 2.0% 2022 Android 12 Level 32 Android 12L...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found