Cannot activate app - No activity found

Hello guys,

I have tried to replace launch_app() method with activate_app(), since it is deprecated, but I was not able to activate the app.

Error: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to resolve the launchable activity of ‘app.package.id’. Original error: No activity found

But app is definely running (installed) since remove_app() with same app id works just well, same for terminate_app() or (deprecated) start_activity(). is_app_installed() also returns True.

Those are capabillities I used.
{“appium:deviceName”: device_name,
“appium:app”: “path.to.apk”,
“appium:appPackage”: “app.package.id”,
“appium:appActivity”: “.activity”,
“appium:udid”: udid,
“appium:automationName”: “UiAutomator2”}

And Python 3.7, with Appium-Python-Client v2.11.1, Appium v2.0.0-rc.5, UiAutomator2 v2.29.2

I really dont know what am I doing wrong, I would be very grateful for any advice.

you have path to apk file… SO try
1 - “appium:appPackage”: “app.package.id” - DELETE (no need)
2 - “appium:appActivity”: “.activity” replace with “appium:appWaitActivity”: “com.your_package.*”

Unfortunately, that didn’t help, once I replace appActivity with appWaitActivity, then “Cannot start the ‘com.my.app’ application” is thrown.

post full Appium logs in DEBUG mode.

Hope you mean this type of log:

This is with your recommended changes applied.

DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1:4723
DEBUG:urllib3.util.retry:Incremented Retry for (url='/status'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001AAB8077588>, 'Connection to 127.0.0.1 timed out. (connect timeout=1.0)')': /status
DEBUG:urllib3.connectionpool:Starting new HTTP connection (2): 127.0.0.1:4723
DEBUG:urllib3.util.retry:Incremented Retry for (url='/status'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001AAB8087E08>, 'Connection to 127.0.0.1 timed out. (connect timeout=1.0)')': /status
DEBUG:urllib3.connectionpool:Starting new HTTP connection (3): 127.0.0.1:4723
DEBUG:urllib3.util.retry:Incremented Retry for (url='/status'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001AAB80AF688>, 'Connection to 127.0.0.1 timed out. (connect timeout=1.0)')': /status
DEBUG:urllib3.connectionpool:Starting new HTTP connection (4): 127.0.0.1:4723
DEBUG:urllib3.connectionpool:Starting new HTTP connection (5): 127.0.0.1:4723
DEBUG:urllib3.util.retry:Incremented Retry for (url='/status'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001AAB80B2388>, 'Connection to 127.0.0.1 timed out. (connect timeout=1.0)')': /status
DEBUG:urllib3.connectionpool:Starting new HTTP connection (6): 127.0.0.1:4723
DEBUG:urllib3.util.retry:Incremented Retry for (url='/status'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001AAB80B29C8>, 'Connection to 127.0.0.1 timed out. (connect timeout=1.0)')': /status
DEBUG:urllib3.connectionpool:Starting new HTTP connection (7): 127.0.0.1:4723
DEBUG:urllib3.util.retry:Incremented Retry for (url='/status'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001AAB80B5148>, 'Connection to 127.0.0.1 timed out. (connect timeout=1.0)')': /status
DEBUG:urllib3.connectionpool:Starting new HTTP connection (8): 127.0.0.1:4723
DEBUG:urllib3.connectionpool:Starting new HTTP connection (9): 127.0.0.1:4723
DEBUG:urllib3.util.retry:Incremented Retry for (url='/status'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001AAB80B5A48>, 'Connection to 127.0.0.1 timed out. (connect timeout=1.0)')': /status
DEBUG:urllib3.connectionpool:Starting new HTTP connection (10): 127.0.0.1:4723
DEBUG:urllib3.util.retry:Incremented Retry for (url='/status'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001AAB80BA0C8>, 'Connection to 127.0.0.1 timed out. (connect timeout=1.0)')': /status
DEBUG:urllib3.connectionpool:Starting new HTTP connection (11): 127.0.0.1:4723
DEBUG:urllib3.util.retry:Incremented Retry for (url='/status'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000001AAB80BA808>, 'Connection to 127.0.0.1 timed out. (connect timeout=1.0)')': /status
DEBUG:urllib3.connectionpool:Starting new HTTP connection (12): 127.0.0.1:4723
DEBUG:urllib3.connectionpool:Starting new HTTP connection (13): 127.0.0.1:4723
DEBUG:urllib3.connectionpool:http://127.0.0.1:4723 "HEAD /status HTTP/1.1" 200 0
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:4723/session {"capabilities": {"firstMatch": [{}], "alwaysMatch": {"appium:automationName": "UiAutomator2", "platformName": "Android", "appium:deviceName": "Lenovo", "appium:unlockType": "pin", "appium:unlockKey": "123456", "appium:app": "C:\\Users\\KarelVrabka\\Diavaso\\apps\\23.1.1\\Config-release.apk", "appium:udid": "HA11RZB8", "appium:appWaitActivity": "com.sensus.config.AppLauncher.*", "appium:newCommandTimeout": "500"}}}
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1:4723
DEBUG:urllib3.connectionpool:http://127.0.0.1:4723 "POST /session HTTP/1.1" 500 0
DEBUG:selenium.webdriver.remote.remote_connection:Remote response: status=500 | data={"value":{"error":"unknown error","message":"An unknown server-side error occurred while processing the command. Original error: Cannot start the 'com.sensus.config' application. Consider checking the driver's troubleshooting documentation. Original error: Error executing adbExec. Original error: 'Command 'C:\\\\Users\\\\KarelVrabka\\\\AppData\\\\Local\\\\Android\\\\Sdk\\\\platform-tools\\\\adb.exe -P 5037 -s HA11RZB8 shell am start -W -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000' exited with code 1'; Command output: Error: Intent matches multiple activities; can't stop: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 }\r\n","stacktrace":"UnknownError: An unknown server-side error occurred while processing the command. Original error: Cannot start the 'com.sensus.config' application. Consider checking the driver's troubleshooting documentation. Original error: Error executing adbExec. Original error: 'Command 'C:\\\\Users\\\\KarelVrabka\\\\AppData\\\\Local\\\\Android\\\\Sdk\\\\platform-tools\\\\adb.exe -P 5037 -s HA11RZB8 shell am start -W -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000' exited with code 1'; Command output: Error: Intent matches multiple activities; can't stop: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 }\r\n\n    at getResponseForW3CError (C:\\Users\\KarelVrabka\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\@appium\\base-driver\\lib\\protocol\\errors.js:1073:9)\n    at asyncHandler (C:\\Users\\KarelVrabka\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\@appium\\base-driver\\lib\\protocol\\protocol.js:491:57)"}} | headers=HTTPHeaderDict({'X-Powered-By': 'Express', 'Vary': 'X-HTTP-Method-Override', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '1750', 'ETag': 'W/"6d6-V1qfsmclhqynr5Ev2OvoDpYrrM4"', 'Date': 'Tue, 18 Jul 2023 08:00:45 GMT', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=600'})
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request

This is with previous caps:

DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1:4723
DEBUG:urllib3.util.retry:Incremented Retry for (url='/status'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000002106F593F88>, 'Connection to 127.0.0.1 timed out. (connect timeout=1.0)')': /status
DEBUG:urllib3.connectionpool:Starting new HTTP connection (2): 127.0.0.1:4723
DEBUG:urllib3.util.retry:Incremented Retry for (url='/status'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000002106F67EE48>, 'Connection to 127.0.0.1 timed out. (connect timeout=1.0)')': /status
DEBUG:urllib3.connectionpool:Starting new HTTP connection (3): 127.0.0.1:4723
DEBUG:urllib3.util.retry:Incremented Retry for (url='/status'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000002106F6AE6C8>, 'Connection to 127.0.0.1 timed out. (connect timeout=1.0)')': /status
DEBUG:urllib3.connectionpool:Starting new HTTP connection (4): 127.0.0.1:4723
DEBUG:urllib3.connectionpool:Starting new HTTP connection (5): 127.0.0.1:4723
DEBUG:urllib3.util.retry:Incremented Retry for (url='/status'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000002106F6B13C8>, 'Connection to 127.0.0.1 timed out. (connect timeout=1.0)')': /status
DEBUG:urllib3.connectionpool:Starting new HTTP connection (6): 127.0.0.1:4723
DEBUG:urllib3.util.retry:Incremented Retry for (url='/status'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000002106F6B1A08>, 'Connection to 127.0.0.1 timed out. (connect timeout=1.0)')': /status
DEBUG:urllib3.connectionpool:Starting new HTTP connection (7): 127.0.0.1:4723
DEBUG:urllib3.util.retry:Incremented Retry for (url='/status'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x000002106F6B6188>, 'Connection to 127.0.0.1 timed out. (connect timeout=1.0)')': /status
DEBUG:urllib3.connectionpool:Starting new HTTP connection (8): 127.0.0.1:4723
DEBUG:urllib3.connectionpool:Starting new HTTP connection (9): 127.0.0.1:4723
DEBUG:urllib3.connectionpool:http://127.0.0.1:4723 "HEAD /status HTTP/1.1" 200 0
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:4723/session {"capabilities": {"firstMatch": [{}], "alwaysMatch": {"appium:automationName": "UiAutomator2", "platformName": "Android", "appium:deviceName": "Lenovo", "appium:unlockType": "pin", "appium:unlockKey": "123456", "appium:app": "C:\\Users\\KarelVrabka\\Diavaso\\apps\\23.1.1\\Config-release.apk", "appium:appPackage": "com.sensus.config", "appium:appActivity": "com.sensus.config.AppLauncher", "appium:udid": "HA11RZB8", "appium:newCommandTimeout": "500"}}}
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1:4723
DEBUG:urllib3.connectionpool:http://127.0.0.1:4723 "POST /session HTTP/1.1" 200 0
DEBUG:selenium.webdriver.remote.remote_connection:Remote response: status=200 | data={"value":{"capabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","automationName":"UiAutomator2","deviceName":"Lenovo","unlockType":"pin","unlockKey":"123456","app":"C:\\Users\\KarelVrabka\\Diavaso\\apps\\23.1.1\\Config-release.apk","appPackage":"com.sensus.config","appActivity":"com.sensus.config.AppLauncher","udid":"HA11RZB8","newCommandTimeout":500},"platformName":"Android","automationName":"UiAutomator2","deviceName":"HA11RZB8","unlockType":"pin","unlockKey":"123456","app":"C:\\Users\\KarelVrabka\\Diavaso\\apps\\23.1.1\\Config-release.apk","appPackage":"com.sensus.config","appActivity":"com.sensus.config.AppLauncher","udid":"HA11RZB8","newCommandTimeout":500,"deviceUDID":"HA11RZB8","deviceApiLevel":29,"platformVersion":"10","deviceScreenSize":"800x1280","deviceScreenDensity":240,"deviceModel":"Lenovo TB-8505F","deviceManufacturer":"LENOVO","pixelRatio":1.5,"statBarHeight":36,"viewportRect":{"left":0,"top":36,"width":800,"height":1220}},"sessionId":"e90b47a9-60bf-4723-bce3-3dff2f8e057d"}} | headers=HTTPHeaderDict({'X-Powered-By': 'Express', 'Vary': 'X-HTTP-Method-Override', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '1197', 'ETag': 'W/"4ad-Ve58i/Ju8mkDd6Iv/Rdc7uPFLxA"', 'Date': 'Tue, 18 Jul 2023 08:04:03 GMT', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=600'})
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:4723/session/e90b47a9-60bf-4723-bce3-3dff2f8e057d/timeouts {"implicit": 2000}
DEBUG:urllib3.connectionpool:http://127.0.0.1:4723 "POST /session/e90b47a9-60bf-4723-bce3-3dff2f8e057d/timeouts HTTP/1.1" 200 0
DEBUG:selenium.webdriver.remote.remote_connection:Remote response: status=200 | data={"value":null} | headers=HTTPHeaderDict({'X-Powered-By': 'Express', 'Vary': 'X-HTTP-Method-Override', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '14', 'ETag': 'W/"e-9/1BuKMgFObM1mWJm+YjxtXJnUM"', 'Date': 'Tue, 18 Jul 2023 08:04:03 GMT', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=600'})
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:4723/session/e90b47a9-60bf-4723-bce3-3dff2f8e057d/execute/sync {"script": "mobile: isAppInstalled", "args": [{"bundleId": "com.sensus.config", "appId": "com.sensus.config"}]}
DEBUG:urllib3.connectionpool:http://127.0.0.1:4723 "POST /session/e90b47a9-60bf-4723-bce3-3dff2f8e057d/execute/sync HTTP/1.1" 200 0
DEBUG:selenium.webdriver.remote.remote_connection:Remote response: status=200 | data={"value":true} | headers=HTTPHeaderDict({'X-Powered-By': 'Express', 'Vary': 'X-HTTP-Method-Override', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '14', 'ETag': 'W/"e-2ZHvAWebNQpyjGZTg6uyV8/spTo"', 'Date': 'Tue, 18 Jul 2023 08:04:03 GMT', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=600'})
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:4723/session/e90b47a9-60bf-4723-bce3-3dff2f8e057d/execute/sync {"script": "mobile: getCurrentActivity", "args": []}
DEBUG:urllib3.connectionpool:http://127.0.0.1:4723 "POST /session/e90b47a9-60bf-4723-bce3-3dff2f8e057d/execute/sync HTTP/1.1" 200 0
DEBUG:selenium.webdriver.remote.remote_connection:Remote response: status=200 | data={"value":".AppLauncher"} | headers=HTTPHeaderDict({'X-Powered-By': 'Express', 'Vary': 'X-HTTP-Method-Override', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '24', 'ETag': 'W/"18-Y77i2/cTy8aG2pZ6p6caNfTZpmY"', 'Date': 'Tue, 18 Jul 2023 08:04:03 GMT', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=600'})
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:4723/session/e90b47a9-60bf-4723-bce3-3dff2f8e057d/execute/sync {"script": "mobile: activateApp", "args": [{"appId": "com.sensus.config", "bundleId": "com.sensus.config"}]}
DEBUG:urllib3.connectionpool:http://127.0.0.1:4723 "POST /session/e90b47a9-60bf-4723-bce3-3dff2f8e057d/execute/sync HTTP/1.1" 500 0
DEBUG:selenium.webdriver.remote.remote_connection:Remote response: status=500 | data={"value":{"error":"unknown error","message":"An unknown server-side error occurred while processing the command. Original error: Unable to resolve the launchable activity of 'com.sensus.config'. Original error: No activity found","stacktrace":"UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to resolve the launchable activity of 'com.sensus.config'. Original error: No activity found\n    at getResponseForW3CError (C:\\Users\\KarelVrabka\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\@appium\\base-driver\\lib\\protocol\\errors.js:1073:9)\n    at asyncHandler (C:\\Users\\KarelVrabka\\AppData\\Roaming\\npm\\node_modules\\appium\\node_modules\\@appium\\base-driver\\lib\\protocol\\protocol.js:491:57)"}} | headers=HTTPHeaderDict({'X-Powered-By': 'Express', 'Vary': 'X-HTTP-Method-Override', 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': '776', 'ETag': 'W/"308-kzTzx+jpsWk0vl9Ydp/+676ctmw"', 'Date': 'Tue, 18 Jul 2023 08:04:03 GMT', 'Connection': 'keep-alive', 'Keep-Alive': 'timeout=600'})
DEBUG:selenium.webdriver.remote.remote_connection:Finished Request

your logs should look like

2023-07-18 08:11:57:537 - [Appium] Appium REST http interface listener started on 0.0.0.0:5013
2023-07-18 08:11:57:538 - [Appium] Available drivers:
2023-07-18 08:11:57:538 - [Appium]   - [email protected] (automationName 'UiAutomator2')
2023-07-18 08:11:57:538 - [Appium]   - [email protected] (automationName 'XCUITest')
2023-07-18 08:11:57:538 - [Appium] Available plugins:
2023-07-18 08:11:57:538 - [Appium]   - [email protected] (ACTIVE)

2023-07-18 08:12:00:914 - [debug] [HTTP] Request idempotency key: fd052092-6a9a-47e9-bdac-e0f7a7d69db8
2023-07-18 08:12:00:934 - [HTTP] --> POST /session
2023-07-18 08:12:00:935 - [HTTP] {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"appium:allowTestPackages":true,"appium:app":"/Users/my_user/Documents/test/app/app-dev-debug.apk","appium:appWaitActivity":"com.my_app.*","appium:autoGrantPermissions":true,"appium:automationName":"UIAutomator2","appium:clearDeviceLogsOnStart":true,"appium:clearSystemFiles":true,"appium:deviceName":"nokia_5.3_13","appium:disableAndroidWatchers":true,"appium:enableMultiWindows":true,"appium:forceAppLaunch":true,"appium:fullReset":false,"appium:newCommandTimeout":180,"appium:noReset":true,"appium:noSign":"true","appium:optionalIntentArguments":"--esa FEATURE_FLAG_KEYS -featureFlag.OB --esa FEATURE_FLAG_VALUES  Unrecognized transaction flow,YES","appium:skipDeviceInitialization":true,"appium:skipServerInstallation":true,"appium:systemPort":5413,"appium:udid":"N0AA003811K62001102","appium:useNewWDA":false,"appium:usePrebuiltWDA":true,"platformName":"android"}}}
2023-07-18 08:12:00:935 - [debug] [AppiumDriver@0a1a] Calling AppiumDriver.createSession() with args: [null,null,{"firstMatch":[{}],"alwaysMatch":{"appium:allowTestPackages":true,"appium:app":"/Users/my_user/Documents/test/app/app-dev-debug.apk","appium:appWaitActivity":"com.my_app.*","appium:autoGrantPermissions":true,"appium:automationName":"UIAutomator2","appium:clearDeviceLogsOnStart":true,"appium:clearSystemFiles":true,"appium:deviceName":"nokia_5.3_13","appium:disableAndroidWatchers":true,"appium:enableMultiWindows":true,"appium:forceAppLaunch":true,"appium:fullReset":false,"appium:newCommandTimeout":180,"appium:noReset":true,"appium:noSign":"true","appium:optionalIntentArguments":"--esa FEATURE_FLAG_KEYS -featureFlag.OB --esa FEATURE_FLAG_VALUES  Unrecognized transaction flow,YES","appium:skipDeviceInitialization":true,"appium:skipServerInstallation":true,"appium:systemPort":5413,"appium:udid":"N0AA003811K62001102","appium:useNewWDA":false,"appium:usePrebuiltWDA":true,"platformName":"android"}}]
2023-07-18 08:12:00:936 - [debug] [AppiumDriver@0a1a] Event 'newSessionRequested' logged at 1689667920936 (11:12:00 GMT+0300 (Eastern European Summer Time))
2023-07-18 08:12:00:942 - [Appium] Attempting to find matching driver for automationName 'UIAutomator2' and platformName 'android'
2023-07-18 08:12:00:942 - [Appium] The 'uiautomator2' driver was installed and matched caps.
2023-07-18 08:12:00:942 - [Appium] Will require it at /Users/my_user/.appium/node_modules/appium-uiautomator2-driver
2023-07-18 08:12:00:942 - [debug] [Appium] Requiring driver at /Users/my_user/.appium/node_modules/appium-uiautomator2-driver
2023-07-18 08:12:00:943 - [AppiumDriver@0a1a] Appium v2.0.0-beta.61 creating new AndroidUiautomator2Driver (v2.12.3) session
2023-07-18 08:12:00:944 - [AppiumDriver@0a1a] Checking BaseDriver versions for Appium and AndroidUiautomator2Driver
2023-07-18 08:12:00:944 - [AppiumDriver@0a1a] Appium's BaseDriver version is 9.3.5
2023-07-18 08:12:00:944 - [AppiumDriver@0a1a] AndroidUiautomator2Driver's BaseDriver version is 9.3.5
2023-07-18 08:12:00:945 - [debug] [AppiumDriver@0a1a] There are no active sessions for cleanup
2023-07-18 08:12:00:946 - [AppiumDriver@0a1a] Applying relaxed security to 'AndroidUiautomator2Driver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
2023-07-18 08:12:00:948 - [debug] [AndroidUiautomator2Driver@2a54] Creating session with W3C capabilities: {
2023-07-18 08:12:00:948 - [debug] [AndroidUiautomator2Driver@2a54]   "alwaysMatch": {
2023-07-18 08:12:00:948 - [debug] [AndroidUiautomator2Driver@2a54]     "platformName": "android",
2023-07-18 08:12:00:949 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:allowTestPackages": true,
2023-07-18 08:12:00:949 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:app": "/Users/my_user/Documents/test/app/app-dev-debug.apk",
2023-07-18 08:12:00:949 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:appWaitActivity": "com.my_app.*",
2023-07-18 08:12:00:949 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:autoGrantPermissions": true,
2023-07-18 08:12:00:949 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:automationName": "UIAutomator2",
2023-07-18 08:12:00:950 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:clearDeviceLogsOnStart": true,
2023-07-18 08:12:00:950 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:clearSystemFiles": true,
2023-07-18 08:12:00:950 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:deviceName": "nokia_5.3_13",
2023-07-18 08:12:00:950 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:disableAndroidWatchers": true,
2023-07-18 08:12:00:950 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:enableMultiWindows": true,
2023-07-18 08:12:00:950 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:forceAppLaunch": true,
2023-07-18 08:12:00:950 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:fullReset": false,
2023-07-18 08:12:00:950 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:newCommandTimeout": 180,
2023-07-18 08:12:00:950 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:noReset": true,
2023-07-18 08:12:00:950 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:noSign": "true",
2023-07-18 08:12:00:950 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:optionalIntentArguments": "--esa FEATURE_FLAG_KEYS -featureFlag.OB --esa FEATURE_FLAG_VALUES  Unrecognized transaction flow,YES",
2023-07-18 08:12:00:950 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:skipDeviceInitialization": true,
2023-07-18 08:12:00:950 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:skipServerInstallation": true,
2023-07-18 08:12:00:950 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:systemPort": 5413,
2023-07-18 08:12:00:951 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:udid": "N0AA003811K62001102",
2023-07-18 08:12:00:951 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:useNewWDA": false,
2023-07-18 08:12:00:951 - [debug] [AndroidUiautomator2Driver@2a54]     "appium:usePrebuiltWDA": true
2023-07-18 08:12:00:951 - [debug] [AndroidUiautomator2Driver@2a54]   },
2023-07-18 08:12:00:951 - [debug] [AndroidUiautomator2Driver@2a54]   "firstMatch": [
2023-07-18 08:12:00:951 - [debug] [AndroidUiautomator2Driver@2a54]     {}
2023-07-18 08:12:00:951 - [debug] [AndroidUiautomator2Driver@2a54]   ]
2023-07-18 08:12:00:951 - [debug] [AndroidUiautomator2Driver@2a54] }

Hope this is it :slight_smile:

2023-07-18 09:22:13:823 - [Appium] Welcome to Appium v2.0.0-rc.5 (REV HEAD)
2023-07-18 09:22:13:825 - [Appium] Non-default server args:
2023-07-18 09:22:13:826 - [Appium] {
2023-07-18 09:22:13:827 - [Appium] logTimestamp: true
2023-07-18 09:22:13:827 - [Appium] }
2023-07-18 09:22:13:828 - [Appium] Attempting to load driver uiautomator2…
2023-07-18 09:22:13:830 - [debug] [Appium] Requiring driver at C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver
2023-07-18 09:22:15:923 - [Appium] Appium REST http interface listener started on http://0.0.0.0:4723
2023-07-18 09:22:15:941 - [Appium] You can provide the following URLS in your client code to connect to this server:
2023-07-18 09:22:15:941 - [Appium] http://172.26.132.79:4723/
2023-07-18 09:22:15:941 - [Appium] http://127.0.0.1:4723/ (only accessible from the same host)
2023-07-18 09:22:15:942 - [Appium] http://172.29.160.1:4723/
2023-07-18 09:22:15:942 - [Appium] Available drivers:
2023-07-18 09:22:15:942 - [Appium] - [email protected] (automationName ‘UiAutomator2’)
2023-07-18 09:22:15:943 - [Appium] No plugins have been installed. Use the “appium plugin” command to install the one(s) you want to use.
2023-07-18 09:22:23:554 - [HTTP] → HEAD /status
2023-07-18 09:22:23:555 - [HTTP] {}
2023-07-18 09:22:23:557 - [debug] [AppiumDriver@107e] Calling AppiumDriver.getStatus() with args:
2023-07-18 09:22:23:559 - [debug] [AppiumDriver@107e] Responding to client with driver.getStatus() result: {“build”:{“version”:“2.0.0-rc.5”,“git-sha”:“HEAD”}}
2023-07-18 09:22:23:566 - [HTTP] ← HEAD /status 200 9 ms - 61
2023-07-18 09:22:23:567 - [HTTP]
2023-07-18 09:22:23:572 - [debug] [HTTP] Request idempotency key: e057aa66-5c4b-4bcb-b364-2fd30772b40a
2023-07-18 09:22:23:605 - [HTTP] → POST /session
2023-07-18 09:22:23:606 - [HTTP] {“capabilities”:{“firstMatch”:[{}],“alwaysMatch”:{“appium:automationName”:“UiAutomator2”,“platformName”:“Android”,“appium:deviceName”:“Lenovo”,“appium:unlockType”:“pin”,“appium:unlockKey”:“123456”,“appium:app”:“C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk”,“appium:udid”:“HA11RZB8”,“appium:intentCategory”:“”,“appium:appWaitActivity”:“com.sensus.datalogger.“}}}
2023-07-18 09:22:23:607 - [debug] [AppiumDriver@107e] Calling AppiumDriver.createSession() with args: [null,null,{“firstMatch”:[{}],“alwaysMatch”:{“appium:automationName”:“UiAutomator2”,“platformName”:“Android”,“appium:deviceName”:“Lenovo”,“appium:unlockType”:“pin”,“appium:unlockKey”:“123456”,“appium:app”:“C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk”,“appium:udid”:“HA11RZB8”,“appium:intentCategory”:”",“appium:appWaitActivity”:"com.sensus.datalogger.
”}}]
2023-07-18 09:22:23:607 - [debug] [AppiumDriver@107e] Event ‘newSessionRequested’ logged at 1689672143607 (11:22:23 GMT+0200 (středoevropský letní čas))
2023-07-18 09:22:23:614 - [Appium] Attempting to find matching driver for automationName ‘UiAutomator2’ and platformName ‘Android’
2023-07-18 09:22:23:614 - [Appium] The ‘uiautomator2’ driver was installed and matched caps.
2023-07-18 09:22:23:614 - [Appium] Will require it at C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver
2023-07-18 09:22:23:615 - [debug] [Appium] Requiring driver at C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver
2023-07-18 09:22:23:615 - [AppiumDriver@107e] Appium v2.0.0-rc.5 creating new AndroidUiautomator2Driver (v2.29.2) session
2023-07-18 09:22:23:616 - [AppiumDriver@107e] Checking BaseDriver versions for Appium and AndroidUiautomator2Driver
2023-07-18 09:22:23:616 - [AppiumDriver@107e] Appium’s BaseDriver version is 9.3.15
2023-07-18 09:22:23:616 - [AppiumDriver@107e] AndroidUiautomator2Driver’s BaseDriver version is 9.3.15
2023-07-18 09:22:23:618 - [debug] [AndroidUiautomator2Driver@74d7] Creating session with W3C capabilities: {
2023-07-18 09:22:23:618 - [debug] [AndroidUiautomator2Driver@74d7] “alwaysMatch”: {
2023-07-18 09:22:23:619 - [debug] [AndroidUiautomator2Driver@74d7] “platformName”: “Android”,
2023-07-18 09:22:23:619 - [debug] [AndroidUiautomator2Driver@74d7] “appium:automationName”: “UiAutomator2”,
2023-07-18 09:22:23:619 - [debug] [AndroidUiautomator2Driver@74d7] “appium:deviceName”: “Lenovo”,
2023-07-18 09:22:23:619 - [debug] [AndroidUiautomator2Driver@74d7] “appium:unlockType”: “pin”,
2023-07-18 09:22:23:619 - [debug] [AndroidUiautomator2Driver@74d7] “appium:unlockKey”: “123456”,
2023-07-18 09:22:23:619 - [debug] [AndroidUiautomator2Driver@74d7] “appium:app”: “C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk”,
2023-07-18 09:22:23:620 - [debug] [AndroidUiautomator2Driver@74d7] “appium:udid”: “HA11RZB8”,
2023-07-18 09:22:23:620 - [debug] [AndroidUiautomator2Driver@74d7] “appium:intentCategory”: “”,
2023-07-18 09:22:23:620 - [debug] [AndroidUiautomator2Driver@74d7] “appium:appWaitActivity”: “com.sensus.datalogger."
2023-07-18 09:22:23:620 - [debug] [AndroidUiautomator2Driver@74d7] },
2023-07-18 09:22:23:621 - [debug] [AndroidUiautomator2Driver@74d7] “firstMatch”: [
2023-07-18 09:22:23:621 - [debug] [AndroidUiautomator2Driver@74d7] {}
2023-07-18 09:22:23:621 - [debug] [AndroidUiautomator2Driver@74d7] ]
2023-07-18 09:22:23:621 - [debug] [AndroidUiautomator2Driver@74d7] }
2023-07-18 09:22:23:629 - [AndroidUiautomator2Driver@74d7] The following capabilities were provided, but are not recognized by Appium:
2023-07-18 09:22:23:629 - [AndroidUiautomator2Driver@74d7] deviceName
2023-07-18 09:22:23:630 - [AndroidUiautomator2Driver@74d7 (c8839087)] Session created with session id: c8839087-06dc-4e0c-9d49-26b52c918336
2023-07-18 09:22:23:633 - [BaseDriver] Using local app 'C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk’2023-07-18 09:22:23:715 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Checking whether app is actually present
2023-07-18 09:22:23:730 - [ADB] Found 2 ‘build-tools’ folders under ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk’ (newest first):
2023-07-18 09:22:23:731 - [ADB] C:/Users/KarelVrabka/AppData/Local/Android/Sdk/build-tools/33.0.2
2023-07-18 09:22:23:731 - [ADB] C:/Users/KarelVrabka/AppData/Local/Android/Sdk/build-tools/30.0.3
2023-07-18 09:22:23:732 - [ADB] Using ‘adb.exe’ from ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe’
2023-07-18 09:22:23:733 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server’
2023-07-18 09:22:23:838 - [AndroidDriver] Retrieving device list
2023-07-18 09:22:23:838 - [debug] [ADB] Trying to find a connected android device
2023-07-18 09:22:23:839 - [debug] [ADB] Getting connected devices
2023-07-18 09:22:23:910 - [debug] [ADB] Connected devices: [{“udid”:“HA11RZB8”,“state”:“device”}]
2023-07-18 09:22:23:911 - [AndroidDriver] Using device: HA11RZB8
2023-07-18 09:22:23:913 - [ADB] Using ‘adb.exe’ from ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe’
2023-07-18 09:22:23:913 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server’
2023-07-18 09:22:23:984 - [debug] [ADB] Setting device id to HA11RZB8
2023-07-18 09:22:23:984 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell getprop ro.build.version.sdk’
2023-07-18 09:22:24:091 - [debug] [ADB] Current device property ‘ro.build.version.sdk’: 29
2023-07-18 09:22:24:092 - [ADB] Getting device platform version
2023-07-18 09:22:24:093 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell getprop ro.build.version.release’
2023-07-18 09:22:24:204 - [debug] [ADB] Current device property ‘ro.build.version.release’: 10
2023-07-18 09:22:24:205 - [debug] [ADB] Device API level: 29
2023-07-18 09:22:24:206 - [AndroidUiautomator2Driver@74d7 (c8839087)] Relaxing hidden api policy
2023-07-18 09:22:24:207 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 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’’
2023-07-18 09:22:24:469 - [debug] [AndroidDriver] Parsing package and activity from app manifest
2023-07-18 09:22:24:493 - [ADB] Package name: ‘com.sensus.datalogger’
2023-07-18 09:22:24:493 - [ADB] Main activity name: ‘undefined’
2023-07-18 09:22:24:493 - [debug] [AndroidDriver] Parsed package and activity are: com.sensus.datalogger/undefined
2023-07-18 09:22:24:494 - [debug] [AndroidDriver] Pushing settings apk to device…
2023-07-18 09:22:24:495 - [debug] [ADB] Getting package info for ‘io.appium.settings’
2023-07-18 09:22:24:495 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell dumpsys package io.appium.settings’
2023-07-18 09:22:24:681 - [debug] [ADB] The version name of the installed ‘io.appium.settings’ is greater or equal to the application version name (‘5.0.5’ >= ‘5.0.5’)
2023-07-18 09:22:24:682 - [debug] [ADB] There is no need to install/upgrade ‘C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\io.appium.settings\apks\settings_apk-debug.apk’
2023-07-18 09:22:24:683 - [debug] [ADB] Getting IDs of all ‘io.appium.settings’ processes
2023-07-18 09:22:24:684 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell ‘pgrep --help; echo $?’’
2023-07-18 09:22:24:808 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)’
2023-07-18 09:22:24:976 - [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
2023-07-18 09:22:24:977 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell appops set io.appium.settings android:mock_location allow’
2023-07-18 09:22:25:114 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell “[ -e ‘/data/local/tmp/mock_apps.json’ ] && echo PASS”’
2023-07-18 09:22:25:204 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell cat /data/local/tmp/mock_apps.json’
2023-07-18 09:22:25:312 - [debug] [Logcat] Starting logs capture with command: C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 logcat -v threadtime
2023-07-18 09:22:25:418 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Forwarding UiAutomator2 Server port 6790 to local port 8201
2023-07-18 09:22:25:419 - [debug] [ADB] Forwarding system: 8201 to device: 6790
2023-07-18 09:22:25:419 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 forward tcp:8201 tcp:6790’
2023-07-18 09:22:25:481 - [debug] [ADB] Checking app cert for C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v5.12.2.apk
2023-07-18 09:22:25:481 - [debug] [ADB] Checking app cert for C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
2023-07-18 09:22:25:492 - [ADB] Using ‘apksigner.jar’ from ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\build-tools\33.0.2\lib\apksigner.jar’
2023-07-18 09:22:25:495 - [debug] [ADB] Starting apksigner: ‘C:\Program Files\Java\jre1.8.0_361\bin\java.exe’ -Xmx1024M -Xss1m -jar C:\Users\KarelVrabka\AppData\Local\Android\Sdk\build-tools\33.0.2\lib\apksigner.jar verify --print-certs C:\Users\KarelVrabka\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
2023-07-18 09:22:25:597 - [debug] [ADB] Starting apksigner: ‘C:\Program Files\Java\jre1.8.0_361\bin\java.exe’ -Xmx1024M -Xss1m -jar C:\Users\KarelVrabka\AppData\Local\Android\Sdk\build-tools\33.0.2\lib\apksigner.jar verify --print-certs C:\Users\KarelVrabka\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v5.12.2.apk
2023-07-18 09:22:26:066 - [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@androidcom, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
2023-07-18 09:22:26:066 - [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
2023-07-18 09:22:26:067 - [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
2023-07-18 09:22:26:067 - [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
2023-07-18 09:22:26:067 - [debug] [ADB]
2023-07-18 09:22:26:068 - [debug] [ADB] sha256 hash did match for ‘appium-uiautomator2-server-debug-androidTest.apk’
2023-07-18 09:22:26:068 - [ADB] ‘C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’ is signed with the default certificate
2023-07-18 09:22:26:069 - [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
2023-07-18 09:22:26:069 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell pm path io.appium.uiautomator2.server.test’
2023-07-18 09:22:26:215 - [debug] [ADB] ‘io.appium.uiautomator2.server.test’ is installed
2023-07-18 09:22:27:069 - [debug] [ADB] apksigner stdout: Signer #1 certificate DN: EMAILADDRESS=android@androidcom, CN=Android, OU=Android, O=Android, L=Mountain View, ST=California, C=US
2023-07-18 09:22:27:069 - [debug] [ADB] Signer #1 certificate SHA-256 digest: a40da80a59d170caa950cf15c18c454d47a39b26989d8b640ecd745ba71bf5dc
2023-07-18 09:22:27:069 - [debug] [ADB] Signer #1 certificate SHA-1 digest: 61ed377e85d386a8dfee6b864bd85b0bfaa5af81
2023-07-18 09:22:27:070 - [debug] [ADB] Signer #1 certificate MD5 digest: e89b158e4bcf988ebd09eb83f5378e87
2023-07-18 09:22:27:070 - [debug] [ADB]
2023-07-18 09:22:27:070 - [debug] [ADB] sha256 hash did match for ‘appium-uiautomator2-server-v5.12.2.apk’
2023-07-18 09:22:27:071 - [ADB] ‘C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v5.12.2.apk’ is signed with the default certificate
2023-07-18 09:22:27:071 - [debug] [ADB] Getting package info for ‘io.appium.uiautomator2.server’
2023-07-18 09:22:27:071 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell dumpsys package io.appium.uiautomator2.server’
2023-07-18 09:22:27:886 - [debug] [ADB] The version name of the installed ‘io.appium.uiautomator2.server’ is greater or equal to the application version name (‘5.12.2’ >= ‘5.12.2’)
2023-07-18 09:22:27:888 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Server packages status: [{“wasSigned”:true,“installState”:“sameVersionInstalled”,“appPath”:“C:\Users\KarelVrabka\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v5.12.2.apk”,“appId”:“io.appium.uiautomator2.server”},{“wasSigned”:true,“installState”:“sameVersionInstalled”,“appPath”:“C:\Users\KarelVrabka\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk”,“appId”:“io.appium.uiautomator2.server.test”}]
2023-07-18 09:22:27:889 - [AndroidUiautomator2Driver@74d7 (c8839087)] Server packages are not going to be (re)installed
2023-07-18 09:22:27:896 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Waiting up to 30000ms for services to be available
2023-07-18 09:22:27:897 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell pm list instrumentation’
2023-07-18 09:22:28:040 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Instrumentation target ‘io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner’ is available
2023-07-18 09:22:28:043 - [ADB] Adding packages [“io.appium.settings”,“io.appium.uiautomator2.server”,“io.appium.uiautomator2.server.test”] to Doze whitelist
2023-07-18 09:22:28:043 - [debug] [ADB] Got the following command chunks to execute: [[“dumpsys”,“deviceidle”,“whitelist”,“+io.appium.settings”,“;”,“dumpsys”,“deviceidle”,“whitelist”,“+io.appium.uiautomator2.server”,“;”,“dumpsys”,“deviceidle”,“whitelist”,“+io.appium.uiautomator2.server.test”,“;”]]
2023-07-18 09:22:28:044 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;’
2023-07-18 09:22:28:234 - [debug] [ADB] Checking app cert for C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk
2023-07-18 09:22:28:287 - [debug] [ADB] Starting apksigner: ‘C:\Program Files\Java\jre1.8.0_361\bin\java.exe’ -Xmx1024M -Xss1m -jar C:\Users\KarelVrabka\AppData\Local\Android\Sdk\build-tools\33.0.2\lib\apksigner.jar verify --print-certs C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk
2023-07-18 09:22:28:923 - [debug] [ADB] apksigner stdout: Signer #1 certificate DN: O=Sensus
2023-07-18 09:22:28:923 - [debug] [ADB] Signer #1 certificate SHA-256 digest: a470c688889eec87229f43a4843b3c86f715050bbd081d1f548e3760bba2852e
2023-07-18 09:22:28:923 - [debug] [ADB] Signer #1 certificate SHA-1 digest: f81d6c2248071d6177650d7df3e52b40da0b5c9b
2023-07-18 09:22:28:924 - [debug] [ADB] Signer #1 certificate MD5 digest: 79c697914b0e6821dfa992c9fabeba4b
2023-07-18 09:22:28:924 - [debug] [ADB]
2023-07-18 09:22:28:924 - [ADB] ‘C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk’ is signed with a non-default certificate
2023-07-18 09:22:28:925 - [debug] [ADB] Getting package info for ‘com.sensus.datalogger’
2023-07-18 09:22:28:925 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell dumpsys package com.sensus.datalogger’
2023-07-18 09:22:29:059 - [debug] [ADB] The version name of the installed ‘com.sensus.datalogger’ is greater or equal to the application version name (‘23.1.1’ >= ‘23.1.1’)
2023-07-18 09:22:29:060 - [debug] [ADB] There is no need to install/upgrade ‘C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk’
2023-07-18 09:22:29:060 - [AndroidDriver] Performing fast reset on ‘com.sensus.datalogger’
2023-07-18 09:22:29:060 - [debug] [ADB] Getting install status for com.sensus.datalogger
2023-07-18 09:22:29:061 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell pm path com.sensus.datalogger’
2023-07-18 09:22:29:215 - [debug] [ADB] ‘com.sensus.datalogger’ is installed
2023-07-18 09:22:29:216 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell am force-stop com.sensus.datalogger’
2023-07-18 09:22:29:361 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell pm clear com.sensus.datalogger’
2023-07-18 09:22:29:517 - [debug] [AndroidDriver] Performed fast reset on the installed ‘com.sensus.datalogger’ application (stop and clear)
2023-07-18 09:22:29:518 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Performing shallow cleanup of automation leftovers
2023-07-18 09:22:29:536 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] No obsolete sessions have been detected (socket hang up)
2023-07-18 09:22:29:536 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell am force-stop io.appium.uiautomator2.server.test’
2023-07-18 09:22:29:647 - [AndroidUiautomator2Driver@74d7 (c8839087)] Starting UIAutomator2 server 5.12.2
2023-07-18 09:22:29:648 - [AndroidUiautomator2Driver@74d7 (c8839087)] Using UIAutomator2 server from ‘C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v5.12.2.apk’ and test from ‘C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’
2023-07-18 09:22:29:648 - [AndroidUiautomator2Driver@74d7 (c8839087)] Waiting up to 30000ms for UiAutomator2 to be online…
2023-07-18 09:22:29:649 - [debug] [ADB] Creating ADB subprocess with args: [“-P”,“5037”,“-s”,“HA11RZB8”,“shell”,“am”,“instrument”,“-w”,“-e”,“disableAnalytics”,true,“io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner”]
2023-07-18 09:22:29:664 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Matched ‘/status’ to command name ‘getStatus’
2023-07-18 09:22:29:665 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Proxying [GET /status] to [GET htp://127.0.0.1:8201/status] with no body
2023-07-18 09:22:29:678 - [AndroidUiautomator2Driver@74d7 (c8839087)] socket hang up
2023-07-18 09:22:30:691 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Matched ‘/status’ to command name ‘getStatus’
2023-07-18 09:22:30:691 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Proxying [GET /status] to [GET htp://127.0.0.1:8201/status] with no body
2023-07-18 09:22:30:698 - [AndroidUiautomator2Driver@74d7 (c8839087)] socket hang up
2023-07-18 09:22:31:696 - [debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
2023-07-18 09:22:31:702 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Matched ‘/status’ to command name ‘getStatus’
2023-07-18 09:22:31:702 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Proxying [GET /status] to [GET htp://127.0.0.1:8201/status] with no body
2023-07-18 09:22:31:707 - [AndroidUiautomator2Driver@74d7 (c8839087)] socket hang up
2023-07-18 09:22:32:707 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Matched ‘/status’ to command name ‘getStatus’
2023-07-18 09:22:32:708 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Proxying [GET /status] to [GET htp://127.0.0.1:8201/status] with no body
2023-07-18 09:22:32:717 - [AndroidUiautomator2Driver@74d7 (c8839087)] socket hang up
2023-07-18 09:22:33:718 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Matched ‘/status’ to command name ‘getStatus’
2023-07-18 09:22:33:718 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Proxying [GET /status] to [GET htp://127.0.0.1:8201/status] with no body
2023-07-18 09:22:33:726 - [AndroidUiautomator2Driver@74d7 (c8839087)] socket hang up
2023-07-18 09:22:34:741 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Matched ‘/status’ to command name ‘getStatus’
2023-07-18 09:22:34:742 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Proxying [GET /status] to [GET htp://127.0.0.1:8201/status] with no body
2023-07-18 09:22:34:947 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Got response with status 200: {“sessionId”:“None”,“value”:{“message”:“UiAutomator2 Server is ready to accept commands”,“ready”:true}}
2023-07-18 09:22:34:948 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] The initialization of the instrumentation process took 5300ms
2023-07-18 09:22:34:949 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Matched ‘/session’ to command name ‘createSession’
2023-07-18 09:22:34:949 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Proxying [POST /session] to [POST htp://127.0.0.1:8201/session] with body: {“capabilities”:{“firstMatch”:[{“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“platformName”:“Android”,“automationName”:“UiAutomator2”,“deviceName”:“Lenovo”,“unlockType”:“pin”,“unlockKey”:“123456”,“app”:“C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk”,“udid”:“HA11RZB8”,“intentCategory”:“”,“appWaitActivity”:"com.sensus.datalogger.
”},“platformName”:“Android”,“automationName”:“UiAutomator2”,“deviceName”:“HA11RZB8”,“unlockType”:“pin”,“unlockKey”:“123456”,“app”:“C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk”,“udid”:“HA11RZB8”,“intentCategory”:“”,“appWaitActivity”:“com.sensus.datalogger.“,“deviceUDID”:“HA11RZB8”,“appPackage”:“com.sensus.datalogger”}],“alwaysMatch”:{}}}
2023-07-18 09:22:35:037 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Got response with status 200: {“sessionId”:“09b17037-3c19-436e-8985-781fbfe14e35”,“value”:{“capabilities”:{“firstMatch”:[{“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“platformName”:“Android”,“automationName”:“UiAutomator2”,“deviceName”:“Lenovo”,“unlockType”:“pin”,“unlockKey”:“123456”,“app”:“C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk”,“udid”:“HA11RZB8”,“intentCategory”:”",“appWaitActivity”:"com.sensus.datalogger.
”},“platformName”:“Android”,“automationName”:“UiAutomator2”,“deviceName”:“HA11RZB8”,“unlockType”:“pin”,“unlockKey”:“123456”,“app”:“C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk”,“udid”:“HA11RZB8”,“intentCategory”:“”,“appWaitActivity”:"com.sensus.datalogger.“,“deviceUDID”:“HA11RZB8”,“appPackage”:“com.sensus.datalogger”}],“alwaysMatch”:{}},“sessionId”:“09b17037-3c19-436e-8985-781fbfe14e35”}}
2023-07-18 09:22:35:038 - [AndroidUiautomator2Driver@74d7 (c8839087)] Determined the downstream protocol as ‘W3C’
2023-07-18 09:22:35:052 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Proxying [GET /appium/device/info] to [GET htp://127.0.0.1:8201/session/09b17037-3c19-436e-8985-781fbfe14e35/appium/device/info] with no body
2023-07-18 09:22:35:117 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Got response with status 200: {“sessionId”:“09b17037-3c19-436e-8985-781fbfe14e35”,“value”:{“androidId”:“68082fadc9936d08”,“apiVersion”:“29”,“bluetooth”:{“state”:“ON”},“brand”:“Lenovo”,“carrierName”:”“,“displayDensity”:240,“locale”:“en_US”,“manufacturer”:“LENOVO”,“model”:“Lenovo TB-8505F”,“networks”:[{“capabilities”:{“SSID”:null,“linkDownBandwidthKbps”:1048576,“linkUpstreamBandwidthKbps”:1048576,“networkCapabilities”:“NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_INTERNET,NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_VALIDATED,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_FOREGROUND,NET_CAPABILITY_NOT_CONGESTED,NET_CAPABILITY_NOT_SUSPENDED”,“signalStrength”:-59,“transportTypes”:“TRANSPORT_WIFI”},“detailedState”:“CONNECTED”,“extraInfo”:null,“isAvailable”:true,“isConnected”:true,“isFailover”:false,“isRoaming”:false,“state”:“CONNECTED”,“subtype”:0,“subtypeName”:”",“type”:1,“typeName”:“WIFI”}],“platformVersion”:“10”,“realDisplaySize”:“800x1280”,“timeZone”:“Europe/Prague”}}
2023-07-18 09:22:35:118 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell dumpsys window’
2023-07-18 09:22:35:305 - [debug] [AndroidDriver] Screen is locked, trying to unlock
2023-07-18 09:22:35:306 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell ‘locksettings help && echo PASS’’
2023-07-18 09:22:35:989 - [debug] [ADB] Extended lock settings management is supported
2023-07-18 09:22:35:989 - [AndroidDriver] Unlocking the device via ADB using pin credential ‘123456’
2023-07-18 09:22:35:990 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell locksettings get-disabled’
2023-07-18 09:22:36:742 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell locksettings clear --old 123456’
2023-07-18 09:22:37:444 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell input keyevent 26’
2023-07-18 09:22:38:160 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell input keyevent 224’
2023-07-18 09:22:39:023 - [ADB] Waking up the device to dismiss the keyguard
2023-07-18 09:22:39:024 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell input keyevent 26’
2023-07-18 09:22:39:774 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell input keyevent 224’
2023-07-18 09:22:40:573 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell wm dismiss-keyguard’
2023-07-18 09:22:40:732 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell locksettings set-pin 123456’
2023-07-18 09:22:42:617 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell dumpsys window’
2023-07-18 09:22:42:862 - [AndroidDriver] The device has been successfully unlocked
2023-07-18 09:22:42:862 - [AndroidUiautomator2Driver@74d7 (c8839087)] Starting 'com.sensus.datalogger/undefined and waiting for 'com.sensus.datalogger/com.sensus.datalogger.

2023-07-18 09:22:42:864 - [debug] [ADB] Running 'C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell am start -W -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000’2023-07-18 09:22:43:073 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Deleting UiAutomator2 session
2023-07-18 09:22:43:074 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Deleting UiAutomator2 server session
2023-07-18 09:22:43:075 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Matched ‘/’ to command name ‘deleteSession’
2023-07-18 09:22:43:075 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Proxying [DELETE /] to [DELETE htp://127.0.0.1:8201/session/09b17037-3c19-436e-8985-781fbfe14e35] with no body
2023-07-18 09:22:43:097 - [debug] [AndroidUiautomator2Driver@74d7 (c8839087)] Got response with status 200: {“sessionId”:“09b17037-3c19-436e-8985-781fbfe14e35”,“value”:null}
2023-07-18 09:22:43:097 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell dumpsys activity services io.appium.settings/.recorder.RecorderService’
2023-07-18 09:22:43:128 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell am force-stop com.sensus.datalogger’
2023-07-18 09:22:43:404 - [debug] [Logcat] Stopping logcat capture
2023-07-18 09:22:43:412 - [debug] [ADB] Removing forwarded port socket connection: 8201
2023-07-18 09:22:43:413 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 forward --remove tcp:8201’
2023-07-18 09:22:43:481 - [AndroidUiautomator2Driver@74d7 (c8839087)] Restoring hidden api policy to the device default configuration
2023-07-18 09:22:43:482 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell ‘settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy’’
2023-07-18 09:22:43:784 - [debug] [Instrumentation] .
2023-07-18 09:22:43:834 - [debug] [Instrumentation] Time: 12.101
2023-07-18 09:22:43:834 - [debug] [Instrumentation]
2023-07-18 09:22:43:835 - [debug] [Instrumentation] OK (1 test)
2023-07-18 09:22:43:972 - [debug] [Instrumentation] The process has exited with code 0
2023-07-18 09:22:44:058 - [debug] [AppiumDriver@107e] Event ‘newSessionStarted’ logged at 1689672164058 (11:22:44 GMT+0200 (středoevropský letní čas))
2023-07-18 09:22:44:092 - [debug] [AppiumDriver@107e] Encountered internal error running command: Error: Cannot start the ‘com.sensus.datalogger’ application. Consider checking the driver’s troubleshooting documentation. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell am start -W -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000’ exited with code 1’; Command output: Error: Intent matches multiple activities; can’t stop: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 }
2023-07-18 09:22:44:093 - [debug] [AppiumDriver@107e]
2023-07-18 09:22:44:093 - [debug] [AppiumDriver@107e] at ADB.startApp (C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-adb\lib\tools\apk-utils.js:179:11)
2023-07-18 09:22:44:093 - [debug] [AppiumDriver@107e] at AndroidUiautomator2Driver.ensureAppStarts (C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\lib\driver.js:590:5)
2023-07-18 09:22:44:094 - [debug] [AppiumDriver@107e] at AndroidUiautomator2Driver.startUiAutomator2Session (C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\lib\driver.js:445:7)
2023-07-18 09:22:44:094 - [debug] [AppiumDriver@107e] at AndroidUiautomator2Driver.createSession (C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\lib\driver.js:241:7)
2023-07-18 09:22:44:095 - [debug] [AppiumDriver@107e] at AppiumDriver.createSession (C:\Users\KarelVrabka\AppData\Roaming\npm\node_modules\appium\lib\appium.js:346:35)
2023-07-18 09:22:44:118 - [HTTP] ← POST /session 500 20511 ms - 1758

  1. update to correct. note here should be !!! .*, which means ANY value after.
// “appium:appWaitActivity”: “com.sensus.*”
  1. If it fails after correcting appWaitActivity try also restore your appActivity. So both appWaitActivity + appActivity will be in capabilities

Sorry, I changed it correctly but asterisk made the text italic, so it was not visible.

Here I set appActivity and appWaitActivity

2023-07-18 10:52:12:968 - [debug] [AppiumDriver@dd1d] Calling AppiumDriver.getStatus() with args:
2023-07-18 10:52:12:969 - [debug] [AppiumDriver@dd1d] Responding to client with driver.getStatus() result: {“build”:{“version”:“2.0.0-rc.5”,“git-sha”:“HEAD”}}
2023-07-18 10:52:12:971 - [HTTP] ← HEAD /status 200 3 ms - 61
2023-07-18 10:52:12:972 - [HTTP]
2023-07-18 10:52:12:976 - [debug] [HTTP] Request idempotency key: 40cb0446-4e40-4723-87a2-3d2f2d761db5
2023-07-18 10:52:12:980 - [HTTP] → POST /session
2023-07-18 10:52:12:981 - [HTTP] {“capabilities”:{“firstMatch”:[{}],“alwaysMatch”:{“appium:automationName”:“UiAutomator2”,“platformName”:“Android”,“appium:deviceName”:“Lenovo”,“appium:unlockType”:“pin”,“appium:unlockKey”:“123456”,“appium:app”:“C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk”,“appium:appActivity”:“com.sensus.datalogger.AppLauncher”,“appium:udid”:“HA11RZB8”,“appium:intentCategory”:“”,“appium:appWaitActivity”:“com.sensus.datalogger.*”}}}
2023-07-18 10:52:12:982 - [debug] [AppiumDriver@dd1d] Calling AppiumDriver.createSession() with args: [null,null,{“firstMatch”:[{}],“alwaysMatch”:{“appium:automationName”:“UiAutomator2”,“platformName”:“Android”,“appium:deviceName”:“Lenovo”,“appium:unlockType”:“pin”,“appium:unlockKey”:“123456”,“appium:app”:“C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk”,“appium:appActivity”:“com.sensus.datalogger.AppLauncher”,“appium:udid”:“HA11RZB8”,“appium:intentCategory”:“”,“appium:appWaitActivity”:“com.sensus.datalogger.*”}}]
2023-07-18 10:52:12:982 - [debug] [AppiumDriver@dd1d] Event ‘newSessionRequested’ logged at 1689677532982 (12:52:12 GMT+0200 (středoevropský letní čas))
2023-07-18 10:52:12:986 - [Appium] Attempting to find matching driver for automationName ‘UiAutomator2’ and platformName ‘Android’
2023-07-18 10:52:12:986 - [Appium] The ‘uiautomator2’ driver was installed and matched caps.
2023-07-18 10:52:12:987 - [Appium] Will require it at C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver
2023-07-18 10:52:12:987 - [debug] [Appium] Requiring driver at C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver
2023-07-18 10:52:12:988 - [AppiumDriver@dd1d] Appium v2.0.0-rc.5 creating new AndroidUiautomator2Driver (v2.29.2) session
2023-07-18 10:52:12:988 - [AppiumDriver@dd1d] Checking BaseDriver versions for Appium and AndroidUiautomator2Driver
2023-07-18 10:52:12:989 - [AppiumDriver@dd1d] Appium’s BaseDriver version is 9.3.15
2023-07-18 10:52:12:989 - [AppiumDriver@dd1d] AndroidUiautomator2Driver’s BaseDriver version is 9.3.15
2023-07-18 10:52:12:991 - [debug] [AndroidUiautomator2Driver@0e44] Creating session with W3C capabilities: {
2023-07-18 10:52:12:992 - [debug] [AndroidUiautomator2Driver@0e44] “alwaysMatch”: {
2023-07-18 10:52:12:992 - [debug] [AndroidUiautomator2Driver@0e44] “platformName”: “Android”,
2023-07-18 10:52:12:993 - [debug] [AndroidUiautomator2Driver@0e44] “appium:automationName”: “UiAutomator2”,
2023-07-18 10:52:12:993 - [debug] [AndroidUiautomator2Driver@0e44] “appium:deviceName”: “Lenovo”,
2023-07-18 10:52:12:993 - [debug] [AndroidUiautomator2Driver@0e44] “appium:unlockType”: “pin”,
2023-07-18 10:52:12:994 - [debug] [AndroidUiautomator2Driver@0e44] “appium:unlockKey”: “123456”,
2023-07-18 10:52:12:994 - [debug] [AndroidUiautomator2Driver@0e44] “appium:app”: “C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk”,
2023-07-18 10:52:12:994 - [debug] [AndroidUiautomator2Driver@0e44] “appium:appActivity”: “com.sensus.datalogger.AppLauncher”,
2023-07-18 10:52:12:995 - [debug] [AndroidUiautomator2Driver@0e44] “appium:udid”: “HA11RZB8”,
2023-07-18 10:52:12:995 - [debug] [AndroidUiautomator2Driver@0e44] “appium:intentCategory”: “”,
2023-07-18 10:52:12:995 - [debug] [AndroidUiautomator2Driver@0e44] “appium:appWaitActivity”: “com.sensus.datalogger."
2023-07-18 10:52:12:995 - [debug] [AndroidUiautomator2Driver@0e44] },
2023-07-18 10:52:12:996 - [debug] [AndroidUiautomator2Driver@0e44] “firstMatch”: [
2023-07-18 10:52:12:996 - [debug] [AndroidUiautomator2Driver@0e44] {}
2023-07-18 10:52:12:996 - [debug] [AndroidUiautomator2Driver@0e44] ]
2023-07-18 10:52:12:997 - [debug] [AndroidUiautomator2Driver@0e44] }
2023-07-18 10:52:13:006 - [AndroidUiautomator2Driver@0e44] The following capabilities were provided, but are not recognized by Appium:
2023-07-18 10:52:13:006 - [AndroidUiautomator2Driver@0e44] deviceName
2023-07-18 10:52:13:007 - [AndroidUiautomator2Driver@0e44 (1250d451)] Session created with session id: 1250d451-bb22-4586-bae7-0006515ec393
2023-07-18 10:52:13:008 - [BaseDriver] Using local app ‘C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk’
2023-07-18 10:52:13:079 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Checking whether app is actually present
2023-07-18 10:52:13:087 - [ADB] Using ‘adb.exe’ from ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe’
2023-07-18 10:52:13:087 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server’
2023-07-18 10:52:13:143 - [AndroidDriver] Retrieving device list
2023-07-18 10:52:13:143 - [debug] [ADB] Trying to find a connected android device
2023-07-18 10:52:13:143 - [debug] [ADB] Getting connected devices
2023-07-18 10:52:13:208 - [debug] [ADB] Connected devices: [{“udid”:“HA11RZB8”,“state”:“device”}]
2023-07-18 10:52:13:208 - [AndroidDriver] Using device: HA11RZB8
2023-07-18 10:52:13:210 - [ADB] Using ‘adb.exe’ from ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe’
2023-07-18 10:52:13:210 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 start-server’
2023-07-18 10:52:13:281 - [debug] [ADB] Setting device id to HA11RZB8
2023-07-18 10:52:13:282 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell getprop ro.build.version.sdk’
2023-07-18 10:52:13:385 - [debug] [ADB] Current device property ‘ro.build.version.sdk’: 29
2023-07-18 10:52:13:385 - [ADB] Getting device platform version
2023-07-18 10:52:13:386 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell getprop ro.build.version.release’
2023-07-18 10:52:13:488 - [debug] [ADB] Current device property ‘ro.build.version.release’: 10
2023-07-18 10:52:13:489 - [debug] [ADB] Device API level: 29
2023-07-18 10:52:13:489 - [AndroidUiautomator2Driver@0e44 (1250d451)] Relaxing hidden api policy
2023-07-18 10:52:13:489 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 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’’
2023-07-18 10:52:13:744 - [debug] [AndroidDriver] Parsing package and activity from app manifest
2023-07-18 10:52:13:757 - [ADB] Package name: ‘com.sensus.datalogger’
2023-07-18 10:52:13:758 - [ADB] Main activity name: ‘undefined’
2023-07-18 10:52:13:758 - [debug] [AndroidDriver] Parsed package and activity are: com.sensus.datalogger/undefined
2023-07-18 10:52:13:758 - [debug] [AndroidDriver] Pushing settings apk to device…
2023-07-18 10:52:13:758 - [debug] [ADB] Getting package info for ‘io.appium.settings’
2023-07-18 10:52:13:759 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell dumpsys package io.appium.settings’
2023-07-18 10:52:13:891 - [debug] [ADB] The version name of the installed ‘io.appium.settings’ is greater or equal to the application version name (‘5.0.5’ >= ‘5.0.5’)
2023-07-18 10:52:13:891 - [debug] [ADB] There is no need to install/upgrade ‘C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\io.appium.settings\apks\settings_apk-debug.apk’
2023-07-18 10:52:13:892 - [debug] [ADB] Getting IDs of all ‘io.appium.settings’ processes
2023-07-18 10:52:13:892 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell ‘pgrep --help; echo $?’’
2023-07-18 10:52:14:013 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell pgrep -f ([[:blank:]]|^)io.appium.settings([[:blank:]]|$)’
2023-07-18 10:52:14:184 - [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
2023-07-18 10:52:14:185 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell appops set io.appium.settings android:mock_location allow’
2023-07-18 10:52:14:332 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell “[ -e ‘/data/local/tmp/mock_apps.json’ ] && echo PASS”’
2023-07-18 10:52:14:404 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell cat /data/local/tmp/mock_apps.json’
2023-07-18 10:52:14:516 - [debug] [Logcat] Starting logs capture with command: C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 logcat -v threadtime
2023-07-18 10:52:14:618 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Forwarding UiAutomator2 Server port 6790 to local port 8201
2023-07-18 10:52:14:619 - [debug] [ADB] Forwarding system: 8201 to device: 6790
2023-07-18 10:52:14:620 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 forward tcp:8201 tcp:6790’
2023-07-18 10:52:14:686 - [debug] [ADB] Checking app cert for C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v5.12.2.apk
2023-07-18 10:52:14:687 - [debug] [ADB] Checking app cert for C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
2023-07-18 10:52:14:694 - [debug] [ADB] Using the previously cached signature entry for ‘appium-uiautomator2-server-debug-androidTest.apk’
2023-07-18 10:52:14:694 - [debug] [ADB] sha256 hash did match for ‘appium-uiautomator2-server-debug-androidTest.apk’
2023-07-18 10:52:14:695 - [debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
2023-07-18 10:52:14:695 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell pm path io.appium.uiautomator2.server.test’
2023-07-18 10:52:14:773 - [debug] [ADB] Using the previously cached signature entry for ‘appium-uiautomator2-server-v5.12.2.apk’
2023-07-18 10:52:14:774 - [debug] [ADB] sha256 hash did match for ‘appium-uiautomator2-server-v5.12.2.apk’
2023-07-18 10:52:14:774 - [debug] [ADB] Getting package info for ‘io.appium.uiautomator2.server’
2023-07-18 10:52:14:774 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell dumpsys package io.appium.uiautomator2.server’
2023-07-18 10:52:14:814 - [debug] [ADB] ‘io.appium.uiautomator2.server.test’ is installed
2023-07-18 10:52:15:395 - [debug] [ADB] The version name of the installed ‘io.appium.uiautomator2.server’ is greater or equal to the application version name (‘5.12.2’ >= ‘5.12.2’)
2023-07-18 10:52:15:396 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Server packages status: [{“wasSigned”:true,“installState”:“sameVersionInstalled”,“appPath”:“C:\Users\KarelVrabka\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v5.12.2.apk”,“appId”:“io.appium.uiautomator2.server”},{“wasSigned”:true,“installState”:“sameVersionInstalled”,“appPath”:“C:\Users\KarelVrabka\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk”,“appId”:“io.appium.uiautomator2.server.test”}]
2023-07-18 10:52:15:396 - [AndroidUiautomator2Driver@0e44 (1250d451)] Server packages are not going to be (re)installed
2023-07-18 10:52:15:399 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Waiting up to 30000ms for services to be available
2023-07-18 10:52:15:400 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell pm list instrumentation’
2023-07-18 10:52:15:550 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Instrumentation target ‘io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner’ is available
2023-07-18 10:52:15:553 - [ADB] Adding packages [“io.appium.settings”,“io.appium.uiautomator2.server”,“io.appium.uiautomator2.server.test”] to Doze whitelist
2023-07-18 10:52:15:554 - [debug] [ADB] Got the following command chunks to execute: [[“dumpsys”,“deviceidle”,“whitelist”,“+io.appium.settings”,“;”,“dumpsys”,“deviceidle”,“whitelist”,“+io.appium.uiautomator2.server”,“;”,“dumpsys”,“deviceidle”,“whitelist”,“+io.appium.uiautomator2.server.test”,“;”]]
2023-07-18 10:52:15:554 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell dumpsys deviceidle whitelist +io.appium.settings ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server ; dumpsys deviceidle whitelist +io.appium.uiautomator2.server.test ;’
2023-07-18 10:52:15:738 - [debug] [ADB] Checking app cert for C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk
2023-07-18 10:52:15:795 - [debug] [ADB] Using the previously cached signature entry for ‘Datalogger-release.apk’
2023-07-18 10:52:15:795 - [debug] [ADB] Getting package info for ‘com.sensus.datalogger’
2023-07-18 10:52:15:796 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell dumpsys package com.sensus.datalogger’
2023-07-18 10:52:15:953 - [debug] [ADB] The version name of the installed ‘com.sensus.datalogger’ is greater or equal to the application version name (‘23.1.1’ >= ‘23.1.1’)
2023-07-18 10:52:15:953 - [debug] [ADB] There is no need to install/upgrade ‘C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk’
2023-07-18 10:52:15:954 - [AndroidDriver] Performing fast reset on ‘com.sensus.datalogger’
2023-07-18 10:52:15:954 - [debug] [ADB] Getting install status for com.sensus.datalogger
2023-07-18 10:52:15:954 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell pm path com.sensus.datalogger’
2023-07-18 10:52:16:091 - [debug] [ADB] ‘com.sensus.datalogger’ is installed
2023-07-18 10:52:16:091 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell am force-stop com.sensus.datalogger’
2023-07-18 10:52:16:229 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell pm clear com.sensus.datalogger’
2023-07-18 10:52:16:391 - [debug] [AndroidDriver] Performed fast reset on the installed ‘com.sensus.datalogger’ application (stop and clear)
2023-07-18 10:52:16:391 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Performing shallow cleanup of automation leftovers
2023-07-18 10:52:16:410 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] No obsolete sessions have been detected (socket hang up)
2023-07-18 10:52:16:411 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell am force-stop io.appium.uiautomator2.server.test’
2023-07-18 10:52:16:546 - [AndroidUiautomator2Driver@0e44 (1250d451)] Starting UIAutomator2 server 5.12.2
2023-07-18 10:52:16:546 - [AndroidUiautomator2Driver@0e44 (1250d451)] Using UIAutomator2 server from ‘C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v5.12.2.apk’ and test from ‘C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’
2023-07-18 10:52:16:546 - [AndroidUiautomator2Driver@0e44 (1250d451)] Waiting up to 30000ms for UiAutomator2 to be online…
2023-07-18 10:52:16:547 - [debug] [ADB] Creating ADB subprocess with args: [“-P”,“5037”,“-s”,“HA11RZB8”,“shell”,“am”,“instrument”,“-w”,“-e”,“disableAnalytics”,true,“io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner”]
2023-07-18 10:52:16:560 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Matched ‘/status’ to command name ‘getStatus’
2023-07-18 10:52:16:560 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Proxying [GET /status] to [GET htp://127.0.0.1:8201/status] with no body
2023-07-18 10:52:16:573 - [AndroidUiautomator2Driver@0e44 (1250d451)] socket hang up
2023-07-18 10:52:17:588 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Matched ‘/status’ to command name ‘getStatus’
2023-07-18 10:52:17:589 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Proxying [GET /status] to [GET htp://127.0.0.1:8201/status] with no body
2023-07-18 10:52:17:595 - [AndroidUiautomator2Driver@0e44 (1250d451)] socket hang up
2023-07-18 10:52:18:604 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Matched ‘/status’ to command name ‘getStatus’
2023-07-18 10:52:18:604 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Proxying [GET /status] to [GET htp://127.0.0.1:8201/status] with no body
2023-07-18 10:52:18:610 - [AndroidUiautomator2Driver@0e44 (1250d451)] socket hang up
2023-07-18 10:52:18:667 - [debug] [Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
2023-07-18 10:52:19:622 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Matched ‘/status’ to command name ‘getStatus’
2023-07-18 10:52:19:622 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Proxying [GET /status] to [GET htp://127.0.0.1:8201/status] with no body
2023-07-18 10:52:19:629 - [AndroidUiautomator2Driver@0e44 (1250d451)] socket hang up
2023-07-18 10:52:20:639 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Matched ‘/status’ to command name ‘getStatus’
2023-07-18 10:52:20:640 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Proxying [GET /status] to [GET htp://127.0.0.1:8201/status] with no body
2023-07-18 10:52:20:847 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Got response with status 200: {“sessionId”:“None”,“value”:{“message”:“UiAutomator2 Server is ready to accept commands”,“ready”:true}}
2023-07-18 10:52:20:848 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] The initialization of the instrumentation process took 4302ms
2023-07-18 10:52:20:848 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Matched ‘/session’ to command name ‘createSession’
2023-07-18 10:52:20:849 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Proxying [POST /session] to [POST htp://127.0.0.1:8201/session] with body: {“capabilities”:{“firstMatch”:[{“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“platformName”:“Android”,“automationName”:“UiAutomator2”,“deviceName”:“Lenovo”,“unlockType”:“pin”,“unlockKey”:“123456”,“app”:“C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk”,“appActivity”:“com.sensus.datalogger.AppLauncher”,“udid”:“HA11RZB8”,“intentCategory”:“”,“appWaitActivity”:"com.sensus.datalogger.
”},“platformName”:“Android”,“automationName”:“UiAutomator2”,“deviceName”:“HA11RZB8”,“unlockType”:“pin”,“unlockKey”:“123456”,“app”:“C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk”,“appActivity”:“com.sensus.datalogger.AppLauncher”,“udid”:“HA11RZB8”,“intentCategory”:“”,“appWaitActivity”:“com.sensus.datalogger.“,“deviceUDID”:“HA11RZB8”,“appPackage”:“com.sensus.datalogger”}],“alwaysMatch”:{}}}
2023-07-18 10:52:20:920 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Got response with status 200: {“sessionId”:“3100380f-53c3-40dc-a549-a95a1c69351b”,“value”:{“capabilities”:{“firstMatch”:[{“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“platformName”:“Android”,“automationName”:“UiAutomator2”,“deviceName”:“Lenovo”,“unlockType”:“pin”,“unlockKey”:“123456”,“app”:“C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk”,“appActivity”:“com.sensus.datalogger.AppLauncher”,“udid”:“HA11RZB8”,“intentCategory”:”",“appWaitActivity”:"com.sensus.datalogger.
”},“platformName”:“Android”,“automationName”:“UiAutomator2”,“deviceName”:“HA11RZB8”,“unlockType”:“pin”,“unlockKey”:“123456”,“app”:“C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk”,“appActivity”:“com.sensus.datalogger.AppLauncher”,“udid”:“HA11RZB8”,“intentCategory”:“”,“appWaitActivity”:“com.sensus.datalogger.“,“deviceUDID”:“HA11RZB8”,“appPackage”:“com.sensus.datalogger”}],…
2023-07-18 10:52:20:921 - [AndroidUiautomator2Driver@0e44 (1250d451)] Determined the downstream protocol as ‘W3C’
2023-07-18 10:52:20:938 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Proxying [GET /appium/device/info] to [GET ttp://127.0.0.1:8201/session/3100380f-53c3-40dc-a549-a95a1c69351b/appium/device/info] with no body
2023-07-18 10:52:20:999 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Got response with status 200: {“sessionId”:“3100380f-53c3-40dc-a549-a95a1c69351b”,“value”:{“androidId”:“68082fadc9936d08”,“apiVersion”:“29”,“bluetooth”:{“state”:“ON”},“brand”:“Lenovo”,“carrierName”:”“,“displayDensity”:240,“locale”:“en_US”,“manufacturer”:“LENOVO”,“model”:“Lenovo TB-8505F”,“networks”:[{“capabilities”:{“SSID”:null,“linkDownBandwidthKbps”:1048576,“linkUpstreamBandwidthKbps”:1048576,“networkCapabilities”:“NET_CAPABILITY_NOT_METERED,NET_CAPABILITY_INTERNET,NET_CAPABILITY_NOT_RESTRICTED,NET_CAPABILITY_TRUSTED,NET_CAPABILITY_NOT_VPN,NET_CAPABILITY_VALIDATED,NET_CAPABILITY_NOT_ROAMING,NET_CAPABILITY_FOREGROUND,NET_CAPABILITY_NOT_CONGESTED,NET_CAPABILITY_NOT_SUSPENDED”,“signalStrength”:-58,“transportTypes”:“TRANSPORT_WIFI”},“detailedState”:“CONNECTED”,“extraInfo”:null,“isAvailable”:true,“isConnected”:true,“isFailover”:false,“isRoaming”:false,“state”:“CONNECTED”,“subtype”:0,“subtypeName”:”",“type”:1,“typeName”:“WIFI”}],“platformVersion”:“10”,“realDisplaySize”:“800x1280”,“timeZone”:“Europe/Prague”}}
2023-07-18 10:52:20:999 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell dumpsys window’
2023-07-18 10:52:21:187 - [AndroidDriver] Screen already unlocked, doing nothing
2023-07-18 10:52:21:187 - [AndroidUiautomator2Driver@0e44 (1250d451)] Starting 'com.sensus.datalogger/com.sensus.datalogger.AppLauncher and waiting for 'com.sensus.datalogger/com.sensus.datalogger.

2023-07-18 10:52:21:188 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell am start -W -n com.sensus.datalogger/com.sensus.datalogger.AppLauncher -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000’
2023-07-18 10:52:23:546 - [debug] [ADB] Waiting up to 20000ms for activity matching pkg: ‘com.sensus.datalogger’ and activity: ‘com.sensus.datalogger.’ to be focused
2023-07-18 10:52:23:546 - [debug] [ADB] Possible activities, to be checked: 'com.sensus.datalogger.
’, 'com.sensus.datalogger.com.sensus.datalogger.
2023-07-18 10:52:23:547 - [debug] [ADB] Getting focused package and activity
2023-07-18 10:52:23:547 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell dumpsys window displays’
2023-07-18 10:52:23:740 - [debug] [ADB] Found package: ‘com.sensus.datalogger’ and fully qualified activity name : ‘com.sensus.datalogger.AppLauncher’
2023-07-18 10:52:23:742 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Proxying [GET /appium/device/pixel_ratio] to [GET htp://127.0.0.1:8201/session/3100380f-53c3-40dc-a549-a95a1c69351b/appium/device/pixel_ratio] with no body
2023-07-18 10:52:23:765 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Got response with status 200: {“sessionId”:“3100380f-53c3-40dc-a549-a95a1c69351b”,“value”:1.5}
2023-07-18 10:52:23:766 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Matched ‘/appium/device/system_bars’ to command name ‘getSystemBars’
2023-07-18 10:52:23:767 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Proxying [GET /appium/device/system_bars] to [GET htp://127.0.0.1:8201/session/3100380f-53c3-40dc-a549-a95a1c69351b/appium/device/system_bars] with no body
2023-07-18 10:52:23:789 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Got response with status 200: {“sessionId”:“3100380f-53c3-40dc-a549-a95a1c69351b”,“value”:{“statusBar”:36}}
2023-07-18 10:52:23:790 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Matched ‘/window/current/size’ to command name ‘getWindowSize’
2023-07-18 10:52:23:790 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Proxying [GET /window/current/size] to [GET htp://127.0.0.1:8201/session/3100380f-53c3-40dc-a549-a95a1c69351b/window/current/size] with no body
2023-07-18 10:52:23:817 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Got response with status 200: {“sessionId”:“3100380f-53c3-40dc-a549-a95a1c69351b”,“value”:{“height”:1256,“width”:800}}
2023-07-18 10:52:23:818 - [AppiumDriver@dd1d] New AndroidUiautomator2Driver session created successfully, session 1250d451-bb22-4586-bae7-0006515ec393 added to master session list
2023-07-18 10:52:23:819 - [debug] [AppiumDriver@dd1d] Event ‘newSessionStarted’ logged at 1689677543819 (12:52:23 GMT+0200 (středoevropský letní čas))
2023-07-18 10:52:23:820 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Cached the protocol value ‘W3C’ for the new session 1250d451-bb22-4586-bae7-0006515ec393
2023-07-18 10:52:23:820 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] 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”,“automationName”:“UiAutomator2”,“deviceName”:“Lenovo”,“unlockType”:“pin”,“unlockKey”:“123456”,“app”:“C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk”,“appActivity”:“com.sensus.datalogger.AppLauncher”,“udid”:“HA11RZB8”,“intentCategory”:“”,“appWaitActivity”:"com.sensus.datalogger.
”},“platformName”:“Android”,“automationName”:“UiAutomator2”,“deviceName”:“HA11RZB8”,“unlockType”:“pin”,“unlockKey”:“123456”,“app”:“C:\Users\KarelVrabka\Diavaso\apps\23.1.1\Datalogger-release.apk”,“appActivity”:“com.sensus.datalogger.AppLauncher”,“udid”:“HA11RZB8”,“intentCategory”:“”,“appWaitActivity”:“com.sensus.datalogger.*”,“deviceUDID”:“HA11RZB8”,“appPackage”:“com.sensus.datalogger”,“deviceApiLevel”:29,“platformVersion”:“10”,“deviceScreenSize”:“800x1280”,"dev…
2023-07-18 10:52:23:822 - [HTTP] ← POST /session 200 10841 ms - 1264
2023-07-18 10:52:23:822 - [HTTP]
2023-07-18 10:52:23:826 - [HTTP] → POST /session/1250d451-bb22-4586-bae7-0006515ec393/timeouts
2023-07-18 10:52:23:826 - [HTTP] {“implicit”:2000}
2023-07-18 10:52:23:828 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Calling AppiumDriver.timeouts() with args: [null,null,null,null,2000,“1250d451-bb22-4586-bae7-0006515ec393”]
2023-07-18 10:52:23:828 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] W3C timeout argument: {“implicit”:2000}}
2023-07-18 10:52:23:829 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Set implicit wait to 2000ms
2023-07-18 10:52:23:829 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Responding to client with driver.timeouts() result: null
2023-07-18 10:52:23:831 - [HTTP] ← POST /session/1250d451-bb22-4586-bae7-0006515ec393/timeouts 200 5 ms - 14
2023-07-18 10:52:23:831 - [HTTP]
2023-07-18 10:52:23:833 - [HTTP] → POST /session/1250d451-bb22-4586-bae7-0006515ec393/execute/sync
2023-07-18 10:52:23:834 - [HTTP] {“script”:“mobile: isAppInstalled”,“args”:[{“bundleId”:“com.sensus.datalogger”,“appId”:“com.sensus.datalogger”}]}
2023-07-18 10:52:23:841 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Calling AppiumDriver.execute() with args: [“mobile: isAppInstalled”,[{“bundleId”:“com.sensus.datalogger”,“appId”:“com.sensus.datalogger”}],“1250d451-bb22-4586-bae7-0006515ec393”]
2023-07-18 10:52:23:842 - [AndroidUiautomator2Driver@0e44 (1250d451)] Executing native command ‘mobile: isAppInstalled’
2023-07-18 10:52:23:843 - [debug] [ADB] Getting install status for com.sensus.datalogger
2023-07-18 10:52:23:843 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell pm path com.sensus.datalogger’
2023-07-18 10:52:23:974 - [debug] [ADB] ‘com.sensus.datalogger’ is installed
2023-07-18 10:52:23:974 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Responding to client with driver.execute() result: true
2023-07-18 10:52:23:975 - [HTTP] ← POST /session/1250d451-bb22-4586-bae7-0006515ec393/execute/sync 200 142 ms - 14
2023-07-18 10:52:23:976 - [HTTP]
2023-07-18 10:52:23:977 - [HTTP] → POST /session/1250d451-bb22-4586-bae7-0006515ec393/execute/sync
2023-07-18 10:52:23:978 - [HTTP] {“script”:“mobile: getCurrentActivity”,“args”:}
2023-07-18 10:52:23:987 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Calling AppiumDriver.execute() with args: [“mobile: getCurrentActivity”,,“1250d451-bb22-4586-bae7-0006515ec393”]
2023-07-18 10:52:23:987 - [AndroidUiautomator2Driver@0e44 (1250d451)] Executing native command ‘mobile: getCurrentActivity’
2023-07-18 10:52:23:988 - [debug] [ADB] Getting focused package and activity
2023-07-18 10:52:23:989 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell dumpsys window displays’
2023-07-18 10:52:24:076 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Responding to client with driver.execute() result: “.AppLauncher”
2023-07-18 10:52:24:077 - [HTTP] ← POST /session/1250d451-bb22-4586-bae7-0006515ec393/execute/sync 200 99 ms - 24
2023-07-18 10:52:24:077 - [HTTP]
2023-07-18 10:52:24:079 - [HTTP] → POST /session/1250d451-bb22-4586-bae7-0006515ec393/execute/sync
2023-07-18 10:52:24:080 - [HTTP] {“script”:“mobile: activateApp”,“args”:[{“appId”:“com.sensus.datalogger”,“bundleId”:“com.sensus.datalogger”}]}
2023-07-18 10:52:24:080 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Calling AppiumDriver.execute() with args: [“mobile: activateApp”,[{“appId”:“com.sensus.datalogger”,“bundleId”:“com.sensus.datalogger”}],“1250d451-bb22-4586-bae7-0006515ec393”]
2023-07-18 10:52:24:080 - [AndroidUiautomator2Driver@0e44 (1250d451)] Executing native command ‘mobile: activateApp’
2023-07-18 10:52:24:081 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Activating ‘com.sensus.datalogger’
2023-07-18 10:52:24:082 - [debug] [ADB] Running ‘C:\Users\KarelVrabka\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s HA11RZB8 shell cmd package resolve-activity --brief com.sensus.datalogger’
2023-07-18 10:52:24:208 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] Encountered internal error running command: Error: Unable to resolve the launchable activity of ‘com.sensus.datalogger’. Original error: No activity found
2023-07-18 10:52:24:209 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] at ADB.resolveLaunchableActivity (C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-adb\lib\tools\adb-commands.js:271:9)
2023-07-18 10:52:24:209 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] at AndroidUiautomator2Driver.activateApp (C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-android-driver\lib\commands\app-management.js:115:22)
2023-07-18 10:52:24:209 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] at AndroidUiautomator2Driver.mobileActivateApp (C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-android-driver\lib\commands\app-management.js:156:10)
2023-07-18 10:52:24:209 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] at AndroidUiautomator2Driver.extensions.executeMobile (C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\lib\commands\general.js:178:10)
2023-07-18 10:52:24:209 - [debug] [AndroidUiautomator2Driver@0e44 (1250d451)] at AndroidUiautomator2Driver.execute (C:\Users\KarelVrabka.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-android-driver\lib\commands\execute.js:10:1emphasized text2)
2023-07-18 10:52:24:211 - [HTTP] ← POST /session/1250d451-bb22-4586-bae7-0006515ec393/execute/sync 500 131 ms - 784
2023-07-18 10:52:24:211 - [

Okay I figured out the problem. To succesfully use activate_app(), the app needs to have shortcut in the home page or in the app drawer. We develop 5 apps and only 3 of them have those shortcut -> activate_app() works fine.

Please, correct me if my assumptions are incorrect :slight_smile:

issue is here. and possibly you correct. it helps a bit to look into logcat logs while you manually start your app. started activity will be in logs.

Isn’t it a bug then? When you can detect that the app is installed by is_app_installed(app_id), but cannot be activated?

Appium parsing given APK file to find start activity (if it not provided in caps). And here is many depends on app developers.

Open Android Studio. Navigate to logcat logs. Select your phone. Start your app. Check logs ! You will see what activity started.

Sorry, I am not a developer, so I am not sure for what am I looking for in logs.

Found this line

07-20 09:29:48.170 796 819 I ActivityTaskManager: Displayed com.sensus.datalogger/.AppLauncher: +1s883ms

This is exactly the activity I define in caps.

vs

they are a bit different

and what activity appeared after?

also check - Error: 'Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launch-able activity' is appearing - #4 by Aleksei

adb shell am start -n com.sensus.datalogger/.AppLauncher works just well. Same for driver.start_activity("com.sensus.datalogger’, “.AppLauncher”)

They solved the issue you sent by adding android:exported=“true” to AndroidManifest, but it is not added to manifest of apps which works for me, but I will ask team developers.