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.
Is there any way to do this programmatically?