Issue Type: Bug Bug
Assignee: Christopher Orr
Components: android-emulator
Created: 08/Jan/14 6:03 PM
Description:

My notes:

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
prompt.

    #Wed Jan 08 10:23:13 EST 2014
    pingId=2977280607391965849

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
executes?

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:

    pingId=0

I should change the Android Emulator Plugin to create `ddms.cfg` with:

    pingOptIn=false
    pingId=0
Project: Jenkins
Priority: Minor Minor
Reporter: matthewlmcclure
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to