Appium 1.4.1: Unable to unlock the screen in LG-G3

Env:
Appium - 1.4.1
LG-G3

Steps to reproduce -

  1. Go to Settings -> Display -> Lock Screen -> Select screen lock and select Swipe
  2. Press the power button to turn off the screen
  3. Start the appium server with appropriate capabilities

2015-06-02 17:16:39:213 - : [debug] executing cmd: /Users/erahman/android_sdk_ndk/sdk/platform-tools/adb -s LGMS631535eee21 shell “dumpsys window”
2015-06-02 17:16:39:322 - : Unlocking screen
2015-06-02 17:16:39:323 - : [debug] Screen is locked, trying to unlock
2015-06-02 17:16:39:323 - : [debug] Getting device API level
2015-06-02 17:16:39:324 - : [debug] executing cmd: /Users/erahman/android_sdk_ndk/sdk/platform-tools/adb -s LGMS631535eee21 shell “getprop ro.build.version.sdk”
2015-06-02 17:16:39:374 - : [debug] Device is at API Level 21
2015-06-02 17:16:39:375 - : [debug] executing cmd: /Users/erahman/android_sdk_ndk/sdk/platform-tools/adb -s LGMS631535eee21 shell “am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n io.appium.unlock/.Unlock”
2015-06-02 17:16:39:532 - : [debug] [BOOTSTRAP] [debug] Emitting system alert message
2015-06-02 17:16:39:532 - : [debug] Emitting alert message…
2015-06-02 17:16:40:706 - : [debug] executing cmd: /Users/erahman/android_sdk_ndk/sdk/platform-tools/adb -s LGMS631535eee21 shell “dumpsys window”
2015-06-02 17:16:41:787 - : [debug] Screen is locked, trying to unlock
2015-06-02 17:16:41:788 - : [debug] Getting device API level
2015-06-02 17:16:41:788 - : [debug] executing cmd: /Users/erahman/android_sdk_ndk/sdk/platform-tools/adb -s LGMS631535eee21 shell “getprop ro.build.version.sdk”
2015-06-02 17:16:41:833 - : [debug] Device is at API Level 21
2015-06-02 17:16:41:834 - : [debug] executing cmd: /Users/erahman/android_sdk_ndk/sdk/platform-tools/adb -s LGMS631535eee21 shell “am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n io.appium.unlock/.Unlock”
2015-06-02 17:16:43:187 - : [debug] executing cmd: /Users/erahman/android_sdk_ndk/sdk/platform-tools/adb -s LGMS631535eee21 shell “dumpsys window”
…Several Retries…
2015-06-02 17:16:50:404 - : [debug] Screen is unlocked, continuing // Does not unlock at the end