-
-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The appium-android-driver cannot unlock the screen on some devices #146
Comments
Interesting! Thank you for the detailed update. I'll take a look at this! |
Thank @imurchie That's seem a critical issue. The test script always failed if the screen cannot unlocked |
9 tasks
+1 |
Issue moved to appium/appium #7401 via ZenHub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[email protected]
Issue devices:
Other devices still work well
Note: In the past, the Galaxy S4 still works well, but after upgrade to newer OS version, it doesn't work any more
Issue: "Encountered internal error running command: Error: Screen did not unlock successfully"
Expectation: The screen should be unlocked
After do some investigating, found that the adb command to start the unlock doesn't work
adb with args: ["-P",5037,"-s","xxxxxxxxxx","shell","am","start","-n","io.appium.unlock/.Unlock","-S","-a","android.intent.action.MAIN","-c","android.intent.category.LAUNCHER","-f","0x10200000"]
I can reproduce the issue by adb command
adb -s shell am start -n 'io.appium.unlock/.Unlock' -S -a 'android.intent.action.MAIN' -c 'android.intent.category.LAUNCHER' -f '0x10200000'
Some addresses
My solution, use 'adb shell am force-stop' to kill 'unlock' and 'adb shell am start' to restart 'unlock' app. I tested on issue devices and confirm it works well
Weird that after force-stop, we should call 'am start' 2 times to invoke the 'unlock' app. That's should be the reason why '-S' option doesn't work
The text was updated successfully, but these errors were encountered: