info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)
info: [debug] Using local app from desired caps: D:\app\debug.apk
info: [debug] Creating new appium session 66ea2768-50bd-47b8-b3ca-f71bf107e514
info: Starting android appium
info: [debug] Getting Java version
info: Java version is: 1.7.0_40
info: [debug] Checking whether adb is present
info: [debug] Using adb from E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe
info: [debug] Using fast reset? true
info: [debug] Preparing device for session
info: [debug] Checking whether app is actually present
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices...
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe devices
info: [debug] 1 device(s) connected
info: Found device 79AEALE2EL3R
info: [debug] Setting device id to 79AEALE2EL3R
info: [debug] Waiting for device to be ready and to respond to shell commands (t
imeout = 5)
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R wait-for-device
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R shell "echo 're
ady'"
info: [debug] Starting logcat capture
info: [debug] Getting device API level
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R shell "getprop
ro.build.version.sdk"
info: [debug] Device is at API Level 19
info: Device API level is: 19
info: [debug] Extracting strings for language: default
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R shell "getprop
persist.sys.language"
info: [debug] Current device persist.sys.language: zh
info: [debug] java -jar "C:\Users\ben.wang\AppData\Roaming\npm\node_modules\appi
um\node_modules\appium-adb\jars\appium_apk_tools.jar" "stringsFromApk" "D:\app\d
ebug.apk" "C:\Users\BEN~1.WAN\AppData\Local\Temp\com.Qunar" zh
info: [debug] No strings.xml for language 'zh', getting default strings.xml
info: [debug] java -jar "C:\Users\ben.wang\AppData\Roaming\npm\node_modules\appi
um\node_modules\appium-adb\jars\appium_apk_tools.jar" "stringsFromApk" "D:\app\d
ebug.apk" "C:\Users\BEN~1.WAN\AppData\Local\Temp\com.Qunar"
info: [debug] Reading strings from converted strings.json
info: [debug] Setting language to default
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R push "C:\\Users
\\BEN~1.WAN\\AppData\\Local\\Temp\\com.Qunar\\strings.json" /data/local/tmp
info: [debug] Checking whether aapt is present
info: [debug] Using aapt from E:\adt-bundle-windows-x86_64-20140702\adt-bundle-w
indows-x86_64-20140702\sdk\build-tools\android-4.4W\aapt.exe
info: [debug] Retrieving process from manifest.
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\build-tools\android-4.4W\aapt.exe dump xmltree D:\app\
debug.apk AndroidManifest.xml
info: [debug] Set app process to: com.××××
info: [debug] Not uninstalling app since server not started with --full-reset
info: [debug] Checking app cert for D:\app\debug.apk.
info: [debug] executing cmd: java -jar C:\Users\ben.wang\AppData\Roaming\npm\nod
e_modules\appium\node_modules\appium-adb\jars\verify.jar D:\app\debug.apk
info: [debug] App already signed.
info: [debug] Zip-aligning D:\app\debug.apk
info: [debug] Checking whether zipalign is present
info: [debug] Using zipalign from E:\adt-bundle-windows-x86_64-20140702\adt-bund
le-windows-x86_64-20140702\sdk\build-tools\android-4.4W\zipalign.exe
info: [debug] Zip-aligning apk.
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\build-tools\android-4.4W\zipalign.exe -f 4 D:\app\debu
g.apk C:\Users\×××~1.WAN\AppData\Local\Temp\115927-10092-1itcoua\appium.tmp
info: [debug] MD5 for app is ××××××××××
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R shell "ls /data
/local/tmp/691cb11c38c8cac3f2c8c41729b7352b.apk"
info: [debug] Getting install status for com.×××
info: [debug] Getting device API level
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R shell "getprop
ro.build.version.sdk"
info: [debug] Device is at API Level 19
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R shell "pm list
packages -3 com.××××
info: [debug] App is not installed
info: Installing App
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R shell "mkdir -p
/data/local/tmp/"
info: [debug] Removing any old apks
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R shell "ls /data
/local/tmp/*.apk"
info: [debug] Found an apk we want to keep at /data/local/tmp/691cb11c38c8cac3f2
c8c41729b7352b.apk
info: [debug] Couldn't find any apks to remove
info: [debug] Uninstalling com.×××××
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R shell "am force
-stop com.××××"
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R uninstall com.Q
unar
info: [debug] App was not uninstalled, maybe it wasn't on device?
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R shell "pm insta
ll -r /data/local/tmp/691cb11c38c8cac3f2c8c41729b7352b.apk"
info: [debug] Forwarding system:4724 to device:4724
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s ×××××× forward tcp:472
4 tcp:4724
info: [debug] Pushing appium bootstrap to device...
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R push "C:\\Users
\\×××××××\\AppData\\Roaming\\npm\\node_modules\\appium\\build\\android_bootstra
p\\AppiumBootstrap.jar" /data/local/tmp/
info: [debug] Pushing settings apk to device...
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R install "C:\Use
rs\ben.wang\AppData\Roaming\npm\node_modules\appium\build\settings_apk\settings_
apk-debug.apk"
info: [debug] Pushing unlock helper app to device...
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R install "C:\Use
rs\ben.wang\AppData\Roaming\npm\node_modules\appium\build\unlock_apk\unlock_apk-
debug.apk"
info: Starting App
info: [debug] Attempting to kill all 'uiautomator' processes
info: [debug] Getting all processes with 'uiautomator'
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R shell "ps 'uiau
tomator'"
info: [debug] No matching processes found
info: [debug] Running bootstrap
info: [debug] spawning: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-windows
-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R shell uiautomator ru
ntest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap -e pkg com.Qu
nar -e disableAndroidWatchers false
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRun
ner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.andro
id.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
info: [debug] [UIAUTOMATOR STDOUT] tcp port:4724
info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724
info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Ready
info: [debug] [BOOTSTRAP] [debug] Loading json...
info: [debug] Waking up device if it's not alive
info: [debug] Pushing command to appium work queue: ["wake",{}]
info: [debug] [BOOTSTRAP] [debug] json loading complete.
info: [debug] [BOOTSTRAP] [debug] Registered crash watchers.
info: [debug] [BOOTSTRAP] [debug] Client connected
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action"
:"wake","params":{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: wake
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R shell "dumpsys
window"
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":true,"status":0}
info: [debug] Screen already unlocked, continuing.
info: [debug] Pushing command to appium work queue: ["getDataDir",{}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action"
:"getDataDir","params":{}}
info: [debug] dataDir set to: /data/local/tmp
info: [debug] Pushing command to appium work queue: ["compressedLayoutHierarchy"
,{"compressLayout":false}]
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getDataDir
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":"\/data\/local\/tmp
","status":0}
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"action","action"
:"compressedLayoutHierarchy","params":{"compressLayout":false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: compressedLayoutHierarchy
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":false,"status":0}
info: [debug] Getting device API level
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R shell "getprop
ro.build.version.sdk"
info: [debug] Device is at API Level 19
info: [debug] executing cmd: E:\adt-bundle-windows-x86_64-20140702\adt-bundle-wi
ndows-x86_64-20140702\sdk\platform-tools\adb.exe -s 79AEALE2EL3R shell "am start
-S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200
000 -n com.Qunar/com.mqunar.atom.alexhome.ui.activity.MainActivity"
error: Permission to start activity denied.
info: [debug] Stopping logcat capture
info: [debug] Logcat terminated with code null, signal SIGTERM
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"shutdown"}
info: [debug] Sent shutdown command, waiting for UiAutomator to stop...
info: [debug] [BOOTSTRAP] [debug] Got command of type SHUTDOWN
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":"OK, shutting down"
,"status":0}
info: [debug] [UIAUTOMATOR STDOUT] [CDS]close[4724]
info: [debug] [UIAUTOMATOR STDOUT] close [socket][/0.0.0.0:4724]
info: [debug] [BOOTSTRAP] [debug] Closed client connection
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRun
ner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.andro
id.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
info: [debug] [UIAUTOMATOR STDOUT] Time: 1.115
info: [debug] [UIAUTOMATOR STDOUT] OK (1 test)
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
info: [debug] UiAutomator shut down normally
info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Permission to start ac
tivity denied.
info: [debug] Error: Permission to start activity denied.
at [object Object].<anonymous> (C:\Users\ben.wang\AppData\Roaming\npm\node_m
odules\appium\node_modules\appium-adb\lib\adb.js:1151:19)
at [object Object].<anonymous> (C:\Users\ben.wang\AppData\Roaming\npm\node_m
odules\appium\node_modules\appium-adb\lib\adb.js:180:9)
at ChildProcess.exithandler (child_process.js:194:7)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
info: [debug] Responding to client with error: {"status":33,"value":{"message":"
A new session could not be created. (Original error: Permission to start activit
y denied.)","origValue":"Permission to start activity denied."},"sessionId":null
}
info: <-- POST /wd/hub/session 500 21278.145 ms - 194