debug: Appium request initiated at /wd/hub/session
debug: Request received with params: {"sessionId":null,"desiredCapabilities":{"app-package":"com.coolapz.Fantasy","app":"/home/joel/fantasy/Fantasy-debug.apk","browserName":"","version":"4.2.2","device":"android","app-activity":".Fantasy"}}
info: Using local app from desiredCaps: /home/joel/fantasy/Fantasy-debug.apk
info: Creating new appium session 302c373f-a285-4761-863b-fbb649be3f97
info: Starting android appium
debug: Using fast reset? true
info: Preparing device for session
info: Checking whether app is actually present
info: Checking whether adb is present
info: [ADB] Using adb from /home/joel/android-sdk-linux/platform-tools/adb
info: Trying to find a connected android device
info: [ADB] Getting connected devices...
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" devices
info: [ADB] 1 device(s) connected
info: Setting device id to emulator-5554
info: [ADB] Waiting for device to be ready and to respond to shell commands (timeout = 5)
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 wait-for-device
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 shell "echo 'ready'"
info: Starting logcat capture
info: Getting device API level
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 shell "getprop ro.build.version.sdk"
info: Device is at API Level 17
debug: java -jar "/home/joel/appium/lib/devices/android/helpers/strings_from_apk.jar" "/home/joel/fantasy/Fantasy-debug.apk" "/tmp/com.coolapz.Fantasy"
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 push "/tmp/com.coolapz.Fantasy/strings.json" /data/local/tmp
debug: Not uninstalling app since server not started with --full-reset
info: MD5 for app is d9d8629201140f66e6ec8d3e2a42b71b
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 shell "ls /data/local/tmp/d9d8629201140f66e6ec8d3e2a42b71b.apk"
debug: Getting install status for com.coolapz.Fantasy
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 shell "pm list packages -3 com.coolapz.Fantasy"
info: [ADB] App is not installed
debug: Checking app cert for /home/joel/fantasy/Fantasy-debug.apk: java -jar "/home/joel/appium/lib/devices/android/helpers/verify.jar" "/home/joel/fantasy/Fantasy-debug.apk"
debug: App already signed.
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 shell "mkdir -p /data/local/tmp/"
info: Removing any old apks
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 shell "ls /data/local/tmp/*.apk"
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 shell rm "/data/local/tmp/42d1731222eded1b6ce4d99dae8a6c0c.apk"
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 push "/home/joel/fantasy/Fantasy-debug.apk" /data/local/tmp/d9d8629201140f66e6ec8d3e2a42b71b.apk
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 shell "pm install -r /data/local/tmp/d9d8629201140f66e6ec8d3e2a42b71b.apk"
info: [ADB] Forwarding system:4724 to device:4724
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 forward tcp:4724 tcp:4724
debug: Pushing appium bootstrap to device...
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 push "/home/joel/appium/build/android_bootstrap/AppiumBootstrap.jar" /data/local/tmp/
debug: Pushing unlock helper app to device...
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 install /home/joel/appium/build/unlock_apk/unlock_apk-debug.apk
info: Attempting to kill all 'uiautomator' processes
info: Getting all processes with 'uiautomator'
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 shell "ps 'uiautomator'"
info: No matching processes found
info: Running bootstrap
debug: spawning: /home/joel/android-sdk-linux/platform-tools/adb -s emulator-5554 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
info: [BOOTSTRAP] [info] Socket opened on port 4724
info: [BOOTSTRAP] [info] Appium Socket Server Ready
info: [BOOTSTRAP] [info] Loading json...
debug: Waking up device if it's not alive
info: Pushing command to appium work queue: ["wake",{}]
info: [BOOTSTRAP] [info] json loading complete.
info: [BOOTSTRAP] [info] Registered crash watchers.
info: [BOOTSTRAP] [info] Client connected
info: [BOOTSTRAP] [info] Got data from client: {"cmd":"action","action":"wake","params":{}}
info: [BOOTSTRAP] [info] Got command of type ACTION
info: [BOOTSTRAP] [debug] Got command action: wake
info: [BOOTSTRAP] [info] Returning result: {"value":true,"status":0}
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 shell "dumpsys window"
info: Writing dumpsys output to /home/joel/appium/.dumpsys.log
debug: Screen is locked, trying to unlock
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n io.appium.unlock/.Unlock"
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 shell "dumpsys window"
info: Writing dumpsys output to /home/joel/appium/.dumpsys.log
debug: Screen is locked, trying to unlock
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n io.appium.unlock/.Unlock"
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 shell "dumpsys window"
info: Writing dumpsys output to /home/joel/appium/.dumpsys.log
debug: Screen is unlocked, continuing
debug: executing: "/home/joel/android-sdk-linux/platform-tools/adb" -s emulator-5554 shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.coolapz.Fantasy/.Fantasy"
error: Activity used to start app doesn't exist! Make sure it exists
info: Stopping logcat capture
debug: Logcat terminated with code null, signal SIGTERM
info: [BOOTSTRAP] [info] Got data from client: {"cmd":"shutdown"}
info: [BOOTSTRAP] [info] Got command of type SHUTDOWN
info: [BOOTSTRAP] [info] Returning result: {"value":"OK, shutting down","status":0}
info: [BOOTSTRAP] [info] Closed client connection
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: Sent shutdown command, waiting for UiAutomator to stop...
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
info: [UIAUTOMATOR STDOUT] Time: 13.201
info: [UIAUTOMATOR STDOUT] OK (1 test)
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
info: UiAutomator shut down normally
info: Cleaning up android objects
info: Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Activity used to start app doesn't exist! Make sure it exists
info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Activity used to start app doesn't exist! Make sure it exists)","origValue":"Activity used to start app doesn't exist! Make sure it exists"},"sessionId":null}
POST /wd/hub/session 500 23235ms - 272b