log:
Last login: Thu Jan 11 10:14:08 on ttys001
➜ ~ appium
[Appium] Welcome to Appium v1.7.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android"}},"desiredCapabilities":{"platformName":"Android","platformVersion":"5.1","deviceName":"M6220TB20023","noReset":true,"appPackage":"Displayed com.mobvoi.ticwear.player","appActivity":".ui.MainActivity","unicodeKeyboard":true,"resetKeyboard":true}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","platformVersion":"5.1","deviceName":"M6220TB20023","noReset":true,"appPackage":"Displayed com.mobvoi.ticwear.player","appActivity":".ui.MainActivity","unicodeKeyboard":true,"resetKeyboard":true},null,{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android"}}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1515639171638 (10:52:51 GMT+0800 (CST))
[Appium] Creating new AndroidDriver (v1.28.1) session
[Appium] Capabilities:
[Appium] platformName: 'Android'
[Appium] platformVersion: '5.1'
[Appium] deviceName: 'M6220TB20023'
[Appium] noReset: true
[Appium] appPackage: 'Displayed com.mobvoi.ticwear.player'
[Appium] appActivity: '.ui.MainActivity'
[Appium] unicodeKeyboard: true
[Appium] resetKeyboard: true
[BaseDriver] Session created with session id: 5fd985ac-9ff9-4f7b-9a94-cdf3952d959b
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_152
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/kevin/Library/Android/sdk/platform-tools/adb
[AndroidDriver] Retrieving device list
[debug] [ADB] Trying to find a connected android device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[AndroidDriver] Looking for a device with Android '5.1'
[debug] [ADB] Setting device id to M6220TB20023
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","getprop","ro.build.version.release"]
[debug] [ADB] Current device property 'ro.build.version.release': 5.1
[AndroidDriver] Using device: M6220TB20023
[ADB] Checking whether adb is present
[ADB] Using adb from /Users/kevin/Library/Android/sdk/platform-tools/adb
[debug] [ADB] Setting device id to M6220TB20023
[AndroidDriver] Starting Android session
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","wait-for-device"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","echo","ping"]
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Enabling Unicode keyboard support
[debug] [AndroidDriver] Pushing unicode ime to device...
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","install","/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","settings","get","secure","default_input_method"]
[debug] [AndroidDriver] Unsetting previous IME io.appium.android.ime/.UnicodeIME
[debug] [AndroidDriver] Setting IME to 'io.appium.android.ime/.UnicodeIME'
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","ime","enable","io.appium.android.ime/.UnicodeIME"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","ime","set","io.appium.android.ime/.UnicodeIME"]
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Uninstalling and re-installing 'io.appium.settings'
[debug] [ADB] Uninstalling io.appium.settings
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","pm","list","packages","io.appium.settings"]
[debug] [ADB] App is installed
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","am","force-stop","io.appium.settings"]
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","uninstall","io.appium.settings"]
[debug] [ADB] ADB command output: Success
[ADB] io.appium.settings was successfully uninstalled
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","pm","list","packages","io.appium.settings"]
[debug] [ADB] App is not installed
[debug] [ADB] App '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/app/build/outputs/apk/settings_apk-debug.apk' not installed. Installing
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","install","/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/io.appium.settings/app/build/outputs/apk/settings_apk-debug.apk"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","getprop","ro.build.version.sdk"]
[debug] [ADB] Current device property 'ro.build.version.sdk': 22
[debug] [ADB] Device API level: 22
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","dumpsys","package","io.appium.settings"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","ps"]
[debug] [ADB] Device API level: 22
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","am","start","-W","-n","io.appium.settings/.Settings","-a","android.intent.action.MAIN","-c","android.intent.category.LAUNCHER","-f","0x10200000"]
[debug] [ADB] Device API level: 22
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","settings","put","secure","mock_location","1"]
[debug] [AndroidDriver] Pushing unlock helper app to device...
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","install","/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-unlock/bin/unlock_apk-debug.apk"]
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","getprop","ro.build.version.release"]
[debug] [ADB] Current device property 'ro.build.version.release': 5.1
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","wm","size"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","getprop","ro.product.model"]
[debug] [ADB] Current device property 'ro.product.model': Ticwatch2
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","getprop","ro.product.manufacturer"]
[debug] [ADB] Current device property 'ro.product.manufacturer': Mobvoi Inc.
[AndroidDriver] No app sent in, not parsing package/activity
[debug] [AndroidDriver] No app capability. Assuming it is already on the device
[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4724 to device: 4724
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","forward","tcp:4724","tcp:4724"]
[debug] [UiAutomator] Starting UiAutomator
[debug] [UiAutomator] Moving to state 'starting'
[debug] [UiAutomator] Parsing uiautomator jar
[debug] [UiAutomator] Found jar name: 'AppiumBootstrap.jar'
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","push","/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-bootstrap/bootstrap/bin/AppiumBootstrap.jar","/data/local/tmp/"]
[debug] [ADB] Attempting to kill all uiautomator processes
[debug] [ADB] Getting all processes with uiautomator
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/kevin/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","M6220TB20023","shell","ps"]
[ADB] No uiautomator process found to kill, continuing...
[debug] [UiAutomator] Starting UIAutomator
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","M6220TB20023","shell","uiautomator","runtest","AppiumBootstrap.jar","-c","io.appium.android.bootstrap.Bootstrap","-e","pkg","Displayed com.mobvoi.ticwear.player","-e","disableAndroidWatchers",false,"-e","acceptSslCerts",false]
[UiAutomator] UiAutomator exited unexpectedly with code 0, signal null
[debug] [UiAutomator] Moving to state 'stopped'
Unhandled rejection Error: UiAUtomator shut down unexpectedly
at AndroidBootstrap.callee$2$0$ (../../lib/bootstrap.js:161:42)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at enqueueResult (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:185:17)
at new Promise ()
at new F (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/core-js/library/modules/$.export.js:30:36)
at AsyncIterator.enqueue (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:184:12)
at AsyncIterator.prototype.(anonymous function) as next
at Object.runtime.async (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:209:12)
at UiAutomator.callee$2$0 (../../lib/bootstrap.js:158:62)
at UiAutomator.emit (events.js:159:13)
at UiAutomator.changeState (../../lib/uiautomator.js:85:10)
at SubProcess. (../../lib/uiautomator.js:47:14)
at SubProcess.emit (events.js:159:13)
at ChildProcess. (../../lib/teen_process.js:229:14)
at ChildProcess.emit (events.js:159:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)