[info] [Appium] Welcome to Appium v1.22.0 [info] [Appium] Non-default server args: [info] [Appium] relaxedSecurityEnabled: true [info] [Appium] allowInsecure: { [info] [Appium] } [info] [Appium] denyInsecure: { [info] [Appium] } [info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[info] [HTTP] --> GET /wd/hub/sessions [info] [HTTP] {} [debug] [GENERIC] Calling AppiumDriver.getSessions() with args: [] [debug] [GENERIC] Responding to client with driver.getSessions() result: [] [info] [HTTP] <-- GET /wd/hub/sessions 304 4 ms - - [info] [HTTP] [info] [HTTP] --> GET /wd/hub/sessions [info] [HTTP] {} [debug] [GENERIC] Calling AppiumDriver.getSessions() with args: [] [debug] [GENERIC] Responding to client with driver.getSessions() result: [] [info] [HTTP] <-- GET /wd/hub/sessions 304 2 ms - - [info] [HTTP] [info] [HTTP] --> GET /wd/hub/sessions [info] [HTTP] {} [debug] [GENERIC] Calling AppiumDriver.getSessions() with args: [] [debug] [GENERIC] Responding to client with driver.getSessions() result: [] [info] [HTTP] <-- GET /wd/hub/sessions 304 1 ms - - [info] [HTTP] [info] [HTTP] --> GET /wd/hub/sessions [info] [HTTP] {} [debug] [GENERIC] Calling AppiumDriver.getSessions() with args: [] [debug] [GENERIC] Responding to client with driver.getSessions() result: [] [info] [HTTP] <-- GET /wd/hub/sessions 304 1 ms - - [info] [HTTP] [info] [HTTP] --> GET /wd/hub/sessions [info] [HTTP] {} [debug] [GENERIC] Calling AppiumDriver.getSessions() with args: [] [debug] [GENERIC] Responding to client with driver.getSessions() result: [] [info] [HTTP] <-- GET /wd/hub/sessions 304 1 ms - - [info] [HTTP] [info] [HTTP] --> GET /wd/hub/sessions [info] [HTTP] {} [debug] [GENERIC] Calling AppiumDriver.getSessions() with args: [] [debug] [GENERIC] Responding to client with driver.getSessions() result: [] [info] [HTTP] <-- GET /wd/hub/sessions 304 1 ms - - [info] [HTTP] [info] [HTTP] --> GET /wd/hub/sessions [info] [HTTP] {} [debug] [GENERIC] Calling AppiumDriver.getSessions() with args: [] [debug] [GENERIC] Responding to client with driver.getSessions() result: [] [info] [HTTP] <-- GET /wd/hub/sessions 304 1 ms - - [info] [HTTP] [info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"capabilities":{"alwaysMatch":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1652070935100 (10:05:35 GMT+0530 (India Standard Time)) [info] [Appium] Could not parse W3C capabilities: 'platformVersion' must be of type string [info] [Appium] Trying to fix W3C capabilities by merging them with JSONWP caps [warn] [BaseDriver] The following capabilities are not standard capabilities and should have an extension prefix: [warn] [BaseDriver] platformVersion [warn] [BaseDriver] deviceName [warn] [BaseDriver] appActivity [warn] [BaseDriver] appPackage [warn] [BaseDriver] ensureWebviewsHavePages [warn] [BaseDriver] nativeWebScreenshot [warn] [BaseDriver] newCommandTimeout [warn] [BaseDriver] connectHardwareKeyboard [warn] [Appium] Could not parse fixed W3C capabilities: 'platformVersion' must be of type string. Falling back to JSONWP protocol [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] DEPRECATION WARNING: [warn] [Appium] [warn] [Appium] The 'automationName' capability was not provided in the desired [warn] [Appium] capabilities for this Android session [warn] [Appium] [warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the [warn] [Appium] UiAutomator2 Driver [warn] [Appium] [warn] [Appium] The next major version of Appium (2.x) will **require** the [warn] [Appium] 'automationName' capability to be set for all sessions on all [warn] [Appium] platforms [warn] [Appium] [warn] [Appium] In previous versions (Appium <= 1.13.x), the default was [warn] [Appium] 'automationName=UiAutomator1' [warn] [Appium] [warn] [Appium] If you wish to use that automation instead of UiAutomator2, please [warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities [warn] [Appium] [warn] [Appium] For more information about drivers, please visit [warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the [warn] [Appium] 'Drivers' menu [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] [info] [Appium] Appium v1.22.0 creating new AndroidUiautomator2Driver (v1.69.0) session [info] [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: { [debug] [BaseDriver] "platformName": "Android", [debug] [BaseDriver] "appium:platformVersion": 12, [debug] [BaseDriver] "appium:deviceName": "ZD2223F543", [debug] [BaseDriver] "appium:appActivity": "com.google.android.apps.chrome.Main", [debug] [BaseDriver] "appium:appPackage": "com.android.chrome", [debug] [BaseDriver] "appium:ensureWebviewsHavePages": true, [debug] [BaseDriver] "appium:nativeWebScreenshot": true, [debug] [BaseDriver] "appium:newCommandTimeout": 3600, [debug] [BaseDriver] "appium:connectHardwareKeyboard": true [debug] [BaseDriver] } [warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium: [warn] [BaseDriver] appium:platformVersion [warn] [BaseDriver] appium:deviceName [warn] [BaseDriver] appium:appActivity [warn] [BaseDriver] appium:appPackage [warn] [BaseDriver] appium:ensureWebviewsHavePages [warn] [BaseDriver] appium:nativeWebScreenshot [warn] [BaseDriver] appium:newCommandTimeout [warn] [BaseDriver] appium:connectHardwareKeyboard [info] [BaseDriver] Session created with session id: 9f364fd9-5fb2-43af-b3d1-a4cbbad1f832 [info] [UiAutomator2] Neither 'app' nor 'appPackage' was set. Starting UiAutomator2 without the target application [info] [ADB] Found 3 'build-tools' folders under '/home/chandra/Android/Sdk/' (newest first): [info] [ADB] /home/chandra/Android/Sdk/build-tools/32.1.0-rc1 [info] [ADB] /home/chandra/Android/Sdk/build-tools/32.0.0 [info] [ADB] /home/chandra/Android/Sdk/build-tools/30.0.3[info] [AndroidDriver] Retrieving device list [debug] [ADB] Trying to find a connected android device [debug] [ADB] Getting connected devices [debug] [ADB] Connected devices: [{"udid":"ZD2223F543","state":"device"}] [info] [AndroidDriver] Using device: ZD2223F543 [info] [ADB] Using 'adb' from '/home/chandra/Android/Sdk/platform-tools/adb' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 start-server' [debug] [ADB] Setting device id to ZD2223F543 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell getprop ro.build.version.sdk' [debug] [ADB] Current device property 'ro.build.version.sdk': 31 [info] [ADB] Getting device platform version [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell getprop ro.build.version.release'[debug] [ADB] Current device property 'ro.build.version.release': 12 [debug] [ADB] Device API level: 31 [info] [UiAutomator2] Relaxing hidden api policy [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1'' [warn] [AndroidDriver] No app sent in, not parsing package/activity [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 wait-for-device' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell dumpsys package io.appium.settings'[debug] [ADB] 'io.appium.settings' is not installed [debug] [ADB] App '/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk' is not installed [debug] [ADB] Installing '/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 help' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 features' [info] [ADB] The application at '/tmp/.mount_AppiumXJBvTw/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 '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 install -g /tmp/.mount_AppiumXJBvTw/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 2047ms [debug] [ADB] Install command stdout: Performing Streamed Install [debug] [ADB] Success [debug] [ADB] Getting IDs of all 'io.appium.settings' processes [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'pgrep --help; echo $?'' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'[debug] [ADB] Getting IDs of all 'io.appium.settings' processes [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)' [debug] [ADB] Starting Appium Settings app [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 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 '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'[debug] [ADB] Getting IDs of all 'io.appium.settings' processes [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell appops set io.appium.settings android:mock_location allow' [debug] [Logcat] Starting logs capture with command: /home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 logcat -v threadtime[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8200 [debug] [ADB] Forwarding system: 8200 to device: 6790 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 forward tcp:8200 tcp:6790' [info] [UiAutomator2] Server package at '/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.24.0.apk' is not writeable. Will copy it into the temporary location at '/tmp/202249-106292-zmfz1z.bjxv' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [info] [UiAutomator2] Server package at '/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is not writeable. Will copy it into the temporary location at '/tmp/202249-106292-zmfz1z.bjxv' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell dumpsys package io.appium.uiautomator2.server' [debug] [ADB] 'io.appium.uiautomator2.server' is not installed [debug] [ADB] App '/tmp/202249-106292-zmfz1z.bjxv/appium-uiautomator2-server-v4.24.0.apk' is not installed [debug] [UiAutomator2] io.appium.uiautomator2.server installation state: notInstalled [debug] [ADB] Checking app cert for /tmp/202249-106292-zmfz1z.bjxv/appium-uiautomator2-server-v4.24.0.apk [info] [ADB] Using 'apksigner.jar' from '/home/chandra/Android/Sdk/build-tools/32.1.0-rc1/lib/apksigner.jar' [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] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8200 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 forward --remove tcp:8200' [info] [UiAutomator2] Restoring hidden api policy to the device default configuration [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy'' [debug] [BaseDriver] Event 'newSessionStarted' logged at 1652070941308 (10:05:41 GMT+0530 (India Standard Time)) [debug] [MJSONWP] Encountered internal error running command: Error: Cannot verify the signature of '/tmp/202249-106292-zmfz1z.bjxv/appium-uiautomator2-server-v4.24.0.apk'. Original error: The JAVA_HOME location '/usr/lib/jvm/java-11-openjdk-amd64/bin/java' must be a valid folder [debug] [MJSONWP] at ADB.checkApkCert (/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-signing.js:306:11) [info] [HTTP] <-- POST /wd/hub/session 500 6246 ms - 348 [info] [HTTP] [info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"capabilities":{"alwaysMatch":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1652070972680 (10:06:12 GMT+0530 (India Standard Time)) [info] [Appium] Could not parse W3C capabilities: 'platformVersion' must be of type string [info] [Appium] Trying to fix W3C capabilities by merging them with JSONWP caps [warn] [BaseDriver] The following capabilities are not standard capabilities and should have an extension prefix: [warn] [BaseDriver] platformVersion [warn] [BaseDriver] deviceName [warn] [BaseDriver] appActivity [warn] [BaseDriver] appPackage [warn] [BaseDriver] ensureWebviewsHavePages [warn] [BaseDriver] nativeWebScreenshot [warn] [BaseDriver] newCommandTimeout [warn] [BaseDriver] connectHardwareKeyboard [warn] [Appium] Could not parse fixed W3C capabilities: 'platformVersion' must be of type string. Falling back to JSONWP protocol [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] DEPRECATION WARNING: [warn] [Appium] [warn] [Appium] The 'automationName' capability was not provided in the desired [warn] [Appium] capabilities for this Android session [warn] [Appium] [warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the [warn] [Appium] UiAutomator2 Driver [warn] [Appium] [warn] [Appium] The next major version of Appium (2.x) will **require** the [warn] [Appium] 'automationName' capability to be set for all sessions on all [warn] [Appium] platforms [warn] [Appium] [warn] [Appium] In previous versions (Appium <= 1.13.x), the default was [warn] [Appium] 'automationName=UiAutomator1' [warn] [Appium] [warn] [Appium] If you wish to use that automation instead of UiAutomator2, please [warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities [warn] [Appium] [warn] [Appium] For more information about drivers, please visit [warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the [warn] [Appium] 'Drivers' menu [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] [info] [Appium] Appium v1.22.0 creating new AndroidUiautomator2Driver (v1.69.0) session [info] [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: { [debug] [BaseDriver] "platformName": "Android", [debug] [BaseDriver] "appium:platformVersion": 12, [debug] [BaseDriver] "appium:deviceName": "ZD2223F543", [debug] [BaseDriver] "appium:appActivity": "com.google.android.apps.chrome.Main", [debug] [BaseDriver] "appium:appPackage": "com.android.chrome", [debug] [BaseDriver] "appium:ensureWebviewsHavePages": true, [debug] [BaseDriver] "appium:nativeWebScreenshot": true, [debug] [BaseDriver] "appium:newCommandTimeout": 3600, [debug] [BaseDriver] "appium:connectHardwareKeyboard": true [debug] [BaseDriver] } [warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium: [warn] [BaseDriver] appium:platformVersion [warn] [BaseDriver] appium:deviceName [warn] [BaseDriver] appium:appActivity [warn] [BaseDriver] appium:appPackage [warn] [BaseDriver] appium:ensureWebviewsHavePages [warn] [BaseDriver] appium:nativeWebScreenshot [warn] [BaseDriver] appium:newCommandTimeout [warn] [BaseDriver] appium:connectHardwareKeyboard [info] [BaseDriver] Session created with session id: a6b4368b-2e65-4028-a17a-be942855bed5 [info] [UiAutomator2] Neither 'app' nor 'appPackage' was set. Starting UiAutomator2 without the target application[info] [AndroidDriver] Retrieving device list [debug] [ADB] Trying to find a connected android device [debug] [ADB] Getting connected devices [debug] [ADB] Connected devices: [{"udid":"ZD2223F543","state":"device"}] [info] [AndroidDriver] Using device: ZD2223F543 [info] [ADB] Using 'adb' from '/home/chandra/Android/Sdk/platform-tools/adb' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 start-server' [debug] [ADB] Setting device id to ZD2223F543 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell getprop ro.build.version.sdk' [debug] [ADB] Current device property 'ro.build.version.sdk': 31 [info] [ADB] Getting device platform version [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell getprop ro.build.version.release' [debug] [ADB] Current device property 'ro.build.version.release': 12 [debug] [ADB] Device API level: 31 [info] [UiAutomator2] Relaxing hidden api policy [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''[warn] [AndroidDriver] No app sent in, not parsing package/activity [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 wait-for-device' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 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 '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell dumpsys package io.appium.settings'[debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.4.0' >= '3.4.0') [debug] [ADB] There is no need to install/upgrade '/tmp/.mount_AppiumXJBvTw/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 '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'pgrep --help; echo $?'' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)' [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell appops set io.appium.settings android:mock_location allow'[debug] [Logcat] Starting logs capture with command: /home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 logcat -v threadtime [debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8200 [debug] [ADB] Forwarding system: 8200 to device: 6790 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 forward tcp:8200 tcp:6790' [info] [UiAutomator2] Server package at '/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.24.0.apk' is not writeable. Will copy it into the temporary location at '/tmp/202249-106292-3gpduv.0qt9l' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [info] [UiAutomator2] Server package at '/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is not writeable. Will copy it into the temporary location at '/tmp/202249-106292-3gpduv.0qt9l' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell dumpsys package io.appium.uiautomator2.server'[debug] [ADB] 'io.appium.uiautomator2.server' is not installed [debug] [ADB] App '/tmp/202249-106292-3gpduv.0qt9l/appium-uiautomator2-server-v4.24.0.apk' is not installed [debug] [UiAutomator2] io.appium.uiautomator2.server installation state: notInstalled [debug] [ADB] Checking app cert for /tmp/202249-106292-3gpduv.0qt9l/appium-uiautomator2-server-v4.24.0.apk [info] [ADB] Using 'apksigner.jar' from '/home/chandra/Android/Sdk/build-tools/32.1.0-rc1/lib/apksigner.jar' [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] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8200 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 forward --remove tcp:8200' [info] [UiAutomator2] Restoring hidden api policy to the device default configuration [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy'' [debug] [BaseDriver] Event 'newSessionStarted' logged at 1652070973913 (10:06:13 GMT+0530 (India Standard Time)) [debug] [MJSONWP] Encountered internal error running command: Error: Cannot verify the signature of '/tmp/202249-106292-3gpduv.0qt9l/appium-uiautomator2-server-v4.24.0.apk'. Original error: The JAVA_HOME location '/usr/lib/jvm/java-11-openjdk-amd64/bin/java' must be a valid folder [debug] [MJSONWP] at ADB.checkApkCert (/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-signing.js:306:11) [info] [HTTP] <-- POST /wd/hub/session 500 1237 ms - 349 [info] [HTTP] [info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"capabilities":{"alwaysMatch":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1652071578734 (10:16:18 GMT+0530 (India Standard Time)) [info] [Appium] Could not parse W3C capabilities: 'platformVersion' must be of type string [info] [Appium] Trying to fix W3C capabilities by merging them with JSONWP caps [warn] [BaseDriver] The following capabilities are not standard capabilities and should have an extension prefix: [warn] [BaseDriver] platformVersion [warn] [BaseDriver] deviceName [warn] [BaseDriver] appActivity [warn] [BaseDriver] appPackage [warn] [BaseDriver] ensureWebviewsHavePages [warn] [BaseDriver] nativeWebScreenshot [warn] [BaseDriver] newCommandTimeout [warn] [BaseDriver] connectHardwareKeyboard [warn] [Appium] Could not parse fixed W3C capabilities: 'platformVersion' must be of type string. Falling back to JSONWP protocol [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] DEPRECATION WARNING: [warn] [Appium] [warn] [Appium] The 'automationName' capability was not provided in the desired [warn] [Appium] capabilities for this Android session [warn] [Appium] [warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the [warn] [Appium] UiAutomator2 Driver [warn] [Appium] [warn] [Appium] The next major version of Appium (2.x) will **require** the [warn] [Appium] 'automationName' capability to be set for all sessions on all [warn] [Appium] platforms [warn] [Appium] [warn] [Appium] In previous versions (Appium <= 1.13.x), the default was [warn] [Appium] 'automationName=UiAutomator1' [warn] [Appium] [warn] [Appium] If you wish to use that automation instead of UiAutomator2, please [warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities [warn] [Appium] [warn] [Appium] For more information about drivers, please visit [warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the [warn] [Appium] 'Drivers' menu [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] [info] [Appium] Appium v1.22.0 creating new AndroidUiautomator2Driver (v1.69.0) session [info] [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: { [debug] [BaseDriver] "platformName": "Android", [debug] [BaseDriver] "appium:platformVersion": 12, [debug] [BaseDriver] "appium:deviceName": "ZD2223F543", [debug] [BaseDriver] "appium:appActivity": "com.google.android.apps.chrome.Main", [debug] [BaseDriver] "appium:appPackage": "com.android.chrome", [debug] [BaseDriver] "appium:ensureWebviewsHavePages": true, [debug] [BaseDriver] "appium:nativeWebScreenshot": true, [debug] [BaseDriver] "appium:newCommandTimeout": 3600, [debug] [BaseDriver] "appium:connectHardwareKeyboard": true [debug] [BaseDriver] } [warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium: [warn] [BaseDriver] appium:platformVersion [warn] [BaseDriver] appium:deviceName [warn] [BaseDriver] appium:appActivity [warn] [BaseDriver] appium:appPackage [warn] [BaseDriver] appium:ensureWebviewsHavePages [warn] [BaseDriver] appium:nativeWebScreenshot [warn] [BaseDriver] appium:newCommandTimeout [warn] [BaseDriver] appium:connectHardwareKeyboard [info] [BaseDriver] Session created with session id: 0b12f3d6-d81e-468b-8fff-b415c60432ea [info] [UiAutomator2] Neither 'app' nor 'appPackage' was set. Starting UiAutomator2 without the target application [info] [ADB] Using 'adb' from '/home/chandra/Android/Sdk/platform-tools/adb' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 start-server' [info] [AndroidDriver] Retrieving device list [debug] [ADB] Trying to find a connected android device [debug] [ADB] Getting connected devices [debug] [ADB] Connected devices: [{"udid":"ZD2223F543","state":"device"}] [info] [AndroidDriver] Using device: ZD2223F543 [info] [ADB] Using 'adb' from '/home/chandra/Android/Sdk/platform-tools/adb' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 start-server' [debug] [ADB] Setting device id to ZD2223F543 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell getprop ro.build.version.sdk' [debug] [ADB] Current device property 'ro.build.version.sdk': 31 [info] [ADB] Getting device platform version [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell getprop ro.build.version.release' [debug] [ADB] Current device property 'ro.build.version.release': 12 [debug] [ADB] Device API level: 31 [info] [UiAutomator2] Relaxing hidden api policy [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''[warn] [AndroidDriver] No app sent in, not parsing package/activity [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 wait-for-device' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell echo ping'[debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 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 '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell dumpsys package io.appium.settings' [debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.4.0' >= '3.4.0') [debug] [ADB] There is no need to install/upgrade '/tmp/.mount_AppiumXJBvTw/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 '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'pgrep --help; echo $?''[debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)' [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell appops set io.appium.settings android:mock_location allow' [debug] [Logcat] Starting logs capture with command: /home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 logcat -v threadtime[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8200 [debug] [ADB] Forwarding system: 8200 to device: 6790 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 forward tcp:8200 tcp:6790' [info] [UiAutomator2] Server package at '/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.24.0.apk' is not writeable. Will copy it into the temporary location at '/tmp/202249-106292-kkzjn6.ufc6' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [info] [UiAutomator2] Server package at '/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is not writeable. Will copy it into the temporary location at '/tmp/202249-106292-kkzjn6.ufc6' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell dumpsys package io.appium.uiautomator2.server' [debug] [ADB] 'io.appium.uiautomator2.server' is not installed [debug] [ADB] App '/tmp/202249-106292-kkzjn6.ufc6/appium-uiautomator2-server-v4.24.0.apk' is not installed [debug] [UiAutomator2] io.appium.uiautomator2.server installation state: notInstalled [debug] [ADB] Checking app cert for /tmp/202249-106292-kkzjn6.ufc6/appium-uiautomator2-server-v4.24.0.apk [info] [ADB] Using 'apksigner.jar' from '/home/chandra/Android/Sdk/build-tools/32.1.0-rc1/lib/apksigner.jar' [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] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8200 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 forward --remove tcp:8200' [info] [UiAutomator2] Restoring hidden api policy to the device default configuration [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy''[debug] [BaseDriver] Event 'newSessionStarted' logged at 1652071580009 (10:16:20 GMT+0530 (India Standard Time)) [debug] [MJSONWP] Encountered internal error running command: Error: Cannot verify the signature of '/tmp/202249-106292-kkzjn6.ufc6/appium-uiautomator2-server-v4.24.0.apk'. Original error: The JAVA_HOME location '/usr/lib/jvm/java-11-openjdk-amd64/bin/java' must be a valid folder [debug] [MJSONWP] at ADB.checkApkCert (/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-signing.js:306:11) [info] [HTTP] <-- POST /wd/hub/session 500 1279 ms - 348 [info] [HTTP] [info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"capabilities":{"alwaysMatch":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1652071602404 (10:16:42 GMT+0530 (India Standard Time)) [info] [Appium] Could not parse W3C capabilities: 'platformVersion' must be of type string [info] [Appium] Trying to fix W3C capabilities by merging them with JSONWP caps [warn] [BaseDriver] The following capabilities are not standard capabilities and should have an extension prefix: [warn] [BaseDriver] platformVersion [warn] [BaseDriver] deviceName [warn] [BaseDriver] appActivity [warn] [BaseDriver] appPackage [warn] [BaseDriver] ensureWebviewsHavePages [warn] [BaseDriver] nativeWebScreenshot [warn] [BaseDriver] newCommandTimeout [warn] [BaseDriver] connectHardwareKeyboard [warn] [Appium] Could not parse fixed W3C capabilities: 'platformVersion' must be of type string. Falling back to JSONWP protocol [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] DEPRECATION WARNING: [warn] [Appium] [warn] [Appium] The 'automationName' capability was not provided in the desired [warn] [Appium] capabilities for this Android session [warn] [Appium] [warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the [warn] [Appium] UiAutomator2 Driver [warn] [Appium] [warn] [Appium] The next major version of Appium (2.x) will **require** the [warn] [Appium] 'automationName' capability to be set for all sessions on all [warn] [Appium] platforms [warn] [Appium] [warn] [Appium] In previous versions (Appium <= 1.13.x), the default was [warn] [Appium] 'automationName=UiAutomator1' [warn] [Appium] [warn] [Appium] If you wish to use that automation instead of UiAutomator2, please [warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities [warn] [Appium] [warn] [Appium] For more information about drivers, please visit [warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the [warn] [Appium] 'Drivers' menu [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] [info] [Appium] Appium v1.22.0 creating new AndroidUiautomator2Driver (v1.69.0) session [info] [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: { [debug] [BaseDriver] "platformName": "Android", [debug] [BaseDriver] "appium:platformVersion": 12, [debug] [BaseDriver] "appium:deviceName": "ZD2223F543", [debug] [BaseDriver] "appium:appActivity": "com.google.android.apps.chrome.Main", [debug] [BaseDriver] "appium:appPackage": "com.android.chrome", [debug] [BaseDriver] "appium:ensureWebviewsHavePages": true, [debug] [BaseDriver] "appium:nativeWebScreenshot": true, [debug] [BaseDriver] "appium:newCommandTimeout": 3600, [debug] [BaseDriver] "appium:connectHardwareKeyboard": true [debug] [BaseDriver] } [warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium: [warn] [BaseDriver] appium:platformVersion [warn] [BaseDriver] appium:deviceName [warn] [BaseDriver] appium:appActivity [warn] [BaseDriver] appium:appPackage [warn] [BaseDriver] appium:ensureWebviewsHavePages [warn] [BaseDriver] appium:nativeWebScreenshot [warn] [BaseDriver] appium:newCommandTimeout [warn] [BaseDriver] appium:connectHardwareKeyboard [info] [BaseDriver] Session created with session id: 0ac30cf3-fb51-4913-991f-1667570b5826 [info] [UiAutomator2] Neither 'app' nor 'appPackage' was set. Starting UiAutomator2 without the target application [info] [ADB] Using 'adb' from '/home/chandra/Android/Sdk/platform-tools/adb' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 start-server' [info] [AndroidDriver] Retrieving device list [debug] [ADB] Trying to find a connected android device [debug] [ADB] Getting connected devices [debug] [ADB] Connected devices: [{"udid":"ZD2223F543","state":"device"}] [info] [AndroidDriver] Using device: ZD2223F543 [info] [ADB] Using 'adb' from '/home/chandra/Android/Sdk/platform-tools/adb' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 start-server' [debug] [ADB] Setting device id to ZD2223F543 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell getprop ro.build.version.sdk'[debug] [ADB] Current device property 'ro.build.version.sdk': 31 [info] [ADB] Getting device platform version [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell getprop ro.build.version.release' [debug] [ADB] Current device property 'ro.build.version.release': 12 [debug] [ADB] Device API level: 31 [info] [UiAutomator2] Relaxing hidden api policy [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''[warn] [AndroidDriver] No app sent in, not parsing package/activity [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 wait-for-device' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 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 '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell dumpsys package io.appium.settings' [debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.4.0' >= '3.4.0') [debug] [ADB] There is no need to install/upgrade '/tmp/.mount_AppiumXJBvTw/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 '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'pgrep --help; echo $?''[debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)' [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell appops set io.appium.settings android:mock_location allow'[debug] [Logcat] Starting logs capture with command: /home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 logcat -v threadtime [debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8200 [debug] [ADB] Forwarding system: 8200 to device: 6790 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 forward tcp:8200 tcp:6790' [info] [UiAutomator2] Server package at '/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.24.0.apk' is not writeable. Will copy it into the temporary location at '/tmp/202249-106292-1555vvp.7binl' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [info] [UiAutomator2] Server package at '/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is not writeable. Will copy it into the temporary location at '/tmp/202249-106292-1555vvp.7binl' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell dumpsys package io.appium.uiautomator2.server' [debug] [ADB] 'io.appium.uiautomator2.server' is not installed [debug] [ADB] App '/tmp/202249-106292-1555vvp.7binl/appium-uiautomator2-server-v4.24.0.apk' is not installed [debug] [UiAutomator2] io.appium.uiautomator2.server installation state: notInstalled [debug] [ADB] Checking app cert for /tmp/202249-106292-1555vvp.7binl/appium-uiautomator2-server-v4.24.0.apk [info] [ADB] Using 'apksigner.jar' from '/home/chandra/Android/Sdk/build-tools/32.1.0-rc1/lib/apksigner.jar' [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] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8200 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 forward --remove tcp:8200' [info] [UiAutomator2] Restoring hidden api policy to the device default configuration [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy''[debug] [BaseDriver] Event 'newSessionStarted' logged at 1652071603619 (10:16:43 GMT+0530 (India Standard Time)) [debug] [MJSONWP] Encountered internal error running command: Error: Cannot verify the signature of '/tmp/202249-106292-1555vvp.7binl/appium-uiautomator2-server-v4.24.0.apk'. Original error: The JAVA_HOME location '/usr/lib/jvm/java-11-openjdk-amd64/bin/java' must be a valid folder [debug] [MJSONWP] at ADB.checkApkCert (/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-signing.js:306:11) [info] [HTTP] <-- POST /wd/hub/session 500 1217 ms - 350 [info] [HTTP] [info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"capabilities":{"alwaysMatch":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1652072114978 (10:25:14 GMT+0530 (India Standard Time)) [info] [Appium] Could not parse W3C capabilities: 'platformVersion' must be of type string [info] [Appium] Trying to fix W3C capabilities by merging them with JSONWP caps [warn] [BaseDriver] The following capabilities are not standard capabilities and should have an extension prefix: [warn] [BaseDriver] platformVersion [warn] [BaseDriver] deviceName [warn] [BaseDriver] appActivity [warn] [BaseDriver] appPackage [warn] [BaseDriver] ensureWebviewsHavePages [warn] [BaseDriver] nativeWebScreenshot [warn] [BaseDriver] newCommandTimeout [warn] [BaseDriver] connectHardwareKeyboard [warn] [Appium] Could not parse fixed W3C capabilities: 'platformVersion' must be of type string. Falling back to JSONWP protocol [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] DEPRECATION WARNING: [warn] [Appium] [warn] [Appium] The 'automationName' capability was not provided in the desired [warn] [Appium] capabilities for this Android session [warn] [Appium] [warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the [warn] [Appium] UiAutomator2 Driver [warn] [Appium] [warn] [Appium] The next major version of Appium (2.x) will **require** the [warn] [Appium] 'automationName' capability to be set for all sessions on all [warn] [Appium] platforms [warn] [Appium] [warn] [Appium] In previous versions (Appium <= 1.13.x), the default was [warn] [Appium] 'automationName=UiAutomator1' [warn] [Appium] [warn] [Appium] If you wish to use that automation instead of UiAutomator2, please [warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities [warn] [Appium] [warn] [Appium] For more information about drivers, please visit [warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the [warn] [Appium] 'Drivers' menu [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] [info] [Appium] Appium v1.22.0 creating new AndroidUiautomator2Driver (v1.69.0) session [info] [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: { [debug] [BaseDriver] "platformName": "Android", [debug] [BaseDriver] "appium:platformVersion": 12, [debug] [BaseDriver] "appium:deviceName": "ZD2223F543", [debug] [BaseDriver] "appium:appActivity": "com.google.android.apps.chrome.Main", [debug] [BaseDriver] "appium:appPackage": "com.android.chrome", [debug] [BaseDriver] "appium:ensureWebviewsHavePages": true, [debug] [BaseDriver] "appium:nativeWebScreenshot": true, [debug] [BaseDriver] "appium:newCommandTimeout": 3600, [debug] [BaseDriver] "appium:connectHardwareKeyboard": true [debug] [BaseDriver] } [warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium: [warn] [BaseDriver] appium:platformVersion [warn] [BaseDriver] appium:deviceName [warn] [BaseDriver] appium:appActivity [warn] [BaseDriver] appium:appPackage [warn] [BaseDriver] appium:ensureWebviewsHavePages [warn] [BaseDriver] appium:nativeWebScreenshot [warn] [BaseDriver] appium:newCommandTimeout [warn] [BaseDriver] appium:connectHardwareKeyboard [info] [BaseDriver] Session created with session id: c5ef7a2d-f284-4a59-831c-e910a077558e [info] [UiAutomator2] Neither 'app' nor 'appPackage' was set. Starting UiAutomator2 without the target application [info] [ADB] Using 'adb' from '/home/chandra/Android/Sdk/platform-tools/adb' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 start-server' [info] [AndroidDriver] Retrieving device list [debug] [ADB] Trying to find a connected android device [debug] [ADB] Getting connected devices[debug] [ADB] Connected devices: [{"udid":"ZD2223F543","state":"device"}] [info] [AndroidDriver] Using device: ZD2223F543 [info] [ADB] Using 'adb' from '/home/chandra/Android/Sdk/platform-tools/adb' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 start-server' [debug] [ADB] Setting device id to ZD2223F543 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell getprop ro.build.version.sdk' [debug] [ADB] Current device property 'ro.build.version.sdk': 31 [info] [ADB] Getting device platform version [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell getprop ro.build.version.release' [debug] [ADB] Current device property 'ro.build.version.release': 12 [debug] [ADB] Device API level: 31 [info] [UiAutomator2] Relaxing hidden api policy [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''[warn] [AndroidDriver] No app sent in, not parsing package/activity [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 wait-for-device' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 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 '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell dumpsys package io.appium.settings'[debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.4.0' >= '3.4.0') [debug] [ADB] There is no need to install/upgrade '/tmp/.mount_AppiumXJBvTw/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 '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'pgrep --help; echo $?'' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell appops set io.appium.settings android:mock_location allow' [debug] [Logcat] Starting logs capture with command: /home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 logcat -v threadtime [debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8200 [debug] [ADB] Forwarding system: 8200 to device: 6790 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 forward tcp:8200 tcp:6790' [info] [UiAutomator2] Server package at '/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.24.0.apk' is not writeable. Will copy it into the temporary location at '/tmp/202249-106292-ad1tdj.hlwbe' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [info] [UiAutomator2] Server package at '/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is not writeable. Will copy it into the temporary location at '/tmp/202249-106292-ad1tdj.hlwbe' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell dumpsys package io.appium.uiautomator2.server'[debug] [ADB] 'io.appium.uiautomator2.server' is not installed [debug] [ADB] App '/tmp/202249-106292-ad1tdj.hlwbe/appium-uiautomator2-server-v4.24.0.apk' is not installed [debug] [UiAutomator2] io.appium.uiautomator2.server installation state: notInstalled [debug] [ADB] Checking app cert for /tmp/202249-106292-ad1tdj.hlwbe/appium-uiautomator2-server-v4.24.0.apk [info] [ADB] Using 'apksigner.jar' from '/home/chandra/Android/Sdk/build-tools/32.1.0-rc1/lib/apksigner.jar' [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] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8200 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 forward --remove tcp:8200' [info] [UiAutomator2] Restoring hidden api policy to the device default configuration [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy''[debug] [BaseDriver] Event 'newSessionStarted' logged at 1652072116266 (10:25:16 GMT+0530 (India Standard Time)) [debug] [MJSONWP] Encountered internal error running command: Error: Cannot verify the signature of '/tmp/202249-106292-ad1tdj.hlwbe/appium-uiautomator2-server-v4.24.0.apk'. Original error: The JAVA_HOME location '/usr/lib/jvm/java-11-openjdk-amd64/bin/java' must be a valid folder [debug] [MJSONWP] at ADB.checkApkCert (/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-signing.js:306:11) [info] [HTTP] <-- POST /wd/hub/session 500 1292 ms - 349 [info] [HTTP] [info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"capabilities":{"alwaysMatch":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1652072304214 (10:28:24 GMT+0530 (India Standard Time)) [info] [Appium] Could not parse W3C capabilities: 'platformVersion' must be of type string [info] [Appium] Trying to fix W3C capabilities by merging them with JSONWP caps [warn] [BaseDriver] The following capabilities are not standard capabilities and should have an extension prefix: [warn] [BaseDriver] platformVersion [warn] [BaseDriver] deviceName [warn] [BaseDriver] appActivity [warn] [BaseDriver] appPackage [warn] [BaseDriver] ensureWebviewsHavePages [warn] [BaseDriver] nativeWebScreenshot [warn] [BaseDriver] newCommandTimeout [warn] [BaseDriver] connectHardwareKeyboard [warn] [Appium] Could not parse fixed W3C capabilities: 'platformVersion' must be of type string. Falling back to JSONWP protocol [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] DEPRECATION WARNING: [warn] [Appium] [warn] [Appium] The 'automationName' capability was not provided in the desired [warn] [Appium] capabilities for this Android session [warn] [Appium] [warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the [warn] [Appium] UiAutomator2 Driver [warn] [Appium] [warn] [Appium] The next major version of Appium (2.x) will **require** the [warn] [Appium] 'automationName' capability to be set for all sessions on all [warn] [Appium] platforms [warn] [Appium] [warn] [Appium] In previous versions (Appium <= 1.13.x), the default was [warn] [Appium] 'automationName=UiAutomator1' [warn] [Appium] [warn] [Appium] If you wish to use that automation instead of UiAutomator2, please [warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities [warn] [Appium] [warn] [Appium] For more information about drivers, please visit [warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the [warn] [Appium] 'Drivers' menu [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] [info] [Appium] Appium v1.22.0 creating new AndroidUiautomator2Driver (v1.69.0) session [info] [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: { [debug] [BaseDriver] "platformName": "Android", [debug] [BaseDriver] "appium:platformVersion": 12, [debug] [BaseDriver] "appium:deviceName": "ZD2223F543", [debug] [BaseDriver] "appium:appActivity": "com.google.android.apps.chrome.Main", [debug] [BaseDriver] "appium:appPackage": "com.android.chrome", [debug] [BaseDriver] "appium:ensureWebviewsHavePages": true, [debug] [BaseDriver] "appium:nativeWebScreenshot": true, [debug] [BaseDriver] "appium:newCommandTimeout": 3600, [debug] [BaseDriver] "appium:connectHardwareKeyboard": true [debug] [BaseDriver] } [warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium: [warn] [BaseDriver] appium:platformVersion [warn] [BaseDriver] appium:deviceName [warn] [BaseDriver] appium:appActivity [warn] [BaseDriver] appium:appPackage [warn] [BaseDriver] appium:ensureWebviewsHavePages [warn] [BaseDriver] appium:nativeWebScreenshot [warn] [BaseDriver] appium:newCommandTimeout [warn] [BaseDriver] appium:connectHardwareKeyboard [info] [BaseDriver] Session created with session id: c70f438b-2b16-4f95-ac9e-bbf20f7d1bef [info] [UiAutomator2] Neither 'app' nor 'appPackage' was set. Starting UiAutomator2 without the target application [info] [ADB] Using 'adb' from '/home/chandra/Android/Sdk/platform-tools/adb' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 start-server' [info] [AndroidDriver] Retrieving device list [debug] [ADB] Trying to find a connected android device [debug] [ADB] Getting connected devices [debug] [ADB] Connected devices: [{"udid":"ZD2223F543","state":"device"}] [info] [AndroidDriver] Using device: ZD2223F543 [info] [ADB] Using 'adb' from '/home/chandra/Android/Sdk/platform-tools/adb' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 start-server' [debug] [ADB] Setting device id to ZD2223F543 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell getprop ro.build.version.sdk' [debug] [ADB] Current device property 'ro.build.version.sdk': 31 [info] [ADB] Getting device platform version [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell getprop ro.build.version.release' [debug] [ADB] Current device property 'ro.build.version.release': 12 [debug] [ADB] Device API level: 31 [info] [UiAutomator2] Relaxing hidden api policy [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''[warn] [AndroidDriver] No app sent in, not parsing package/activity [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 wait-for-device' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 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 '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell dumpsys package io.appium.settings' [debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.4.0' >= '3.4.0') [debug] [ADB] There is no need to install/upgrade '/tmp/.mount_AppiumXJBvTw/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 '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'pgrep --help; echo $?''[debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)' [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell appops set io.appium.settings android:mock_location allow' [debug] [Logcat] Starting logs capture with command: /home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 logcat -v threadtime[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8200 [debug] [ADB] Forwarding system: 8200 to device: 6790 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 forward tcp:8200 tcp:6790' [info] [UiAutomator2] Server package at '/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.24.0.apk' is not writeable. Will copy it into the temporary location at '/tmp/202249-106292-172c3th.aj5j' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [info] [UiAutomator2] Server package at '/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is not writeable. Will copy it into the temporary location at '/tmp/202249-106292-172c3th.aj5j' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell dumpsys package io.appium.uiautomator2.server' [debug] [ADB] 'io.appium.uiautomator2.server' is not installed [debug] [ADB] App '/tmp/202249-106292-172c3th.aj5j/appium-uiautomator2-server-v4.24.0.apk' is not installed [debug] [UiAutomator2] io.appium.uiautomator2.server installation state: notInstalled [debug] [ADB] Checking app cert for /tmp/202249-106292-172c3th.aj5j/appium-uiautomator2-server-v4.24.0.apk [info] [ADB] Using 'apksigner.jar' from '/home/chandra/Android/Sdk/build-tools/32.1.0-rc1/lib/apksigner.jar' [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] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8200 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 forward --remove tcp:8200' [info] [UiAutomator2] Restoring hidden api policy to the device default configuration [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy''[debug] [BaseDriver] Event 'newSessionStarted' logged at 1652072305517 (10:28:25 GMT+0530 (India Standard Time)) [debug] [MJSONWP] Encountered internal error running command: Error: Cannot verify the signature of '/tmp/202249-106292-172c3th.aj5j/appium-uiautomator2-server-v4.24.0.apk'. Original error: The JAVA_HOME location '/usr/lib/jvm/java-11-openjdk-amd64/bin/java' must be a valid folder [debug] [MJSONWP] at ADB.checkApkCert (/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-signing.js:306:11) [info] [HTTP] <-- POST /wd/hub/session 500 1305 ms - 349 [info] [HTTP] [info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"capabilities":{"alwaysMatch":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}} [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"Android","appium:platformVersion":12,"appium:deviceName":"ZD2223F543","appium:appActivity":"com.google.android.apps.chrome.Main","appium:appPackage":"com.android.chrome","appium:ensureWebviewsHavePages":true,"appium:nativeWebScreenshot":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1652072437198 (10:30:37 GMT+0530 (India Standard Time)) [info] [Appium] Could not parse W3C capabilities: 'platformVersion' must be of type string [info] [Appium] Trying to fix W3C capabilities by merging them with JSONWP caps [warn] [BaseDriver] The following capabilities are not standard capabilities and should have an extension prefix: [warn] [BaseDriver] platformVersion [warn] [BaseDriver] deviceName [warn] [BaseDriver] appActivity [warn] [BaseDriver] appPackage [warn] [BaseDriver] ensureWebviewsHavePages [warn] [BaseDriver] nativeWebScreenshot [warn] [BaseDriver] newCommandTimeout [warn] [BaseDriver] connectHardwareKeyboard [warn] [Appium] Could not parse fixed W3C capabilities: 'platformVersion' must be of type string. Falling back to JSONWP protocol [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] DEPRECATION WARNING: [warn] [Appium] [warn] [Appium] The 'automationName' capability was not provided in the desired [warn] [Appium] capabilities for this Android session [warn] [Appium] [warn] [Appium] Setting 'automationName=UiAutomator2' by default and using the [warn] [Appium] UiAutomator2 Driver [warn] [Appium] [warn] [Appium] The next major version of Appium (2.x) will **require** the [warn] [Appium] 'automationName' capability to be set for all sessions on all [warn] [Appium] platforms [warn] [Appium] [warn] [Appium] In previous versions (Appium <= 1.13.x), the default was [warn] [Appium] 'automationName=UiAutomator1' [warn] [Appium] [warn] [Appium] If you wish to use that automation instead of UiAutomator2, please [warn] [Appium] add 'automationName=UiAutomator1' to your desired capabilities [warn] [Appium] [warn] [Appium] For more information about drivers, please visit [warn] [Appium] http://appium.io/docs/en/about-appium/intro/ and explore the [warn] [Appium] 'Drivers' menu [warn] [Appium] [warn] [Appium] ====================================================================== [warn] [Appium] [info] [Appium] Appium v1.22.0 creating new AndroidUiautomator2Driver (v1.69.0) session [info] [Appium] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: { [debug] [BaseDriver] "platformName": "Android", [debug] [BaseDriver] "appium:platformVersion": 12, [debug] [BaseDriver] "appium:deviceName": "ZD2223F543", [debug] [BaseDriver] "appium:appActivity": "com.google.android.apps.chrome.Main", [debug] [BaseDriver] "appium:appPackage": "com.android.chrome", [debug] [BaseDriver] "appium:ensureWebviewsHavePages": true, [debug] [BaseDriver] "appium:nativeWebScreenshot": true, [debug] [BaseDriver] "appium:newCommandTimeout": 3600, [debug] [BaseDriver] "appium:connectHardwareKeyboard": true [debug] [BaseDriver] } [warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium: [warn] [BaseDriver] appium:platformVersion [warn] [BaseDriver] appium:deviceName [warn] [BaseDriver] appium:appActivity [warn] [BaseDriver] appium:appPackage [warn] [BaseDriver] appium:ensureWebviewsHavePages [warn] [BaseDriver] appium:nativeWebScreenshot [warn] [BaseDriver] appium:newCommandTimeout [warn] [BaseDriver] appium:connectHardwareKeyboard [info] [BaseDriver] Session created with session id: 37cbc60f-13c2-4273-a593-10beceeaae03 [info] [UiAutomator2] Neither 'app' nor 'appPackage' was set. Starting UiAutomator2 without the target application [info] [ADB] Using 'adb' from '/home/chandra/Android/Sdk/platform-tools/adb' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 start-server' [info] [AndroidDriver] Retrieving device list [debug] [ADB] Trying to find a connected android device [debug] [ADB] Getting connected devices [debug] [ADB] Connected devices: [{"udid":"ZD2223F543","state":"device"}] [info] [AndroidDriver] Using device: ZD2223F543 [info] [ADB] Using 'adb' from '/home/chandra/Android/Sdk/platform-tools/adb' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 start-server' [debug] [ADB] Setting device id to ZD2223F543 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell getprop ro.build.version.sdk' [debug] [ADB] Current device property 'ro.build.version.sdk': 31 [info] [ADB] Getting device platform version [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell getprop ro.build.version.release' [debug] [ADB] Current device property 'ro.build.version.release': 12 [debug] [ADB] Device API level: 31 [info] [UiAutomator2] Relaxing hidden api policy [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''[warn] [AndroidDriver] No app sent in, not parsing package/activity [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 wait-for-device' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 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 '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell dumpsys package io.appium.settings'[debug] [ADB] The version name of the installed 'io.appium.settings' is greater or equal to the application version name ('3.4.0' >= '3.4.0') [debug] [ADB] There is no need to install/upgrade '/tmp/.mount_AppiumXJBvTw/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 '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'pgrep --help; echo $?'' [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell pgrep -f \(\[\[:blank:\]\]\|\^\)io\.appium\.settings\(\[\[:blank:\]\]\|\$\)'[debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell appops set io.appium.settings android:mock_location allow' [debug] [Logcat] Starting logs capture with command: /home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 logcat -v threadtime [debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to local port 8200 [debug] [ADB] Forwarding system: 8200 to device: 6790 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 forward tcp:8200 tcp:6790' [info] [UiAutomator2] Server package at '/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-v4.24.0.apk' is not writeable. Will copy it into the temporary location at '/tmp/202249-106292-16y3hai.ag8u' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup. [info] [UiAutomator2] Server package at '/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk' is not writeable. Will copy it into the temporary location at '/tmp/202249-106292-16y3hai.ag8u' as a workaround. Consider making this file writeable manually in order to improve the performance of session startup.[debug] [ADB] Getting install status for io.appium.uiautomator2.server [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell dumpsys package io.appium.uiautomator2.server' [debug] [ADB] 'io.appium.uiautomator2.server' is not installed [debug] [ADB] App '/tmp/202249-106292-16y3hai.ag8u/appium-uiautomator2-server-v4.24.0.apk' is not installed [debug] [UiAutomator2] io.appium.uiautomator2.server installation state: notInstalled [debug] [ADB] Checking app cert for /tmp/202249-106292-16y3hai.ag8u/appium-uiautomator2-server-v4.24.0.apk [info] [ADB] Using 'apksigner.jar' from '/home/chandra/Android/Sdk/build-tools/32.1.0-rc1/lib/apksigner.jar' [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] [Logcat] Stopping logcat capture [debug] [ADB] Removing forwarded port socket connection: 8200 [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 forward --remove tcp:8200' [info] [UiAutomator2] Restoring hidden api policy to the device default configuration [debug] [ADB] Running '/home/chandra/Android/Sdk/platform-tools/adb -P 5037 -s ZD2223F543 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy''[debug] [BaseDriver] Event 'newSessionStarted' logged at 1652072438490 (10:30:38 GMT+0530 (India Standard Time)) [debug] [MJSONWP] Encountered internal error running command: Error: Cannot verify the signature of '/tmp/202249-106292-16y3hai.ag8u/appium-uiautomator2-server-v4.24.0.apk'. Original error: The JAVA_HOME location '/usr/lib/jvm/java-11-openjdk-amd64/bin/java' must be a valid folder [debug] [MJSONWP] at ADB.checkApkCert (/tmp/.mount_AppiumXJBvTw/resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-signing.js:306:11) [info] [HTTP] <-- POST /wd/hub/session 500 1294 ms - 349 [info] [HTTP]