title: Execute shell cmd "echo test > /sdcard/testlog.txt" by executeShellCommand in UiAutomator 2.0
body: <p>I try to create a new file with shell cmd: </p>
  
  <pre><code>echo test &gt; /sdcard/testlog.txt
  </code></pre>
  
  <p>But when I do it with executeShellCommand in UiAutomator 2.0.
  The result will be only <code>echo "test &gt; /sdcard/testlog.txt"</code> instead of create testlog.txt with content: test.</p>
  
  <p>How can I execute such shell cmd? </p>
  
  <p>The code is:</p>
  
  <pre><code>      String cmd = "echo test &gt; /sdcard/testlog.txt";
        Log.i("AndroidUiTool2", mDevice.executeShellCommand(cmd));
  </code></pre>
  
  <p>The result is:</p>
  
  <pre><code>04-11 14:55:08.559 21520-21550/com.transsion.smoketest I/AndroidUiTool2: test &gt; /sdcard/testlog.txt
  </code></pre>