diff --git a/android/adb/AdbUtils.cpp b/android/adb/AdbUtils.cpp index 66127d3..7ea4079 100644 --- a/android/adb/AdbUtils.cpp +++ b/android/adb/AdbUtils.cpp @@ -375,9 +375,7 @@ bool AdbUtils::inputAdbIMEText(const QString &deviceId, const QString &text) { process.setWorkingDirectory(adbDir()); process.start(adbPath(), { "-s", deviceId, - "shell", "am", "broadcast", - "-a", "ADB_INPUT_TEXT", - "--es", "msg", text + "shell", "am broadcast -a ADB_INPUT_TEXT --es msg '" + text + "'" }); if (!process.waitForStarted(5000)) { qWarning() << "[AdbUtils] Failed to start adb broadcast:" << process.errorString();