diff --git a/README.en.md b/README.en.md index e4cd4f6..0fe0ea4 100644 --- a/README.en.md +++ b/README.en.md @@ -1291,7 +1291,19 @@ command: adb shell input text hello ``` -`Hello` now appear in the text box. +`hello` now appear in the text box. + +If you want to input Chinese, you can install [ADBKeyBoard.apk](https://github.com/senzhk/ADBKeyBoard), detailed documentation refer to [here](https://github.com/senzhk/ADBKeyBoard). + +Then execute the commands: + +```sh +# 1. Set the current input method to ADBKeyBoard +adb shell ime set com.android.adbkeyboard/.AdbIME + +# 2. Input Chinese +adb shell am broadcast -a ADB_INPUT_TEXT --es msg '你好' +``` ## View Log diff --git a/README.md b/README.md index 149fe69..62c7fa1 100644 --- a/README.md +++ b/README.md @@ -1311,13 +1311,15 @@ adb shell input text hello 现在 `hello` 出现在文本框了。 -如果输入的是中文的话,需要在手机中安装[ADBKeyboard.apk](https://github.com/senzhk/ADBKeyBoard),详细文档见[这里](https://github.com/senzhk/ADBKeyBoard) +如果想输入中文,可以在设备上安装 [ADBKeyBoard.apk](https://github.com/senzhk/ADBKeyBoard),详细文档参考 [这里](https://github.com/senzhk/ADBKeyBoard)。 然后执行命令: -``` -1. 设置当前输入法为:ADBKeyBoard + +```sh +# 1. 设置当前输入法为 ADBKeyBoard adb shell ime set com.android.adbkeyboard/.AdbIME -2. 输入中文 + +# 2. 输入中文 adb shell am broadcast -a ADB_INPUT_TEXT --es msg '你好' ```