[info] [HTTP] Waiting until the server is closed [info] [HTTP] Received server close event [info] [Appium] Welcome to Appium v1.22.3 [info] [Appium] Non-default server args: [info] [Appium] port: 7980 [info] [Appium] relaxedSecurityEnabled: true [info] [Appium] allowInsecure: { [info] [Appium] } [info] [Appium] denyInsecure: { [info] [Appium] } [info] [Appium] Appium REST http interface listener started on 0.0.0.0:7980[debug] [HTTP] Request idempotency key: 2a02d676-344c-49dd-9784-734df2309205 [info] [HTTP] --> POST http://0.0.0.0:4723/wd/hub/session [info] [HTTP] {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"android","appium:deviceName":"R5CR216RBVN","appium:platformVersion":"12","appium:appPackage":"com.airlive.miya","appium:appActivity":"com.airlive.miya.MainActivity"}}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [null,null,{"firstMatch":[{}],"alwaysMatch":{"platformName":"android","appium:deviceName":"R5CR216RBVN","appium:platformVersion":"12","appium:appPackage":"com.airlive.miya","appium:appActivity":"com.airlive.miya.MainActivity"}}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1669560967790 (22:56:07 GMT+0800 (China Standard Time)) [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] DEPRECATION WARNING: [warn] [Appium] [warn] [Appium] The 'automationName' capability was not provided in the desired [warn] [Appium] capabilities for this Android session [warn] [Appium] [warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the [warn] [Appium] UiAutomator2 Driver [warn] [Appium] [warn] [Appium] The next major version of Appium (2.x) will **require** the [warn] [Appium] 'automationName' capability to be set for all sessions on all [warn] [Appium] platforms [warn] [Appium] [warn] [Appium] In previous versions (Appium <= 1.13.x), the default was [warn] [Appium] 'automationName=UiAutomator1' [warn] [Appium] [warn] [Appium] If you wish to use that automation instead of UiAutomator2, please [warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities [warn] [Appium] [warn] [Appium] For more information about drivers, please visit [warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the [warn] [Appium] 'Drivers' menu [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] [info] [Appium] Appium v1.22.3 creating new AndroidUiautomator2Driver (v1.70.1) session [info] [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [debug] [BaseDriver] Creating session with W3C capabilities: { [debug] [BaseDriver] "alwaysMatch": { [debug] [BaseDriver] "platformName": "android", [debug] [BaseDriver] "appium:deviceName": "R5CR216RBVN", [debug] [BaseDriver] "appium:platformVersion": "12", [debug] [BaseDriver] "appium:appPackage": "com.airlive.miya", [debug] [BaseDriver] "appium:appActivity": "com.airlive.miya.MainActivity" [debug] [BaseDriver] }, [debug] [BaseDriver] "firstMatch": [ [debug] [BaseDriver] {} [debug] [BaseDriver] ] [debug] [BaseDriver] } [info] [BaseDriver] Session created with session id: ce8d047c-803e-4e22-a8e6-6dbc9fe23396 [info] [UiAutomator2] Starting 'com.airlive.miya' directly on the device [info] [ADB] Using 'adb' from '/Users/ycb/Library/Android/sdk/platform-tools/adb' [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 start-server' [info] [AndroidDriver] Retrieving device list [debug] [ADB] Trying to find a connected android device [debug] [ADB] Getting connected devices [debug] [ADB] Connected devices: [{"udid":"R5CR216RBVN","state":"device"}] [info] [AndroidDriver] Looking for a device with Android '12.0.0' [debug] [ADB] Setting device id to R5CR216RBVN [info] [ADB] Getting device platform version [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell getprop ro.build.version.release'[debug] [ADB] Current device property 'ro.build.version.release': 12 [info] [AndroidDriver] Using device: R5CR216RBVN [info] [ADB] Using 'adb' from '/Users/ycb/Library/Android/sdk/platform-tools/adb' [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 start-server' [debug] [ADB] Setting device id to R5CR216RBVN [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell getprop ro.build.version.sdk' [debug] [ADB] Current device property 'ro.build.version.sdk': 31 [info] [ADB] Getting device platform version [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell getprop ro.build.version.release' [debug] [ADB] Current device property 'ro.build.version.release': 12 [debug] [ADB] Device API level: 31 [info] [UiAutomator2] Relaxing hidden api policy [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''[warn] [AndroidDriver] No app sent in, not parsing package/activity [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN wait-for-device' [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell dumpsys package io.appium.settings'[debug] [ADB] 'io.appium.settings' is installed [debug] [ADB] Getting package info for 'io.appium.settings' [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell dumpsys package io.appium.settings'[debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.4.0' >= '3.4.0') [debug] [ADB] There is no need to install/upgrade '/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk' [debug] [ADB] Getting IDs of all 'io.appium.settings' processes [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell 'pgrep --help; echo $?'' [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)' [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell appops set io.appium.settings android:mock_location allow'[debug] [Logcat] Starting logs capture with command: /Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN logcat -v threadtime[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8201 [debug] [ADB] Forwarding system: 8201 to device: 6790 [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN forward tcp:8201 tcp:6790' [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell dumpsys package io.appium.uiautomator2.server' [debug] [ADB] 'io.appium.uiautomator2.server' is installed [debug] [ADB] Getting package info for 'io.appium.uiautomator2.server' [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell dumpsys package io.appium.uiautomator2.server'[debug] [ADB] The version name of the installed 'io.appium.uiautomator2.server' is greater or equal to the application version name ('4.27.0' >= '4.27.0') [debug] [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled [debug] [ADB] Checking app cert for /Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.27.0.apk [debug] [ADB] Using the previously cached signature entry for 'appium-uiautomator2-server-v4.27.0.apk' [debug] [ADB] sha256 hash did match for 'appium-uiautomator2-server-v4.27.0.apk' [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell dumpsys package io.appium.uiautomator2.server.test'[debug] [ADB] 'io.appium.uiautomator2.server.test' is installed [debug] [ADB] Checking app cert for /Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk [debug] [ADB] Using the previously cached signature entry for 'appium-uiautomator2-server-debug-androidTest.apk' [debug] [ADB] sha256 hash did match for 'appium-uiautomator2-server-debug-androidTest.apk' [info] [UiAutomator2] Server packages are not going to be (re)installed [debug] [UiAutomator2] Waiting up to 30000ms for services to be available [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell pm list instrumentation' [debug] [UiAutomator2] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available [info] [ADB] Adding packages ["io.appium.settings","io.appium.uiautomator2.server","io.appium.uiautomator2.server.test"] to Doze whitelist [debug] [ADB] Got the following command chunks to execute: [["dumpsys","deviceidle","whitelist","+io.appium.settings",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server",";","dumpsys","deviceidle","whitelist","+io.appium.uiautomator2.server.test",";"]] [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;'[debug] [UiAutomator2] No app capability. Assuming it is already on the device [debug] [ADB] Getting install status for com.airlive.miya [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell dumpsys package com.airlive.miya' [debug] [ADB] 'com.airlive.miya' is installed [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell am force-stop com.airlive.miya'[debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell pm clear com.airlive.miya' [debug] [AndroidDriver] Performed fast reset on the installed 'com.airlive.miya' application (stop and clear) [debug] [UiAutomator2] Performing shallow cleanup of automation leftovers [info] [HTTP] --> GET http://127.0.0.1:8201/wd/hub/sessions [info] [HTTP] {} [debug] [GENERIC] Calling AppiumDriver.getSessions() with args: [] [debug] [GENERIC] Responding to client with driver.getSessions() result: [] [info] [HTTP] <-- GET http://127.0.0.1:8201/wd/hub/sessions 200 2 ms - 40 [info] [HTTP]  [debug] [UiAutomator2] No obsolete sessions have been detected [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell am force-stop io.appium.uiautomator2.server.test'[info] [UiAutomator2] Starting UIAutomator2 server 4.27.0 [info] [UiAutomator2] Using UIAutomator2 server from '/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.27.0.apk' and test from '/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' [info] [UiAutomator2] Waiting up to 30000ms for UiAutomator2 to be online... [debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","R5CR216RBVN","shell","am","instrument","-w","-e","disableAnalytics",true,"io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"] [debug] [WD Proxy] Matched '/status' to command name 'getStatus' [debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8201/wd/hub/status] with no body [debug] [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"message":"UiAutomator2 Server is ready to accept commands","ready":true}} [debug] [UiAutomator2] The initialization of the instrumentation process took 94ms [debug] [WD Proxy] Matched '/session' to command name 'createSession' [debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8201/wd/hub/session] with body: {"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","deviceName":"R5CR216RBVN","platformVersion":"12","appPackage":"com.airlive.miya","appActivity":"com.airlive.miya.MainActivity"},"platformName":"android","deviceName":"R5CR216RBVN","platformVersion":"12","appPackage":"com.airlive.miya","appActivity":"com.airlive.miya.MainActivity","deviceUDID":"R5CR216RBVN"}],"alwaysMatch":{}}} [debug] [WD Proxy] Got response with status 200: {"sessionId":"1b583ed0-82e0-4e0c-a111-33818c482676","value":{"capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","deviceName":"R5CR216RBVN","platformVersion":"12","appPackage":"com.airlive.miya","appActivity":"com.airlive.miya.MainActivity"},"platformName":"android","deviceName":"R5CR216RBVN","platformVersion":"12","appPackage":"com.airlive.miya","appActivity":"com.airlive.miya.MainActivity","deviceUDID":"R5CR216RBVN"}],"alwaysMatch":{}},"sessionId":"1b583ed0-82e0-4e0c-a111-33818c482676"}} [info] [WD Proxy] Determined the downstream protocol as 'W3C' [debug] [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8201/wd/hub/session/1b583ed0-82e0-4e0c-a111-33818c482676/appium/device/info] with no body[debug] [WD Proxy] Got response with status 200: {"sessionId":"1b583ed0-82e0-4e0c-a111-33818c482676","value":{"androidId":"941a3140dc40faba","apiVersion":"31","bluetooth":{"state":"ON"},"brand":"samsung","carrierName":"","displayDensity":420,"locale":"zh_CN_#Hans","manufacturer":"samsung","model":"SM-A5260","networks":[{"capabilities":{"SSID":null,"linkDownBandwidthKbps":60000,"linkUpstreamBandwidthKbps":12000,"networkCapabilities":"NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_INTERNET,NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_VALIDATED,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_FOREGROUND,NET_CAPABILITY_NOT_CONGESTED,NET_CAPABILITY_NOT_SUSPENDED","signalStrength":-60,"transportTypes":"TRANSPORT_WIFI"},"detailedState":"CONNECTED","extraInfo":"","isAvailable":true,"isConnected":true,"isFailover":false,"isRoaming":false,"state":"CONNECTED","subtype":-1,"subtypeName":"","type":1,"typeName":"WIFI"}],"platformVersion":"12","realDisplaySize":"1080x2400","timeZone":"Asia/Shanghai"}} [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell dumpsys window' [info] [AndroidDriver] Screen already unlocked, doing nothing [info] [UiAutomator2] Starting 'com.airlive.miya/com.airlive.miya.MainActivity and waiting for 'com.airlive.miya/com.airlive.miya.MainActivity' [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell am start -W -n com.airlive.miya/com.airlive.miya.MainActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000' [debug] [Instrumentation] INSTRUMENTATION_RESULT: shortMsg=Process crashed. [debug] [Instrumentation] INSTRUMENTATION_CODE: 0[debug] [Instrumentation] The process has exited with code 0[debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server: [debug] [WD Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8201/wd/hub/session/1b583ed0-82e0-4e0c-a111-33818c482676/appium/device/pixel_ratio] with no body [info] [WD Proxy] socket hang up [debug] [UiAutomator2] Deleting UiAutomator2 session [debug] [UiAutomator2] Deleting UiAutomator2 server session [debug] [WD Proxy] Matched '/' to command name 'deleteSession' [debug] [WD Proxy] Proxying [DELETE /] to [DELETE http://127.0.0.1:8201/wd/hub/session/1b583ed0-82e0-4e0c-a111-33818c482676] with no body [info] [WD Proxy] socket hang up [warn] [UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell am force-stop com.airlive.miya'[debug] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8201 [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN forward --remove tcp:8201' [info] [UiAutomator2] Restoring hidden api policy to the device default configuration [debug] [ADB] Running '/Users/ycb/Library/Android/sdk/platform-tools/adb -P 5037 -s R5CR216RBVN shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy''[debug] [BaseDriver] Event 'newSessionStarted' logged at 1669560973822 (22:56:13 GMT+0800 (China Standard Time)) [debug] [W3C] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up [debug] [W3C] at UIA2Proxy.command (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:274:13) [debug] [W3C] at runMicrotasks () [debug] [W3C] at processTicksAndRejections (internal/process/task_queues.js:97:5) [debug] [W3C] at AndroidUiautomator2Driver.commands.getDevicePixelRatio (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-driver/lib/commands/viewport.js:14:10) [debug] [W3C] at AndroidUiautomator2Driver.fillDeviceDetails (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-driver/lib/driver.js:244:28) [debug] [W3C] at AndroidUiautomator2Driver.createSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-driver/lib/driver.js:230:7) [debug] [W3C] at AppiumDriver.createSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/lib/appium.js:387:35) [info] [HTTP] <-- POST http://0.0.0.0:4723/wd/hub/session 500 6041 ms - 1414 [info] [HTTP]