Jenkins killed the job after 15 minutes.
I increased the job's "Timeout minutes" from 15 to 45 minutes.
The emulator prompts to send usage statistics to Google on every run. I
need to find a way to disable that. I don't see that problem after the
first run when I run the steps ad hoc on my own machine. I bet seeing it
is an artifact of how cleanly the Jenkins Android Emulator Plugin starts
the emulator on every run. I hope there's a way to turn it off without
compromising on starting from a clean state.
The prompt comes from DDMS. The presence of a `ddms.cfg` file in
`$ANDROID_SDK_HOME/.android` with the contents below prevents the
The Jenkins Android Emulator Plugin has code that's clearly intended to
set up `ddms.cfg` with `pingOptIn=false`. Is that not sufficient? Is it
not executing? Is something else cleaning up `ddms.cfg` after it
I deleted the `.android` directory in the Jenkins job directory and
re-ran the job. It prompted me to send usage statistics when the
emulator launched. Before dismissing the dialog, I looked at the newly
created `.android` directory. It contains a `ddms.cfg` file containing
only `pingOptIn=false`, just as I would expect from reading the Android
Emulator Plugin's source code. I suspect that that configuration was
once sufficient to prevent the dialog and isn't sufficient anymore. It
seems `pingId` is required now.
Empirically, the following `ddms.cfg` is sufficient on my machine:
I should change the Android Emulator Plugin to create `ddms.cfg` with:
I expect that will prevent the usage statistics dialog in both old and
new versions of the Android SDK, assuming that `pingOptIn=false` worked
in some older version.
I'm using the following version of `emulator` installed via Android