[info] [Appium] Welcome to Appium v1.13.0 [info] [Appium] Appium REST http interface listener started on 0.0.0.0:4723[info] [HTTP] --> GET /wd/hub/sessions [info] [HTTP] {} [debug] [GENERIC] Calling AppiumDriver.getSessions() with args: [] [debug] [GENERIC] Responding to client with driver.getSessions() result: [] [info] [HTTP] <-- GET /wd/hub/sessions 200 5 ms - 40 [info] [HTTP] [info] [HTTP] --> POST /wd/hub/session [info] [HTTP] {"desiredCapabilities":{"app":"/Users/eljami/apkfiles/WhatsApp_Messenger_v2.19.203_apkpure.com.apk","automationName":"UiAutomator1","deviceName":"Android Emulator","platformName":"Android","newCommandTimeout":0,"connectHardwareKeyboard":true}} [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/eljami/apkfiles/WhatsApp_Messenger_v2.19.203_apkpure.com.apk","automationName":"UiAutomator1","deviceName":"Android Emulator","platformName":"Android","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null] [debug] [BaseDriver] Event 'newSessionRequested' logged at 1564151702041 (23:35:02 GMT+0900 (JST)) [info] [Appium] Appium v1.13.0 creating new AndroidDriver (v4.15.1) session [info] [Appium] Capabilities: [info] [Appium] app: /Users/eljami/apkfiles/WhatsApp_Messenger_v2.19.203_apkpure.com.apk [info] [Appium] automationName: UiAutomator1 [info] [Appium] deviceName: Android Emulator [info] [Appium] platformName: Android [info] [Appium] newCommandTimeout: 0 [info] [Appium] connectHardwareKeyboard: true [debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {"app":"/Users/eljami/apkfi... [warn] [BaseDriver] The following capabilities were provided, but are not recognized by appium: connectHardwareKeyboard. [info] [BaseDriver] Session created with session id: d6b95178-73e2-4cc1-ad7e-ce01f63cc98d[debug] [ADB] 1 device(s) connected [info] [AndroidDriver] Using device: emulator-5554 [info] [ADB] Using 'adb' from '/Users/eljami/Library/Android/sdk/platform-tools/adb' [debug] [ADB] Setting device id to emulator-5554 [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk' [debug] [ADB] Current device property 'ro.build.version.sdk': 28 [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release' [debug] [ADB] Current device property 'ro.build.version.release': 9 [debug] [ADB] Device API level: 28 [warn] [AndroidDriver] Consider setting 'automationName' capability to 'uiautomator2' on Android >= 6, since UIAutomator framework is not maintained anymore by the OS vendor. [info] [BaseDriver] Using local app '/Users/eljami/apkfiles/WhatsApp_Messenger_v2.19.203_apkpure.com.apk' [debug] [AndroidDriver] Checking whether app is actually present [info] [AndroidDriver] Starting Android session [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 wait-for-device' [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell echo ping' [debug] [AndroidDriver] Pushing settings apk to device... [debug] [ADB] Getting install status for io.appium.settings [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package io.appium.settings'[info] [ADB] Using 'aapt' from '/Users/eljami/Library/Android/sdk/build-tools/29.0.1/aapt' [debug] [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') [debug] [ADB] There is no need to install/upgrade '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/apks/settings_apk-debug.apk' [debug] [ADB] Getting IDs of all 'io.appium.settings' processes [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'pgrep --help; echo $?'' [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pgrep -f io\\.appium\\.settings' [debug] [AndroidDriver] io.appium.settings is already running. There is no need to reset its permissions. [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell appops set io.appium.settings android\:mock_location allow' [debug] [Logcat] Starting logcat capture [info] [ADB] Getting device platform version [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'[debug] [ADB] Current device property 'ro.build.version.release': 9 [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell wm size' [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.product.model' [debug] [ADB] Current device property 'ro.product.model': Android SDK built for x86 [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.product.manufacturer'[debug] [ADB] Current device property 'ro.product.manufacturer': Google [debug] [AndroidDriver] Parsing package and activity from app manifest [info] [ADB] Using 'apkanalyzer' from '/Users/eljami/Library/Android/sdk/tools/bin/apkanalyzer' [debug] [ADB] Starting '/Users/eljami/Library/Android/sdk/tools/bin/apkanalyzer' with args ["-h","manifest","print","/Users/eljami/apkfiles/WhatsApp_Messenger_v2.19.203_apkpure.com.apk"][info] [ADB] Package name: 'com.whatsapp' [info] [ADB] Main activity name: 'com.whatsapp.Main' [debug] [AndroidDriver] Parsed package and activity are: com.whatsapp/com.whatsapp.Main [debug] [ADB] Getting install status for com.whatsapp [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.whatsapp' [debug] [ADB] 'com.whatsapp' is not installed [debug] [ADB] Getting install status for com.whatsapp [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell dumpsys package com.whatsapp'[debug] [ADB] 'com.whatsapp' is not installed [debug] [ADB] App '/Users/eljami/apkfiles/WhatsApp_Messenger_v2.19.203_apkpure.com.apk' is not installed [debug] [ADB] Installing '/Users/eljami/apkfiles/WhatsApp_Messenger_v2.19.203_apkpure.com.apk' [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'ls -t -1 /data/local/tmp/appium_cache 2>&1 || echo _ERROR_'' [debug] [ADB] The count of applications in the cache: 6 [info] [ADB] The application at '/Users/eljami/apkfiles/WhatsApp_Messenger_v2.19.203_apkpure.com.apk' is already cached to '/data/local/tmp/appium_cache/f7de43d26fc89f64b23e5b76d0d29c3f0e048d20.apk' [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm install /data/local/tmp/appium_cache/f7de43d26fc89f64b23e5b76d0d29c3f0e048d20.apk'[debug] [AndroidDriver] Shutting down Android driver [debug] [AndroidDriver] Called deleteSession but bootstrap wasn't active [debug] [Logcat] Stopping logcat capture [debug] [ADB] Running '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell am force-stop io.appium.unlock' [debug] [AndroidDriver] Not cleaning generated files. Add `clearSystemFiles` capability if wanted. [debug] [BaseDriver] Event 'newSessionStarted' logged at 1564151705946 (23:35:05 GMT+0900 (JST)) [debug] [MJSONWP] Encountered internal error running command: Error executing adbExec. Original error: 'Command '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm install /data/local/tmp/appium_cache/f7de43d26fc89f64b23e5b76d0d29c3f0e048d20.apk' exited with code 1'; Stderr: ''; Code: '1' [debug] [MJSONWP] Error: Command '/Users/eljami/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell pm install /data/local/tmp/appium_cache/f7de43d26fc89f64b23e5b76d0d29c3f0e048d20.apk' exited with code 1 [debug] [MJSONWP] at ChildProcess.proc.on.code (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/teen_process/lib/exec.js:94:19) [debug] [MJSONWP] at ChildProcess.emit (events.js:182:13) [debug] [MJSONWP] at maybeClose (internal/child_process.js:961:16) [debug] [MJSONWP] at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5) [info] [HTTP] <-- POST /wd/hub/session 500 3909 ms - 400 [info] [HTTP]  [info] [HTTP] --> DELETE /wd/hub/session [info] [HTTP] {} [debug] [HTTP] No route found. Setting content type to 'text/plain' [info] [HTTP] <-- DELETE /wd/hub/session 404 4 ms - 57 [info] [HTTP]