如何获取通过 ADB 使用的当前键盘(当前 IME)

How do I get the current keyboard (current IME) being used via ADB

目前,我知道如何使用命令 adb shell ime set [keyboard IME] 设置要使用的键盘。但问题是如何获取当前正在使用的键盘?

我打算使用 madb C# library 幸运的是它有一个 ExecuteRemoteCommand 方法允许我执行 shell 命令(有点像 adb shell).

adb shell settings get secure default_input_method