[AndroidDriver] Java version is: 1.8.0_121
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[AndroidDriver] Using device: 192.168.1.102:5555
[ADB] Setting device id to 192.168.1.102:5555
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell getprop ro.build.version.sdk'
[ADB] Current device property 'ro.build.version.sdk': 23
[ADB] Device API level: 23
[AndroidDriver] No app sent in, not parsing package/activity
[ADB] Getting device platform version
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell getprop ro.build.version.release'
[ADB] Current device property 'ro.build.version.release': 6.0
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell wm size'
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell wm density'
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell getprop ro.product.model'
[ADB] Current device property 'ro.product.model': Redmi Pro
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell getprop ro.product.manufacturer'
[ADB] Current device property 'ro.product.manufacturer': Xiaomi
[ADB] Device API level: 23
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell am force-stop io.appium.uiautomator2.server'
[ADB] Checking app cert for C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk
[ADB] Starting 'E:\AppAuto\software\sdk\android-sdk-windows-appium\build-tools\28.0.3\apksigner.bat' with args 'verify,--print-certs,C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk'
[ADB] 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk' is already signed.
[ADB] Checking app cert for C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
[ADB] Starting 'E:\AppAuto\software\sdk\android-sdk-windows-appium\build-tools\28.0.3\apksigner.bat' with args 'verify,--print-certs,C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[ADB] 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is already signed.
[ADB] Getting install status for io.appium.uiautomator2.server
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell pm list packages io.appium.uiautomator2.server'
[ADB] App is installed
[ADB] Getting package info for 'io.appium.uiautomator2.server'
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell dumpsys package io.appium.uiautomator2.server'
[ADB] The installed 'io.appium.uiautomator2.server' package does not require upgrade ('1.12.0' >= '1.12.0')
[ADB] Getting install status for io.appium.uiautomator2.server.test
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell pm list packages io.appium.uiautomator2.server.test'
[ADB] App is installed
[ADB] Getting package info for 'io.appium.uiautomator2.server.test'
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell dumpsys package io.appium.uiautomator2.server.test'
[ADB] Cannot read version codes of 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test'
[ADB] Cannot read version names of 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' and/or 'io.appium.uiautomator2.server.test'. Assuming correct app version is already installed
[UiAutomator2] Waiting up to 20000ms for instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' to be available
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell pm list instrumentation'
[UiAutomator2] Instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' available
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 wait-for-device'
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell echo ping'
[AndroidDriver] Pushing settings apk to device...
[ADB] Getting install status for io.appium.settings
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell pm list packages io.appium.settings'
[ADB] App is not installed
[ADB] App 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\app\build\outputs\apk\settings_apk-debug.apk' not installed. Installing
[ADB] Device API level: 23
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 install -g 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\app\build\outputs\apk\settings_apk-debug.apk''
[ADB] Install command stdout: pkg: /data/local/tmp/settings_apk-debug.apk
[ADB] Failure [INSTALL_CANCELED_BY_USER]
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell ps'
[ADB] Device API level: 23
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell am start -W -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
[AndroidDriver] Failed to launch settings app: Cannot start the 'io.appium.settings' application. Original error: Activity name '.Settings' used to start the app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity
[ADB] Device API level: 23
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell appops set io.appium.settings android:mock_location allow'
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: 'undefined' and country: 'undefined'
[Logcat] Starting logcat capture
[AndroidDriver] Pushing unlock helper app to device...
[ADB] Getting install status for io.appium.unlock
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell pm list packages io.appium.unlock'
[ADB] App is not installed
[ADB] App 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk' not installed. Installing
[ADB] Device API level: 23
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 install -g 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk''
[ADB] Install command stdout: pkg: /data/local/tmp/unlock_apk-debug.apk
[ADB] Failure [INSTALL_CANCELED_BY_USER]
[UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200
[ADB] Forwarding system: 8200 to device: 6790
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 forward tcp:8200 tcp:6790'
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell rm -rf /data/local/tmp/strings.json'
[UiAutomator2] No app capability. Assuming it is already on the device
[ADB] Checking app cert for undefined
[ADB] 'undefined' doesn't exist
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell am force-stop io.appium.uiautomator2.server'
[UiAutomator2] Starting uiautomator2 server 1.12.0
[UiAutomator2] Using UIAutomator2 server from 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk' and test from 'C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[UiAutomator2] Running command: 'adb -s 192.168.1.102:5555 shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner'
[UiAutomator2] Waiting up to 20000ms for UiAutomator2 to be online...
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[UiAutomator2] [UIAutomator2]
[UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:java.lang.IllegalStateException: UiAutomationService android.accessibilityservice.IAccessibilityServiceClient$Stub$Proxy@fec7b3ealready registered!
[UiAutomator2] [UIAutomator2] at android.os.Parcel.readException(Parcel.java:1607)
[UiAutomator2] [UIAutomator2] at android.os.Parcel.readException(Parcel.java:1552)
[UiAutomator2] [UIAutomator2] at android.view.accessibility.IAccessibilityManager$Stub$Proxy.registerUiTestAutomationService(IAccessibilityManager.java:352)
[UiAutomator2] [UIAutomator2] at android.app.UiAutomationConnection.registerUiTestAutomationServiceLocked(UiAutomationConnection.java:344)
[UiAutomator2] [UIAutomator2] at android.app.UiAutomationConnection.connect(UiAutomationConnection.java:96)
[UiAutomator2] [UIAutomator2] at android.app.IUiAutomationConnection$Stub.onTransact(IUiAutomationConnection.java:59)
[UiAutomator2] [UIAutomator2] at android.os.Binder.execTransact(Binder.java:458)
[UiAutomator2] [UIAutomator2] INSTRUMENTATION_RESULT: shortMsg=java.lang.IllegalStateException
[UiAutomator2] [UIAutomator2] INSTRUMENTATION_RESULT: longMsg=java.lang.IllegalStateException: UiAutomationService android.accessibilityservice.IAccessibilityServiceClient$Stub$Proxy@fec7b3ealready registered!
[UiAutomator2] [UIAutomator2] INSTRUMENTATION_CODE: 0
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[UiAutomator2] Deleting UiAutomator2 session
[UiAutomator2] Deleting UiAutomator2 server session
[UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: Error: Trying to proxy a session command without session id
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 shell am force-stop com.baidu.searchbox.lite'
[Logcat] Stopping logcat capture
[ADB] Removing forwarded port socket connection: 8200
[ADB] Running 'E:\AppAuto\software\sdk\android-sdk-windows-appium\platform-tools\adb.exe -P 5037 -s 192.168.1.102:5555 forward --remove tcp:8200'
[BaseDriver] Event 'newSessionStarted' logged at 1582626883740 (18:34:43 GMT+0800 (中国标准时间))
[MJSONWP] Encountered internal error running command: ProxyRequestError: Could not proxy command to remote server. Original error: Error: read ECONNRESET
[MJSONWP] at JWProxy.proxy$ (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:152:13)
[MJSONWP] at tryCatch (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
[MJSONWP] at GeneratorFunctionPrototype.invoke as _invoke
[MJSONWP] at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
[MJSONWP] at GeneratorFunctionPrototype.invoke (C:\Program Files (x86)\Appium\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[MJSONWP] at
[HTTP] <-- POST /wd/hub/session 500 40270 ms - 217
[HTTP]