question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

reset() breaks Appium if the App has been launched with "no_reset=true"

See original GitHub issue

Executing reset() causes appium to throw an exception if the app has been launched with "noReset":true, but it works fine with "noReset":false.

The failing one tries to do info: [debug] Running old fashion reset (reinstall) and throws an error: Problem calculating md5: TypeError: Arguments to path.resolve must be strings error

The working one does info: [debug] Running fast reset (stop and clear)

Logs from the failing one (starting phone app on Galaxy S5 and resetting it)

2015-10-22 12:29:06:396 - info: Welcome to Appium v1.4.0 (REV 8f63e2f91ef7907aed8bda763f4e5ca08e86970a)
2015-10-22 12:29:06:396 - info: Appium REST http interface listener started on 0.0.0.0:4724
2015-10-22 12:29:06:396 - info: [debug] Non-default server args: {"port":4724,"bootstrapPort":4824,"sessionOverride":true,"log":"C:\\java\\appium\\appium4724.log","logTimestamp":true,"localTimezone":true,"androidDeviceReadyTimeout":"120","platformName":"Android","platformVersion":"19","automationName":"Appium","defaultCommandTimeout":900}
2015-10-22 12:29:06:396 - info: Console LogLevel: debug
2015-10-22 12:29:06:396 - info: File LogLevel: debug
2015-10-22 12:29:36:625 - info: --> POST /wd/hub/session {"desiredCapabilities":{"deviceName":"MsPost2","udid":"7fa2ba02","noReset":true,"dontStopAppOnReset":false,"intentAction":"android.intent.action.DIAL","browserName":"","platformVersion":"5.0","appPackage":"com.android.contacts","platformName":"Android","appActivity":".activities.PeopleActivity"}}
2015-10-22 12:29:36:625 - info: Client User-Agent string: Python-urllib/2.7
2015-10-22 12:29:36:625 - info: [debug] Didn't get app but did get Android package, will attempt to launch it on the device
2015-10-22 12:29:36:625 - info: [debug] Creating new appium session 2ca14a4f-c820-42a6-a138-8077bab9073c
2015-10-22 12:29:36:625 - info: Starting android appium
2015-10-22 12:29:36:641 - info: [debug] Getting Java version
2015-10-22 12:29:36:853 - info: Java version is: 1.8.0_60
2015-10-22 12:29:36:855 - info: [debug] Checking whether adb is present
2015-10-22 12:29:36:857 - info: [debug] Using adb from C:\java\droid\sdk\platform-tools\adb.exe
2015-10-22 12:29:36:858 - warn: No app capability, can't parse package/activity
2015-10-22 12:29:36:860 - info: [debug] Set chromedriver binary as: C:\java\appium\v1.4.0.0\node_modules\appium\build\chromedriver\windows\chromedriver.exe
2015-10-22 12:29:36:861 - info: [debug] Using fast reset? false
2015-10-22 12:29:36:861 - info: [debug] Preparing device for session
2015-10-22 12:29:36:862 - info: [debug] Not checking whether app is present since we are assuming it's already on the device
2015-10-22 12:29:36:863 - info: Retrieving device
2015-10-22 12:29:36:864 - info: [debug] Trying to find a connected android device
2015-10-22 12:29:36:864 - info: [debug] Getting connected devices...
2015-10-22 12:29:36:867 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe devices
2015-10-22 12:29:37:144 - info: [debug] 2 device(s) connected
2015-10-22 12:29:37:145 - info: Found device 7fa2ba02
2015-10-22 12:29:37:145 - info: [debug] Setting device id to 7fa2ba02
2015-10-22 12:29:37:147 - info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 120)
2015-10-22 12:29:37:148 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 wait-for-device
2015-10-22 12:29:37:208 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 shell "echo 'ready'"
2015-10-22 12:29:37:320 - info: [debug] Starting logcat capture
2015-10-22 12:29:37:390 - info: [debug] Getting device API level
2015-10-22 12:29:37:390 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 shell "getprop ro.build.version.sdk"
2015-10-22 12:29:37:546 - info: [debug] Device is at API Level 21
2015-10-22 12:29:37:546 - info: Device API level is: 21
2015-10-22 12:29:37:546 - info: [debug] Extracting strings for language: default
2015-10-22 12:29:37:546 - info: [debug] Apk doesn't exist locally
2015-10-22 12:29:37:546 - info: [debug] Could not get strings, but it looks like we had an old strings file anyway, so ignoring
2015-10-22 12:29:37:562 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 shell "rm -rf /data/local/tmp/strings.json"
2015-10-22 12:29:37:687 - info: [debug] Not uninstalling app since server not started with --full-reset
2015-10-22 12:29:37:687 - info: [debug] Skipping install since we launched with a package instead of an app path
2015-10-22 12:29:37:687 - info: [debug] Forwarding system:4824 to device:4724
2015-10-22 12:29:37:687 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 forward tcp:4824 tcp:4724
2015-10-22 12:29:37:764 - info: [debug] Pushing appium bootstrap to device...
2015-10-22 12:29:37:766 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 push "C:\\java\\appium\\v1.4.0.0\\node_modules\\appium\\build\\android_bootstrap\\AppiumBootstrap.jar" /data/local/tmp/
2015-10-22 12:29:37:861 - info: [debug] Pushing settings apk to device...
2015-10-22 12:29:37:863 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 install "C:\java\appium\v1.4.0.0\node_modules\appium\build\settings_apk\settings_apk-debug.apk"
2015-10-22 12:29:38:838 - info: [debug] Pushing unlock helper app to device...
2015-10-22 12:29:38:838 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 install "C:\java\appium\v1.4.0.0\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk"
2015-10-22 12:29:39:651 - info: Starting App
2015-10-22 12:29:39:651 - info: [debug] Attempting to kill all 'uiautomator' processes
2015-10-22 12:29:39:651 - info: [debug] Getting all processes with 'uiautomator'
2015-10-22 12:29:39:651 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 shell "ps 'uiautomator'"
2015-10-22 12:29:39:807 - info: [debug] No matching processes found
2015-10-22 12:29:39:807 - info: [debug] Running bootstrap
2015-10-22 12:29:39:807 - info: [debug] spawning: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap -e pkg com.android.contacts -e disableAndroidWatchers false
2015-10-22 12:29:40:229 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
2015-10-22 12:29:40:230 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
2015-10-22 12:29:40:232 - info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
2015-10-22 12:29:40:232 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
2015-10-22 12:29:40:233 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
2015-10-22 12:29:40:233 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
2015-10-22 12:29:40:234 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
2015-10-22 12:29:40:235 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
2015-10-22 12:29:40:260 - info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724
2015-10-22 12:29:40:262 - info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Ready
2015-10-22 12:29:40:265 - info: [debug] [BOOTSTRAP] [debug] Loading json...
2015-10-22 12:29:40:267 - info: [debug] Waking up device if it's not alive
2015-10-22 12:29:40:267 - info: [debug] Pushing command to appium work queue: ["wake",{}]
2015-10-22 12:29:40:270 - info: [debug] [BOOTSTRAP] [debug] Registered crash watchers.
2015-10-22 12:29:40:270 - info: [debug] [BOOTSTRAP] [debug] Client connected
2015-10-22 12:29:40:273 - info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"wake","params":{}}
2015-10-22 12:29:40:274 - info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
2015-10-22 12:29:40:275 - info: [debug] [BOOTSTRAP] [debug] Got command action: wake
2015-10-22 12:29:40:276 - info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":true}
2015-10-22 12:29:40:277 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 shell "dumpsys window"
2015-10-22 12:29:40:382 - info: [debug] Screen already unlocked, continuing.
2015-10-22 12:29:40:383 - info: [debug] Pushing command to appium work queue: ["getDataDir",{}]
2015-10-22 12:29:40:387 - info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"getDataDir","params":{}}
2015-10-22 12:29:40:388 - info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
2015-10-22 12:29:40:390 - info: [debug] [BOOTSTRAP] [debug] Got command action: getDataDir
2015-10-22 12:29:40:391 - info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":"\/data\/local\/tmp"}
2015-10-22 12:29:40:392 - info: [debug] dataDir set to: /data/local/tmp
2015-10-22 12:29:40:392 - info: [debug] Pushing command to appium work queue: ["compressedLayoutHierarchy",{"compressLayout":false}]
2015-10-22 12:29:40:396 - info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"compressedLayoutHierarchy","params":{"compressLayout":false}}
2015-10-22 12:29:40:397 - info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
2015-10-22 12:29:40:397 - info: [debug] [BOOTSTRAP] [debug] Got command action: compressedLayoutHierarchy
2015-10-22 12:29:40:398 - info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":false}
2015-10-22 12:29:40:400 - info: [debug] Getting device API level
2015-10-22 12:29:40:400 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 shell "getprop ro.build.version.sdk"
2015-10-22 12:29:40:479 - info: [debug] Device is at API Level 21
2015-10-22 12:29:40:479 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 shell "am start -S -a android.intent.action.DIAL -c android.intent.category.LAUNCHER -f 0x10200000 -n com.android.contacts/.activities.PeopleActivity"
2015-10-22 12:29:41:375 - info: [debug] Waiting for pkg "com.android.contacts" and activity ".activities.PeopleActivity" to be focused
2015-10-22 12:29:41:375 - info: [debug] Getting focused package and activity
2015-10-22 12:29:41:375 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 shell "dumpsys window windows"
2015-10-22 12:29:41:484 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 shell "getprop ro.build.version.release"
2015-10-22 12:29:41:562 - info: [debug] Device is at release version 5.0
2015-10-22 12:29:41:562 - info: [debug] Device launched! Ready for commands
2015-10-22 12:29:41:562 - info: [debug] Setting command timeout to the default of 900 secs
2015-10-22 12:29:41:562 - info: [debug] Appium session started with sessionId 2ca14a4f-c820-42a6-a138-8077bab9073c
2015-10-22 12:29:41:562 - info: <-- POST /wd/hub/session 303 4939.284 ms - 74
2015-10-22 12:29:41:562 - info: --> GET /wd/hub/session/2ca14a4f-c820-42a6-a138-8077bab9073c {}
2015-10-22 12:29:41:578 - info: [debug] Responding to client with success: {"status":0,"value":{"platform":"LINUX","browserName":"","platformVersion":"5.0","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"deviceName":"MsPost2","udid":"7fa2ba02","noReset":true,"dontStopAppOnReset":false,"intentAction":"android.intent.action.DIAL","browserName":"","platformVersion":"5.0","appPackage":"com.android.contacts","platformName":"Android","appActivity":".activities.PeopleActivity"},"deviceName":"7fa2ba02","udid":"7fa2ba02","noReset":true,"dontStopAppOnReset":false,"intentAction":"android.intent.action.DIAL","appPackage":"com.android.contacts","platformName":"Android","appActivity":".activities.PeopleActivity"},"sessionId":"2ca14a4f-c820-42a6-a138-8077bab9073c"}
2015-10-22 12:29:41:578 - info: <-- GET /wd/hub/session/2ca14a4f-c820-42a6-a138-8077bab9073c 200 7.486 ms - 824 {"status":0,"value":{"platform":"LINUX","browserName":"","platformVersion":"5.0","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"deviceName":"MsPost2","udid":"7fa2ba02","noReset":true,"dontStopAppOnReset":false,"intentAction":"android.intent.action.DIAL","browserName":"","platformVersion":"5.0","appPackage":"com.android.contacts","platformName":"Android","appActivity":".activities.PeopleActivity"},"deviceName":"7fa2ba02","udid":"7fa2ba02","noReset":true,"dontStopAppOnReset":false,"intentAction":"android.intent.action.DIAL","appPackage":"com.android.contacts","platformName":"Android","appActivity":".activities.PeopleActivity"},"sessionId":"2ca14a4f-c820-42a6-a138-8077bab9073c"}
2015-10-22 12:29:41:594 - info: --> POST /wd/hub/session/2ca14a4f-c820-42a6-a138-8077bab9073c/appium/app/reset {"sessionId":"2ca14a4f-c820-42a6-a138-8077bab9073c"}
2015-10-22 12:29:41:594 - info: [debug] Resetting app mid-session
2015-10-22 12:29:41:594 - info: [debug] Running device specific reset
2015-10-22 12:29:41:594 - info: [debug] Running old fashion reset (reinstall)
2015-10-22 12:29:41:594 - error: Problem calculating md5: TypeError: Arguments to path.resolve must be strings
2015-10-22 12:29:41:594 - info: [debug] Responding to client with error: {"status":13,"value":{"message":"An unknown server-side error occurred while processing the command.","origValue":"Arguments to path.resolve must be strings"},"sessionId":"2ca14a4f-c820-42a6-a138-8077bab9073c"}
2015-10-22 12:29:41:594 - info: <-- POST /wd/hub/session/2ca14a4f-c820-42a6-a138-8077bab9073c/appium/app/reset 500 11.723 ms - 210
2015-10-22 12:29:41:609 - info: --> GET /wd/hub/session/2ca14a4f-c820-42a6-a138-8077bab9073c/screenshot {}
2015-10-22 12:29:41:625 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 shell "/system/bin/rm /data/local/tmp/screenshot.png; /system/bin/screencap -p /data/local/tmp/screenshot.png "
2015-10-22 12:29:42:203 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 pull /data/local/tmp/screenshot.png "C:\\tmp\\jari\\appium115922-2052-1vc1a21.png"
2015-10-22 12:29:42:270 - info: [debug] Responding to client with success: {"status":0,"value":"iVBORw0KGgoAAAANSUhEUgAABDgAAAeACAYAAAArYecKAAAABHNCSVQICAgIfAhkiAAAIABJREFUeJzs3Xd0VNX+/vFnTgIRQkgkASEIoQqIoRiaoUmTdvWKqCBeFPyKoUR6b9JRQXozKE1B7HpB8IJiQYoUkSYg0qQKgQRCCGlzfn+wZn6ZFBIgZQ68X2uxNMmZM3tmzpzynL0/2ybJFAAAAAAAgIUZed0AAAAAAACAO0XAAQAAAAAALI+AAwAAAAAAWB4BBwAAAAAAsDwCDgAAAAAAYHkEHAAAAAAAwPIIOAAAAAAAgOURcAAAAAAAAMsj4AAAAAAAAJZHwAEAAAAAACzPM68bAAAAAPf04IMPqmrVqipevLhKlCihkiVLymazydfXV8WKFZMkXbhwQdHR0ZKk06dP6+zZszp37pz279+vkydP5mXzAQD3GJskM68bAQAAgLzn6+urhg0bqmbNmnrkkUfk5+cnm80mm83mslzqn03TTPfnqKgo/fHHH9qxY4d++eUXXb58OWdfAADgnkbAAQAAcA/z9PRUo0aN9Pjjj6tOnToyDCPdUON2maYp0zSVnJysnTt3asOGDdq4caMSExOzZf3AvSwkJEStW7fO8vf122+/1Y4dO9KEksDdgiEqAAAA9yBvb2+1atVKzz//vPz9/XPseRxhiWEYqlevnurVq6dLly7pk08+0bfffqurV6/m2HPfzbp27aqlS5fKbrfndVOQhx588EE1atRIhpG10or79+/Xjh07crhVQN6hyCgAAMA9xNPTU+3bt9fy5cvVo0ePHA03MlKkSBF1795dy5cv13PPPad8+fLlehusrGvXrurUqVO29bIBgLsFPTgAAADukK+vr3r06KG3337bre+oh4SEqHv37goKCsryHd8DBw44C4YePXpU0dHROn/+
vMsy/v7+KlKkiEqUKKGyZcuqWrVqqlq1aqYX4N7e3urWrZtatWql+fPna+fOnXSdz0SXLl3U...","sessionId":"2ca14a4f-c820-42a6-a138-8077bab9073c"}
2015-10-22 12:29:42:274 - info: <-- GET /wd/hub/session/2ca14a4f-c820-42a6-a138-8077bab9073c/screenshot 200 650.519 ms - 38618 {"status":0,"value":"iVBORw0KGgoAAAANSUhEUgAABDgAAAeACAYAAAArYecKAAAABHNCSVQICAgIfAhkiAAAIABJREFUeJzs3Xd0VNX+/vFnTgIRQkgkASEIoQqIoRiaoUmTdvWKqCBeFPyKoUR6b9JRQXozKE1B7HpB8IJiQYoUkSYg0qQKgQRCCGlzfn+wZn6ZFBIgZQ68X2uxNMmZM3tmzpzynL0/2ybJFAAAAAAAgIUZed0AAAAAAACAO0XAAQAAAAAALI+AAwAAAAAAWB4BBwAAAAAAsDwCDgAAAAAAYHkEHAAAAAAAwPIIOAAAAAAAgOURcAAAAAAAAMsj4AAAAAAAAJZHwAEAAAAAACzPM68bAAAAAPf04IMPqmrVqipevLhKlCihkiVLymazydfXV8WKFZMkXbhwQdHR0ZKk06dP6+zZszp37pz279+vkydP5mXzAQD3GJskM68bAQAAgLzn6+urhg0bqmbNmnrkkUfk5+cnm80mm83mslzqn03TTPfnqKgo/fHHH9qxY4d++eUXXb58OWdfAADgnkbAAQAAcA/z9PRUo0aN9Pjjj6tOnToyDCPdUON2maYp0zSVnJysnTt3asOGDdq4caMSExOzZf3AvSwkJEStW7fO8vf122+/1Y4dO9KEksDdgiEqAAAA9yBvb2+1atVKzz//vPz9/XPseRxhiWEYqlevnurVq6dLly7pk08+0bfffqurV6/m2HPfzbp27aqlS5fKbrfndVOQhx588EE1atRIhpG10or79+/Xjh07crhVQN6hyCgAAMA9xNPTU+3bt9fy5cvVo0ePHA03MlKkSBF1795dy5cv13PPPad8+fLlehusrGvXrurUqVO29bIBgLsFPTgAAADukK+vr3r0
6KG3337bre+oh4SEqHv37goKCsryHd8DBw44C4YePXpU0dHROn/+vMsy/v7+KlKkiEqUKKGyZcuqWrVqqlq1aqYX4N7e3urWrZtatWql+fPna+fOnXSdz0SXLl3U...","sessionId":"2ca14a4f-c820-42a6-a138-8077bab9073c"}
2015-10-22 12:29:42:299 - info: --> POST /wd/hub/session/2ca14a4f-c820-42a6-a138-8077bab9073c/appium/device/press_keycode {"sessionId":"2ca14a4f-c820-42a6-a138-8077bab9073c","keycode":6}
2015-10-22 12:29:42:301 - info: [debug] Pushing command to appium work queue: ["pressKeyCode",{"keycode":6,"metastate":null}]
2015-10-22 12:29:42:305 - info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"pressKeyCode","params":{"keycode":6,"metastate":null}}
2015-10-22 12:29:42:306 - info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
2015-10-22 12:29:42:306 - info: [debug] [BOOTSTRAP] [debug] Got command action: pressKeyCode
2015-10-22 12:29:42:642 - info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":true}
2015-10-22 12:29:42:642 - info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"2ca14a4f-c820-42a6-a138-8077bab9073c"}
2015-10-22 12:29:42:642 - info: <-- POST /wd/hub/session/2ca14a4f-c820-42a6-a138-8077bab9073c/appium/device/press_keycode 200 348.467 ms - 76 {"status":0,"value":true,"sessionId":"2ca14a4f-c820-42a6-a138-8077bab9073c"}
2015-10-22 12:29:42:642 - info: --> POST /wd/hub/session/2ca14a4f-c820-42a6-a138-8077bab9073c/appium/device/press_keycode {"sessionId":"2ca14a4f-c820-42a6-a138-8077bab9073c","keycode":4}
2015-10-22 12:29:42:642 - info: [debug] Pushing command to appium work queue: ["pressKeyCode",{"keycode":4,"metastate":null}]
2015-10-22 12:29:42:642 - info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action":"pressKeyCode","params":{"keycode":4,"metastate":null}}
2015-10-22 12:29:42:642 - info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
2015-10-22 12:29:42:658 - info: [debug] [BOOTSTRAP] [debug] Got command action: pressKeyCode
2015-10-22 12:29:42:840 - info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":true}
2015-10-22 12:29:42:841 - info: [debug] Responding to client with success: {"status":0,"value":true,"sessionId":"2ca14a4f-c820-42a6-a138-8077bab9073c"}
2015-10-22 12:29:42:843 - info: <-- POST /wd/hub/session/2ca14a4f-c820-42a6-a138-8077bab9073c/appium/device/press_keycode 200 192.583 ms - 76 {"status":0,"value":true,"sessionId":"2ca14a4f-c820-42a6-a138-8077bab9073c"}
2015-10-22 12:29:42:846 - info: --> DELETE /wd/hub/session/2ca14a4f-c820-42a6-a138-8077bab9073c {}
2015-10-22 12:29:42:848 - info: Shutting down appium session
2015-10-22 12:29:42:849 - info: [debug] Pressing the HOME button
2015-10-22 12:29:42:850 - info: [debug] executing cmd: C:\java\droid\sdk\platform-tools\adb.exe -s 7fa2ba02 shell "input keyevent 3"
2015-10-22 12:29:43:428 - info: [debug] Stopping logcat capture
2015-10-22 12:29:43:432 - info: [debug] Logcat terminated with code null, signal SIGTERM
2015-10-22 12:29:43:436 - info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"shutdown"}
2015-10-22 12:29:43:437 - info: [debug] [BOOTSTRAP] [debug] Got command of type SHUTDOWN
2015-10-22 12:29:43:438 - info: [debug] Sent shutdown command, waiting for UiAutomator to stop...
2015-10-22 12:29:43:440 - info: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":"OK, shutting down"}
2015-10-22 12:29:43:441 - info: [debug] [BOOTSTRAP] [debug] Closed client connection
2015-10-22 12:29:43:442 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
2015-10-22 12:29:43:442 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
2015-10-22 12:29:43:443 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
2015-10-22 12:29:43:444 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
2015-10-22 12:29:43:445 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
2015-10-22 12:29:43:446 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
2015-10-22 12:29:43:447 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
2015-10-22 12:29:43:448 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
2015-10-22 12:29:43:449 - info: [debug] [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
2015-10-22 12:29:43:450 - info: [debug] [UIAUTOMATOR STDOUT] Time: 3.243
2015-10-22 12:29:43:450 - info: [debug] [UIAUTOMATOR STDOUT] OK (1 test)
2015-10-22 12:29:43:452 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
2015-10-22 12:29:43:454 - info: [debug] UiAutomator shut down normally
2015-10-22 12:29:43:455 - info: [debug] Cleaning up android objects
2015-10-22 12:29:43:456 - info: [debug] Cleaning up appium session
2015-10-22 12:29:43:456 - info: [debug] Responding to client with success: {"status":0,"value":null,"sessionId":"2ca14a4f-c820-42a6-a138-8077bab9073c"}
2015-10-22 12:29:43:459 - info: <-- DELETE /wd/hub/session/2ca14a4f-c820-42a6-a138-8077bab9073c 200 612.513 ms - 76 {"status":0,"value":null,"sessionId":"2ca14a4f-c820-42a6-a138-8077bab9073c"}
2015-10-22 12:29:43:461 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_RESULT: shortMsg=java.lang.SecurityException
2015-10-22 12:29:43:462 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_RESULT: longMsg=Permission Denial: getIntentSender() from pid=25657, uid=2000, (need uid=1000) is not allowed to send as package android
2015-10-22 12:29:43:464 - info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_CODE: 0

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
yahman72commented, Feb 3, 2017

closing this is probably the right move, but it would still be good to know how it should work - i.e. answer my last comment, because the documentation does not give the answers…

0reactions
lock[bot]commented, Apr 29, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reset Strategies - Appium
Do not stop app, do not clear app data, and do not uninstall apk. *: Make sure the local data has been deleted...
Read more >
Reset App - Appium
Edit this Doc Reset App. Reset the currently running app for this session. Example Usage. Java; Python; Javascript; Ruby; C#. driver.resetApp();.
Read more >
Launching and stopping appium server programmtically
Hi, Is there a way to launch/stop the appium server programmatically? ... 0.12 has been deprecated and will be removed in a future...
Read more >
Why it install app. everytime if App. already there in device?
Launch Appium -> Click on Android settings(clicking on Android Icon). You see these two settings. Make sure “No Reset” checkbox checked and “ ......
Read more >
Support - Appium Discuss
Appium 1.5.3 I am trying to launch appium programatically on Mac using Appium ... of Javascript that have not yet been implemented in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found