title: adb change developer settings options programmatically
body: <p>How to change <em>Do not keep activities</em> in espresso testing? I need to know the name of this command in adb. How can I access all available developer settings commands from adb?</p>
  
  <p>I need something like following commands; </p>
  
  <pre><code>getInstrumentation().getUiAutomation().executeShellCommand("settings put global window_animation_scale 0.0");
  </code></pre>
  
  <p>or</p>
  
  <pre><code>$ adb shell settings put global wifi_on 0
  </code></pre>