Is it possible to install an app, but not immediately start it (on Android)

We have an app, that the very first time it is run, it shows a legal disclaimer. Once the disclaimer is accepted, a shared setting is updated. On subsequent runs, if this setting has previously been set, the disclaimer will not be shown.

I want to write two tests. For the first test, the new installation scenario, I want to launch the app, and see if the disclaimer is shown. This was relatively easy, and I have it working.

For the second test, I want to “adb push” a settings file, after installing the app, but before launching it.

Any help would be appreciated.

And, I think I have the answer to my own question:

autoLaunch = false;