appium/appium — pull request #2097 by bootstraponline (2014-03-19 16:11:25+00:00)
Title: Android process

@jlipps There's an issue persisting fastReset across multiple sessions. It's an existing problem. I added an error check in this PR.

> error: Failed to start an Appium session, err was: Error: this.args.fastReset must not be undefined
info: Error: this.args.fastReset must not be undefined
at Android.start (/Users/user/woven/appium/lib/devices/android/android.js:91:17)
at Appium.invoke (/Users/user/woven/appium/lib/appium.js:210:17)
at null. (/Users/user/woven/appium/lib/appium.js:87:14)
at /Users/user/woven/appium/lib/devices/device.js:64:7
at Object.oncomplete (fs.js:107:15)
info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: this.args.fastReset must not be undefined)","origValue":"this.args.fastReset must not be undefined"},"sessionId":null}

Fix #2077

I updated the process detection logic so it's correctly selecting the application process instead of any random process that happens to be in the manifest.