An unknown server-side error occurred while processing the command. Original error: Android bootstrap socket crashed: Error: This socket has been ended by the other party

Hi Team,

I am doing parallel execution i n2 android devices below is the error i am getting. In one devices it is executing and in other one i am getting the error.

Error:
An unknown server-side error occurred while processing the command. Original error: Android bootstrap socket crashed: Error: This socket has been ended by the other party.

Appium logs :
Server 4723 :

[W3C (15c051fc)] at AndroidDriver.startAUT [as reset] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:230:72)
[W3C (15c051fc)] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- POST /wd/hub/session/15c051fc-70cc-4d65-b45e-c33609322731/appium/app/reset 500 860 ms - 669
[HTTP]
[HTTP] --> POST /wd/hub/session/15c051fc-70cc-4d65-b45e-c33609322731/appium/app/reset
[HTTP] {}
[W3C (15c051fc)] Calling AppiumDriver.reset() with args: [“15c051fc-70cc-4d65-b45e-c33609322731”]
[ADB] Getting install status for app package
[ADB] Running ‘sdk path/adb -P 5037 -s ce091609dac4c60801 shell dumpsys package app package’
[ADB] ‘app package’ is installed
[ADB] Running ‘sdk path/adb -P 5037 -s ce091609dac4c60801 shell am force-stop app package’
[ADB] Running ‘sdk path/adb -P 5037 -s ce091609dac4c60801 shell pm clear app package’
[AndroidDriver] Performed fast reset on the installed ‘app package’ application (stop and clear)
[W3C (15c051fc)] Encountered internal error running command: Error: activity and pkg are required to start an application
[W3C (15c051fc)] at ADB. (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:106:11)
[W3C (15c051fc)] at Generator.next ()
[W3C (15c051fc)] at asyncGeneratorStep (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[W3C (15c051fc)] at _next (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
[W3C (15c051fc)] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
[W3C (15c051fc)] at new Promise (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/core-js/modules/es6.promise.js:177:7)
[W3C (15c051fc)] at ADB. (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12)
[W3C (15c051fc)] at ADB.startApp (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:104:1)
[W3C (15c051fc)] at AndroidDriver.startApp (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:234:18)
[W3C (15c051fc)] at AndroidDriver.startAUT [as reset] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:230:72)
[W3C (15c051fc)] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- POST /wd/hub/session/15c051fc-70cc-4d65-b45e-c33609322731/appium/app/reset 500 756 ms - 669
[HTTP]
[HTTP] --> POST /wd/hub/session/15c051fc-70cc-4d65-b45e-c33609322731/appium/app/reset
[HTTP] {}
[W3C (15c051fc)] Calling AppiumDriver.reset() with args: [“15c051fc-70cc-4d65-b45e-c33609322731”]
[ADB] Getting install status for app package
[ADB] Running ‘sdk path/adb -P 5037 -s ce091609dac4c60801 shell dumpsys package app package’
[ADB] ‘app package’ is installed
[ADB] Running ‘sdk path/adb -P 5037 -s ce091609dac4c60801 shell am force-stop app package’
[ADB] Running ‘sdk path/adb -P 5037 -s ce091609dac4c60801 shell pm clear app package’
[AndroidDriver] Performed fast reset on the installed 'app package application (stop and clear)
[W3C (15c051fc)] Encountered internal error running command: Error: activity and pkg are required to start an application
[W3C (15c051fc)] at ADB. (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:106:11)
[W3C (15c051fc)] at Generator.next ()
[W3C (15c051fc)] at asyncGeneratorStep (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[W3C (15c051fc)] at _next (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
[W3C (15c051fc)] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
[W3C (15c051fc)] at new Promise (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/core-js/modules/es6.promise.js:177:7)
[W3C (15c051fc)] at ADB. (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12)
[W3C (15c051fc)] at ADB.startApp (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:104:1)
[W3C (15c051fc)] at AndroidDriver.startApp (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:234:18)
[W3C (15c051fc)] at AndroidDriver.startAUT [as reset] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:230:72)
[W3C (15c051fc)] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- POST /wd/hub/session/15c051fc-70cc-4d65-b45e-c33609322731/appium/app/reset 500 908 ms - 669
[HTTP]
[HTTP] --> POST /wd/hub/session/15c051fc-70cc-4d65-b45e-c33609322731/appium/app/reset
[HTTP] {}
[W3C (15c051fc)] Calling AppiumDriver.reset() with args: [“15c051fc-70cc-4d65-b45e-c33609322731”]
[ADB] Getting install status for app package
[ADB] Running ‘sdk path/adb -P 5037 -s ce091609dac4c60801 shell dumpsys package app package’
[ADB] ‘app package’ is installed
[ADB] Running ‘sdk path/adb -P 5037 -s ce091609dac4c60801 shell am force-stop app package’
[ADB] Running ‘sdk path/adb -P 5037 -s ce091609dac4c60801 shell pm clear app package’
[AndroidDriver] Performed fast reset on the installed ‘app package’ application (stop and clear)
[W3C (15c051fc)] Encountered internal error running command: Error: activity and pkg are required to start an application
[W3C (15c051fc)] at ADB. (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:106:11)
[W3C (15c051fc)] at Generator.next ()
[W3C (15c051fc)] at asyncGeneratorStep (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[W3C (15c051fc)] at _next (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
[W3C (15c051fc)] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
[W3C (15c051fc)] at new Promise (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/core-js/modules/es6.promise.js:177:7)
[W3C (15c051fc)] at ADB. (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12)
[W3C (15c051fc)] at ADB.startApp (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:104:1)
[W3C (15c051fc)] at AndroidDriver.startApp (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:234:18)
[W3C (15c051fc)] at AndroidDriver.startAUT [as reset] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:230:72)
[W3C (15c051fc)] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- POST /wd/hub/session/15c051fc-70cc-4d65-b45e-c33609322731/appium/app/reset 500 809 ms - 669
[HTTP]
[HTTP] --> POST /wd/hub/session/15c051fc-70cc-4d65-b45e-c33609322731/appium/app/reset
[HTTP] {}
[W3C (15c051fc)] Calling AppiumDriver.reset() with args: [“15c051fc-70cc-4d65-b45e-c33609322731”]
[ADB] Getting install status for app package
[ADB] Running ‘/sdk path/adb -P 5037 -s ce091609dac4c60801 shell dumpsys package app package’
[ADB] ‘app package’ is installed
[ADB] Running ‘sdk path/adb -P 5037 -s ce091609dac4c60801 shell am force-stop app package’
[ADB] Running ‘sdk path/adb -P 5037 -s ce091609dac4c60801 shell pm clear app package’
[HTTP] <-- POST /wd/hub/session/15c051fc-70cc-4d65-b45e-c33609322731/appium/app/reset - - ms - -
[HTTP]
[AndroidDriver] Performed fast reset on the installed ‘app package’ application (stop and clear)
[W3C (15c051fc)] Encountered internal error running command: Error: activity and pkg are required to start an application
[W3C (15c051fc)] at ADB. (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:106:11)
[W3C (15c051fc)] at Generator.next ()
[W3C (15c051fc)] at asyncGeneratorStep (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[W3C (15c051fc)] at _next (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
[W3C (15c051fc)] at /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
[W3C (15c051fc)] at new Promise (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/core-js/modules/es6.promise.js:177:7)
[W3C (15c051fc)] at ADB. (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12)
[W3C (15c051fc)] at ADB.startApp (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:104:1)
[W3C (15c051fc)] at AndroidDriver.startApp (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:234:18)
[W3C (15c051fc)] at AndroidDriver.startAUT [as reset] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:230:72)
[W3C (15c051fc)] at process._tickCallback (internal/process/next_tick.js:68:7)

Server 4724 :

[ADB] Creating ADB subprocess with args: ["-P",5037,"-s",“ce10160a2c25a80e04”,“shell”,“uiautomator”,“runtest”,“AppiumBootstrap.jar”,"-c",“io.appium.android.bootstrap.Bootstrap”,"-e",“pkg”,“app package”,"-e",“disableAndroidWatchers”,false,"-e",“acceptSslCerts”,false]
[AndroidBootstrap] Cannot shut down Android bootstrap; it has already shut down
[Logcat] Stopping logcat capture
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell am force-stop io.appium.unlock’
[AndroidDriver] Not cleaning generated files. Add clearSystemFiles capability if wanted.
[UiAutomator] Moving to state ‘online’
[AndroidBootstrap] Android bootstrap socket is now connected
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell dumpsys window’
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] json loading complete.
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Registered crash watchers.
[AndroidDriver] Screen already unlocked, doing nothing
[Appium] New AndroidDriver session created successfully, session a0158fcf-61ca-4377-8cf5-f2773ae7d25a added to master session list
[BaseDriver] Event ‘newSessionStarted’ logged at 1569576614091 (15:00:14 GMT+0530 (IST))
[W3C (a0158fcf)] Cached the protocol value ‘W3C’ for the new session a0158fcf-61ca-4377-8cf5-f2773ae7d25a
[W3C (a0158fcf)] 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”,“autoLaunch”:false,“app”:“sdk path/app.apk”,“appPackage”:“app package”,“deviceName”:“ce10160a2c25a80e04”,“fullReset”:false,“language”:“en”,“locale”:“US”,“newCommandTimeout”:3600,“noReset”:true,“udid”:“ce10160a2c25a80e04”},“platformName”:“android”,“autoLaunch”:false,“app”:“app path”,“appPackage”:“app package”,“deviceName”:“ce10160a2c25a80e04”,“fullReset”:false,“language”:“en”,“locale”:“US”,“newCommandTimeout”:3600,“noReset”:true,“udid”:“ce10160a2c25a80e04”,“deviceUDID”:“ce10160a2c25a80e04”,“platformVersion”:“8.0.0”,“deviceScreenSize”:“1440x2560”,“deviceModel”:“SM-G930F”,“deviceManufacturer”:“samsung”}}
[HTTP] <-- POST /wd/hub/session 200 2216 ms - 1046
[HTTP]
[HTTP] --> GET /wd/hub/session/a0158fcf-61ca-4377-8cf5-f2773ae7d25a
[HTTP] {}
[W3C (a0158fcf)] Calling AppiumDriver.getSession() with args: [“a0158fcf-61ca-4377-8cf5-f2773ae7d25a”]
[W3C (a0158fcf)] Responding to client with driver.getSession() result: {“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“platformName”:“android”,“autoLaunch”:false,“app”:“app path”,“appPackage”:“app package”,“deviceName”:“ce10160a2c25a80e04”,“fullReset”:false,“language”:“en”,“locale”:“US”,“newCommandTimeout”:3600,“noReset”:true,“udid”:“ce10160a2c25a80e04”},“platformName”:“android”,“autoLaunch”:false,“app”:"/app path",“appPackage”:“app package”,“deviceName”:“ce10160a2c25a80e04”,“fullReset”:false,“language”:“en”,“locale”:“US”,“newCommandTimeout”:3600,“noReset”:true,“udid”:“ce10160a2c25a80e04”,“deviceUDID”:“ce10160a2c25a80e04”,“platformVersion”:“8.0.0”,“deviceScreenSize”:“1440x2560”,“deviceModel”:“SM-G930F”,“deviceManufacturer”:“samsung”}
[HTTP] <-- GET /wd/hub/session/a0158fcf-61ca-4377-8cf5-f2773ae7d25a 200 2 ms - 978
[HTTP]
[HTTP] --> GET /wd/hub/session/a0158fcf-61ca-4377-8cf5-f2773ae7d25a
[HTTP] {}
[W3C (a0158fcf)] Calling AppiumDriver.getSession() with args: [“a0158fcf-61ca-4377-8cf5-f2773ae7d25a”]
[W3C (a0158fcf)] Responding to client with driver.getSession() result: {“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“platformName”:“android”,“autoLaunch”:false,“app”:“app path”,“appPackage”:“app package”,“deviceName”:“ce10160a2c25a80e04”,“fullReset”:false,“language”:“en”,“locale”:“US”,“newCommandTimeout”:3600,“noReset”:true,“udid”:“ce10160a2c25a80e04”},“platformName”:“android”,“autoLaunch”:false,“app”:“app path”,“appPackage”:“app package”,“deviceName”:“ce10160a2c25a80e04”,“fullReset”:false,“language”:“en”,“locale”:“US”,“newCommandTimeout”:3600,“noReset”:true,“udid”:“ce10160a2c25a80e04”,“deviceUDID”:“ce10160a2c25a80e04”,“platformVersion”:“8.0.0”,“deviceScreenSize”:“1440x2560”,“deviceModel”:“SM-G930F”,“deviceManufacturer”:“samsung”}
[HTTP] <-- GET /wd/hub/session/a0158fcf-61ca-4377-8cf5-f2773ae7d25a 200 2 ms - 978
[HTTP]
[HTTP] --> POST /wd/hub/session/a0158fcf-61ca-4377-8cf5-f2773ae7d25a/appium/app/strings
[HTTP] {“language”:“en”}
[W3C (a0158fcf)] Calling AppiumDriver.getStrings() with args: [“en”,null,“a0158fcf-61ca-4377-8cf5-f2773ae7d25a”]
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell rm -rf /data/local/tmp/strings.json’
[AndroidDriver] Extracting strings from apk
[AndroidDriver] app path
[AndroidDriver] en
[AndroidDriver] /var/folders/jm/q51c8bqn3sngtqssjw00yl780000gp/T/app package
[ADB] Extracting strings from for language: en
[ADB] There is no ‘en’ configuration. Replacing it with ‘(default)’
[ADB] Successfully extracted 1911 strings from ‘app path’ resources for ‘(default)’ configuration
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell mkdir -p /data/local’
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 push /var/folders/jm/q51c8bqn3sngtqssjw00yl780000gp/T/app pacakge/strings.json /data/local/tmp’
[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“updateStrings”,“params”:{}}
[W3C (a0158fcf)] Encountered internal error running command: Error: Android bootstrap socket crashed: Error: This socket has been ended by the other party
[W3C (a0158fcf)] at Socket.socketClient.on.err (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/bootstrap.js:97:21)
[W3C (a0158fcf)] at Socket.emit (events.js:182:13)
[W3C (a0158fcf)] at Socket.writeAfterFIN [as write] (net.js:402:8)
[W3C (a0158fcf)] at write (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/bootstrap.js:122:25)
[W3C (a0158fcf)] at Promise.cancellationExecute [as _execute] (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/bluebird/js/release/debuggability.js:335:9)
[W3C (a0158fcf)] at Promise._resolveFromExecutor (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/bluebird/js/release/promise.js:483:18)
[W3C (a0158fcf)] at new Promise (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/bluebird/js/release/promise.js:79:10)
[W3C (a0158fcf)] at AndroidBootstrap.sendCommand (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/bootstrap.js:118:18)
[W3C (a0158fcf)] at AndroidBootstrap.sendCommand [as sendAction] (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/bootstrap.js:161:23)
[W3C (a0158fcf)] at AndroidDriver.sendAction (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:188:26)
[HTTP] <-- POST /wd/hub/session/a0158fcf-61ca-4377-8cf5-f2773ae7d25a/appium/app/strings 500 454 ms - 745
[HTTP]
[HTTP] --> DELETE /wd/hub/session/a0158fcf-61ca-4377-8cf5-f2773ae7d25a
[HTTP] {}
[W3C (a0158fcf)] Calling AppiumDriver.deleteSession() with args: [“a0158fcf-61ca-4377-8cf5-f2773ae7d25a”]
[BaseDriver] Event ‘quitSessionRequested’ logged at 1569576616624 (15:00:16 GMT+0530 (IST))
[Appium] Removing session a0158fcf-61ca-4377-8cf5-f2773ae7d25a from our master session list
[AndroidDriver] Shutting down Android driver
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell am force-stop app package’
[ADB] Pressing the HOME button
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell input keyevent 3’
[AndroidBootstrap] Sending command to android: {“cmd”:“shutdown”}
[Appium] Had trouble ending session a0158fcf-61ca-4377-8cf5-f2773ae7d25a: Android bootstrap socket crashed: Error: This socket has been ended by the other party
[BaseDriver] Event ‘quitSessionFinished’ logged at 1569576617322 (15:00:17 GMT+0530 (IST))
[W3C (a0158fcf)] Encountered internal error running command: Error: Android bootstrap socket crashed: Error: This socket has been ended by the other party
[W3C (a0158fcf)] at Socket.socketClient.on.err (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/bootstrap.js:97:21)
[W3C (a0158fcf)] at Socket.emit (events.js:182:13)
[W3C (a0158fcf)] at Socket.writeAfterFIN [as write] (net.js:402:8)
[W3C (a0158fcf)] at write (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/bootstrap.js:122:25)
[W3C (a0158fcf)] at Promise.cancellationExecute [as _execute] (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/bluebird/js/release/debuggability.js:335:9)
[W3C (a0158fcf)] at Promise._resolveFromExecutor (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/bluebird/js/release/promise.js:483:18)
[W3C (a0158fcf)] at new Promise (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/bluebird/js/release/promise.js:79:10)
[W3C (a0158fcf)] at AndroidBootstrap.sendCommand (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/bootstrap.js:118:18)
[W3C (a0158fcf)] at AndroidBootstrap.sendCommand [as shutdown] (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/bootstrap.js:173:18)
[W3C (a0158fcf)] at AndroidDriver.shutdown [as deleteSession] (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/driver.js:416:28)
[W3C (a0158fcf)] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- DELETE /wd/hub/session/a0158fcf-61ca-4377-8cf5-f2773ae7d25a 500 702 ms - 745
[HTTP]
[HTTP] --> POST /wd/hub/session
[HTTP] {“desiredCapabilities”:{“app”:“app path”,“appPackage”:“app package”,“noReset”:true,“autoLaunch”:false,“newCommandTimeout”:“3600”,“language”:“en”,“locale”:“US”,“platformName”:“Android”,“udid”:“ce10160a2c25a80e04”,“deviceName”:“ce10160a2c25a80e04”,“fullReset”:false},“capabilities”:{“firstMatch”:[{“appium:app”:“app path”,“appium:appPackage”:“app package”,“autoLaunch”:false,“appium:deviceName”:“ce10160a2c25a80e04”,“appium:fullReset”:false,“appium:language”:“en”,“appium:locale”:“US”,“appium:newCommandTimeout”:“3600”,“appium:noReset”:true,“platformName”:“android”,“appium:udid”:“ce10160a2c25a80e04”}]}}
[W3C] Calling AppiumDriver.createSession() with args: [{“app”:“app path”,“appPackage”:“app package”,“noReset”:true,“autoLaunch”:false,“newCommandTimeout”:“3600”,“language”:“en”,“locale”:“US”,“platformName”:“Android”,“udid”:“ce10160a2c25a80e04”,“deviceName”:“ce10160a2c25a80e04”,“fullReset”:false},null,{“firstMatch”:[{“appium:app”:“app path”,“appium:appPackage”:“app package”,“autoLaunch”:false,“appium:deviceName”:“ce10160a2c25a80e04”,“appium:fullReset”:false,“appium:language”:“en”,“appium:locale”:“US”,“appium:newCommandTimeout”:“3600”,“appium:noReset”:true,“platformName”:“android”,“appium:udid”:“ce10160a2c25a80e04”}]}]
[BaseDriver] Event ‘newSessionRequested’ logged at 1569576637050 (15:00:37 GMT+0530 (IST))
[BaseDriver] The capabilities [“autoLaunch”] are not standard capabilities and should have an extension prefix
[BaseDriver] Number capability passed in as string. Functionality may be compromised.
[Appium]
[Appium] ======================================================================
[Appium] DEPRECATION WARNING:
[Appium]
[Appium] The ‘automationName’ capability was not provided in the desired
[Appium] capabilities for this Android session
[Appium]
[Appium] Setting ‘automationName=UiAutomator1’ by default and using the
[Appium] UiAutomator1 Driver
[Appium]
[Appium] The next minor version of Appium (1.14.x) will set
[Appium] ‘automationName=UiAutomator2’ by default and use the UiAutomator2
[Appium] Driver
[Appium]
[Appium] The next major version of Appium (2.x) will require the
[Appium] ‘automationName’ capability to be set for all sessions on all
[Appium] platforms
[Appium]
[Appium] If you are happy with ‘UiAutomator1’ and do not wish to upgrade
[Appium] Android drivers, please add ‘automationName=UiAutomator1’ to your
[Appium] desired capabilities
[Appium]
[Appium] For more information about drivers, please visit
[Appium] http://appium.io/docs/en/about-appium/intro/ and explore the
[Appium] ‘Drivers’ menu
[Appium]
[Appium] ======================================================================
[Appium]
[Appium] Setting automation to ‘UiAutomator1’.
[Appium] Appium v1.13.0 creating new AndroidDriver (v4.15.1) session
[Appium] Capabilities:
[Appium] autoLaunch: false
[Appium] platformName: android
[Appium] app: app path
[Appium] appPackage: app package
[Appium] deviceName: ce10160a2c25a80e04
[Appium] fullReset: false
[Appium] language: en
[Appium] locale: US
[Appium] newCommandTimeout: 3600
[Appium] noReset: true
[Appium] udid: ce10160a2c25a80e04
[BaseDriver] W3C capabilities {“alwaysMatch”:{“appium:aut… and MJSONWP desired capabilities {“app”:”/Users/srikantakuma… were provided
[BaseDriver] Creating session with W3C capabilities: {“alwaysMatch”:{“appium:aut…
[BaseDriver] Number capability passed in as string. Functionality may be compromised.
[BaseDriver] Capability ‘newCommandTimeout’ changed from string (‘3600’) to integer (3600). This may cause unexpected behavior
[BaseDriver] Session created with session id: 908cceb2-871d-4a76-b629-bbb283f0ec5f
[ADB] Using ‘adb’ from ‘sdk path/adb’
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices…
[ADB] 2 device(s) connected
[AndroidDriver] Using device: ce10160a2c25a80e04
[ADB] Using ‘adb’ from ‘sdk path/adb’
[ADB] Setting device id to ce10160a2c25a80e04
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell getprop ro.build.version.sdk’
[ADB] Current device property ‘ro.build.version.sdk’: 26
[ADB] Device API level: 26
[AndroidDriver] Consider setting ‘automationName’ capability to ‘uiautomator2’ on Android >= 6, since UIAutomator framework is not maintained anymore by the OS vendor.
[BaseDriver] Using local app ‘app path’
[AndroidDriver] Checking whether app is actually present
[AndroidDriver] Starting Android session
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 wait-for-device’
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell echo ping’
[AndroidDriver] Pushing settings apk to device…
[ADB] Getting install status for io.appium.settings
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell dumpsys package io.appium.settings’
[ADB] ‘io.appium.settings’ is installed
[ADB] Getting package info for ‘io.appium.settings’
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell dumpsys package io.appium.settings’
[ADB] Using ‘aapt’ from ‘sdk path/28.0.3/aapt’
[ADB] The version name of the installed ‘io.appium.settings’ is greater or equal to the application version name (‘2.14.0’ >= ‘2.14.0’)
[ADB] There is no need to install/upgrade ‘/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk’
[ADB] Getting IDs of all ‘io.appium.settings’ processes
[ADB] Running ‘/sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell ‘pgrep --help; echo $?’’
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell pgrep ^appium\.settings$’
[AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions.
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell appops set io.appium.settings android:mock_location allow’
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell getprop persist.sys.locale’
[ADB] Current device property ‘persist.sys.locale’: en-US
[ADB] Current locale: ‘en-US’; requested locale: ‘en-US’
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell getprop persist.sys.locale’
[ADB] Current device property ‘persist.sys.locale’: en-US
[ADB] Requested locale is equal to current locale: ‘en-us’
[Logcat] Starting logcat capture
[ADB] Getting device platform version
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell getprop ro.build.version.release’
[ADB] Current device property ‘ro.build.version.release’: 8.0.0
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell wm size’
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell getprop ro.product.model’
[ADB] Current device property ‘ro.product.model’: SM-G930F
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell getprop ro.product.manufacturer’
[ADB] Current device property ‘ro.product.manufacturer’: samsung
[AndroidBootstrap] Watching for bootstrap disconnect
[ADB] Forwarding system: 4724 to device: 4724
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 forward tcp:4724 tcp:4724’
[UiAutomator] Starting UiAutomator
[UiAutomator] Moving to state ‘starting’
[UiAutomator] Parsing uiautomator jar
[UiAutomator] Found jar name: ‘AppiumBootstrap.jar’
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell mkdir -p /data/local’
[ADB] Running ‘/sdk path/adb -P 5037 -s ce10160a2c25a80e04 push ‘/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/bootstrap/bin/AppiumBootstrap.jar’ /data/local/tmp/’
[ADB] Attempting to kill all uiautomator processes
[ADB] Getting IDs of all ‘uiautomator’ processes
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell pgrep ^uiautomator$’
[ADB] Attempting to kill process 15316
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell kill -0 15316’
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell kill 15316’
[UiAutomator] UiAutomator exited unexpectedly with code 143, signal null
[UiAutomator] Moving to state ‘stopped’
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell kill 15316’
[UiAutomator] Starting UIAutomator
[ADB] Creating ADB subprocess with args: [”-P",5037,"-s",“ce10160a2c25a80e04”,“shell”,“uiautomator”,“runtest”,“AppiumBootstrap.jar”,"-c",“io.appium.android.bootstrap.Bootstrap”,"-e",“pkg”,“app package”,"-e",“disableAndroidWatchers”,false,"-e",“acceptSslCerts”,false]
[UiAutomator] Moving to state ‘online’
[AndroidBootstrap] Android bootstrap socket is now connected
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell dumpsys window’
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] json loading complete.
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Registered crash watchers.
[AndroidDriver] Screen already unlocked, doing nothing
[Appium] New AndroidDriver session created successfully, session 908cceb2-871d-4a76-b629-bbb283f0ec5f added to master session list
[BaseDriver] Event ‘newSessionStarted’ logged at 1569576639684 (15:00:39 GMT+0530 (IST))
[W3C (908cceb2)] Cached the protocol value ‘W3C’ for the new session 908cceb2-871d-4a76-b629-bbb283f0ec5f
[W3C (908cceb2)] 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”,“autoLaunch”:false,“app”:“app path”,“appPackage”:“app package”,“deviceName”:“ce10160a2c25a80e04”,“fullReset”:false,“language”:“en”,“locale”:“US”,“newCommandTimeout”:3600,“noReset”:true,“udid”:“ce10160a2c25a80e04”},“platformName”:“android”,“autoLaunch”:false,“app”:“app path”,“appPackage”:“app package”,“deviceName”:“ce10160a2c25a80e04”,“fullReset”:false,“language”:“en”,“locale”:“US”,“newCommandTimeout”:3600,“noReset”:true,“udid”:“ce10160a2c25a80e04”,“deviceUDID”:“ce10160a2c25a80e04”,“platformVersion”:“8.0.0”,“deviceScreenSize”:“1440x2560”,“deviceModel”:“SM-G930F”,“deviceManufacturer”:“samsung”}}
[HTTP] <-- POST /wd/hub/session 200 2635 ms - 1046
[HTTP]
[HTTP] --> GET /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f
[HTTP] {}
[W3C (908cceb2)] Calling AppiumDriver.getSession() with args: [“908cceb2-871d-4a76-b629-bbb283f0ec5f”]
[W3C (908cceb2)] Responding to client with driver.getSession() result: {“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“platformName”:“android”,“autoLaunch”:false,“app”:“app path”,“appPackage”:“app package”,“deviceName”:“ce10160a2c25a80e04”,“fullReset”:false,“language”:“en”,“locale”:“US”,“newCommandTimeout”:3600,“noReset”:true,“udid”:“ce10160a2c25a80e04”},“platformName”:“android”,“autoLaunch”:false,“app”:"/app path",“appPackage”:“app package”,“deviceName”:“ce10160a2c25a80e04”,“fullReset”:false,“language”:“en”,“locale”:“US”,“newCommandTimeout”:3600,“noReset”:true,“udid”:“ce10160a2c25a80e04”,“deviceUDID”:“ce10160a2c25a80e04”,“platformVersion”:“8.0.0”,“deviceScreenSize”:“1440x2560”,“deviceModel”:“SM-G930F”,“deviceManufacturer”:“samsung”}
[HTTP] <-- GET /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f 200 3 ms - 978
[HTTP]
[HTTP] --> GET /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f
[HTTP] {}
[W3C (908cceb2)] Calling AppiumDriver.getSession() with args: [“908cceb2-871d-4a76-b629-bbb283f0ec5f”]
[W3C (908cceb2)] Responding to client with driver.getSession() result: {“platform”:“LINUX”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“platformName”:“android”,“autoLaunch”:false,“app”:“app path”,“appPackage”:“app package”,“deviceName”:“ce10160a2c25a80e04”,“fullReset”:false,“language”:“en”,“locale”:“US”,“newCommandTimeout”:3600,“noReset”:true,“udid”:“ce10160a2c25a80e04”},“platformName”:“android”,“autoLaunch”:false,“app”:“app path”,“appPackage”:“app package”,“deviceName”:“ce10160a2c25a80e04”,“fullReset”:false,“language”:“en”,“locale”:“US”,“newCommandTimeout”:3600,“noReset”:true,“udid”:“ce10160a2c25a80e04”,“deviceUDID”:“ce10160a2c25a80e04”,“platformVersion”:“8.0.0”,“deviceScreenSize”:“1440x2560”,“deviceModel”:“SM-G930F”,“deviceManufacturer”:“samsung”}
[HTTP] <-- GET /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f 200 2 ms - 978
[HTTP]
[HTTP] --> POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/strings
[HTTP] {“language”:“en”}
[W3C (908cceb2)] Calling AppiumDriver.getStrings() with args: [“en”,null,“908cceb2-871d-4a76-b629-bbb283f0ec5f”]
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell rm -rf /data/local/tmp/strings.json’
[AndroidDriver] Extracting strings from apk
[AndroidDriver]app path
[AndroidDriver] en
[AndroidDriver] /var/folders/jm/q51c8bqn3sngtqssjw00yl780000gp/T/app package
[ADB] Extracting strings from for language: en
[ADB] There is no ‘en’ configuration. Replacing it with ‘(default)’
[ADB] Successfully extracted 1911 strings from ‘app path’ resources for ‘(default)’ configuration
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell mkdir -p /data/local’
[ADB] Running ‘/sdk path/adb -P 5037 -s ce10160a2c25a80e04 push /var/folders/jm/q51c8bqn3sngtqssjw00yl780000gp/T/app package/strings.json /data/local/tmp’
[AndroidBootstrap] Sending command to android: {“cmd”:“action”,“action”:“updateStrings”,“params”:{}}
[W3C (908cceb2)] Encountered internal error running command: Error: Android bootstrap socket crashed: Error: This socket has been ended by the other party
[W3C (908cceb2)] at Socket.socketClient.on.err (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/bootstrap.js:97:21)
[W3C (908cceb2)] at Socket.emit (events.js:182:13)
[W3C (908cceb2)] at Socket.writeAfterFIN [as write] (net.js:402:8)
[W3C (908cceb2)] at write (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/bootstrap.js:122:25)
[W3C (908cceb2)] at Promise.cancellationExecute [as _execute] (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/bluebird/js/release/debuggability.js:335:9)
[W3C (908cceb2)] at Promise._resolveFromExecutor (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/bluebird/js/release/promise.js:483:18)
[W3C (908cceb2)] at new Promise (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/bluebird/js/release/promise.js:79:10)
[W3C (908cceb2)] at AndroidBootstrap.sendCommand (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/bootstrap.js:118:18)
[W3C (908cceb2)] at AndroidBootstrap.sendCommand [as sendAction] (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/bootstrap.js:161:23)
[W3C (908cceb2)] at AndroidDriver.sendAction (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:188:26)
[HTTP] <-- POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/strings 500 474 ms - 745
[HTTP]
[HTTP] --> POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/reset
[HTTP] {}
[W3C (908cceb2)] Calling AppiumDriver.reset() with args: [“908cceb2-871d-4a76-b629-bbb283f0ec5f”]
[ADB] Getting install status for app package
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell dumpsys package app package’
[ADB] ‘app package’ is installed
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell am force-stop app package’
[ADB] Running ‘/sdk pathadb -P 5037 -s ce10160a2c25a80e04 shell pm clear app package’
[AndroidDriver] Performed fast reset on the installed ‘app package’ application (stop and clear)
[W3C (908cceb2)] Encountered internal error running command: Error: activity and pkg are required to start an application
[W3C (908cceb2)] at ADB. (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:106:11)
[W3C (908cceb2)] at Generator.next ()
[W3C (908cceb2)] at asyncGeneratorStep (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[W3C (908cceb2)] at _next (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
[W3C (908cceb2)] at /Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
[W3C (908cceb2)] at new Promise (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/core-js/modules/es6.promise.js:177:7)
[W3C (908cceb2)] at ADB. (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12)
[W3C (908cceb2)] at ADB.startApp (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:104:1)
[W3C (908cceb2)] at AndroidDriver.startApp (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:234:18)
[W3C (908cceb2)] at AndroidDriver.startAUT [as reset] (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:230:72)
[W3C (908cceb2)] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/reset 500 1000 ms - 679
[HTTP]
[HTTP] --> POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/reset
[HTTP] {}
[W3C (908cceb2)] Calling AppiumDriver.reset() with args: [“908cceb2-871d-4a76-b629-bbb283f0ec5f”]
[ADB] Getting install status for app package
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell dumpsys package app package’
[ADB] ‘app package’ is installed
[ADB] Running sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell am force-stop app package’
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell pm clear app package’
[AndroidDriver] Performed fast reset on the installed ‘app package’ application (stop and clear)
[W3C (908cceb2)] Encountered internal error running command: Error: activity and pkg are required to start an application
[W3C (908cceb2)] at ADB. (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:106:11)
[W3C (908cceb2)] at Generator.next ()
[W3C (908cceb2)] at asyncGeneratorStep (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[W3C (908cceb2)] at _next (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
[W3C (908cceb2)] at /Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
[W3C (908cceb2)] at new Promise (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/core-js/modules/es6.promise.js:177:7)
[W3C (908cceb2)] at ADB. (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12)
[W3C (908cceb2)] at ADB.startApp (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:104:1)
[W3C (908cceb2)] at AndroidDriver.startApp (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:234:18)
[W3C (908cceb2)] at AndroidDriver.startAUT [as reset] (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:230:72)
[W3C (908cceb2)] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/reset 500 695 ms - 679
[HTTP]
[HTTP] --> POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/reset
[HTTP] {}
[W3C (908cceb2)] Calling AppiumDriver.reset() with args: [“908cceb2-871d-4a76-b629-bbb283f0ec5f”]
[ADB] Getting install status for app package
[ADB] Running ‘/sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell dumpsys package app package’
[ADB] ‘app package’ is installed
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell am force-stop app package’
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell pm clear app package’
[AndroidDriver] Performed fast reset on the installed ‘app package’ application (stop and clear)
[W3C (908cceb2)] Encountered internal error running command: Error: activity and pkg are required to start an application
[W3C (908cceb2)] at ADB. (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:106:11)
[W3C (908cceb2)] at Generator.next ()
[W3C (908cceb2)] at asyncGeneratorStep (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[W3C (908cceb2)] at _next (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
[W3C (908cceb2)] at /Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
[W3C (908cceb2)] at new Promise (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/core-js/modules/es6.promise.js:177:7)
[W3C (908cceb2)] at ADB. (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12)
[W3C (908cceb2)] at ADB.startApp (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:104:1)
[W3C (908cceb2)] at AndroidDriver.startApp (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:234:18)
[W3C (908cceb2)] at AndroidDriver.startAUT [as reset] (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:230:72)
[W3C (908cceb2)] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/reset 500 781 ms - 679
[HTTP]
[HTTP] --> POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/reset
[HTTP] {}
[W3C (908cceb2)] Calling AppiumDriver.reset() with args: [“908cceb2-871d-4a76-b629-bbb283f0ec5f”]
[ADB] Getting install status for app package
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell dumpsys package app package’
[ADB] ‘app package’ is installed
[ADB] Running ‘/sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell am force-stop app package’
[ADB] Running ‘/sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell pm clear app package’
[AndroidDriver] Performed fast reset on the installed ‘app package’ application (stop and clear)
[W3C (908cceb2)] Encountered internal error running command: Error: activity and pkg are required to start an application
[W3C (908cceb2)] at ADB. (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:106:11)
[W3C (908cceb2)] at Generator.next ()
[W3C (908cceb2)] at asyncGeneratorStep (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[W3C (908cceb2)] at _next (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
[W3C (908cceb2)] at /Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
[W3C (908cceb2)] at new Promise (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/core-js/modules/es6.promise.js:177:7)
[W3C (908cceb2)] at ADB. (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12)
[W3C (908cceb2)] at ADB.startApp (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:104:1)
[W3C (908cceb2)] at AndroidDriver.startApp (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:234:18)
[W3C (908cceb2)] at AndroidDriver.startAUT [as reset] (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:230:72)
[W3C (908cceb2)] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/reset 500 914 ms - 679
[HTTP]
[HTTP] --> POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/reset
[HTTP] {}
[W3C (908cceb2)] Calling AppiumDriver.reset() with args: [“908cceb2-871d-4a76-b629-bbb283f0ec5f”]
[ADB] Getting install status for app package
[ADB] Running ‘/sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell dumpsys package app package’
[ADB] ‘app package’ is installed
[ADB] Running ‘/sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell am force-stop app package’
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell pm clear app package’
[AndroidDriver] Performed fast reset on the installed ‘app package’ application (stop and clear)
[W3C (908cceb2)] Encountered internal error running command: Error: activity and pkg are required to start an application
[W3C (908cceb2)] at ADB. (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:106:11)
[W3C (908cceb2)] at Generator.next ()
[W3C (908cceb2)] at asyncGeneratorStep (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[W3C (908cceb2)] at _next (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
[W3C (908cceb2)] at /Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
[W3C (908cceb2)] at new Promise (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/core-js/modules/es6.promise.js:177:7)
[W3C (908cceb2)] at ADB. (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12)
[W3C (908cceb2)] at ADB.startApp (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:104:1)
[W3C (908cceb2)] at AndroidDriver.startApp (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:234:18)
[W3C (908cceb2)] at AndroidDriver.startAUT [as reset] (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:230:72)
[W3C (908cceb2)] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/reset 500 779 ms - 679
[HTTP]
[HTTP] --> POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/reset
[HTTP] {}
[W3C (908cceb2)] Calling AppiumDriver.reset() with args: [“908cceb2-871d-4a76-b629-bbb283f0ec5f”]
[ADB] Getting install status for app package
[ADB] Running ‘/sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell dumpsys package app package’
[ADB] ‘app package’ is installed
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell am force-stop app package’
[ADB] Running ‘/sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell pm clear app package’
[AndroidDriver] Performed fast reset on the installed ‘app package’ application (stop and clear)
[W3C (908cceb2)] Encountered internal error running command: Error: activity and pkg are required to start an application
[W3C (908cceb2)] at ADB. (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:106:11)
[W3C (908cceb2)] at Generator.next ()
[W3C (908cceb2)] at asyncGeneratorStep (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[W3C (908cceb2)] at _next (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
[W3C (908cceb2)] at /Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
[W3C (908cceb2)] at new Promise (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/core-js/modules/es6.promise.js:177:7)
[W3C (908cceb2)] at ADB. (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12)
[W3C (908cceb2)] at ADB.startApp (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:104:1)
[W3C (908cceb2)] at AndroidDriver.startApp (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:234:18)
[W3C (908cceb2)] at AndroidDriver.startAUT [as reset] (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:230:72)
[W3C (908cceb2)] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/reset 500 802 ms - 679
[HTTP]
[HTTP] --> POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/reset
[HTTP] {}
[W3C (908cceb2)] Calling AppiumDriver.reset() with args: [“908cceb2-871d-4a76-b629-bbb283f0ec5f”]
[ADB] Getting install status for app package
[ADB] Running ‘/sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell dumpsys package app pacakge’
[ADB] ‘app package’ is installed
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell am force-stop app package’
[ADB] Running ‘/sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell pm clear app package’
[AndroidDriver] Performed fast reset on the installed ‘app pacakge’ application (stop and clear)
[W3C (908cceb2)] Encountered internal error running command: Error: activity and pkg are required to start an application
[W3C (908cceb2)] at ADB. (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:106:11)
[W3C (908cceb2)] at Generator.next ()
[W3C (908cceb2)] at asyncGeneratorStep (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[W3C (908cceb2)] at _next (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
[W3C (908cceb2)] at /Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
[W3C (908cceb2)] at new Promise (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/core-js/modules/es6.promise.js:177:7)
[W3C (908cceb2)] at ADB. (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12)
[W3C (908cceb2)] at ADB.startApp (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:104:1)
[W3C (908cceb2)] at AndroidDriver.startApp (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:234:18)
[W3C (908cceb2)] at AndroidDriver.startAUT [as reset] (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:230:72)
[W3C (908cceb2)] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/reset 500 784 ms - 679
[HTTP]
[HTTP] --> POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/reset
[HTTP] {}
[W3C (908cceb2)] Calling AppiumDriver.reset() with args: [“908cceb2-871d-4a76-b629-bbb283f0ec5f”]
[ADB] Getting install status for app package
[ADB] Running ‘/sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell dumpsys package app package’
[ADB] ‘app package’ is installed
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell am force-stop app package’
[ADB] Running ‘sdk path/adb -P 5037 -s ce10160a2c25a80e04 shell pm clear app package’
[AndroidDriver] Performed fast reset on the installed ‘app package’ application (stop and clear)
[W3C (908cceb2)] Encountered internal error running command: Error: activity and pkg are required to start an application
[W3C (908cceb2)] at ADB. (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:106:11)
[W3C (908cceb2)] at Generator.next ()
[W3C (908cceb2)] at asyncGeneratorStep (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[W3C (908cceb2)] at _next (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)
[W3C (908cceb2)] at /Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:32:7
[W3C (908cceb2)] at new Promise (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/core-js/modules/es6.promise.js:177:7)
[W3C (908cceb2)] at ADB. (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:21:12)
[W3C (908cceb2)] at ADB.startApp (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:104:1)
[W3C (908cceb2)] at AndroidDriver.startApp (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:234:18)
[W3C (908cceb2)] at AndroidDriver.startAUT [as reset] (/Applications/Appium copy.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/general.js:230:72)
[W3C (908cceb2)] at process._tickCallback (internal/process/next_tick.js:68:7)
[HTTP] <-- POST /wd/hub/session/908cceb2-871d-4a76-b629-bbb283f0ec5f/appium/app/reset 500 712 ms - 679


Even after setting the below capability it is not working.
capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, “uiautomator2”)