Skip to content

Unlock Device

Unlocks the device screen with multiple authentication methods.

  • Wakes up device screen
  • Performs unlock gesture (swipe, PIN, or pattern)
  • Verifies device is unlocked
OptionTypeDescription
MethodSelectpower_swipe, power_only, swipe_only, swipe_home, pin, pattern
Use PowerBooleanPress power button first (default: true)
Swipe XNumberHorizontal swipe position (pixels)
Swipe Y StartNumberSwipe start Y position (pixels)
Swipe Y EndNumberSwipe end Y position (pixels)
PINTextPIN code for PIN unlock method
Pattern PointsTextPattern coordinates (format: “x1,y1 x2,y2 x3,y3”)
Wait AfterNumberSeconds to wait after unlock (default: 1)
Max RetriesNumberRetry attempts (default: 3)
Retry DelayNumberSeconds between retries (default: 0.5)
Power SleepNumberSeconds after power press (default: 0.7)
Verify UnlockBooleanConfirm unlock succeeded (default: true)
Force UnlockBooleanFor debug/testing (default: false)
MethodDescription
power_swipePress power + swipe up
power_onlyJust press power button
swipe_onlyJust swipe (screen already on)
swipe_homeSwipe + press home
pinEnter PIN code
patternDraw pattern
  • At the start of scheduled workflows
  • After Lock Device module
  • When device may be locked