title: Enable "Dont keep activities" from Developer Options from command line or Espresso test case
body: <p>I want to test if the onCreate/onDestroy flow works fine when running my Espresso tests, and I can enable "Don't keep activities" from the developer options on the device manually but I can't find a way to do it on remote devices, like firebase test farm.</p>
  
  <p>Is there any way to do this programmatically?</p>