Skip to content

Instantly share code, notes, and snippets.

@prashanth-sams
Created June 28, 2020 14:25
Show Gist options
  • Save prashanth-sams/6d2f50d3a5079b81f281bac6e2a63b6f to your computer and use it in GitHub Desktop.
Save prashanth-sams/6d2f50d3a5079b81f281bac6e2a63b6f to your computer and use it in GitHub Desktop.
Appium server logs
[info] [Appium] Welcome to Appium v1.17.1
[info] [Appium] Non-default server args:
[info] [Appium] allowInsecure: {
[info] [Appium] }
[info] [Appium] denyInsecure: {
[info] [Appium] }
[info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[info] [HTTP] --> POST /wd/hub/session
[info] [HTTP] {"capabilities":{"firstMatch":[{"platformName":"Android","appium:platformVersion":"","appium:deviceName":"PF","appium:app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","appium:noReset":false}]},"desiredCapabilities":{"platformName":"Android","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false},null,{"firstMatch":[{"platformName":"Android","appium:platformVersion":"","appium:deviceName":"PF","appium:app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","appium:noReset":false}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1593352102430 (17:48:22 GMT+0400 (Gulf 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.17.1 creating new AndroidUiautomator2Driver (v1.44.2) session
[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {
[debug] [BaseDriver] "alwaysMatch": {
[debug] [BaseDriver] "platformName": "Android",
[debug] [BaseDriver] "appium:platformVersion": "",
[debug] [BaseDriver] "appium:deviceName": "PF",
[debug] [BaseDriver] "appium:app": "/Users/prashanth/Projects/apps/app-staging-debug.apk",
[debug] [BaseDriver] "appium:noReset": false
[debug] [BaseDriver] },
[debug] [BaseDriver] "firstMatch": [
[debug] [BaseDriver] {}
[debug] [BaseDriver] ]
[debug] [BaseDriver] }
[info] [BaseDriver] Session created with session id: c9a5f6be-7339-4f0a-82d6-c079fc0a0216
[info] [BaseDriver] Using local app '/Users/prashanth/Projects/apps/app-staging-debug.apk'
[debug] [UiAutomator2] Checking whether app is actually present
[info] [ADB] Using 'adb' from '/Users/prashanth/Library/Android/sdk/platform-tools/adb'
[info] [AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}]
[info] [AndroidDriver] Using device: emulator-5554
[info] [ADB] Using 'adb' from '/Users/prashanth/Library/Android/sdk/platform-tools/adb'
[debug] [ADB] Setting device id to emulator-5554
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 28
[info] [ADB] Getting device platform version
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 9
[debug] [ADB] Device API level: 28
[warn] [UiAutomator2] Relaxing hidden api policy
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy_pre_p_apps 1'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy_p_apps 1'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy 1'[debug] [AndroidDriver] Parsing package and activity from app manifest
[info] [ADB] Package name: 'ae.propertyfinder.manager.debug'
[info] [ADB] Main activity name: 'ae.propertyfinder.ui.splash.SplashActivity'
[debug] [AndroidDriver] Parsed package and activity are: ae.propertyfinder.manager.debug/ae.propertyfinder.ui.splash.SplashActivity
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 wait-for-device'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 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/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 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.1.0' >= '3.1.0')
[debug] [ADB] There is no need to install/upgrade '/Applications/Appium.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/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?''
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pgrep -f io\\.appium\\.settings'
[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell appops set io.appium.settings android\:mock_location allow'
[debug] [Logcat] Starting logcat capture[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200
[debug] [ADB] Forwarding system: 8200 to device: 6790
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward tcp\:8200 tcp\:6790'
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 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/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 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.5.5' >= '4.5.5')
[debug] [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled
[debug] [ADB] Checking app cert for /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk
[info] [ADB] Using 'apksigner.jar' from '/Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar'
[debug] [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar verify --print-certs /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' is signed with the default certificate
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 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.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar verify --print-certs /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
[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/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list instrumentation'
[debug] [UiAutomator2] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
[debug] [ADB] Checking app cert for /Users/prashanth/Projects/apps/app-staging-debug.apk
[debug] [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar verify --print-certs /Users/prashanth/Projects/apps/app-staging-debug.apk[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] '/Users/prashanth/Projects/apps/app-staging-debug.apk' is signed with the default certificate
[debug] [ADB] Getting install status for ae.propertyfinder.manager.debug
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package ae.propertyfinder.manager.debug'
[debug] [ADB] 'ae.propertyfinder.manager.debug' is installed
[debug] [ADB] Getting package info for 'ae.propertyfinder.manager.debug'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package ae.propertyfinder.manager.debug'
[debug] [ADB] The version name of the installed 'ae.propertyfinder.manager.debug' is greater or equal to the application version name ('5.11.0' >= '5.11.0')
[debug] [ADB] There is no need to install/upgrade '/Users/prashanth/Projects/apps/app-staging-debug.apk'
[info] [AndroidDriver] Performing fast reset on 'ae.propertyfinder.manager.debug'
[debug] [ADB] Getting install status for ae.propertyfinder.manager.debug
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package ae.propertyfinder.manager.debug'
[debug] [ADB] 'ae.propertyfinder.manager.debug' is installed
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop ae.propertyfinder.manager.debug'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm clear ae.propertyfinder.manager.debug'
[debug] [AndroidDriver] Performed fast reset on the installed 'ae.propertyfinder.manager.debug' application (stop and clear)
[debug] [UiAutomator2] Performing shallow cleanup of automation leftovers[debug] [UiAutomator2] No obsolete sessions have been detected (Error: socket hang up)
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server.test'
[info] [UiAutomator2] Starting UIAutomator2 server 4.5.5
[info] [UiAutomator2] Using UIAutomator2 server from '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' and test from '/Applications/Appium.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","emulator-5554","shell","am","instrument","-w","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:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"ready":true,"message":"UiAutomator2 Server is ready to accept commands"}}
[debug] [UiAutomator2] The initialization of the instrumentation process took 4238ms
[debug] [WD Proxy] Matched '/session' to command name 'createSession'
[debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8200/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","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false},"platformName":"Android","platformVersion":"","deviceName":"emulator-5554","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false,"deviceUDID":"emulator-5554","appPackage":"ae.propertyfinder.manager.debug"}],"alwaysMatch":{}}}[debug] [WD Proxy] Got response with status 200: {"sessionId":"ba979c07-2d95-4d2e-8c9e-09a949861b0e","value":{"sessionId":"ba979c07-2d95-4d2e-8c9e-09a949861b0e","capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false},"platformName":"Android","platformVersion":"","deviceName":"emulator-5554","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false,"deviceUDID":"emulator-5554","appPackage":"ae.propertyfinder.manager.debug"}],"alwaysMatch":{}}}}
[info] [WD Proxy] Determined the downstream protocol as 'W3C'
[debug] [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8200/wd/hub/session/ba979c07-2d95-4d2e-8c9e-09a949861b0e/appium/device/info] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"ba979c07-2d95-4d2e-8c9e-09a949861b0e","value":{"androidId":"60dfd844b0ff2745","manufacturer":"Google","model":"Android SDK built for x86","brand":"google","apiVersion":"28","platformVersion":"9","carrierName":"Android","realDisplaySize":"1080x2160","displayDensity":440,"networks":[{"type":1,"typeName":"WIFI","subtype":0,"subtypeName":"","isConnected":true,"detailedState":"CONNECTED","state":"CONNECTED","extraInfo":null,"isAvailable":true,"isFailover":false,"isRoaming":false,"capabilities":{"transportTypes":"TRANSPORT_WIFI","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","linkUpstreamBandwidthKbps":1048576,"linkDownBandwidthKbps":1048576,"signalStrength":-50,"networkSpecifier":null,"SSID":null}},{"type":0,"typeName":"MOBILE","subtype":13,"subtypeName":"LTE","...
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys window'
[info] [AndroidDriver] Screen already unlocked, doing nothing
[info] [UiAutomator2] Starting 'ae.propertyfinder.manager.debug/ae.propertyfinder.ui.splash.SplashActivity and waiting for 'ae.propertyfinder.manager.debug/ae.propertyfinder.ui.splash.SplashActivity'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am start -W -n ae.propertyfinder.manager.debug/ae.propertyfinder.ui.splash.SplashActivity -S'[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:8200/wd/hub/session/ba979c07-2d95-4d2e-8c9e-09a949861b0e] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"ba979c07-2d95-4d2e-8c9e-09a949861b0e","value":null}
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop ae.propertyfinder.manager.debug'
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200'
[info] [UiAutomator2] Restoring hidden api policy to the device default configuration
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy_pre_p_apps'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy_p_apps'[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy'
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1593352129974 (17:48:49 GMT+0400 (Gulf Standard Time))
[debug] [W3C] Encountered internal error running command: Error: Cannot start the 'ae.propertyfinder.manager.debug' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Error executing adbExec. Original error: 'Command '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am start -W -n ae.propertyfinder.manager.debug/ae.propertyfinder.ui.splash.SplashActivity -S' timed out after 20000ms'. Try to increase the 20000ms adb execution timeout represented by 'adbExecTimeout' capability
[debug] [W3C] at ADB.startApp (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:165:11)
[debug] [W3C] Destroying socket connection
[info] [HTTP] <-- POST /wd/hub/session 500 27546 ms - 1685
[info] [HTTP] [debug] [Instrumentation] .[debug] [Instrumentation] Time: 23.076
[debug] [Instrumentation]
[debug] [Instrumentation] OK (1 test)
[debug] [Instrumentation] The process has exited with code 0[info] [HTTP] --> POST /wd/hub/session
[info] [HTTP] {"capabilities":{"firstMatch":[{"platformName":"Android","appium:platformVersion":"","appium:deviceName":"PF","appium:app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","appium:noReset":false}]},"desiredCapabilities":{"platformName":"Android","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false},null,{"firstMatch":[{"platformName":"Android","appium:platformVersion":"","appium:deviceName":"PF","appium:app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","appium:noReset":false}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1593352149345 (17:49:09 GMT+0400 (Gulf 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.17.1 creating new AndroidUiautomator2Driver (v1.44.2) session
[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {
[debug] [BaseDriver] "alwaysMatch": {
[debug] [BaseDriver] "platformName": "Android",
[debug] [BaseDriver] "appium:platformVersion": "",
[debug] [BaseDriver] "appium:deviceName": "PF",
[debug] [BaseDriver] "appium:app": "/Users/prashanth/Projects/apps/app-staging-debug.apk",
[debug] [BaseDriver] "appium:noReset": false
[debug] [BaseDriver] },
[debug] [BaseDriver] "firstMatch": [
[debug] [BaseDriver] {}
[debug] [BaseDriver] ]
[debug] [BaseDriver] }
[info] [BaseDriver] Session created with session id: 6ffa2dc9-c3ef-46e7-8ac2-a99eff02c70a
[info] [BaseDriver] Using local app '/Users/prashanth/Projects/apps/app-staging-debug.apk'
[debug] [UiAutomator2] Checking whether app is actually present
[info] [ADB] Using 'adb' from '/Users/prashanth/Library/Android/sdk/platform-tools/adb'
[info] [AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}]
[info] [AndroidDriver] Using device: emulator-5554
[info] [ADB] Using 'adb' from '/Users/prashanth/Library/Android/sdk/platform-tools/adb'
[debug] [ADB] Setting device id to emulator-5554
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 28
[info] [ADB] Getting device platform version
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'[debug] [ADB] Current device property 'ro.build.version.release': 9
[debug] [ADB] Device API level: 28
[warn] [UiAutomator2] Relaxing hidden api policy
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy_pre_p_apps 1'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy_p_apps 1'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy 1'
[debug] [AndroidDriver] Parsing package and activity from app manifest
[info] [ADB] Package name: 'ae.propertyfinder.manager.debug'
[info] [ADB] Main activity name: 'ae.propertyfinder.ui.splash.SplashActivity'
[debug] [AndroidDriver] Parsed package and activity are: ae.propertyfinder.manager.debug/ae.propertyfinder.ui.splash.SplashActivity
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 wait-for-device'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 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/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 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.1.0' >= '3.1.0')
[debug] [ADB] There is no need to install/upgrade '/Applications/Appium.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/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?''[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pgrep -f io\\.appium\\.settings'
[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell appops set io.appium.settings android\:mock_location allow'
[debug] [Logcat] Starting logcat capture
[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200
[debug] [ADB] Forwarding system: 8200 to device: 6790
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward tcp\:8200 tcp\:6790'
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 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/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 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.5.5' >= '4.5.5')
[debug] [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled
[debug] [ADB] Checking app cert for /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk
[info] [ADB] Using 'apksigner.jar' from '/Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar'
[debug] [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar verify --print-certs /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' is signed with the default certificate
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 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.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar verify --print-certs /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
[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/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list instrumentation'
[debug] [UiAutomator2] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
[debug] [ADB] Checking app cert for /Users/prashanth/Projects/apps/app-staging-debug.apk
[debug] [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar verify --print-certs /Users/prashanth/Projects/apps/app-staging-debug.apk[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] '/Users/prashanth/Projects/apps/app-staging-debug.apk' is signed with the default certificate
[debug] [ADB] Getting install status for ae.propertyfinder.manager.debug
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package ae.propertyfinder.manager.debug'
[debug] [ADB] 'ae.propertyfinder.manager.debug' is installed
[debug] [ADB] Getting package info for 'ae.propertyfinder.manager.debug'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package ae.propertyfinder.manager.debug'
[debug] [ADB] The version name of the installed 'ae.propertyfinder.manager.debug' is greater or equal to the application version name ('5.11.0' >= '5.11.0')
[debug] [ADB] There is no need to install/upgrade '/Users/prashanth/Projects/apps/app-staging-debug.apk'
[info] [AndroidDriver] Performing fast reset on 'ae.propertyfinder.manager.debug'
[debug] [ADB] Getting install status for ae.propertyfinder.manager.debug
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package ae.propertyfinder.manager.debug'
[debug] [ADB] 'ae.propertyfinder.manager.debug' is installed
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop ae.propertyfinder.manager.debug'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm clear ae.propertyfinder.manager.debug'
[debug] [AndroidDriver] Performed fast reset on the installed 'ae.propertyfinder.manager.debug' application (stop and clear)
[debug] [UiAutomator2] Performing shallow cleanup of automation leftovers[debug] [UiAutomator2] No obsolete sessions have been detected (Error: socket hang up)
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server.test'
[info] [UiAutomator2] Starting UIAutomator2 server 4.5.5
[info] [UiAutomator2] Using UIAutomator2 server from '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' and test from '/Applications/Appium.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","emulator-5554","shell","am","instrument","-w","io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner"][debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"ready":true,"message":"UiAutomator2 Server is ready to accept commands"}}
[debug] [UiAutomator2] The initialization of the instrumentation process took 3136ms
[debug] [WD Proxy] Matched '/session' to command name 'createSession'
[debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8200/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","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false},"platformName":"Android","platformVersion":"","deviceName":"emulator-5554","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false,"deviceUDID":"emulator-5554","appPackage":"ae.propertyfinder.manager.debug"}],"alwaysMatch":{}}}
[debug] [WD Proxy] Got response with status 200: {"sessionId":"12579c93-f8e6-40bb-9412-30683336ec7f","value":{"sessionId":"12579c93-f8e6-40bb-9412-30683336ec7f","capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false},"platformName":"Android","platformVersion":"","deviceName":"emulator-5554","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false,"deviceUDID":"emulator-5554","appPackage":"ae.propertyfinder.manager.debug"}],"alwaysMatch":{}}}}
[info] [WD Proxy] Determined the downstream protocol as 'W3C'
[debug] [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8200/wd/hub/session/12579c93-f8e6-40bb-9412-30683336ec7f/appium/device/info] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"12579c93-f8e6-40bb-9412-30683336ec7f","value":{"androidId":"60dfd844b0ff2745","manufacturer":"Google","model":"Android SDK built for x86","brand":"google","apiVersion":"28","platformVersion":"9","carrierName":"Android","realDisplaySize":"1080x2160","displayDensity":440,"networks":[{"type":1,"typeName":"WIFI","subtype":0,"subtypeName":"","isConnected":true,"detailedState":"CONNECTED","state":"CONNECTED","extraInfo":null,"isAvailable":true,"isFailover":false,"isRoaming":false,"capabilities":{"transportTypes":"TRANSPORT_WIFI","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","linkUpstreamBandwidthKbps":1048576,"linkDownBandwidthKbps":1048576,"signalStrength":-50,"networkSpecifier":null,"SSID":null}},{"type":0,"typeName":"MOBILE","subtype":13,"subtypeName":"LTE","...
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys window'[info] [AndroidDriver] Screen already unlocked, doing nothing
[info] [UiAutomator2] Starting 'ae.propertyfinder.manager.debug/ae.propertyfinder.ui.splash.SplashActivity and waiting for 'ae.propertyfinder.manager.debug/ae.propertyfinder.ui.splash.SplashActivity'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am start -W -n ae.propertyfinder.manager.debug/ae.propertyfinder.ui.splash.SplashActivity -S'[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:8200/wd/hub/session/12579c93-f8e6-40bb-9412-30683336ec7f] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"12579c93-f8e6-40bb-9412-30683336ec7f","value":null}
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop ae.propertyfinder.manager.debug'
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200'
[info] [UiAutomator2] Restoring hidden api policy to the device default configuration
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy_pre_p_apps'[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy_p_apps'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy'
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1593352176183 (17:49:36 GMT+0400 (Gulf Standard Time))
[debug] [W3C] Encountered internal error running command: Error: Cannot start the 'ae.propertyfinder.manager.debug' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Error executing adbExec. Original error: 'Command '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am start -W -n ae.propertyfinder.manager.debug/ae.propertyfinder.ui.splash.SplashActivity -S' timed out after 20000ms'. Try to increase the 20000ms adb execution timeout represented by 'adbExecTimeout' capability
[debug] [W3C] at ADB.startApp (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:165:11)
[debug] [W3C] Destroying socket connection
[info] [HTTP] <-- POST /wd/hub/session 500 26843 ms - 1685
[info] [HTTP] [debug] [Instrumentation] .[debug] [Instrumentation] Time: 23.096
[debug] [Instrumentation]
[debug] [Instrumentation] OK (1 test)
[debug] [Instrumentation] The process has exited with code 0[info] [HTTP] --> POST /wd/hub/session
[info] [HTTP] {"capabilities":{"firstMatch":[{"platformName":"Android","appium:platformVersion":"","appium:deviceName":"PF","appium:app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","appium:noReset":false}]},"desiredCapabilities":{"platformName":"Android","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false},null,{"firstMatch":[{"platformName":"Android","appium:platformVersion":"","appium:deviceName":"PF","appium:app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","appium:noReset":false}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1593352206554 (17:50:06 GMT+0400 (Gulf 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.17.1 creating new AndroidUiautomator2Driver (v1.44.2) session
[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {
[debug] [BaseDriver] "alwaysMatch": {
[debug] [BaseDriver] "platformName": "Android",
[debug] [BaseDriver] "appium:platformVersion": "",
[debug] [BaseDriver] "appium:deviceName": "PF",
[debug] [BaseDriver] "appium:app": "/Users/prashanth/Projects/apps/app-staging-debug.apk",
[debug] [BaseDriver] "appium:noReset": false
[debug] [BaseDriver] },
[debug] [BaseDriver] "firstMatch": [
[debug] [BaseDriver] {}
[debug] [BaseDriver] ]
[debug] [BaseDriver] }
[info] [BaseDriver] Session created with session id: 61b3c339-3300-4540-8b1f-404975ff51f2
[info] [BaseDriver] Using local app '/Users/prashanth/Projects/apps/app-staging-debug.apk'
[debug] [UiAutomator2] Checking whether app is actually present
[info] [ADB] Using 'adb' from '/Users/prashanth/Library/Android/sdk/platform-tools/adb'
[info] [AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}]
[info] [AndroidDriver] Using device: emulator-5554[debug] [ADB] Current device property 'ro.build.version.sdk': 28
[info] [ADB] Getting device platform version
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 9
[debug] [ADB] Device API level: 28
[warn] [UiAutomator2] Relaxing hidden api policy
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy_pre_p_apps 1'[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy_p_apps 1'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy 1'[info] [ADB] Package name: 'ae.propertyfinder.manager.debug'
[info] [ADB] Main activity name: 'ae.propertyfinder.ui.splash.SplashActivity'
[debug] [AndroidDriver] Parsed package and activity are: ae.propertyfinder.manager.debug/ae.propertyfinder.ui.splash.SplashActivity
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 wait-for-device'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 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/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 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.1.0' >= '3.1.0')
[debug] [ADB] There is no need to install/upgrade '/Applications/Appium.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/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?''
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pgrep -f io\\.appium\\.settings'[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell appops set io.appium.settings android\:mock_location allow'
[debug] [Logcat] Starting logcat capture
[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200
[debug] [ADB] Forwarding system: 8200 to device: 6790
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward tcp\:8200 tcp\:6790'
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 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/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 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.5.5' >= '4.5.5')
[debug] [UiAutomator2] io.appium.uiautomator2.server installation state: sameVersionInstalled
[debug] [ADB] Checking app cert for /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk
[info] [ADB] Using 'apksigner.jar' from '/Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar'
[debug] [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar verify --print-certs /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' is signed with the default certificate
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 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.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar verify --print-certs /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
[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/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list instrumentation'[debug] [UiAutomator2] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
[debug] [ADB] Checking app cert for /Users/prashanth/Projects/apps/app-staging-debug.apk
[debug] [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar verify --print-certs /Users/prashanth/Projects/apps/app-staging-debug.apk[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] '/Users/prashanth/Projects/apps/app-staging-debug.apk' is signed with the default certificate
[debug] [ADB] Getting install status for ae.propertyfinder.manager.debug
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package ae.propertyfinder.manager.debug'[debug] [ADB] 'ae.propertyfinder.manager.debug' is installed
[debug] [ADB] Getting package info for 'ae.propertyfinder.manager.debug'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package ae.propertyfinder.manager.debug'
[debug] [ADB] The version name of the installed 'ae.propertyfinder.manager.debug' is greater or equal to the application version name ('5.11.0' >= '5.11.0')
[debug] [ADB] There is no need to install/upgrade '/Users/prashanth/Projects/apps/app-staging-debug.apk'
[info] [AndroidDriver] Performing fast reset on 'ae.propertyfinder.manager.debug'
[debug] [ADB] Getting install status for ae.propertyfinder.manager.debug
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package ae.propertyfinder.manager.debug'[debug] [ADB] 'ae.propertyfinder.manager.debug' is installed
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop ae.propertyfinder.manager.debug'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm clear ae.propertyfinder.manager.debug'[debug] [AndroidDriver] Performed fast reset on the installed 'ae.propertyfinder.manager.debug' application (stop and clear)
[debug] [UiAutomator2] Performing shallow cleanup of automation leftovers
[debug] [UiAutomator2] No obsolete sessions have been detected (Error: socket hang up)
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server.test'[info] [UiAutomator2] Starting UIAutomator2 server 4.5.5
[info] [UiAutomator2] Using UIAutomator2 server from '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' and test from '/Applications/Appium.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","emulator-5554","shell","am","instrument","-w","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:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body[debug] [WD Proxy] Got response with status 200: {"sessionId":"None","value":{"ready":true,"message":"UiAutomator2 Server is ready to accept commands"}}
[debug] [UiAutomator2] The initialization of the instrumentation process took 6478ms
[debug] [WD Proxy] Matched '/session' to command name 'createSession'
[debug] [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8200/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","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false},"platformName":"Android","platformVersion":"","deviceName":"emulator-5554","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false,"deviceUDID":"emulator-5554","appPackage":"ae.propertyfinder.manager.debug"}],"alwaysMatch":{}}}[debug] [WD Proxy] Got response with status 200: {"sessionId":"0bd371bb-7bac-4b50-8be6-050350207179","value":{"sessionId":"0bd371bb-7bac-4b50-8be6-050350207179","capabilities":{"firstMatch":[{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false},"platformName":"Android","platformVersion":"","deviceName":"emulator-5554","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false,"deviceUDID":"emulator-5554","appPackage":"ae.propertyfinder.manager.debug"}],"alwaysMatch":{}}}}
[info] [WD Proxy] Determined the downstream protocol as 'W3C'
[debug] [WD Proxy] Proxying [GET /appium/device/info] to [GET http://127.0.0.1:8200/wd/hub/session/0bd371bb-7bac-4b50-8be6-050350207179/appium/device/info] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"0bd371bb-7bac-4b50-8be6-050350207179","value":{"androidId":"60dfd844b0ff2745","manufacturer":"Google","model":"Android SDK built for x86","brand":"google","apiVersion":"28","platformVersion":"9","carrierName":"Android","realDisplaySize":"1080x2160","displayDensity":440,"networks":[{"type":1,"typeName":"WIFI","subtype":0,"subtypeName":"","isConnected":true,"detailedState":"CONNECTED","state":"CONNECTED","extraInfo":null,"isAvailable":true,"isFailover":false,"isRoaming":false,"capabilities":{"transportTypes":"TRANSPORT_WIFI","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","linkUpstreamBandwidthKbps":1048576,"linkDownBandwidthKbps":1048576,"signalStrength":-50,"networkSpecifier":null,"SSID":null}},{"type":0,"typeName":"MOBILE","subtype":13,"subtypeName":"LTE","...
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys window'[info] [AndroidDriver] Screen already unlocked, doing nothing
[info] [UiAutomator2] Starting 'ae.propertyfinder.manager.debug/ae.propertyfinder.ui.splash.SplashActivity and waiting for 'ae.propertyfinder.manager.debug/ae.propertyfinder.ui.splash.SplashActivity'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am start -W -n ae.propertyfinder.manager.debug/ae.propertyfinder.ui.splash.SplashActivity -S'[debug] [ADB] Waiting up to 20000ms for activity matching pkg: 'ae.propertyfinder.manager.debug' and activity: 'ae.propertyfinder.ui.splash.SplashActivity' to be focused
[debug] [ADB] Possible activities, to be checked: 'ae.propertyfinder.ui.splash.SplashActivity', 'ae.propertyfinder.manager.debug.ae.propertyfinder.ui.splash.SplashActivity'
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys window windows'[debug] [ADB] Found package: 'ae.propertyfinder.manager.debug' and fully qualified activity name : 'ae.propertyfinder.ui.splash.SplashActivity'
[debug] [WD Proxy] Proxying [GET /appium/device/pixel_ratio] to [GET http://127.0.0.1:8200/wd/hub/session/0bd371bb-7bac-4b50-8be6-050350207179/appium/device/pixel_ratio] with body: {}[debug] [WD Proxy] Got response with status 200: {"sessionId":"0bd371bb-7bac-4b50-8be6-050350207179","value":2.75}
[debug] [WD Proxy] Matched '/appium/device/system_bars' to command name 'getSystemBars'
[debug] [WD Proxy] Proxying [GET /appium/device/system_bars] to [GET http://127.0.0.1:8200/wd/hub/session/0bd371bb-7bac-4b50-8be6-050350207179/appium/device/system_bars] with body: {}
[debug] [WD Proxy] Got response with status 200: {"sessionId":"0bd371bb-7bac-4b50-8be6-050350207179","value":{"statusBar":66}}
[debug] [WD Proxy] Matched '/window/current/size' to command name 'getWindowSize'
[debug] [WD Proxy] Proxying [GET /window/current/size] to [GET http://127.0.0.1:8200/wd/hub/session/0bd371bb-7bac-4b50-8be6-050350207179/window/current/size] with body: {}
[debug] [WD Proxy] Got response with status 200: {"sessionId":"0bd371bb-7bac-4b50-8be6-050350207179","value":{"height":2028,"width":1080}}
[info] [Appium] New AndroidUiautomator2Driver session created successfully, session 61b3c339-3300-4540-8b1f-404975ff51f2 added to master session list
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1593352236584 (17:50:36 GMT+0400 (Gulf Standard Time))
[debug] [W3C (61b3c339)] Cached the protocol value 'W3C' for the new session 61b3c339-3300-4540-8b1f-404975ff51f2
[debug] [W3C (61b3c339)] Responding to client with driver.createSession() result: {"capabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false},"platformName":"Android","platformVersion":"9","deviceName":"emulator-5554","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false,"deviceUDID":"emulator-5554","appPackage":"ae.propertyfinder.manager.debug","deviceApiLevel":28,"deviceScreenSize":"1080x2160","deviceScreenDensity":440,"deviceModel":"Android SDK built for x86","deviceManufacturer":"Google","pixelRatio":2.75,"statBarHeight":66,"viewportRect":{"left":0,"top":66,"width":1080,"height":1962}}}
[info] [HTTP] <-- POST /wd/hub/session 200 30037 ms - 903
[info] [HTTP] [info] [HTTP] --> POST /wd/hub/session/61b3c339-3300-4540-8b1f-404975ff51f2/appium/app/launch
[info] [HTTP] {}
[debug] [W3C (61b3c339)] Calling AppiumDriver.launchApp() with args: ["61b3c339-3300-4540-8b1f-404975ff51f2"]
[debug] [ADB] Checking app cert for /Users/prashanth/Projects/apps/app-staging-debug.apk
[debug] [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar verify --print-certs /Users/prashanth/Projects/apps/app-staging-debug.apk[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] '/Users/prashanth/Projects/apps/app-staging-debug.apk' is signed with the default certificate
[debug] [ADB] Getting install status for ae.propertyfinder.manager.debug
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package ae.propertyfinder.manager.debug'
[debug] [ADB] 'ae.propertyfinder.manager.debug' is installed
[debug] [ADB] Getting package info for 'ae.propertyfinder.manager.debug'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package ae.propertyfinder.manager.debug'[debug] [ADB] The version name of the installed 'ae.propertyfinder.manager.debug' is greater or equal to the application version name ('5.11.0' >= '5.11.0')
[debug] [ADB] There is no need to install/upgrade '/Users/prashanth/Projects/apps/app-staging-debug.apk'
[info] [AndroidDriver] Performing fast reset on 'ae.propertyfinder.manager.debug'
[debug] [ADB] Getting install status for ae.propertyfinder.manager.debug
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package ae.propertyfinder.manager.debug'
[debug] [ADB] 'ae.propertyfinder.manager.debug' is installed
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop ae.propertyfinder.manager.debug'[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm clear ae.propertyfinder.manager.debug'[debug] [AndroidDriver] Performed fast reset on the installed 'ae.propertyfinder.manager.debug' application (stop and clear)
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am start -W -n ae.propertyfinder.manager.debug/ae.propertyfinder.ui.splash.SplashActivity -S'[debug] [ADB] Waiting up to 20000ms for activity matching pkg: 'ae.propertyfinder.manager.debug' and activity: 'ae.propertyfinder.ui.splash.SplashActivity' to be focused
[debug] [ADB] Possible activities, to be checked: 'ae.propertyfinder.ui.splash.SplashActivity', 'ae.propertyfinder.manager.debug.ae.propertyfinder.ui.splash.SplashActivity'
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys window windows'[debug] [ADB] Found package: 'ae.propertyfinder.manager.debug' and fully qualified activity name : 'ae.propertyfinder.ui.splash.SplashActivity'
[debug] [W3C (61b3c339)] Responding to client with driver.launchApp() result: null
[info] [HTTP] <-- POST /wd/hub/session/61b3c339-3300-4540-8b1f-404975ff51f2/appium/app/launch 200 22019 ms - 14
[info] [HTTP] [warn] [BaseDriver] Shutting down because we waited 60 seconds for a command
[warn] [Appium] Closing session, cause was 'New Command Timeout of 60 seconds expired. Try customizing the timeout using the 'newCommandTimeout' desired capability'
[info] [Appium] Removing session '61b3c339-3300-4540-8b1f-404975ff51f2' from our master session list
[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:8200/wd/hub/session/0bd371bb-7bac-4b50-8be6-050350207179] with no body
[debug] [WD Proxy] Got response with status 200: {"sessionId":"0bd371bb-7bac-4b50-8be6-050350207179","value":null}
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop ae.propertyfinder.manager.debug'
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200'
[info] [UiAutomator2] Restoring hidden api policy to the device default configuration
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy_pre_p_apps'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy_p_apps'[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy'[debug] [Instrumentation] .[debug] [Instrumentation] Time: 116.97
[debug] [Instrumentation]
[debug] [Instrumentation] OK (1 test)[debug] [Instrumentation] The process has exited with code 0[info] [HTTP] --> POST /wd/hub/session
[info] [HTTP] {"capabilities":{"firstMatch":[{"platformName":"Android","appium:platformVersion":"","appium:deviceName":"PF","appium:app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","appium:noReset":false}]},"desiredCapabilities":{"platformName":"Android","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","platformVersion":"","deviceName":"PF","app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","noReset":false},null,{"firstMatch":[{"platformName":"Android","appium:platformVersion":"","appium:deviceName":"PF","appium:app":"/Users/prashanth/Projects/apps/app-staging-debug.apk","appium:noReset":false}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1593354017378 (18:20:17 GMT+0400 (Gulf 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.17.1 creating new AndroidUiautomator2Driver (v1.44.2) session
[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {
[debug] [BaseDriver] "alwaysMatch": {
[debug] [BaseDriver] "platformName": "Android",
[debug] [BaseDriver] "appium:platformVersion": "",
[debug] [BaseDriver] "appium:deviceName": "PF",
[debug] [BaseDriver] "appium:app": "/Users/prashanth/Projects/apps/app-staging-debug.apk",
[debug] [BaseDriver] "appium:noReset": false
[debug] [BaseDriver] },
[debug] [BaseDriver] "firstMatch": [
[debug] [BaseDriver] {}
[debug] [BaseDriver] ]
[debug] [BaseDriver] }
[info] [BaseDriver] Session created with session id: 33e71a1f-9aa4-4019-9f80-3b59f6b22292
[info] [BaseDriver] Using local app '/Users/prashanth/Projects/apps/app-staging-debug.apk'
[debug] [UiAutomator2] Checking whether app is actually present
[info] [ADB] Using 'adb' from '/Users/prashanth/Library/Android/sdk/platform-tools/adb'
[info] [AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...[debug] [ADB] Connected devices: [{"udid":"emulator-5554","state":"device"}]
[info] [AndroidDriver] Using device: emulator-5554
[info] [ADB] Using 'adb' from '/Users/prashanth/Library/Android/sdk/platform-tools/adb'
[debug] [ADB] Setting device id to emulator-5554
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'
[debug] [ADB] Current device property 'ro.build.version.sdk': 29
[info] [ADB] Getting device platform version
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 10
[debug] [ADB] Device API level: 29
[warn] [UiAutomator2] Relaxing hidden api policy
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy_pre_p_apps 1'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy_p_apps 1'[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings put global hidden_api_policy 1'
[debug] [AndroidDriver] Parsing package and activity from app manifest
[info] [ADB] Package name: 'ae.propertyfinder.manager.debug'
[info] [ADB] Main activity name: 'ae.propertyfinder.ui.splash.SplashActivity'
[debug] [AndroidDriver] Parsed package and activity are: ae.propertyfinder.manager.debug/ae.propertyfinder.ui.splash.SplashActivity
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 wait-for-device'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell echo ping'
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'[debug] [ADB] 'io.appium.settings' is not installed
[debug] [ADB] App '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk' is not installed
[debug] [ADB] Installing '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 features'
[info] [ADB] The application at '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk' will not be cached, because the device under test has confirmed the support of streamed installs
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 install -g /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk'[info] [ADB] The installation of 'settings_apk-debug.apk' took 647ms
[debug] [ADB] Install command stdout: Performing Streamed Install
[debug] [ADB] Success
[debug] [ADB] Getting IDs of all 'io.appium.settings' processes
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?''
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pgrep -f io\\.appium\\.settings'[debug] [ADB] Getting IDs of all 'io.appium.settings' processes
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pgrep -f io\\.appium\\.settings'
[debug] [ADB] Starting Appium Settings app
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am start -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER'[debug] [ADB] Getting IDs of all 'io.appium.settings' processes
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pgrep -f io\\.appium\\.settings'[debug] [ADB] Getting IDs of all 'io.appium.settings' processes
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pgrep -f io\\.appium\\.settings'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell appops set io.appium.settings android\:mock_location allow'
[debug] [Logcat] Starting logcat capture
[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200
[debug] [ADB] Forwarding system: 8200 to device: 6790
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward tcp\:8200 tcp\:6790'[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server'
[debug] [ADB] 'io.appium.uiautomator2.server' is not installed
[debug] [ADB] App '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' is not installed
[debug] [UiAutomator2] io.appium.uiautomator2.server installation state: notInstalled
[debug] [ADB] Checking app cert for /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk
[info] [ADB] Using 'apksigner.jar' from '/Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar'
[debug] [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar verify --print-certs /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' is signed with the default certificate
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.uiautomator2.server.test'
[debug] [ADB] 'io.appium.uiautomator2.server.test' is not installed
[debug] [ADB] Checking app cert for /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar verify --print-certs /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is signed with the default certificate
[info] [UiAutomator2] Server packages are going to be (re)installed
[info] [ADB] The application at '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' will not be cached, because the device under test has confirmed the support of streamed installs
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 install -r /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk'[info] [ADB] The installation of 'appium-uiautomator2-server-v4.5.5.apk' took 1034ms
[debug] [ADB] Install command stdout: Performing Streamed Install
[debug] [ADB] Success
[info] [ADB] The application at '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' will not be cached, because the device under test has confirmed the support of streamed installs
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 install -r /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk'[info] [ADB] The installation of 'appium-uiautomator2-server-debug-androidTest.apk' took 2135ms
[debug] [ADB] Install command stdout: Performing Streamed Install
[debug] [ADB] Success
[debug] [UiAutomator2] Waiting up to 30000ms for services to be available
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm list instrumentation'[debug] [UiAutomator2] Instrumentation target 'io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner' is available
[debug] [ADB] Checking app cert for /Users/prashanth/Projects/apps/app-staging-debug.apk
[debug] [ADB] Starting apksigner: /Library/Java/JavaVirtualMachines/openjdk-14.0.1.jdk/Contents/Home/bin/java -Xmx1024M -Xss1m -jar /Users/prashanth/Library/Android/sdk/build-tools/29.0.0/lib/apksigner.jar verify --print-certs /Users/prashanth/Projects/apps/app-staging-debug.apk[debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@android.com, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
[debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
[debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
[debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
[debug] [ADB]
[debug] [ADB] '/Users/prashanth/Projects/apps/app-staging-debug.apk' is signed with the default certificate
[debug] [ADB] Getting install status for ae.propertyfinder.manager.debug
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package ae.propertyfinder.manager.debug'
[debug] [ADB] 'ae.propertyfinder.manager.debug' is not installed
[debug] [ADB] App '/Users/prashanth/Projects/apps/app-staging-debug.apk' is not installed
[debug] [ADB] Installing '/Users/prashanth/Projects/apps/app-staging-debug.apk'
[info] [ADB] The application at '/Users/prashanth/Projects/apps/app-staging-debug.apk' will not be cached, because the device under test has confirmed the support of streamed installs
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 install /Users/prashanth/Projects/apps/app-staging-debug.apk'[info] [ADB] The installation of 'app-staging-debug.apk' took 3240ms
[debug] [ADB] Install command stdout: Performing Streamed Install
[debug] [ADB] Success
[debug] [UiAutomator2] Performing shallow cleanup of automation leftovers
[debug] [UiAutomator2] No obsolete sessions have been detected (Error: socket hang up)
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.uiautomator2.server.test'[info] [UiAutomator2] Starting UIAutomator2 server 4.5.5
[info] [UiAutomator2] Using UIAutomator2 server from '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.5.5.apk' and test from '/Applications/Appium.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","emulator-5554","shell","am","instrument","-w","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:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8200/wd/hub/status] with no body
[info] [WD Proxy] Got response with unknown status: {"code":"ECONNRESET"}
[error] [UiAutomator2] The instrumentation process cannot be initialized within 30000ms timeout. Make sure the application under test does not crash and investigate the logcat output. You could also try to increase the value of 'uiautomator2ServerLaunchTimeout' capability.
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [UiAutomator2] Deleting UiAutomator2 server session
[debug] [WD Proxy] Matched '/' to command name 'deleteSession'
[warn] [UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: UnknownError: An unknown server-side error occurred while processing the command. Original error: Trying to proxy a session command without session id
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop ae.propertyfinder.manager.debug'[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8200'
[info] [UiAutomator2] Restoring hidden api policy to the device default configuration
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy_pre_p_apps'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy_p_apps'
[debug] [ADB] Running '/Users/prashanth/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy'
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1593354065350 (18:21:05 GMT+0400 (Gulf Standard Time))
[debug] [W3C] Encountered internal error running command: Error: The instrumentation process cannot be initialized within 30000ms timeout. Make sure the application under test does not crash and investigate the logcat output. You could also try to increase the value of 'uiautomator2ServerLaunchTimeout' capability.
[debug] [W3C] at Object.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:87:35)
[debug] [W3C] at UiAutomator2Server.startSession (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-uiautomator2-driver/lib/uiautomator2.js:220:15)
[debug] [W3C] Destroying socket connection
[info] [HTTP] <-- POST /wd/hub/session 500 47987 ms - 1065
[info] [HTTP] 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment