title: ADB shell monkey command changing device orientation lock
body: <p>I'm using the adb shell command <code>monkey</code> to launch one application followed by another. It all works fine, except for one odd side effect where the orientation lock on the device is set back to auto-rotate. We usually have the tablets locked to portrait only.</p>
  
  <p>Is anyone aware of any reason the <code>monkey</code> command would change the orientation lock? Or if there is a way to prevent this/set it back through the adb?</p>
  
  <pre><code>adb shell monkey -p com.application1 1
  adb shell monkey -p com.application2 1
  </code></pre>
  
  <p><strong>Tablet Info:</strong></p>
  
  <ul>
  <li>Nexus 7</li>
  <li>Android v6.0.1</li>
  </ul>