> Launching Appium server with command: C:\Program Files (x86)\Appium\node.exe lib\server\main.js --address 127.0.0.1 --port 4723 --app C:\Users\liwei9\Downloads\weixin_1220.apk --platform-name Android --platform-version 23 --automation-name Appium --device-name "127.0.0.1:62001" --log-no-color
> info: Welcome to Appium v1.4.16 (REV ae6877eff263066b26328d457bd285c0cc62430d)
> info: Appium REST http interface listener started on 127.0.0.1:4723
> info: [debug] Non-default server args: {"app":"C:\\Users\\liwei9\\Downloads\\weixin_1220.apk","address":"127.0.0.1","logNoColors":true,"deviceName":"127.0.0.1:62001","platformName":"Android","platformVersion":"23","automationName":"Appium"}
> info: Console LogLevel: debug
> info: --> POST /wd/hub/session {"capabilities":{"alwaysMatch":{"platformName":"android"},"firstMatch":[{}]},"desiredCapabilities":{"platformVersion":"4.4.2","deviceName":"127.0.0.1:62001","platformName":"android","appActivity":"com.tencent.mm.ui.LauncherUI","appPackage":"com.tencent.mm"}}
> info: Client User-Agent string: Python http auth
> info: [debug] Using local app from command line: C:\Users\liwei9\Downloads\weixin_1220.apk
> info: [debug] Creating new appium session ed8ae816-49cf-4a2a-b75b-0200468db1c2
> info: Starting android appium
> info: [debug] Getting Java version
> info: Java version is: 1.8.0_101
> info: [debug] Checking whether adb is present
> info: [debug] Using adb from D:\Android\android-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: D:\Android\android-sdk\platform-tools\adb.exe devices
> info: [debug] 1 device(s) connected
> info: Found device 127.0.0.1:62001
> info: [debug] Setting device id to 127.0.0.1:62001
> info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 wait-for-device
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "echo 'ready'"
> info: [debug] Starting logcat capture
> info: [debug] Getting device API level
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 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: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "getprop persist.sys.language"
> info: [debug] Current device persist.sys.language: zh
> info: [debug] java -jar "C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar" "stringsFromApk" "C:\Users\liwei9\Downloads\weixin_1220.apk" "C:\Users\liwei9\AppData\Local\Temp\com.tencent.mm" zh
> info: [debug] No strings.xml for language 'zh', getting default strings.xml
> info: [debug] java -jar "C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar" "stringsFromApk" "C:\Users\liwei9\Downloads\weixin_1220.apk" "C:\Users\liwei9\AppData\Local\Temp\com.tencent.mm"
> info: [debug] Reading strings from converted strings.json
> info: [debug] Setting language to default
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 push "C:\\Users\\liwei9\\AppData\\Local\\Temp\\com.tencent.mm\\strings.json" /data/local/tmp
> info: [debug] Checking whether aapt is present
> info: [debug] Using aapt from D:\Android\android-sdk\build-tools\27.0.3\aapt.exe
> info: [debug] Retrieving process from manifest.
> info: [debug] executing cmd: D:\Android\android-sdk\build-tools\27.0.3\aapt.exe dump xmltree C:\Users\liwei9\Downloads\weixin_1220.apk AndroidManifest.xml
> info: [debug] Set app process to: com.tencent.mm
> info: [debug] Not uninstalling app since server not started with --full-reset
> info: [debug] Checking app cert for C:\Users\liwei9\Downloads\weixin_1220.apk.
> info: [debug] executing cmd: java -jar "C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\verify.jar" C:\Users\liwei9\Downloads\weixin_1220.apk
> info: [debug] App not signed with debug cert.
> info: [debug] Resigning apk.
> info: [debug] executing cmd: java -jar "C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\jars\sign.jar" C:\Users\liwei9\Downloads\weixin_1220.apk --override
> info: [debug] Zip-aligning C:\Users\liwei9\Downloads\weixin_1220.apk
> info: [debug] Checking whether zipalign is present
> info: [debug] Using zipalign from D:\Android\android-sdk\build-tools\27.0.3\zipalign.exe
> info: [debug] Zip-aligning apk.
> info: [debug] executing cmd: D:\Android\android-sdk\build-tools\27.0.3\zipalign.exe -f 4 C:\Users\liwei9\Downloads\weixin_1220.apk C:\Users\liwei9\AppData\Local\Temp\118018-8548-1jutgbc\appium.tmp
> info: [debug] MD5 for app is 70fa8e641fcea84c0cb10fda75317c08
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "ls /data/local/tmp/70fa8e641fcea84c0cb10fda75317c08.apk"
> info: [debug] Getting install status for com.tencent.mm
> info: [debug] Getting device API level
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "getprop ro.build.version.sdk"
> info: [debug] Device is at API Level 19
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "pm list packages -3 com.tencent.mm"
> info: [debug] App is installed
> info: Installing App
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "mkdir -p /data/local/tmp/"
> info: [debug] Removing any old apks
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "ls /data/local/tmp/*.apk"
> info: [debug] No apks to examine
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 push "C:\\Users\\liwei9\\Downloads\\weixin_1220.apk" /data/local/tmp/70fa8e641fcea84c0cb10fda75317c08.apk
> info: [debug] Uninstalling com.tencent.mm
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "am force-stop com.tencent.mm"
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 uninstall com.tencent.mm
> info: [debug] App was uninstalled
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "pm install -r /data/local/tmp/70fa8e641fcea84c0cb10fda75317c08.apk"
> info: [debug] Forwarding system:4724 to device:4724
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 forward tcp:4724 tcp:4724
> info: [debug] Pushing appium bootstrap to device...
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 push "C:\\Program Files (x86)\\Appium\\node_modules\\appium\\build\\android_bootstrap\\AppiumBootstrap.jar" /data/local/tmp/
> info: [debug] Pushing settings apk to device...
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 install "C:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk"
> info: [debug] Pushing unlock helper app to device...
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 install "C:\Program Files (x86)\Appium\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: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "ps 'uiautomator'"
> info: [debug] No matching processes found
> info: [debug] Running bootstrap
> info: [debug] spawning: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap -e pkg com.tencent.mm -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=UiAutomatorTestRunner
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
> 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] [BOOTSTRAP] [debug] Returning result: {"value":true,"status":0}
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "dumpsys window"
> 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] [BOOTSTRAP] [debug] Got command of type ACTION
> info: [debug] [BOOTSTRAP] [debug] Got command action: getDataDir
> info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":"\/data","status":0}
> info: [debug] dataDir set to: /data
> info: [debug] Pushing command to appium work queue: ["compressedLayoutHierarchy",{"compressLayout":false}]
> 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: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "getprop ro.build.version.sdk"
> info: [debug] Device is at API Level 19
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n com.tencent.mm/com.tencent.mm.ui.LauncherUI"
> info: [debug] Waiting for pkg "com.tencent.mm" and activity "com.tencent.mm.ui.LauncherUI" to be focused
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "dumpsys window windows"
> info: [debug] Getting focused package and activity
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "dumpsys window windows"
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "getprop ro.build.version.release"
> info: [debug] Device is at release version 4.4.2
> info: [debug] Device launched! Ready for commands
> info: [debug] Setting command timeout to the default of 60 secs
> info: [debug] Appium session started with sessionId ed8ae816-49cf-4a2a-b75b-0200468db1c2
> info: <-- POST /wd/hub/session 303 92512.449 ms - 74
> info: --> GET /wd/hub/session/ed8ae816-49cf-4a2a-b75b-0200468db1c2 {}
> info: [debug] Responding to client with success: {"status":0,"value":{"platform":"LINUX","browserName":"Android","platformVersion":"4.4.2","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformVersion":"4.4.2","deviceName":"127.0.0.1:62001","platformName":"android","appActivity":"com.tencent.mm.ui.LauncherUI","appPackage":"com.tencent.mm"},"deviceName":"127.0.0.1:62001","platformName":"android","appActivity":"com.tencent.mm.ui.LauncherUI","appPackage":"com.tencent.mm"},"sessionId":"ed8ae816-49cf-4a2a-b75b-0200468db1c2"}
> info: <-- GET /wd/hub/session/ed8ae816-49cf-4a2a-b75b-0200468db1c2 200 7.239 ms - 617 {"status":0,"value":{"platform":"LINUX","browserName":"Android","platformVersion":"4.4.2","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformVersion":"4.4.2","deviceName":"127.0.0.1:62001","platformName":"android","appActivity":"com.tencent.mm.ui.LauncherUI","appPackage":"com.tencent.mm"},"deviceName":"127.0.0.1:62001","platformName":"android","appActivity":"com.tencent.mm.ui.LauncherUI","appPackage":"com.tencent.mm"},"sessionId":"ed8ae816-49cf-4a2a-b75b-0200468db1c2"}
> info: [debug] Didn't get a new command in 60 secs, shutting down...
> info: Shutting down appium session
> info: [debug] Pressing the HOME button
> info: [debug] executing cmd: D:\Android\android-sdk\platform-tools\adb.exe -s 127.0.0.1:62001 shell "input keyevent 3"
> 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] [BOOTSTRAP] [debug] Got command of type SHUTDOWN
> info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":"OK, shutting down","status":0}
> 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=UiAutomatorTestRunner
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.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: 77.109
> info: [debug] [UIAUTOMATOR STDOUT] OK (1 test)
> info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
> info: [debug] Sent shutdown command, waiting for UiAutomator to stop...
> info: [debug] UiAutomator shut down normally
> info: [debug] Cleaning up android objects
> info: [debug] Cleaning up appium session
> info: [debug] We shut down because no new commands came in