"No uiautomator process found to kill, continuing..."

Hello,
I’m getting an error when trying to launch a native (android) app. Below is a short description, followed by test environment and extended log output. Your response greatly appreciated.

At the appium server (log), the following error occurs:
[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“ps”,“uiautomator”]

[ADB] No uiautomator process found to kill, continuing…

[UiAutomator] UiAutomator exited unexpectedly with code 0, signal null

This occurs, when trying to launch a native app on an Android device, the test script (in Python) hangs after issuing:

’ driver = webdriver.Remote(‘http://localhost:4723/wd/hub’, desired_caps)"

Test Environment:
I have appium UI (for Mac) v 1.5.3 (Ara) running on masOS Sierra (10.12.2). Also seeing (from Mac terminal) appium v 1.6.3.

This is the extended appium log
Launching Appium with command: export ANDROID_HOME="/Users/Mark/Library/Android/sdk"; ‘/Applications/Appium.app/Contents/Resources/node/bin/node’ appium/build/lib/main.js --debug-log-spacing --automation-name “Appium” --platform-name “Android” --platform-version “4.1” --no-reset

[Appium] Welcome to Appium v1.5.3

[Appium] Non-default server args:

[Appium] debugLogSpacing: true

[Appium] platformName: ‘Android’
[Appium] platformVersion: ‘4.1’
[Appium] automationName: ‘Appium’
[Appium] noReset: true
[Appium] Deprecated server args:
[Appium] --platform-name => --default-capabilities ‘{“platformName”:“Android”}’
[Appium] --platform-version => --default-capabilities ‘{“platformVersion”:“4.1”}’
[Appium] --automation-name => --default-capabilities ‘{“automationName”:“Appium”}’
[Appium] --no-reset => --default-capabilities ‘{“noReset”:true}’
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:

[Appium] platformName: ‘Android’

[Appium] platformVersion: ‘4.1’
[Appium] automationName: ‘Appium’
[Appium] noReset: true

[Appium] Appium REST http interface listener started on 0.0.0.0:4723

[HTTP] --> GET /wd/hub/status {}

[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[MJSONWP] Responding to client with driver.getStatus() result: {“build”:{“version”:“1.5.3”…

[HTTP] <-- GET /wd/hub/status 200 22 ms - 83

[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“deviceName”:“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“app”:"/Users/Mark/Downloads/zkclock-debug.apk",“platformName”:“Android”,“platformVersion”:“4.1”},“requiredCapabilities”:{}}

[MJSONWP] Calling AppiumDriver.createSession() with args: [{“deviceName”:"ZPAD80-ff84…

[Appium] Creating new AndroidDriver session

[Appium] Capabilities:
[Appium] deviceName: ‘ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f’

[Appium] app: ‘/Users/Mark/Downloads/zkclock-debug.apk’
[Appium] platformName: ‘Android’
[Appium] platformVersion: ‘4.1’
[Appium] automationName: ‘Appium’
[Appium] noReset: true

[BaseDriver] Session created with session id: 59d0ed1d-bc30-4155-a7f6-7cfcef24cc77

[debug] [AndroidDriver] Getting Java version

[AndroidDriver] Java version is: 1.8.0_111

[ADB] Checking whether adb is present

[ADB] Using adb from /Users/Mark/Library/Android/sdk/platform-tools/adb

[AndroidDriver] Retrieving device list

[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices…

[debug] [ADB] 1 device(s) connected
[AndroidDriver] Looking for a device with Android 4.1
[debug] [ADB] Setting device id to ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices…

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“getprop”,“ro.build.version.release”]

[AndroidDriver] Using device: ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f

[ADB] Checking whether adb is present

[ADB] Using adb from /Users/Mark/Library/Android/sdk/platform-tools/adb
[debug] [ADB] Setting device id to ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f

[BaseDriver] Using local app ‘/Users/Mark/Downloads/zkclock-debug.apk’
[debug] [AndroidDriver] Checking whether app is actually present
[AndroidDriver] Starting Android session
[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“wait-for-device”]

[debug] [ADB] Getting connected devices…

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“echo”,“ping”]

[debug] [Logcat] Starting logcat capture

[debug] [AndroidDriver] Pushing settings apk to device…

[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“install”,"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-android-driver/node_modules/io.appium.settings/bin/settings_apk-debug.apk"]

[debug] [AndroidDriver] Pushing unlock helper app to device…

[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“install”,"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-android-driver/node_modules/appium-unlock/bin/unlock_apk-debug.apk"]

[ADB] Getting device platform version

[debug] [ADB] Getting connected devices…

[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“getprop”,“ro.build.version.release”]

[debug] [ADB] Getting connected devices…

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“dumpsys”,“window”]

[AndroidDriver] Screen already unlocked, doing nothing

[debug] [AndroidDriver] Parsing package and activity from app manifest

[ADB] Checking whether aapt is present
[ADB] Using aapt from /Users/Mark/Library/Android/sdk/build-tools/25.0.0/aapt
[ADB] Extracting package and launch activity from manifest
[debug] [ADB] badging package: com.example.testzdk
[debug] [ADB] badging act: com.swipeclock.android.activities.SplashActivity
[debug] [AndroidDriver] Parsed package and activity are: com.example.testzdk/com.swipeclock.android.activities.SplashActivity

[AndroidDriver] Remote apk path is /data/local/tmp/2fd6f5122a7852da4642088930c42697.apk

[debug] [ADB] Getting connected devices…

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“ls”,"/data/local/tmp/2fd6f5122a7852da4642088930c42697.apk"]

[debug] [AndroidDriver] Checking if app is installed

[debug] [ADB] Getting install status for com.example.testzdk
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“getprop”,“ro.build.version.sdk”]

[debug] [ADB] Device API level: 16

[debug] [ADB] Getting connected devices…

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“pm”,“list”,“packages”,"-3",“com.example.testzdk”]

[debug] [ADB] App is installed

[debug] [AndroidDriver] Extracting strings from apk /Users/Mark/Downloads/zkclock-debug.apk null /var/folders/dp/rgdr_mks1js5srlxfn4ng9g00000gp/T/com.example.testzdk

[debug] [ADB] Extracting strings for language: default

[debug] [ADB] Device API level: 16

[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“getprop”,“persist.sys.language”]

[debug] [ADB] Current device property ‘persist.sys.language’:

[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“getprop”,“ro.product.locale.language”]

[debug] [ADB] Current device property ‘ro.product.locale.language’: en

[HTTP] --> GET /wd/hub/status {}

[MJSONWP] Calling AppiumDriver.getStatus() with args: []

[debug] [ADB] No strings.xml for language ‘en’, getting default strings.xml

[debug] [ADB] Reading strings from converted strings.json

[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“push”,"/var/folders/dp/rgdr_mks1js5srlxfn4ng9g00000gp/T/com.example.testzdk/strings.json","/data/local/tmp"]

[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4724 to device: 4724
[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“forward”,“tcp:4724”,“tcp:4724”]
[debug] [UiAutomator] Starting UiAutomator
[debug] [UiAutomator] Moving to state ‘starting’
[debug] [UiAutomator] Parsing uiautomator jar
[debug] [UiAutomator] Found jar name: ‘AppiumBootstrap.jar’
[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“push”,"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-android-driver/node_modules/appium-android-bootstrap/bootstrap/bin/AppiumBootstrap.jar","/data/local/tmp/"]

[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Getting connected devices…

[debug] [ADB] 1 device(s) connected

[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“ps”,“uiautomator”]

[ADB] No uiautomator process found to kill, continuing…

[UiAutomator] UiAutomator exited unexpectedly with code 0, signal null

UI Automator is no longer supported with appium 1.6.3 you need to start using XCUITest

Perhaps you can elaborate on this? At present this is the message which comes up by default, meaning that uiautomator has not been started?

Why does the message regarding uiautomatorviewer appear when starting a test script? How must it be disabled and replaced by xcuitest?

I’m just guessing, but you stated that you are seeing (from Mac terminal) appium v 1.6.3, which is a version of Appium that doesn’t support uiautomator.

How did you start the appium server?
What capabilities are you passing.

Thanks

DD

Let me recap:

  1. The appium server is started from the UI, by clicking the ‘Launch’ button.

  2. This is the desired capabilities setup and how I’m launching the test script:

     desired_caps = {}
     desired_caps['platformName'] = 'Android'
     desired_caps['platformVersion'] = '4.1'
     desired_caps['deviceName'] = 'ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f'
     desired_caps['app'] = 'C:\\test\\zkclock-debug.apk'
     self.driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
    
  3. after launching the test, and the 'webdriver.Remote … ’ line of code is executed (i.e. the test is launched), there appears this message, both at the appium server (UI and terminal session) log console:

debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“push”,"/var/folders/dp/rgdr_mks1js5srlxfn4ng9g00000gp/T/com.example.testzdk/strings.json","/data/local/tmp"]

[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4724 to device: 4724
[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“forward”,“tcp:4724”,“tcp:4724”]
[debug] [UiAutomator] Starting UiAutomator
[debug] [UiAutomator] Moving to state ‘starting’
[debug] [UiAutomator] Parsing uiautomator jar
[debug] [UiAutomator] Found jar name: ‘AppiumBootstrap.jar’
[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“push”,"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-android-driver/node_modules/appium-android-bootstrap/bootstrap/bin/AppiumBootstrap.jar","/data/local/tmp/"]

[debug] [ADB] Attempting to kill all uiautomator processes

[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“ps”,“uiautomator”]

[ADB] No uiautomator process found to kill, continuing…

[debug] [UiAutomator] Starting UIAutomator
[debug] [ADB] Creating ADB subprocess with args: -P, 5037, -s, ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f, shell, uiautomator, runtest, AppiumBootstrap.jar, -c, io.appium.android.bootstrap.Bootstrap, -e, pkg, com.example.testzdk, -e, disableAndroidWatchers, false, -e, acceptSslCerts, false

[UiAutomator] UiAutomator exited unexpectedly with code 0, signal null

[debug] [UiAutomator] Moving to state ‘stopped’

  1. Whereupon it appears appium defaults to loading/using uiautomator?

  2. While the appium UI is v1.5.3, I did install v1.6.3 and see this version from a MAC terminal (appium -v)?

Let me recap:

  1. The appium server is started from the UI, by clicking the ‘Launch’ button.

  2. This is the desired capabilities setup and how I’m launching the test script:

     desired_caps = {}
     desired_caps['platformName'] = 'Android'
     desired_caps['platformVersion'] = '4.1'
     desired_caps['deviceName'] = 'ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f'
     desired_caps['app'] = 'C:\\test\\zkclock-debug.apk'
     self.driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
    
  3. after launching the test, and the 'webdriver.Remote … ’ line of code is executed (i.e. the test is launched), there appears this message, both at the appium server (UI and terminal session) log console:

debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“push”,"/var/folders/dp/rgdr_mks1js5srlxfn4ng9g00000gp/T/com.example.testzdk/strings.json","/data/local/tmp"]

[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4724 to device: 4724
[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“forward”,“tcp:4724”,“tcp:4724”]
[debug] [UiAutomator] Starting UiAutomator
[debug] [UiAutomator] Moving to state ‘starting’
[debug] [UiAutomator] Parsing uiautomator jar
[debug] [UiAutomator] Found jar name: ‘AppiumBootstrap.jar’
[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“push”,"/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-android-driver/node_modules/appium-android-bootstrap/bootstrap/bin/AppiumBootstrap.jar","/data/local/tmp/"]

[debug] [ADB] Attempting to kill all uiautomator processes

[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running /Users/Mark/Library/Android/sdk/platform-tools/adb with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“ps”,“uiautomator”]

[ADB] No uiautomator process found to kill, continuing…

[debug] [UiAutomator] Starting UIAutomator
[debug] [ADB] Creating ADB subprocess with args: -P, 5037, -s, ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f, shell, uiautomator, runtest, AppiumBootstrap.jar, -c, io.appium.android.bootstrap.Bootstrap, -e, pkg, com.example.testzdk, -e, disableAndroidWatchers, false, -e, acceptSslCerts, false

[UiAutomator] UiAutomator exited unexpectedly with code 0, signal null

[debug] [UiAutomator] Moving to state ‘stopped’

  1. Whereupon it appears appium defaults to loading/using uiautomator?

  2. While the appium UI is v1.5.3, I did install v1.6.3 and see this version from a MAC terminal (appium -v)?

There currently isn’t a UI for v1.6.3. You have to stop and start the server through terminal.

What happens when you open a terminal and type in: appium

Does it look like:

[Appium] Welcome to Appium v1.6.3 (REV 2176894a5be5da17a362bf3f20678641a78f4b69)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723

The same error …

Last login: Tue Jan 10 15:40:33 on ttys000
itadmins-MacBook-Pro:~ Mark$ appium
[Appium] Welcome to Appium v1.6.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {“requiredCapabilities”:{},“desiredCapabilities”:{“platformName”:“Android”,“app”:"/Users/Mark/Downloads/zkclock-debug.apk",“platformVersion”:“4.1”,“deviceName”:“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“platformName”:“Android”,“app”:"/Users/Mark/Downloads/zkclock-debug.apk",“platformVersion”:“4.1”,“deviceName”:“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”},{},null,null,null]
[Appium] Creating new AndroidDriver session
[Appium] Capabilities:
[Appium] platformName: ‘Android’
[Appium] app: ‘/Users/Mark/Downloads/zkclock-debug.apk’
[Appium] platformVersion: ‘4.1’
[Appium] deviceName: ‘ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f’
[debug] [AndroidDriver] AndroidDriver version: 1.10.38
[BaseDriver] Session created with session id: 1f43ad94-7d14-47d2-bae5-4185f367c476
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_111
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/Mark/Library/Android/sdk/platform-tools/adb
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[AndroidDriver] Looking for a device with Android ‘4.1’
[debug] [ADB] Setting device id to ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“getprop”,“ro.build.version.release”]
[AndroidDriver] Using device: ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/Mark/Library/Android/sdk/platform-tools/adb
[debug] [ADB] Setting device id to ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f
[BaseDriver] Using local app ‘/Users/Mark/Downloads/zkclock-debug.apk’
[debug] [AndroidDriver] Checking whether app is actually present
[AndroidDriver] Starting Android session
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“wait-for-device”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“echo”,“ping”]
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing settings apk to device…
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“install”,"/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/bin/settings_apk-debug.apk"]
[debug] [AndroidDriver] Pushing unlock helper app to device…
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“install”,"/usr/local/lib/node_modules/appium/node_modules/appium-unlock/bin/unlock_apk-debug.apk"]
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“getprop”,“ro.build.version.release”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“dumpsys”,“window”]
[AndroidDriver] Unlocking screen
[debug] [AndroidDriver] Screen is locked, trying to unlock
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“am”,“force-stop”,“io.appium.unlock”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“getprop”,“ro.build.version.sdk”]
[debug] [ADB] Device API level: 16
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“am”,“start”,"-W","-n",“io.appium.unlock/.Unlock”,"-a",“android.intent.action.MAIN”,"-c",“android.intent.category.LAUNCHER”,"-f",“0x10200000”]
[debug] [ADB] Device API level: 16
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“am”,“start”,"-W","-n",“io.appium.unlock/.Unlock”,"-a",“android.intent.action.MAIN”,"-c",“android.intent.category.LAUNCHER”,"-f",“0x10200000”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“dumpsys”,“window”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“dumpsys”,“window”]
[debug] [AndroidDriver] Screen unlocked successfully
[debug] [AndroidDriver] Parsing package and activity from app manifest
[ADB] Checking whether aapt is present
[ADB] Using aapt from /Users/Mark/Library/Android/sdk/build-tools/25.0.0/aapt
[ADB] Extracting package and launch activity from manifest
[debug] [ADB] badging package: com.example.testzdk
[debug] [ADB] badging act: com.swipeclock.android.activities.SplashActivity
[debug] [AndroidDriver] Parsed package and activity are: com.example.testzdk/com.swipeclock.android.activities.SplashActivity
[AndroidDriver] Remote apk path is /data/local/tmp/2fd6f5122a7852da4642088930c42697.apk
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“ls”,"/data/local/tmp/2fd6f5122a7852da4642088930c42697.apk"]
[debug] [AndroidDriver] Checking if app is installed
[debug] [ADB] Getting install status for com.example.testzdk
[debug] [ADB] Device API level: 16
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“pm”,“list”,“packages”,"-3",“com.example.testzdk”]
[debug] [ADB] App is installed
[AndroidDriver] Apk is already on remote and installed, resetting
[debug] [AndroidDriver] Running fast reset (stop and clear)
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“am”,“force-stop”,“com.example.testzdk”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“pm”,“clear”,“com.example.testzdk”]
[debug] [AndroidDriver] Extracting strings from apk /Users/Mark/Downloads/zkclock-debug.apk null /var/folders/dp/rgdr_mks1js5srlxfn4ng9g00000gp/T/com.example.testzdk
[debug] [ADB] Extracting strings for language: default
[debug] [ADB] Device API level: 16
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“getprop”,“persist.sys.language”]
[debug] [ADB] Current device property ‘persist.sys.language’:
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“getprop”,“ro.product.locale.language”]
[debug] [ADB] Current device property ‘ro.product.locale.language’: en
[debug] [ADB] No strings.xml for language ‘en’, getting default strings.xml
[debug] [ADB] Reading strings from converted strings.json
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“push”,"/var/folders/dp/rgdr_mks1js5srlxfn4ng9g00000gp/T/com.example.testzdk/strings.json","/data/local/tmp"]
[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4724 to device: 4724
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“forward”,“tcp:4724”,“tcp:4724”]
[debug] [UiAutomator] Starting UiAutomator
[debug] [UiAutomator] Moving to state ‘starting’
[debug] [UiAutomator] Parsing uiautomator jar
[debug] [UiAutomator] Found jar name: ‘AppiumBootstrap.jar’
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“push”,"/usr/local/lib/node_modules/appium/node_modules/appium-android-bootstrap/bootstrap/bin/AppiumBootstrap.jar","/data/local/tmp/"]
[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“ps”]
[ADB] No uiautomator process found to kill, continuing…
[debug] [UiAutomator] Starting UIAutomator
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“uiautomator”,“runtest”,“AppiumBootstrap.jar”,"-c",“io.appium.android.bootstrap.Bootstrap”,"-e",“pkg”,“com.example.testzdk”,"-e",“disableAndroidWatchers”,false,"-e",“acceptSslCerts”,false]
[UiAutomator] UiAutomator exited unexpectedly with code 0, signal null
[debug] [UiAutomator] Moving to state ‘stopped’

is there an example, using xcuitest, which you can point me to? I can then try that?

Look at the blue section on the top of this page.

Where can I get support to Native Android app, uiautomator2 problems? It appears uiautomator2 is used with Native Android app and its shutting down? ( see details below)

  1. The portion of the blue section which applies to this **Native Android app ** is the following:

UiAutomator 2
Appium 1.6 also ships with early beta support of an upgrade to Appium’s Android support. Up till now, Appium has targeted Google’s UiAutomator framework as the primary way of automating native Android apps. UiAutomator has a number of limitations,
and Google has tried to address some of these in their follow-up UiAutomator 2, which (much like XCUITest) has a very different architecture and required a significant effort to support. Thanks to a dedicated team of volunteers, you can now specify
automationName: uiautomator2 in your desired capabilities and try out the new driver. For more info, check out the wiki article here: https://github.com/appium/appium-uiautomator2-server/wiki

  1. per the wiki, I’ve added " desired_caps[‘automationName’] = ‘uiautomator2’’ to my test script, which gets me a bit farther.

  2. There is a appuim log error (on MAC) and an error which occurs at Python stacktrace. Both of these are below:

:______
Appium Logs
(MAC)
_____
itadmins-MacBook-Pro:~ Mark$ appium
[Appium] Welcome to Appium v1.6.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {“requiredCapabilities”:{},“desiredCapabilities”:{“automationName”:“uiautomator2”,“app”:"/Users/Mark/Downloads/zkclock-debug.apk",“deviceName”:“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“platformVersion”:“4.1”,“platformName”:“Android”}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{“automationName”:“uiautomator2”,“app”:"/Users/Mark/Downloads/zkclock-debug.apk",“deviceName”:“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“platformVersion”:“4.1”,“platformName”:“Android”},{},null,null,null]
[Appium] Creating new AndroidUiautomator2Driver session
[Appium] Capabilities:
[Appium] automationName: ‘uiautomator2’
[Appium] app: ‘/Users/Mark/Downloads/zkclock-debug.apk’
[Appium] deviceName: ‘ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f’
[Appium] platformVersion: ‘4.1’
[Appium] platformName: ‘Android’
[BaseDriver] Session created with session id: 3d89a230-a5a2-4e19-86a7-fe8cd1255129
[BaseDriver] Using local app ‘/Users/Mark/Downloads/zkclock-debug.apk’
[debug] [UiAutomator2] Checking whether app is actually present
[UiAutomator2] UIAutomator2 Driver version:0.2.3
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_111
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/Mark/Library/Android/sdk/platform-tools/adb
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[AndroidDriver] Looking for a device with Android ‘4.1’
[debug] [ADB] Setting device id to ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“getprop”,“ro.build.version.release”]
[AndroidDriver] Using device: ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/Mark/Library/Android/sdk/platform-tools/adb
[debug] [ADB] Setting device id to ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f
[debug] [AndroidDriver] Parsing package and activity from app manifest
[ADB] Checking whether aapt is present
[ADB] Using aapt from /Users/Mark/Library/Android/sdk/build-tools/25.0.0/aapt
[ADB] Extracting package and launch activity from manifest
[debug] [ADB] badging package: com.example.testzdk
[debug] [ADB] badging act: com.swipeclock.android.activities.SplashActivity
[debug] [AndroidDriver] Parsed package and activity are: com.example.testzdk/com.swipeclock.android.activities.SplashActivity
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“getprop”,“ro.build.version.release”]
[debug] [ADB] Attempting to kill all io.appium.uiautomator2.server processes
[debug] [ADB] Getting all processes with io.appium.uiautomator2.server
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“ps”]
[ADB] No io.appium.uiautomator2.server process found to kill, continuing…
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“wait-for-device”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“echo”,“ping”]
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Pushing settings apk to device…
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“install”,"/usr/local/lib/node_modules/appium/node_modules/io.appium.settings/bin/settings_apk-debug.apk"]
[debug] [AndroidDriver] Pushing unlock helper app to device…
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“install”,"/usr/local/lib/node_modules/appium/node_modules/appium-unlock/bin/unlock_apk-debug.apk"]
[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200
[debug] [ADB] Forwarding system: 8200 to device: 6790
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“forward”,“tcp:8200”,“tcp:6790”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“dumpsys”,“window”]
[AndroidDriver] Screen already unlocked, doing nothing
[debug] [AndroidDriver] Extracting strings from apk /Users/Mark/Downloads/zkclock-debug.apk null /var/folders/dp/rgdr_mks1js5srlxfn4ng9g00000gp/T/com.example.testzdk
[debug] [ADB] Extracting strings for language: default
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“getprop”,“ro.build.version.sdk”]
[debug] [ADB] Device API level: 16
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“getprop”,“persist.sys.language”]
[debug] [ADB] Current device property ‘persist.sys.language’:
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“getprop”,“ro.product.locale.language”]
[debug] [ADB] Current device property ‘ro.product.locale.language’: en
[debug] [ADB] No strings.xml for language ‘en’, getting default strings.xml
[debug] [ADB] Reading strings from converted strings.json
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“push”,"/var/folders/dp/rgdr_mks1js5srlxfn4ng9g00000gp/T/com.example.testzdk/strings.json","/data/local/tmp"]
[debug] [ADB] Checking app cert for /Users/Mark/Downloads/zkclock-debug.apk.
[debug] [ADB] App already signed.
[debug] [ADB] Zip-aligning ‘/Users/Mark/Downloads/zkclock-debug.apk’
[ADB] Checking whether zipalign is present
[ADB] Using zipalign from /Users/Mark/Library/Android/sdk/build-tools/25.0.0/zipalign
[debug] [ADB] Zip-aligning apk.
[AndroidDriver] Remote apk path is /data/local/tmp/3d1dcb963206f4fd98ddc59a564e099b.apk
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“ls”,"/data/local/tmp/3d1dcb963206f4fd98ddc59a564e099b.apk"]
[debug] [AndroidDriver] Checking if app is installed
[debug] [ADB] Getting install status for com.example.testzdk
[debug] [ADB] Device API level: 16
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“pm”,“list”,“packages”,"-3",“com.example.testzdk”]
[debug] [ADB] App is not installed
[AndroidDriver] Apk is not yet installed
[AndroidDriver] installing apk from remote
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“mkdir”,"-p","/data/local/tmp"]
[AndroidDriver] Clearing out any existing remote apks with the same hash
[debug] [AndroidDriver] Removing any old apks
[debug] [AndroidDriver] Except [“3d1dcb963206f4fd98ddc59a564e099b”]
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“ls”,"/data/local/tmp/*.apk"]
[AndroidDriver] Will remove /data/local/tmp/2fd6f5122a7852da4642088930c42697.apk
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“rm”,"-f","/data/local/tmp/2fd6f5122a7852da4642088930c42697.apk"]
[AndroidDriver] Will remove /data/local/tmp/appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“rm”,"-f","/data/local/tmp/appium-uiautomator2-server-debug-androidTest.apk"]
[AndroidDriver] Will remove /data/local/tmp/appium-uiautomator2-server-v0.0.8.apk
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“rm”,"-f","/data/local/tmp/appium-uiautomator2-server-v0.0.8.apk"]
[AndroidDriver] Will remove /data/local/tmp/settings_apk-debug.apk
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“rm”,"-f","/data/local/tmp/settings_apk-debug.apk"]
[AndroidDriver] Will remove /data/local/tmp/unlock_apk-debug.apk
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“rm”,"-f","/data/local/tmp/unlock_apk-debug.apk"]
[debug] [ADB] Uninstalling com.example.testzdk
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“am”,“force-stop”,“com.example.testzdk”]
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“uninstall”,“com.example.testzdk”]
[ADB] App was not uninstalled, maybe it wasn’t on device?
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“pm”,“install”,"-r","/data/local/tmp/3d1dcb963206f4fd98ddc59a564e099b.apk"]
[ADB] Checking whether aapt is present
[ADB] Using aapt from /Users/Mark/Library/Android/sdk/build-tools/25.0.0/aapt
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Device API level: 16
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“pm”,“list”,“packages”,"-3",“io.appium.uiautomator2.server”]
[debug] [ADB] App is not installed
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Device API level: 16
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“pm”,“list”,“packages”,"-3",“io.appium.uiautomator2.server.test”]
[debug] [ADB] App is not installed
[debug] [ADB] Checking app cert for /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/uiautomator2/appium-uiautomator2-server-v0.0.8.apk.
[debug] [ADB] App already signed.
[debug] [ADB] Zip-aligning ‘/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/uiautomator2/appium-uiautomator2-server-v0.0.8.apk’
[ADB] Checking whether zipalign is present
[ADB] Using zipalign from /Users/Mark/Library/Android/sdk/build-tools/25.0.0/zipalign
[debug] [ADB] Zip-aligning apk.
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“install”,"-r","/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/uiautomator2/appium-uiautomator2-server-v0.0.8.apk"]
[UiAutomator2] Installed UiAutomator2 server apk
[debug] [ADB] Checking app cert for /usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/uiautomator2/appium-uiautomator2-server-debug-androidTest.apk.
[debug] [ADB] App already signed.
[debug] [ADB] Zip-aligning ‘/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/uiautomator2/appium-uiautomator2-server-debug-androidTest.apk’
[ADB] Checking whether zipalign is present
[ADB] Using zipalign from /Users/Mark/Library/Android/sdk/build-tools/25.0.0/zipalign
[debug] [ADB] Zip-aligning apk.
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“install”,"-r","/usr/local/lib/node_modules/appium/node_modules/appium-uiautomator2-driver/uiautomator2/appium-uiautomator2-server-debug-androidTest.apk"]
[UiAutomator2] Installed UiAutomator2 server apk
[debug] [ADB] Attempting to kill all io.appium.uiautomator2.server processes
[debug] [ADB] Getting all processes with io.appium.uiautomator2.server
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“ps”]
[ADB] No io.appium.uiautomator2.server process found to kill, continuing…
[UiAutomator2] Starting uiautomator2 server v0.0.8 with cmd: am,instrument,-w,io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner
[UiAutomator2] running command…
** adb -s ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner… **
[UiAutomator2] Waiting for UiAutomator2 to be online…
** [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body**
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [UiAutomator2] Deleting UiAutomator2 server session
[UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: Error: Trying to proxy a session command without session id
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“shell”,“am”,“force-stop”,“com.example.testzdk”]
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running ‘/Users/Mark/Library/Android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZPAD80-ff841c2f-13817003-07fd0000-8a61aa4f”,“forward”,"–remove",“tcp:8200”]

________________
(MAC)
python stacktrace error:

Error
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/unittest/case.py”, line 58, in testPartExecutor
yield
File “/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/unittest/case.py”, line 580, in run
testMethod()
File “/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/ddt.py”, line 139, in wrapper
return func(self, *args, **kwargs)
File “/Users/Mark/main/main/src/tests/sauce_smoke/Mobile_App/test_002_twm_app_android.py”, line 64, in test_001_twm_app_android
driver = webdriver.Remote(‘http://localhost:4723/wd/hub’, desired_caps)
File “/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/appium/webdriver/webdriver.py”, line 36, in init
super(WebDriver, self).init(command_executor, desired_capabilities, browser_profile, proxy, keep_alive)
File “/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/selenium/webdriver/remote/webdriver.py”, line 92, in init
self.start_session(desired_capabilities, browser_profile)
File “/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/selenium/webdriver/remote/webdriver.py”, line 179, in start_session
response = self.execute(Command.NEW_SESSION, capabilities)
File “/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/selenium/webdriver/remote/webdriver.py”, line 236, in execute
self.error_handler.check_response(response)
File “/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/selenium/webdriver/remote/errorhandler.py”, line 192, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Message: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: socket hang up

Can you share android device logcat ?
Please clear existing logs (adb logcat -c) before execution and use adb logcat for logcat.

--------- beginning of /dev/log/system
I/WindowManager( 300): No lock screen!
--------- beginning of /dev/log/main
D/audio_hw_xb47xx_primary( 109): adev_set_parameters(line:2056): kvpairs = [screen_state=on]
D/audio_hw_xb47xx_primary( 109): adev_set_parameters(line:2079): key = [screen_state], value = [on]
D/EthernetManager—>EthernetDeviceInfo( 476): received android.intent.action.SCREEN_ON
D/SurfaceFlinger( 106): Screen about to return, flinger = 0x557e7440
E/PowerManagerService( 300): Excessive delay setting brightness: 556ms, mask=2
D/AndroidRuntime( 4479):
D/AndroidRuntime( 4479): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 4479): CheckJNI is OFF
D/dalvikvm( 4479): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 4479): Added shared lib libjavacore.so 0x0
D/dalvikvm( 4479): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 4479): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime( 4479): Calling main entry com.android.commands.pm.Pm
W/ActivityManager( 300): No content provider found for permission revoke: file:///data/local/tmp/settings_apk-debug.apk
W/ActivityManager( 300): No content provider found for permission revoke: file:///data/local/tmp/settings_apk-debug.apk
I/PackageParser( 300): io.appium.settings: compat added android.permission.WRITE_EXTERNAL_STORAGE
W/PackageManager( 300): Attempt to re-install io.appium.settings without first uninstalling.
D/dalvikvm( 300): GC_CONCURRENT freed 823K, 21% free 8652K/10823K, paused 15ms+6ms, total 85ms
D/dalvikvm( 300): WAIT_FOR_CONCURRENT_GC blocked 43ms
D/dalvikvm( 300): GC_EXPLICIT freed 57K, 21% free 8595K/10823K, paused 6ms+7ms, total 79ms
D/AndroidRuntime( 4479): Shutting down VM
D/dalvikvm( 4479): GC_CONCURRENT freed 133K, 75% free 524K/2048K, paused 0ms+1ms, total 6ms
D/AndroidRuntime( 4497):
D/AndroidRuntime( 4497): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 4497): CheckJNI is OFF
D/dalvikvm( 4497): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 4497): Added shared lib libjavacore.so 0x0
D/dalvikvm( 4497): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 4497): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime( 4497): Calling main entry com.android.commands.pm.Pm
W/ActivityManager( 300): No content provider found for permission revoke: file:///data/local/tmp/unlock_apk-debug.apk
W/ActivityManager( 300): No content provider found for permission revoke: file:///data/local/tmp/unlock_apk-debug.apk
D/dalvikvm( 300): WAIT_FOR_CONCURRENT_GC blocked 0ms
W/PackageManager( 300): Attempt to re-install io.appium.unlock without first uninstalling.
D/dalvikvm( 300): GC_EXPLICIT freed 205K, 21% free 8600K/10823K, paused 6ms+7ms, total 80ms
D/AndroidRuntime( 4497): Shutting down VM
D/dalvikvm( 4497): GC_CONCURRENT freed 133K, 75% free 524K/2048K, paused 1ms+1ms, total 7ms
D/AndroidRuntime( 4531):
D/AndroidRuntime( 4531): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 4531): CheckJNI is OFF
D/dalvikvm( 4531): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 4531): Added shared lib libjavacore.so 0x0
D/dalvikvm( 4531): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 4531): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime( 4531): Calling main entry com.android.commands.pm.Pm
D/AndroidRuntime( 4531): Shutting down VM
D/dalvikvm( 4531): GC_CONCURRENT freed 172K, 75% free 523K/2048K, paused 1ms+0ms, total 8ms
D/AndroidRuntime( 4544):
D/AndroidRuntime( 4544): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 4544): CheckJNI is OFF
D/dalvikvm( 4544): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 4544): Added shared lib libjavacore.so 0x0
D/dalvikvm( 4544): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 4544): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime( 4544): Calling main entry com.android.commands.am.Am
I/ActivityManager( 300): Force stopping package com.example.testzdk uid=10035
D/AndroidRuntime( 4544): Shutting down VM
I/AndroidRuntime( 4544): NOTE: attach of thread ‘Binder_3’ failed
D/dalvikvm( 4544): GC_CONCURRENT freed 103K, 76% free 510K/2048K, paused 1ms+1ms, total 6ms
D/AndroidRuntime( 4557):
D/AndroidRuntime( 4557): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 4557): CheckJNI is OFF
D/dalvikvm( 4557): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 4557): Added shared lib libjavacore.so 0x0
D/dalvikvm( 4557): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 4557): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime( 4557): Calling main entry com.android.commands.pm.Pm
I/ActivityManager( 300): Force stopping package com.example.testzdk uid=10035
D/AndroidRuntime( 4557): Shutting down VM
I/AndroidRuntime( 4557): NOTE: attach of thread ‘Binder_3’ failed
D/dalvikvm( 4557): GC_CONCURRENT freed 104K, 75% free 515K/2048K, paused 1ms+1ms, total 8ms
D/AndroidRuntime( 4570):
D/AndroidRuntime( 4570): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 4570): CheckJNI is OFF
D/dalvikvm( 4570): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 4570): Added shared lib libjavacore.so 0x0
D/dalvikvm( 4570): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 4570): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime( 4570): Calling main entry com.android.commands.pm.Pm
D/AndroidRuntime( 4570): Shutting down VM
D/dalvikvm( 4570): GC_CONCURRENT freed 172K, 75% free 523K/2048K, paused 0ms+0ms, total 7ms
D/AndroidRuntime( 4583):
D/AndroidRuntime( 4583): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 4583): CheckJNI is OFF
D/dalvikvm( 4583): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 4583): Added shared lib libjavacore.so 0x0
D/dalvikvm( 4583): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 4583): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime( 4583): Calling main entry com.android.commands.pm.Pm
D/AndroidRuntime( 4583): Shutting down VM
D/dalvikvm( 4583): GC_CONCURRENT freed 172K, 75% free 523K/2048K, paused 0ms+1ms, total 7ms
D/AndroidRuntime( 4597):
D/AndroidRuntime( 4597): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 4597): CheckJNI is OFF
D/dalvikvm( 4597): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 4597): Added shared lib libjavacore.so 0x0
D/dalvikvm( 4597): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 4597): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime( 4597): Calling main entry com.android.commands.pm.Pm
W/ActivityManager( 300): No content provider found for permission revoke: file:///data/local/tmp/appium-uiautomator2-server-v0.0.8.apk
D/dalvikvm( 300): WAIT_FOR_CONCURRENT_GC blocked 0ms
W/ActivityManager( 300): No content provider found for permission revoke: file:///data/local/tmp/appium-uiautomator2-server-v0.0.8.apk
W/PackageParser( 300): /data/app/vmdl1317833299.tmp (at Binary XML file line #7): Requires newer sdk version #19 (current version is #16)
D/dalvikvm( 300): GC_EXPLICIT freed 277K, 21% free 8573K/10823K, paused 6ms+7ms, total 81ms
D/AndroidRuntime( 4597): Shutting down VM
D/dalvikvm( 4597): GC_CONCURRENT freed 132K, 75% free 525K/2048K, paused 1ms+0ms, total 7ms
D/AndroidRuntime( 4616):
D/AndroidRuntime( 4616): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 4616): CheckJNI is OFF
D/dalvikvm( 4616): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 4616): Added shared lib libjavacore.so 0x0
D/dalvikvm( 4616): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 4616): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime( 4616): Calling main entry com.android.commands.pm.Pm
W/ActivityManager( 300): No content provider found for permission revoke: file:///data/local/tmp/appium-uiautomator2-server-debug-androidTest.apk
D/dalvikvm( 300): WAIT_FOR_CONCURRENT_GC blocked 0ms
W/ActivityManager( 300): No content provider found for permission revoke: file:///data/local/tmp/appium-uiautomator2-server-debug-androidTest.apk
W/PackageParser( 300): /data/app/vmdl-1360550379.tmp (at Binary XML file line #5): Requires newer sdk version #19 (current version is #16)
D/dalvikvm( 300): GC_EXPLICIT freed 12K, 21% free 8572K/10823K, paused 6ms+6ms, total 79ms
D/AndroidRuntime( 4616): Shutting down VM
D/dalvikvm( 4616): GC_CONCURRENT freed 133K, 75% free 525K/2048K, paused 0ms+1ms, total 7ms
D/AndroidRuntime( 4635):
D/AndroidRuntime( 4635): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 4635): CheckJNI is OFF
D/dalvikvm( 4635): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 4635): Added shared lib libjavacore.so 0x0
D/dalvikvm( 4635): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 4635): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime( 4635): Calling main entry com.android.commands.am.Am
W/ActivityManager( 300): Unable to find instrumentation info for: ComponentInfo{io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner}
I/AndroidRuntime( 4635): VM exiting with result code 1.
E/AudioPolicyManagerBase( 109): output 2 no Strategy used
D/dalvikvm( 513): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 513): GC_EXPLICIT freed 943K, 23% free 7087K/9095K, paused 4ms+6ms, total 61ms
I/ActivityManager( 300): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.testzdk/com.swipeclock.android.activities.SplashActivity u=0} from pid 513
E/dalvikvm( 4653): could not disable core file generation for pid 4653: Operation not permitted
I/ActivityManager( 300): Start proc com.example.testzdk for activity com.example.testzdk/com.swipeclock.android.activities.SplashActivity: pid=4653 uid=10035 gids={3003, 1015}
E/AudioPolicyManagerBase( 109): output 2 no Strategy used
E/Trace ( 4653): error opening trace file: No such file or directory (2)
I/dalvikvm( 4653): Could not find method android.app.Application.registerOnProvideAssistDataListener, referenced from method com.android.tools.fd.runtime.BootstrapApplication.registerOnProvideAssistDataListener
W/dalvikvm( 4653): VFY: unable to resolve virtual method 339: Landroid/app/Application;.registerOnProvideAssistDataListener (Landroid/app/Application$OnProvideAssistDataListener;)V
D/dalvikvm( 4653): VFY: replacing opcode 0x6e at 0x0002
I/dalvikvm( 4653): Could not find method android.app.Application.unregisterOnProvideAssistDataListener, referenced from method com.android.tools.fd.runtime.BootstrapApplication.unregisterOnProvideAssistDataListener
W/dalvikvm( 4653): VFY: unable to resolve virtual method 342: Landroid/app/Application;.unregisterOnProvideAssistDataListener (Landroid/app/Application$OnProvideAssistDataListener;)V
D/dalvikvm( 4653): VFY: replacing opcode 0x6e at 0x0002
I/InstantRun( 4653): Instant Run Runtime started. Android package is com.example.testzdk, real application class is null.
E/InstantRun( 4653): Could not find slices in APK; aborting.
W/InstantRun( 4653): No instant run dex files added to classpath
E/dalvikvm( 4653): Could not find class ‘android.util.ArrayMap’, referenced from method com.android.tools.fd.runtime.MonkeyPatcher.monkeyPatchExistingResources
W/dalvikvm( 4653): VFY: unable to resolve check-cast 2440 (Landroid/util/ArrayMap;) in Lcom/android/tools/fd/runtime/MonkeyPatcher;
D/dalvikvm( 4653): VFY: replacing opcode 0x1f at 0x025e
E/dalvikvm( 4653): Could not find class ‘android.util.ArrayMap’, referenced from method com.android.tools.fd.runtime.MonkeyPatcher.pruneResourceCache
W/dalvikvm( 4653): VFY: unable to resolve const-class 2440 (Landroid/util/ArrayMap;) in Lcom/android/tools/fd/runtime/MonkeyPatcher;
D/dalvikvm( 4653): VFY: replacing opcode 0x1c at 0x0060
I/dalvikvm( 4653): Could not find method android.view.Window$Callback.onProvideKeyboardShortcuts, referenced from method android.support.v7.view.WindowCallbackWrapper.onProvideKeyboardShortcuts
W/dalvikvm( 4653): VFY: unable to resolve interface method 21833: Landroid/view/Window$Callback;.onProvideKeyboardShortcuts (Ljava/util/List;Landroid/view/Menu;I)V
D/dalvikvm( 4653): VFY: replacing opcode 0x72 at 0x0002
W/dalvikvm( 4653): VFY: unable to find class referenced in signature (Landroid/view/SearchEvent;)
I/dalvikvm( 4653): Could not find method android.view.Window$Callback.onSearchRequested, referenced from method android.support.v7.view.WindowCallbackWrapper.onSearchRequested
W/dalvikvm( 4653): VFY: unable to resolve interface method 21835: Landroid/view/Window$Callback;.onSearchRequested (Landroid/view/SearchEvent;)Z
D/dalvikvm( 4653): VFY: replacing opcode 0x72 at 0x0002
I/dalvikvm( 4653): Could not find method android.view.Window$Callback.onWindowStartingActionMode, referenced from method android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
W/dalvikvm( 4653): VFY: unable to resolve interface method 21839: Landroid/view/Window$Callback;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
D/dalvikvm( 4653): VFY: replacing opcode 0x72 at 0x0002
I/dalvikvm( 4653): Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.widget.TintTypedArray.getChangingConfigurations
W/dalvikvm( 4653): VFY: unable to resolve virtual method 938: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
D/dalvikvm( 4653): VFY: replacing opcode 0x6e at 0x0002
I/dalvikvm( 4653): Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.widget.TintTypedArray.getType
W/dalvikvm( 4653): VFY: unable to resolve virtual method 960: Landroid/content/res/TypedArray;.getType (I)I
D/dalvikvm( 4653): VFY: replacing opcode 0x6e at 0x0008
I/dalvikvm( 4653): Could not find method android.support.graphics.drawable.VectorDrawableCompat.getLayoutDirection, referenced from method android.support.graphics.drawable.VectorDrawableCompat.needMirroring
W/dalvikvm( 4653): VFY: unable to resolve virtual method 4054: Landroid/support/graphics/drawable/VectorDrawableCompat;.getLayoutDirection ()I
D/dalvikvm( 4653): VFY: replacing opcode 0x6e at 0x000f
D/dalvikvm( 4653): GC_CONCURRENT freed 244K, 10% free 5859K/6471K, paused 12ms+2ms, total 46ms
W/System.err( 4653): com.swipeclock.android.network.services.NetworkService$BaseUrlNotSet
W/System.err( 4653): at com.swipeclock.android.network.services.LoginService.getBaseUrl(LoginService.java:49)
W/System.err( 4653): at com.swipeclock.android.network.services.NetworkService.getRetrofit(NetworkService.java:20)
W/System.err( 4653): at com.swipeclock.android.network.services.LoginService.(LoginService.java:29)
W/System.err( 4653): at com.swipeclock.android.network.services.LoginService.createInstance(LoginService.java:22)
W/System.err( 4653): at com.swipeclock.android.network.services.LoginService.(LoginService.java:13)
W/System.err( 4653): at com.swipeclock.android.activities.SplashActivity.initializeBaseUrls(SplashActivity.java:29)
W/System.err( 4653): at com.swipeclock.android.activities.SplashActivity.onCreate(SplashActivity.java:20)
W/System.err( 4653): at android.app.Activity.performCreate(Activity.java:5008)
W/System.err( 4653): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
W/System.err( 4653): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
W/System.err( 4653): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
W/System.err( 4653): at android.app.ActivityThread.access$600(ActivityThread.java:130)
W/System.err( 4653): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
W/System.err( 4653): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 4653): at android.os.Looper.loop(Looper.java:137)
W/System.err( 4653): at android.app.ActivityThread.main(ActivityThread.java:4745)
W/System.err( 4653): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 4653): at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err( 4653): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
W/System.err( 4653): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
W/System.err( 4653): at dalvik.system.NativeStart.main(Native Method)
W/System.err( 4653): com.swipeclock.android.network.services.NetworkService$BaseUrlNotSet
W/System.err( 4653): at com.swipeclock.android.network.services.PunchService.getBaseUrl(PunchService.java:50)
W/System.err( 4653): at com.swipeclock.android.network.services.NetworkService.getRetrofit(NetworkService.java:20)
W/System.err( 4653): at com.swipeclock.android.network.services.PunchService.(PunchService.java:30)
W/System.err( 4653): at com.swipeclock.android.network.services.PunchService.createInstance(PunchService.java:23)
W/System.err( 4653): at com.swipeclock.android.network.services.PunchService.(PunchService.java:14)
W/System.err( 4653): at com.swipeclock.android.activities.SplashActivity.initializeBaseUrls(SplashActivity.java:33)
W/System.err( 4653): at com.swipeclock.android.activities.SplashActivity.onCreate(SplashActivity.java:20)
W/System.err( 4653): at android.app.Activity.performCreate(Activity.java:5008)
W/System.err( 4653): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
W/System.err( 4653): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
W/System.err( 4653): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
W/System.err( 4653): at android.app.ActivityThread.access$600(ActivityThread.java:130)
W/System.err( 4653): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
W/System.err( 4653): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 4653): at android.os.Looper.loop(Looper.java:137)
W/System.err( 4653): at android.app.ActivityThread.main(ActivityThread.java:4745)
W/System.err( 4653): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 4653): at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err( 4653): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
W/System.err( 4653): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
W/System.err( 4653): at dalvik.system.NativeStart.main(Native Method)
W/System.err( 4653): com.swipeclock.android.network.services.NetworkService$BaseUrlNotSet
W/System.err( 4653): at com.swipeclock.android.network.services.RegisterService.getBaseUrl(RegisterService.java:52)
W/System.err( 4653): at com.swipeclock.android.network.services.NetworkService.getRetrofit(NetworkService.java:20)
W/System.err( 4653): at com.swipeclock.android.network.services.RegisterService.(RegisterService.java:32)
W/System.err( 4653): at com.swipeclock.android.network.services.RegisterService.createInstance(RegisterService.java:23)
W/System.err( 4653): at com.swipeclock.android.network.services.RegisterService.(RegisterService.java:16)
W/System.err( 4653): at com.swipeclock.android.activities.SplashActivity.initializeBaseUrls(SplashActivity.java:37)
W/System.err( 4653): at com.swipeclock.android.activities.SplashActivity.onCreate(SplashActivity.java:20)
W/System.err( 4653): at android.app.Activity.performCreate(Activity.java:5008)
W/System.err( 4653): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
W/System.err( 4653): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
W/System.err( 4653): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
W/System.err( 4653): at android.app.ActivityThread.access$600(ActivityThread.java:130)
W/System.err( 4653): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
W/System.err( 4653): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 4653): at android.os.Looper.loop(Looper.java:137)
W/System.err( 4653): at android.app.ActivityThread.main(ActivityThread.java:4745)
W/System.err( 4653): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 4653): at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err( 4653): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
W/System.err( 4653): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
W/System.err( 4653): at dalvik.system.NativeStart.main(Native Method)
W/System.err( 4653): com.swipeclock.android.network.services.NetworkService$BaseUrlNotSet
W/System.err( 4653): at com.swipeclock.android.network.services.PartnerSiteService.getBaseUrl(PartnerSiteService.java:46)
W/System.err( 4653): at com.swipeclock.android.network.services.NetworkService.getRetrofit(NetworkService.java:20)
W/System.err( 4653): at com.swipeclock.android.network.services.PartnerSiteService.(PartnerSiteService.java:26)
W/System.err( 4653): at com.swipeclock.android.network.services.PartnerSiteService.createInstance(PartnerSiteService.java:19)
W/System.err( 4653): at com.swipeclock.android.network.services.PartnerSiteService.(PartnerSiteService.java:10)
W/System.err( 4653): at com.swipeclock.android.activities.SplashActivity.initializeBaseUrls(SplashActivity.java:41)
W/System.err( 4653): at com.swipeclock.android.activities.SplashActivity.onCreate(SplashActivity.java:20)
W/System.err( 4653): at android.app.Activity.performCreate(Activity.java:5008)
W/System.err( 4653): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
W/System.err( 4653): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
W/System.err( 4653): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
W/System.err( 4653): at android.app.ActivityThread.access$600(ActivityThread.java:130)
W/System.err( 4653): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
W/System.err( 4653): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 4653): at android.os.Looper.loop(Looper.java:137)
W/System.err( 4653): at android.app.ActivityThread.main(ActivityThread.java:4745)
W/System.err( 4653): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 4653): at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err( 4653): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
W/System.err( 4653): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
W/System.err( 4653): at dalvik.system.NativeStart.main(Native Method)
D/DBConnection( 4653): DBConnection Constructed
D/SiteSettingsDao( 4653): Called getSiteSettings
D/DBConnection( 4653): Getting Connection
D/DBHelper( 4653): >>>>>--------Create table CLOCK_PROMPTS!----->>>>>
D/DBHelper( 4653): >>>>>--------Create table SITE_SETTINGS!----->>>>>
D/DBHelper( 4653): >>>>>--------Create table OFFLINE_PUNCHES!----->>>>>
D/DBHelper( 4653): >>>>>--------Create table DEVICE_SECRET!----->>>>>
D/DBConnection( 4653): SQLLiteDatabase Created
D/DBConnection( 4653): Got Connection
D/SiteSettingsDao( 4653): got curser
D/SiteSettingsDao( 4653): result =
I/ActivityManager( 300): START {flg=0x10000000 cmp=com.example.testzdk/com.swipeclock.android.activities.LoginActivity (has extras) u=0} from pid 4653
D/dalvikvm( 4653): GC_CONCURRENT freed 272K, 10% free 6064K/6727K, paused 12ms+12ms, total 53ms
D/roboguice.RoboGuice( 4653): Using annotation database(s).
D/roboguice.RoboGuice( 4653): Using annotation database(s) : [, roboguice]
D/roboguice.RoboGuice( 4653): Time spent loading annotation databases : 13
D/dalvikvm( 4653): GC_CONCURRENT freed 388K, 11% free 6228K/6983K, paused 4ms+16ms, total 50ms
D/dalvikvm( 4653): WAIT_FOR_CONCURRENT_GC blocked 3ms
W/SQLiteConnectionPool( 4653): A SQLiteConnection object for database ‘/data/data/com.example.testzdk/databases/swipeclock.db’ was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
I/dalvikvm( 4653): Could not find method android.content.Context.getColorStateList, referenced from method android.support.v7.content.res.AppCompatResources.getColorStateList
W/dalvikvm( 4653): VFY: unable to resolve virtual method 679: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
D/dalvikvm( 4653): VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm( 4653): Could not find method android.content.res.Resources.getDrawable, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawable
W/dalvikvm( 4653): VFY: unable to resolve virtual method 901: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
D/dalvikvm( 4653): VFY: replacing opcode 0x6e at 0x0002
I/dalvikvm( 4653): Could not find method android.content.res.Resources.getDrawableForDensity, referenced from method android.support.v7.widget.ResourcesWrapper.getDrawableForDensity
W/dalvikvm( 4653): VFY: unable to resolve virtual method 903: Landroid/content/res/Resources;.getDrawableForDensity (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
D/dalvikvm( 4653): VFY: replacing opcode 0x6e at 0x0002
D/dalvikvm( 4653): GC_CONCURRENT freed 319K, 10% free 6355K/7047K, paused 13ms+13ms, total 66ms
I/dalvikvm( 4653): Could not find method android.content.res.Resources.getColor, referenced from method butterknife.internal.Utils.getColor
W/dalvikvm( 4653): VFY: unable to resolve virtual method 892: Landroid/content/res/Resources;.getColor (ILandroid/content/res/Resources$Theme;)I
D/dalvikvm( 4653): VFY: replacing opcode 0x6e at 0x000b
I/dalvikvm( 4653): Could not find method android.content.res.Resources.getColorStateList, referenced from method butterknife.internal.Utils.getColorStateList
W/dalvikvm( 4653): VFY: unable to resolve virtual method 894: Landroid/content/res/Resources;.getColorStateList (ILandroid/content/res/Resources$Theme;)Landroid/content/res/ColorStateList;
D/dalvikvm( 4653): VFY: replacing opcode 0x6e at 0x000b
I/dalvikvm( 4653): Could not find method android.content.res.Resources.getDrawable, referenced from method butterknife.internal.Utils.getDrawable
W/dalvikvm( 4653): VFY: unable to resolve virtual method 901: Landroid/content/res/Resources;.getDrawable (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
D/dalvikvm( 4653): VFY: replacing opcode 0x6e at 0x000b
D/libEGL ( 4653): loaded /system/lib/egl/libEGL_POWERVR_SGX540_130.so
D/libEGL ( 4653): loaded /system/lib/egl/libGLESv1_CM_POWERVR_SGX540_130.so
D/libEGL ( 4653): loaded /system/lib/egl/libGLESv2_POWERVR_SGX540_130.so
D/OpenGLRenderer( 4653): Enabling debug mode 0
I/ActivityManager( 300): Displayed com.example.testzdk/com.swipeclock.android.activities.LoginActivity: +872ms (total +1s868ms)
D/AndroidRuntime( 4674):
D/AndroidRuntime( 4674): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 4674): CheckJNI is OFF
D/dalvikvm( 4674): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 4674): Added shared lib libjavacore.so 0x0
D/dalvikvm( 4674): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 4674): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime( 4674): Calling main entry com.android.commands.am.Am
I/ActivityManager( 300): Force stopping package com.example.testzdk uid=10035
I/ActivityManager( 300): Killing proc 4653:com.example.testzdk/u0a35: force stop
W/ActivityManager( 300): Force removing ActivityRecord{2c8f57e0 com.example.testzdk/com.swipeclock.android.activities.LoginActivity}: app died, no saved state
I/WindowState( 300): WIN DEATH: Window{2c9581a0 com.example.testzdk/com.swipeclock.android.activities.LoginActivity paused=false}
D/AndroidRuntime( 4674): Shutting down VM
I/AndroidRuntime( 4674): NOTE: attach of thread ‘Binder_3’ failed
D/dalvikvm( 4674): GC_CONCURRENT freed 103K, 76% free 510K/2048K, paused 1ms+2ms, total 13ms
E/HWC-JZX2D( 106): hwc skip layer
W/InputMethodManagerService( 300): Got RemoteException sending setActive(false) notification to pid 4653 uid 10035
W/WindowManager( 300): Rebuild removed 4 windows but added 3
W/WindowManager( 300): This window was lost: Window{2c9581a0 com.example.testzdk/com.swipeclock.android.activities.LoginActivity paused=false}
W/WindowManager( 300): mSession=Session{2c9a72c0 uid 10035} mClient=android.os.BinderProxy@2c822900
W/WindowManager( 300): mAttrs=WM.LayoutParams{(0,0)(fillxfill) sim=#120 ty=1 fl=#1810100 pfl=0x8 wanim=0x7f0a00d4}
W/WindowManager( 300): Requested w=800 h=444 mLayoutSeq=463
W/WindowManager( 300): mBaseLayer=21000 mSubLayer=0 mAnimLayer=21020+0=21020 mLastLayer=21020
W/WindowManager( 300): mToken=AppWindowToken{2c7673c0 token=Token{2c78b360 ActivityRecord{2c8f57e0 com.example.testzdk/com.swipeclock.android.activities.LoginActivity}}}
W/WindowManager( 300): mRootToken=AppWindowToken{2c7673c0 token=Token{2c78b360 ActivityRecord{2c8f57e0 com.example.testzdk/com.swipeclock.android.activities.LoginActivity}}}
W/WindowManager( 300): mAppToken=AppWindowToken{2c7673c0 token=Token{2c78b360 ActivityRecord{2c8f57e0 com.example.testzdk/com.swipeclock.android.activities.LoginActivity}}}
W/WindowManager( 300): mViewVisibility=0x0 mHaveFrame=true mObscured=false
W/WindowManager( 300): mSeq=0 mSystemUiVisibility=0x0
W/WindowManager( 300): mGivenContentInsets=[0,0][0,0] mGivenVisibleInsets=[0,0][0,0]
W/WindowManager( 300): mConfiguration={1.0 0mcc0mnc en_US sw640dp w1066dp h592dp lrg land finger -keyb/v/h -nav/h s.3}
W/WindowManager( 300): mHasSurface=true mShownFrame=[0.0,0.0][800.0,444.0]
W/WindowManager( 300): mFrame=[0,0][800,444] last=[0,0][800,444]
W/WindowManager( 300): mSystemDecorRect=[0,0][800,444] last=[0,0][800,444]
W/WindowManager( 300): Frames: containing=[0,0][800,444] parent=[0,0][800,444] display=[0,0][800,444]
W/WindowManager( 300): content=[0,0][800,444] visible=[0,0][800,444]
W/WindowManager( 300): Cur insets: content=[0,0][0,0] visible=[0,0][0,0]
W/WindowManager( 300): Lst insets: content=[0,0][0,0] visible=[0,0][0,0]
W/WindowManager( 300): mAnimating=true mLocalAnimating=true mAnimationIsEntrance=false mAnimation=android.view.animation.AlphaAnimation@2c8590a0
W/WindowManager( 300): XForm: has=true hasLocal=true {alpha=0.0 matrix=[1.0, 0.0, 0.0][0.0, 1.0, 0.0][0.0, 0.0, 1.0]}
W/WindowManager( 300): mSurface=Surface(name=com.example.testzdk/com.swipeclock.android.activities.LoginActivity, identity=84)
W/WindowManager( 300): mDrawState=HAS_DRAWN mLastHidden=false
W/WindowManager( 300): Surface: shown=true layer=21020 alpha=0.0 rect=(0.0,0.0) 800.0 x 444.0
W/WindowManager( 300): mShownAlpha=0.0 mAlpha=1.0 mLastAlpha=0.0
W/WindowManager( 300): mGlobalScale=1.0 mDsDx=1.0 mDtDx=0.0 mDsDy=0.0 mDtDy=1.0
W/WindowManager( 300): mExiting=true mRemoveOnExit=true mDestroying=false mRemoved=false
W/WindowManager( 300): Current app token list:
V/WindowManager( 300): #2: Token{2c7cc600 ActivityRecord{2c7cc0c0 com.android.launcher/com.android.launcher2.Launcher}}
V/WindowManager( 300): #1: Token{2c6d8e60 ActivityRecord{2c7d0440 com.android.quicksearchbox/.SearchActivity}}
V/WindowManager( 300): #0: Token{2c785660 ActivityRecord{2c75d4e0 com.android.browser/.BrowserActivity}}
W/WindowManager( 300): Final window list:
V/WindowManager( 300): #10: Window{2c7b6940 SearchPanel paused=false}
V/WindowManager( 300): #9: Window{2c709ec0 RecentsPanel paused=false}
V/WindowManager( 300): #8: Window{2c7047a0 NotificationPanel paused=false}
V/WindowManager( 300): #7: Window{2c7d52e0 SystemBar paused=false}
V/WindowManager( 300): #6: Window{2c7ab360 CompatModePanel paused=false}
V/WindowManager( 300): #5: Window{2c7c00e0 InputMethodsPanel paused=false}
V/WindowManager( 300): #4: Window{2c7b7720 InputMethod paused=false}
V/WindowManager( 300): #3: Window{2c75af80 com.android.launcher/com.android.launcher2.Launcher paused=false}
V/WindowManager( 300): #2: Window{2c7033a0 com.android.quicksearchbox/com.android.quicksearchbox.SearchActivity paused=false}
V/WindowManager( 300): #1: Window{2c7de4c0 com.android.browser/com.android.browser.BrowserActivity paused=false}
V/WindowManager( 300): #0: Window{2c758c80 com.android.systemui.ImageWallpaper paused=false}
D/dalvikvm( 300): GC_CONCURRENT freed 566K, 20% free 8700K/10823K, paused 14ms+7ms, total 105ms
E/HWC-JZX2D( 106): hardware/xb4780/hwcomposer-SGX540/hwcomposer.cpp jz_hwc_prepare 1114: !list
D/SurfaceFlinger( 106): About to give-up screen, flinger = 0x557e7440
D/audio_hw_xb47xx_primary( 109): adev_set_parameters(line:2056): kvpairs = [screen_state=off]
D/audio_hw_xb47xx_primary( 109): adev_set_parameters(line:2079): key = [screen_state], value = [off]
D/EthernetManager—>EthernetDeviceInfo( 476): received android.intent.action.SCREEN_OFF

UIAutomator2 Driver supports from Platform Version 5.0(API Level 20) and above, the device you are using is 4.1.

that’s correct, but appium shouldn’t shutdown as it appears to be doing?