附上第二次跑的 appium server 端 log 留存以便逆向分析 server 执行过程和调用
cmd@TR:~$ appium --session-override -p 4730
[Appium] Welcome to Appium v1.7.2
[Appium] Non-default server args:
[Appium] port: 4730
[Appium] sessionOverride: true
[Appium] Appium REST http interface listener started on 0.0.0.0:4730
[HTTP] --> POST /wd/hub/session {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android"}},"desiredCapabilities":{"platformName":"Android","platformVersion":"7.1.1","deviceName":"MIX_2","udid":"45806625","appPackage":"com.baidu.yuedu","appActivity":"com.baidu.yuedu.splash.SplashActivity","noReset":true,"newCommandTimeout":30,"unicodeKeyboard":true,"resetKeyboard":true,"automationName":"Uiautomator2","noSign":true}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","platformVersion":"7.1.1","deviceName":"MIX_2","udid":"45806625","appPackage":"com.baidu.yuedu","appActivity":"com.baidu.yuedu.splash.SplashActivity","noReset":true,"newCommandTimeout":30,"unicodeKeyboard":true,"resetKeyboard":true,"automationName":"Uiautomator2","noSign":true},null,{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android"}}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1517024576592 (11:42:56 GMT+0800 (CST))
[Appium] Merged W3C capabilities {"firstMatch":[{}],"alwaysMatch":{"platformName... into desiredCapabilities object {"platformName":"Android","platformVersion":"7....
[Appium] Creating new AndroidUiautomator2Driver (v0.11.0) session
[Appium] Capabilities:
[Appium] platformName: Android
[Appium] platformVersion: 7.1.1
[Appium] deviceName: MIX_2
[Appium] udid: 45806625
[Appium] appPackage: com.baidu.yuedu
[Appium] appActivity: com.baidu.yuedu.splash.SplashActivity
[Appium] noReset: true
[Appium] newCommandTimeout: 30
[Appium] unicodeKeyboard: true
[Appium] resetKeyboard: true
[Appium] automationName: Uiautomator2
[Appium] noSign: true
[BaseDriver] Session created with session id: 24fb9178-cb4c-45b4-90e8-4613cf46664e
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_161
[ADB] Checking whether adb is present
[ADB] Using adb from /opt/android-sdk-linux/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] Using device: 45806625
[ADB] Checking whether adb is present
[debug] [ADB] Setting device id to 45806625
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","getprop","ro.build.version.sdk"]
[debug] [ADB] Current device property 'ro.build.version.sdk': 25
[debug] [ADB] Device API level: 25
[AndroidDriver] No app sent in, not parsing package/activity
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","getprop","ro.build.version.release"]
[debug] [ADB] Current device property 'ro.build.version.release': 7.1.1
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","wm","size"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","wm","density"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","getprop","ro.product.model"]
[debug] [ADB] Current device property 'ro.product.model': MIX 2
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","getprop","ro.product.manufacturer"]
[debug] [ADB] Current device property 'ro.product.manufacturer': Xiaomi
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","am","force-stop","io.appium.uiautomator2.server"]
[ADB] Checking whether aapt is present
[ADB] Using aapt from /opt/android-sdk-linux/build-tools/25.0.2/aapt
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","pm","list","packages","io.appium.uiautomator2.server"]
[debug] [ADB] App is installed
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","pm","list","packages","io.appium.uiautomator2.server.test"]
[debug] [ADB] App is installed
[debug] [ADB] Getting package info for io.appium.uiautomator2.server
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","dumpsys","package","io.appium.uiautomator2.server"]
[debug] [UiAutomator2] Waiting up to 20000ms for instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' to be available
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","pm","list","instrumentation"]
[debug] [UiAutomator2] Instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' available
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","wait-for-device"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","echo","ping"]
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: 'null' and country: 'null'
[debug] [Logcat] Starting logcat capture
[debug] [AndroidDriver] Enabling Unicode keyboard support
[debug] [AndroidDriver] Pushing unicode ime to device...
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","install","/opt/nodejs/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk"]
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","install","/opt/nodejs/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk"]
[debug] [ADB] Application '/opt/nodejs/lib/node_modules/appium/node_modules/appium-android-ime/bin/UnicodeIME-debug.apk' already installed. Continuing.
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","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 '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","ime","enable","io.appium.android.ime/.UnicodeIME"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","ime","set","io.appium.android.ime/.UnicodeIME"]
[debug] [AndroidDriver] Pushing settings apk to device...
[debug] [ADB] Getting install status for io.appium.settings
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","pm","list","packages","io.appium.settings"]
[debug] [ADB] App is not installed
[debug] [ADB] App '/opt/nodejs/lib/node_modules/appium/node_modules/io.appium.settings/app/build/outputs/apk/settings_apk-debug.apk' not installed. Installing
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","install","/opt/nodejs/lib/node_modules/appium/node_modules/io.appium.settings/app/build/outputs/apk/settings_apk-debug.apk"]
[debug] [ADB] Device API level: 25
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","dumpsys","package","io.appium.settings"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","pm","dump","io.appium.settings"]
[debug] [ADB] Got the following command chunks to execute: pm,grant,io.appium.settings,android.permission.WRITE_SETTINGS,;,pm,grant,io.appium.settings,android.permission.ACCESS_MOCK_LOCATION,;,pm,grant,io.appium.settings,android.permission.SET_ANIMATION_SCALE,;,pm,grant,io.appium.settings,android.permission.CHANGE_CONFIGURATION,;
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","pm","grant","io.appium.settings","android.permission.WRITE_SETTINGS",";","pm","grant","io.appium.settings","android.permission.ACCESS_MOCK_LOCATION",";","pm","grant","io.appium.settings","android.permission.SET_ANIMATION_SCALE",";","pm","grant","io.appium.settings","android.permission.CHANGE_CONFIGURATION",";"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","ps"]
[debug] [ADB] Device API level: 25
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","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: 25
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","appops","set","io.appium.settings","android:mock_location","allow"]
[debug] [AndroidDriver] Pushing unlock helper app to device...
[debug] [ADB] Getting install status for io.appium.unlock
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","pm","list","packages","io.appium.unlock"]
[debug] [ADB] App is not installed
[debug] [ADB] App '/opt/nodejs/lib/node_modules/appium/node_modules/appium-unlock/bin/unlock_apk-debug.apk' not installed. Installing
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","install","/opt/nodejs/lib/node_modules/appium/node_modules/appium-unlock/bin/unlock_apk-debug.apk"]
[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200
[debug] [ADB] Forwarding system: 8200 to device: 6790
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","forward","tcp:8200","tcp:6790"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","dumpsys","window"]
[AndroidDriver] Screen already unlocked, doing nothing
[debug] [AndroidDriver] Extracting strings from apk null null /tmp/com.baidu.yuedu
[debug] [ADB] Extracting strings for language: default
[debug] [ADB] Device API level: 25
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","getprop","persist.sys.locale"]
[debug] [ADB] Current device property 'persist.sys.locale':
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","getprop","ro.product.locale"]
[debug] [ADB] Current device property 'ro.product.locale': zh-CN
[debug] [ADB] No strings.xml for language 'zh', getting default strings.xml
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","rm","-rf","/data/local/tmp/strings.json"]
[debug] [UiAutomator2] No app capability. Assuming it is already on the device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","am","force-stop","io.appium.uiautomator2.server"]
[UiAutomator2] Starting uiautomator2 server v0.3.0
[UiAutomator2] Running command: 'adb -s 45806625 shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner'
[UiAutomator2] Waiting up to 20000ms for UiAutomator2 to be online...
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"SESSIONID\",\"status\":0,\"value\":\"Status Invoked\"}"
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8200/wd/hub/session] with body: {"desiredCapabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","platformVersion":"7.1.1","deviceName":"MIX_2","udid":"45806625","appPackage":"com.baidu.yuedu","appActivity":"com.baidu.yuedu.splash.SplashActivity","noReset":true,"newCommandTimeout":30,"unicodeKeyboard":true,"resetKeyboard":true,"automationName":"Uiautomator2","noSign":true},"platformName":"Android","platformVersion":"7.1.1","deviceName":"45806625","udid":"45806625","appPackage":"com.baidu.yuedu","appActivity":"com.baidu.yuedu.splash.SplashActivity","noReset":true,"newCommandTimeout":30,"unicodeKeyboard":true,"resetKeyboard":true,"automationName":"Uiautomator2","noSign":true,"deviceUDID":"45806625","deviceScreenSize":"1080x2160","deviceScreenDensity":440,"deviceModel":"MIX 2","deviceManufacturer":"Xiaomi"}}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"5cd67617-b9ae-4de5-a567-64a83e6d4887","status":0,"value":"Created Session"}
[UiAutomator2] UiAutomator2 did not start the activity we were waiting for, 'com.baidu.yuedu/com.baidu.yuedu.splash.SplashActivity'. Starting it ourselves
[debug] [ADB] Device API level: 25
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","am","start","-W","-n","com.baidu.yuedu/com.baidu.yuedu.splash.SplashActivity","-S","-a","android.intent.action.MAIN","-c","android.intent.category.LAUNCHER","-f","0x10200000"]
[Appium] New AndroidUiautomator2Driver session created successfully, session 24fb9178-cb4c-45b4-90e8-4613cf46664e added to master session list
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1517024599978 (11:43:19 GMT+0800 (CST))
[debug] [MJSONWP] Responding to client with driver.createSession() result: {"platformName":"Android","platformVersion":"7.1.1","deviceName":"MIX_2","udid":"45806625","appPackage":"com.baidu.yuedu","appActivity":"com.baidu.yuedu.splash.SplashActivity","noReset":true,"newCommandTimeout":30,"unicodeKeyboard":true,"resetKeyboard":true,"automationName":"Uiautomator2","noSign":true}
[HTTP] <-- POST /wd/hub/session 200 23392 ms - 376
[HTTP] --> GET /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e/appium/device/current_activity {}
[debug] [MJSONWP] Calling AppiumDriver.getCurrentActivity() with args: ["24fb9178-cb4c-45b4-90e8-4613cf46664e"]
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","dumpsys","window","windows"]
[debug] [MJSONWP] Responding to client with driver.getCurrentActivity() result: ".splash.SplashActivity"
[HTTP] <-- GET /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e/appium/device/current_activity 200 51 ms - 96
[HTTP] --> GET /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e/appium/device/current_activity {}
[debug] [MJSONWP] Calling AppiumDriver.getCurrentActivity() with args: ["24fb9178-cb4c-45b4-90e8-4613cf46664e"]
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","dumpsys","window","windows"]
[debug] [MJSONWP] Responding to client with driver.getCurrentActivity() result: ".splash.SplashActivity"
[HTTP] <-- GET /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e/appium/device/current_activity 200 44 ms - 96
[HTTP] --> GET /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e/appium/device/current_activity {}
[debug] [MJSONWP] Calling AppiumDriver.getCurrentActivity() with args: ["24fb9178-cb4c-45b4-90e8-4613cf46664e"]
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","dumpsys","window","windows"]
[debug] [MJSONWP] Responding to client with driver.getCurrentActivity() result: ".splash.SplashActivity"
[HTTP] <-- GET /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e/appium/device/current_activity 200 79 ms - 96
[HTTP] --> GET /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e/appium/device/current_activity {}
[debug] [MJSONWP] Calling AppiumDriver.getCurrentActivity() with args: ["24fb9178-cb4c-45b4-90e8-4613cf46664e"]
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","dumpsys","window","windows"]
[debug] [MJSONWP] Responding to client with driver.getCurrentActivity() result: ".splash.SplashActivity"
[HTTP] <-- GET /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e/appium/device/current_activity 200 83 ms - 96
[HTTP] --> GET /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e/appium/device/current_activity {}
[debug] [MJSONWP] Calling AppiumDriver.getCurrentActivity() with args: ["24fb9178-cb4c-45b4-90e8-4613cf46664e"]
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","dumpsys","window","windows"]
[debug] [MJSONWP] Responding to client with driver.getCurrentActivity() result: ".splash.SplashActivity"
[HTTP] <-- GET /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e/appium/device/current_activity 200 60 ms - 96
[HTTP] --> GET /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e/appium/device/current_activity {}
[debug] [MJSONWP] Calling AppiumDriver.getCurrentActivity() with args: ["24fb9178-cb4c-45b4-90e8-4613cf46664e"]
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","dumpsys","window","windows"]
[debug] [MJSONWP] Responding to client with driver.getCurrentActivity() result: ".base.ui.MainActivity"
[HTTP] <-- GET /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e/appium/device/current_activity 200 66 ms - 95
[HTTP] --> POST /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e/back {"sessionId":"24fb9178-cb4c-45b4-90e8-4613cf46664e"}
[MJSONWP] Driver proxy active, passing request on via HTTP proxy
[debug] [JSONWP Proxy] Proxying [POST /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e/back] to [POST http://localhost:8200/wd/hub/session/5cd67617-b9ae-4de5-a567-64a83e6d4887/back] with body: {"sessionId":"24fb9178-cb4c-45b4-90e8-4613cf46664e"}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"5cd67617-b9ae-4de5-a567-64a83e6d4887","status":0,"value":true}
[JSONWP Proxy] Replacing sessionId 5cd67617-b9ae-4de5-a567-64a83e6d4887 with 24fb9178-cb4c-45b4-90e8-4613cf46664e
[HTTP] <-- POST /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e/back 200 4540 ms - 76
[HTTP] --> DELETE /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e {}
[debug] [MJSONWP] Calling AppiumDriver.deleteSession() with args: ["24fb9178-cb4c-45b4-90e8-4613cf46664e"]
[debug] [BaseDriver] Event 'quitSessionRequested' logged at 1517024609935 (11:43:29 GMT+0800 (CST))
[Appium] Removing session 24fb9178-cb4c-45b4-90e8-4613cf46664e from our master session list
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [UiAutomator2] Deleting UiAutomator2 server session
[debug] [JSONWP Proxy] Proxying [DELETE /] to [DELETE http://localhost:8200/wd/hub/session/5cd67617-b9ae-4de5-a567-64a83e6d4887] with no body
[debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"5cd67617-b9ae-4de5-a567-64a83e6d4887\",\"status\":0,\"value\":\"Session deleted\"}"
[debug] [UiAutomator2] Resetting IME to 'io.appium.android.ime/.UnicodeIME'
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","ime","set","io.appium.android.ime/.UnicodeIME"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","shell","am","force-stop","com.baidu.yuedu"]
[debug] [UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:.
[debug] [UiAutomator2] [UIAutomator2] Time: 14.045
[debug] [UiAutomator2] [UIAutomator2] OK (1 test)
[debug] [Logcat] Stopping logcat capture
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running '/opt/android-sdk-linux/platform-tools/adb' with args: ["-P",5037,"-s","45806625","forward","--remove","tcp:8200"]
[debug] [BaseDriver] Event 'quitSessionFinished' logged at 1517024611138 (11:43:31 GMT+0800 (CST))
[debug] [MJSONWP] Received response: null
[debug] [MJSONWP] But deleting session, so not returning
[debug] [MJSONWP] Responding to client with driver.deleteSession() result: null
[HTTP] <-- DELETE /wd/hub/session/24fb9178-cb4c-45b4-90e8-4613cf46664e 200 1206 ms - 76