diff --git a/lib/tools/adb-commands.js b/lib/tools/adb-commands.js
index <HASH>..<HASH> 100644
--- a/lib/tools/adb-commands.js
+++ b/lib/tools/adb-commands.js
@@ -9,6 +9,8 @@ import Logcat from '../logcat';
 import { sleep, waitForCondition } from 'asyncbox';
 import { SubProcess } from 'teen_process';
 import B from 'bluebird';
+import { quote } from 'shell-quote';
+
 
 const SETTINGS_HELPER_ID = 'io.appium.settings';
 const WIFI_CONNECTION_SETTING_RECEIVER = `${SETTINGS_HELPER_ID}/.receivers.WiFiConnectionSettingReceiver`;
@@ -1541,12 +1543,14 @@ methods.screenrecord = function (destination, options = {}) {
     cmd.push('--bugreport');
   }
   cmd.push(destination);
-  log.debug(`Building screenrecord process with the command line: adb shell ${cmd.join(' ')}`);
-  return new SubProcess(this.executable.path, [
+
+  const fullCmd = [
     ...this.executable.defaultArgs,
     'shell',
     ...cmd
-  ]);
+  ];
+  log.debug(`Building screenrecord process with the command line: adb ${quote(fullCmd)}`);
+  return new SubProcess(this.executable.path, fullCmd);
 };
 
 export default methods;
Improve logging for the screenrecord command (#<I>)

* Improve logging for the screenrecord command



* Use shell-quote call