Adb Command for Password Pattern(TouchAction)

Hi All,

I want a scenerio where i wake my phone from adb command and unlock phone from it and start my script . I have used the swipe and its working fine for me .I just want to know how can i make a multitouch action through adb command.

I have used following approach to unlock phone using swipe:-

  1. adb devices
  2. adb shell input keyevent KEYCODE_POWER :- To press the power Button of an android device.
  3. adb shell input swipe x1 y1 x2 y2 :- For Swipe (x1,y1 are initial coordinates x2,y2 are the end or destination Coordinates).

My ToucAction Code for swipe:-
TouchAction(driver1).press(101,414).waitAction(1000).moveTo(275,0).waitAction(1000).moveTo(-265,260).moveTo(270,0).waitAction(2000).release().release().perform();