title: adb shell input text with space
body: <p>How to send text with spaces like <strong>"some text"</strong> using <code>adb shell input text</code> ?</p>
  
  <p>Found following solution</p>
  
  <p><code>adb shell input text "some%stext"</code> is working fine. <strong>But any easy way to replace space with %s?</strong></p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>$ adb shell input text "some text"
  Error: Invalid arguments for command: text
  Usage: input [&lt;source&gt;] &lt;command&gt; [&lt;arg&gt;...]
  
  The sources are: 
        keyboard
        mouse
        joystick
        touchnavigation
        touchpad
        trackball
        dpad
        stylus
        gamepad
        touchscreen
  
  The commands and default sources are:
        text &lt;string&gt; (Default: touchscreen)
        keyevent [--longpress] &lt;key code number or name&gt; ... (Default: keyboard)
        tap &lt;x&gt; &lt;y&gt; (Default: touchscreen)
        swipe &lt;x1&gt; &lt;y1&gt; &lt;x2&gt; &lt;y2&gt; [duration(ms)] (Default: touchscreen)
        press (Default: trackball)
        roll &lt;dx&gt; &lt;dy&gt; (Default: trackball)
  </code></pre>