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

Automatically unlock emulators on Android M+

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Starting in Android M, there's an official way to unlock the screen when starting an emulator:
      The command adb shell wm dismiss-keyguard will, as it says, dismiss the keyguard.

      So we should use this for emulators running API 23 and above, and otherwise fallback to the existing not-so-reliable method.

      (Source: https://plus.google.com/+TorNorbye/posts/1SpmREBVBy6)

        Attachments

          Activity

          Hide
          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/AndroidEmulator.java
          http://jenkins-ci.org/commit/android-emulator-plugin/bfabc6714f0d83a01e39a6951adb445d8d3854e0
          Log:
          [FIXED JENKINS-30849] Use dedicated screen unlock command on Android 6+.

          Show
          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/AndroidEmulator.java http://jenkins-ci.org/commit/android-emulator-plugin/bfabc6714f0d83a01e39a6951adb445d8d3854e0 Log: [FIXED JENKINS-30849] Use dedicated screen unlock command on Android 6+.
          Hide
          orrc Christopher Orr added a comment -

          This has been released in version 2.14 of the plugin.

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

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              orrc Christopher Orr
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: