Details
-
Type:
Improvement
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: android-emulator-plugin
-
Labels:None
-
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)
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+.