Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save WindInMay524/68f63393d53b1acc33157a82cb1f0e33 to your computer and use it in GitHub Desktop.
Save WindInMay524/68f63393d53b1acc33157a82cb1f0e33 to your computer and use it in GitHub Desktop.
uiautomator2 server log
Microsoft Windows [版本 10.0.17134.112]
(c) 2018 Microsoft Corporation。保留所有权利。
C:\Users\13003>appium &
(node:20212) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[Appium] Welcome to Appium v1.8.1
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android"}},"desiredCapabilities":{"platformName":"Android","platformVersion":"7.1.1","deviceName":"4b62e63e","appPackage":"com.tencent.mm","appActivity":"com.tencent.mm.ui.LauncherUI","chromeOptions":{"androidProcess":"com.tencent.mm:tools"},"automationName":"UIAutomator2","recreateChromeDriverSessions":"true","noReset":"true"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","platformVersion":"7.1.1","deviceName":"4b62e63e","appPackage":"com.tencent.mm","appActivity":"com.tencent.mm.ui.LauncherUI","chromeOptions":{"androidProcess":"com.tencent.mm:tools"},"automationName":"UIAutomator2","recreateChromeDriverSessions":"true","noReset":"true"},null,{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android"}}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1529640543728 (12:09:03 GMT+0800 (GMT+08:00))
[Appium] Could not parse W3C capabilities: 'deviceName' can't be blank. Falling back to JSONWP protocol.
[Appium] The following capabilities were provided in the JSONWP desired capabilities that are missing in W3C capabilities: ["platformName","platformVersion","deviceName","appPackage","appActivity","chromeOptions","automationName","recreateChromeDriverSessions","noReset"]. Falling back to JSONWP protocol.
[Appium] Creating new AndroidUiautomator2Driver (v1.12.0) session
[Appium] Capabilities:
[Appium] platformName: Android
[Appium] platformVersion: 7.1.1
[Appium] deviceName: 4b62e63e
[Appium] appPackage: com.tencent.mm
[Appium] appActivity: com.tencent.mm.ui.LauncherUI
[Appium] chromeOptions: {
[Appium] androidProcess: com.tencent.mm:tools
[Appium] }
[Appium] automationName: UIAutomator2
[Appium] recreateChromeDriverSessions: true
[Appium] noReset: true
[debug] [BaseDriver] Creating session with MJSONWP desired capabilities: {"platformName":"Android","...
[BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[BaseDriver] The following capabilities were provided, but are not recognized by appium: chromeOptions.
[BaseDriver] Session created with session id: d63baecb-7f52-42eb-8eed-4b2b7bcf91d0
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 10
[ADB] Checking whether adb is present
[ADB] Found 2 'build-tools' folders under 'D:\software\sdk' (newest first):
[ADB] D:/software/sdk/build-tools/27.0.3
[ADB] D:/software/sdk/build-tools/26.0.2
[ADB] Using adb.exe from D:\software\sdk\platform-tools\adb.exe
[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 '7.1.1'
[debug] [ADB] Setting device id to 4b62e63e
[ADB] Getting device platform version
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 7.1.1
[AndroidDriver] Using device: 4b62e63e
[debug] [ADB] Setting device id to 4b62e63e
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e 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] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e shell getprop ro.build.version.release'
[debug] [ADB] Current device property 'ro.build.version.release': 7.1.1
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e shell wm size'
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e shell wm density'
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e shell getprop ro.product.model'
[debug] [ADB] Current device property 'ro.product.model': Mi Note 3
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e shell getprop ro.product.manufacturer'
[debug] [ADB] Current device property 'ro.product.manufacturer': Xiaomi
[debug] [ADB] Device API level: 25
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e shell am force-stop io.appium.uiautomator2.server'
[debug] [ADB] Checking app cert for D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk
[ADB] Using apksigner.bat from D:\software\sdk\build-tools\27.0.3\apksigner.bat
[debug] [ADB] Patching 'D:\software\sdk\build-tools\27.0.3\apksigner.bat' for Windows...
[debug] [ADB] Starting patched 'C:\Users\13003\AppData\Local\Temp\2018522-20212-1ywot2f.wc09\apksigner.bat' with args 'verify,--print-certs,D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk'
[debug] [ADB] 'D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk' is not signed with debug cert.
[debug] [ADB] Zip-aligning 'D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk'
[ADB] Checking whether zipalign is present
[ADB] Using zipalign.exe from D:\software\sdk\build-tools\27.0.3\zipalign.exe
[debug] [ADB] Signing 'D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk' with default cert
[debug] [ADB] Patching 'D:\software\sdk\build-tools\27.0.3\apksigner.bat' for Windows...
[debug] [ADB] Starting patched 'C:\Users\13003\AppData\Local\Temp\2018522-20212-1drjwew.aar8\apksigner.bat' with args 'sign,--key,D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8,--cert,D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem,D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk'
[debug] [ADB] Checking app cert for D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
[debug] [ADB] Patching 'D:\software\sdk\build-tools\27.0.3\apksigner.bat' for Windows...
[debug] [ADB] Starting patched 'C:\Users\13003\AppData\Local\Temp\2018522-20212-1eyqqmj.xyae\apksigner.bat' with args 'verify,--print-certs,D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[debug] [ADB] 'D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' is not signed with debug cert.
[debug] [ADB] Zip-aligning 'D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[debug] [ADB] Signing 'D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk' with default cert
[debug] [ADB] Patching 'D:\software\sdk\build-tools\27.0.3\apksigner.bat' for Windows...
[debug] [ADB] Starting patched 'C:\Users\13003\AppData\Local\Temp\2018522-20212-vyaijo.igew\apksigner.bat' with args 'sign,--key,D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8,--cert,D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem,D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk'
[debug] [ADB] Uninstalling io.appium.uiautomator2.server
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e shell pm list packages io.appium.uiautomator2.server'
[debug] [ADB] App is installed
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e shell am force-stop io.appium.uiautomator2.server'
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e uninstall io.appium.uiautomator2.server'
[debug] [ADB] 'adb uninstall io.appium.uiautomator2.server' command output: Success
[ADB] io.appium.uiautomator2.server was successfully uninstalled
[debug] [ADB] Uninstalling io.appium.uiautomator2.server.test
[debug] [ADB] Getting install status for io.appium.uiautomator2.server.test
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e shell pm list packages io.appium.uiautomator2.server.test'
[debug] [ADB] App is installed
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e shell am force-stop io.appium.uiautomator2.server.test'
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e uninstall io.appium.uiautomator2.server.test'
[debug] [ADB] 'adb uninstall io.appium.uiautomator2.server.test' command output: Success
[ADB] io.appium.uiautomator2.server.test was successfully uninstalled
[debug] [ADB] Getting install status for io.appium.uiautomator2.server
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e shell pm list packages io.appium.uiautomator2.server'
[debug] [ADB] App is not installed
[debug] [ADB] App 'D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk' not installed. Installing
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e install D\:\\software\\nodejs\\node_global\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-v1.12.0.apk'
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e install D\:\\software\\nodejs\\node_global\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-v1.12.0.apk'
[debug] [UiAutomator2] Deleting UiAutomator2 session
[debug] [UiAutomator2] Deleting UiAutomator2 server session
[UiAutomator2] Did not get confirmation UiAutomator2 deleteSession worked; Error was: Error: Trying to proxy a session command without session id
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e shell am force-stop com.tencent.mm'
[debug] [ADB] Removing forwarded port socket connection: 8200
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e forward --remove tcp\:8200'
[debug] [ADB] Running 'D:\software\sdk\platform-tools\adb.exe -P 5037 -s 4b62e63e forward --remove tcp\:8200'
[UiAutomator2] Unable to remove port forward 'Error executing adbExec. Original error: 'Command 'D\:\\software\\sdk\\platform-tools\\adb.exe -P 5037 -s 4b62e63e forward --remove tcp\:8200' exited with code 1'; Stderr: 'error: listener 'tcp:8200' not found'; Code: '1''
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1529640578597 (12:09:38 GMT+0800 (GMT+08:00))
[MJSONWP] Encountered internal error running command: Error: Error executing adbExec. Original error: 'Command 'D\:\\software\\sdk\\platform-tools\\adb.exe -P 5037 -s 4b62e63e install D\:\\software\\nodejs\\node_global\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-v1.12.0.apk' exited with code 1'; Stderr: 'adb: failed to install D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user]'; Code: '1'
[MJSONWP] at ADB.execFunc$ (D:\software\nodejs\node_global\node_modules\appium\node_modules\appium-adb\lib\tools\system-calls.js:317:13)
[MJSONWP] at tryCatch (D:\software\nodejs\node_global\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40)
[MJSONWP] at GeneratorFunctionPrototype.invoke [as _invoke] (D:\software\nodejs\node_global\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)
[MJSONWP] at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (D:\software\nodejs\node_global\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21)
[MJSONWP] at GeneratorFunctionPrototype.invoke (D:\software\nodejs\node_global\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[HTTP] <-- POST /wd/hub/session 500 34902 ms - 710
[HTTP]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment