Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13205

Emulator snapshots do not work correctly with sd cards

    XMLWordPrintable

Details

    Description

      The Android emulator does not work properly with snapshots:
      http://code.google.com/p/android/issues/detail?id=27524

      One workaround to this would be for the plugin to copy away sdcard.img at the time it creates the snapshot, then copy it back when it loads the snapshot. (E.g. sdcard-snapshot-jenkins.img)
      Another option would be to recreate the sdcard.img each time before starting the emulator, since it's always blank when the plugin creates the snapshot, using mksdcard 128M file.img

      Attachments

        Activity

          Recreating the SD card at the start of each snapshot-enabled build sounds good to me. Will do.

          orrc Christopher Orr added a comment - Recreating the SD card at the start of each snapshot-enabled build sounds good to me. Will do.

          Code changed in jenkins
          User: Christopher Orr
          Path:
          src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java
          http://jenkins-ci.org/commit/android-emulator-plugin/9a329071e96a7e26b99cbc237082daa83178364f
          Log:
          [FIXED JENKINS-13205] Ensure AVDs starting from snapshot have a clean SD card.

          Compare: https://github.com/jenkinsci/android-emulator-plugin/compare/4a1fee5...9a32907

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christopher Orr Path: src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java http://jenkins-ci.org/commit/android-emulator-plugin/9a329071e96a7e26b99cbc237082daa83178364f Log: [FIXED JENKINS-13205] Ensure AVDs starting from snapshot have a clean SD card. Compare: https://github.com/jenkinsci/android-emulator-plugin/compare/4a1fee5...9a32907
          dogfood dogfood added a comment -

          Integrated in plugins_android-emulator #29
          [FIXED JENKINS-13205] Ensure AVDs starting from snapshot have a clean SD card. (Revision 9a329071e96a7e26b99cbc237082daa83178364f)

          Result = SUCCESS
          Christopher Orr :
          Files :

          • src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java
          dogfood dogfood added a comment - Integrated in plugins_android-emulator #29 [FIXED JENKINS-13205] Ensure AVDs starting from snapshot have a clean SD card. (Revision 9a329071e96a7e26b99cbc237082daa83178364f) Result = SUCCESS Christopher Orr : Files : src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java

          This has been released in version 2.2 of the plugin.

          orrc Christopher Orr added a comment - This has been released in version 2.2 of the plugin.

          People

            orrc Christopher Orr
            jorgenpt Jørgen Tjernø
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: