Skip to content

Instantly share code, notes, and snippets.

@aaltat
Created October 16, 2017 14:08
Show Gist options
  • Save aaltat/15db505eb62bc5e1096de264a8648156 to your computer and use it in GitHub Desktop.
Save aaltat/15db505eb62bc5e1096de264a8648156 to your computer and use it in GitHub Desktop.
Appium server log when starting android settings
C:\workspace>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":{"alwaysMatch":{"platformName":"android"},
"firstMatch":[{}]},"desiredCapabilities":{"platformVersion":"7.0","appPackage":"com.androi
d.settings","platformName":"android","appActivity":".Settings","deviceName":"Galaxy J5 (20
17)"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformVersion":"7.0
","appPackage":"com.android.settings","platformName":"android","appActivity":".Settings","
deviceName":"Galaxy J5 (2017)"},null,{"alwaysMatch":{"platformName":"android"},"firstMatch
":[{}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1508161303864 (16:41:43 GMT+030
0 (FLE Daylight Time))
[Appium] Creating new AndroidDriver (v1.28.1) session
[Appium] Capabilities:
[Appium] platformVersion: '7.0'
[Appium] appPackage: 'com.android.settings'
[Appium] platformName: 'android'
[Appium] appActivity: '.Settings'
[Appium] deviceName: 'Galaxy J5 (2017)'
[BaseDriver] Session created with session id: f76c3704-38d0-45e5-a010-760722968a80
[debug] [AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_144
[ADB] Checking whether adb is present
[ADB] Using adb.exe from C:\Aps\Android-SDK\ADB_latest\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.0'
[debug] [ADB] Setting device id to 52005226ec445479
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","getprop","ro.build.version.release"]
[debug] [ADB] Current device property 'ro.build.version.release': 7.0
[AndroidDriver] Using device: 52005226ec445479
[ADB] Checking whether adb is present
[ADB] Using adb.exe from C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe
[debug] [ADB] Setting device id to 52005226ec445479
[AndroidDriver] App file was not listed, instead we're going to run com.android.settings d
irectly on the device
[debug] [AndroidDriver] Checking whether package is present on the device
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","pm","list","packages","com.android.settings"]
[AndroidDriver] Starting Android session
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","wait-for-device"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","echo","ping"]
[debug] [Logcat] Starting logcat capture
[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 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","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 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","am","force-stop","io.appium.settings"]
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","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 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","pm","list","packages","io.appium.settings"]
[debug] [ADB] App is not installed
[debug] [ADB] App 'C:\Users\taalto.CRFHEALTH\AppData\Roaming\npm\node_modules\appium\node_
modules\io.appium.settings\app\build\outputs\apk\settings_apk-debug.apk' not installed. In
stalling
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","install","C:\\Users\\taalto.CRFHEALTH\\AppData\\Roaming\
\npm\\node_modules\\appium\\node_modules\\io.appium.settings\\app\\build\\outputs\\apk\\se
ttings_apk-debug.apk"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","getprop","ro.build.version.sdk"]
[debug] [ADB] Current device property 'ro.build.version.sdk': 24
[debug] [ADB] Device API level: 24
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","dumpsys","package","io.appium.settings"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","pm","dump","io.appium.settings"]
[debug] [ADB] Got the following command chunks to execute: pm,grant,io.appium.settings,and
roid.permission.READ_PHONE_STATE,;,pm,grant,io.appium.settings,android.permission.WRITE_SE
TTINGS,;,pm,grant,io.appium.settings,android.permission.ACCESS_FINE_LOCATION,;,pm,grant,io
.appium.settings,android.permission.ACCESS_COARSE_LOCATION,;,pm,grant,io.appium.settings,a
ndroid.permission.ACCESS_MOCK_LOCATION,;,pm,grant,io.appium.settings,android.permission.SE
T_ANIMATION_SCALE,;
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","pm","grant","io.appium.settings","android.permis
sion.READ_PHONE_STATE",";","pm","grant","io.appium.settings","android.permission.WRITE_SET
TINGS",";","pm","grant","io.appium.settings","android.permission.ACCESS_FINE_LOCATION",";"
,"pm","grant","io.appium.settings","android.permission.ACCESS_COARSE_LOCATION",";","pm","g
rant","io.appium.settings","android.permission.ACCESS_MOCK_LOCATION",";","pm","grant","io.
appium.settings","android.permission.SET_ANIMATION_SCALE",";"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","ps"]
[debug] [ADB] Device API level: 24
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","am","start","-W","-n","io.appium.settings/.Setti
ngs","-a","android.intent.action.MAIN","-c","android.intent.category.LAUNCHER","-f","0x102
00000"]
[debug] [ADB] Device API level: 24
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","appops","set","io.appium.settings","android:mock
_location","allow"]
[debug] [AndroidDriver] Pushing unlock helper app to device...
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","install","C:\\Users\\taalto.CRFHEALTH\\AppData\\Roaming\
\npm\\node_modules\\appium\\node_modules\\appium-unlock\\bin\\unlock_apk-debug.apk"]
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","install","C:\\Users\\taalto.CRFHEALTH\\AppData\\Roaming\
\npm\\node_modules\\appium\\node_modules\\appium-unlock\\bin\\unlock_apk-debug.apk"]
[debug] [ADB] Application 'C:\Users\taalto.CRFHEALTH\AppData\Roaming\npm\node_modules\appi
um\node_modules\appium-unlock\bin\unlock_apk-debug.apk' already installed. Continuing.
[ADB] Getting device platform version
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","getprop","ro.build.version.release"]
[debug] [ADB] Current device property 'ro.build.version.release': 7.0
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","wm","size"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","getprop","ro.product.model"]
[debug] [ADB] Current device property 'ro.product.model': SM-J530F
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","getprop","ro.product.manufacturer"]
[debug] [ADB] Current device property 'ro.product.manufacturer': samsung
[AndroidDriver] No app sent in, not parsing package/activity
[debug] [AndroidDriver] No app capability. Assuming it is already on the device
[debug] [AndroidDriver] Running fast reset (stop and clear)
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","am","force-stop","com.android.settings"]
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","pm","clear","com.android.settings"]
[debug] [AndroidBootstrap] Watching for bootstrap disconnect
[debug] [ADB] Forwarding system: 4724 to device: 4724
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","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 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","push","C:\\Users\\taalto.CRFHEALTH\\AppData\\Roaming\\np
m\\node_modules\\appium\\node_modules\\appium-android-bootstrap\\bootstrap\\bin\\AppiumBoo
tstrap.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 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","ps"]
[ADB] No uiautomator process found to kill, continuing...
[debug] [UiAutomator] Starting UIAutomator
[debug] [ADB] Creating ADB subprocess with args: ["-P",5037,"-s","52005226ec445479","shell
","uiautomator","runtest","AppiumBootstrap.jar","-c","io.appium.android.bootstrap.Bootstra
p","-e","pkg","com.android.settings","-e","disableAndroidWatchers",false,"-e","acceptSslCe
rts",false]
[debug] [UiAutomator] Moving to state 'online'
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Loading json...
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Registered crash watchers.
[AndroidBootstrap] Android bootstrap socket is now connected
[debug] [ADB] Getting connected devices...
[debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Client connected
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","dumpsys","window"]
[debug] [AndroidDriver] Screen is locked, trying to unlock
[AndroidDriver] Using app unlock, this is going to be deprecated!
[AndroidDriver] Unlocking screen
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","am","force-stop","io.appium.unlock"]
[debug] [ADB] Device API level: 24
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","am","start","-W","-n","io.appium.unlock/.Unlock"
,"-a","android.intent.action.MAIN","-c","android.intent.category.LAUNCHER","-f","0x1020000
0"]
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","am","start","-W","-n","io.appium.unlock/.Unlock"
,"-a","android.intent.action.MAIN","-c","android.intent.category.LAUNCHER","-f","0x1020000
0"]
[ADB] Error: Error occured while starting App. Original error: Error executing adbExec. Or
iginal error: 'Command 'C\:\\Aps\\Android-SDK\\ADB_latest\\platform-tools\\adb.exe -P 5037
-s 52005226ec445479 shell am start -W -n io.appium.unlock/.Unlock -a android.intent.actio
n.MAIN -c android.intent.category.LAUNCHER -f 0x10200000' timed out after 20000ms'; Stderr
: ''; Code: 'null'
at Object.wrappedLogger.errorAndThrow (../../lib/logging.js:63:13)
at ADB.callee$0$0$ (../../../lib/tools/apk-utils.js:101:9)
at tryCatch (C:\Users\taalto.CRFHEALTH\AppData\Roaming\npm\node_modules\appium\node_mo
dules\babel-runtime\regenerator\runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\taalto.CRFHEALTH\AppData\R
oaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (C:\Users\taal
to.CRFHEALTH\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerato
r\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\taalto.CRFHEALTH\AppData\Roaming\npm\no
de_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
Error: Error occured while starting App. Original error: Error executing adbExec. Origina
l error: 'Command 'C\:\\Aps\\Android-SDK\\ADB_latest\\platform-tools\\adb.exe -P 5037 -s 5
2005226ec445479 shell am start -W -n io.appium.unlock/.Unlock -a android.intent.action.MAI
N -c android.intent.category.LAUNCHER -f 0x10200000' timed out after 20000ms'; Stderr: '';
Code: 'null'
at Object.wrappedLogger.errorAndThrow (../../lib/logging.js:63:13)
at ADB.callee$0$0$ (../../../lib/tools/apk-utils.js:101:9)
at tryCatch (C:\Users\taalto.CRFHEALTH\AppData\Roaming\npm\node_modules\appium\node_mo
dules\babel-runtime\regenerator\runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\taalto.CRFHEALTH\AppData\R
oaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (C:\Users\taal
to.CRFHEALTH\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerato
r\runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (C:\Users\taalto.CRFHEALTH\AppData\Roaming\npm\no
de_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37)
[debug] [AndroidDriver] Screen is locked, trying to unlock
[AndroidDriver] Using app unlock, this is going to be deprecated!
[AndroidDriver] Unlocking screen
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running 'C:\Aps\Android-SDK\ADB_latest\platform-tools\adb.exe' with args: ["
-P",5037,"-s","52005226ec445479","shell","am","force-stop","io.appium.unlock"]
[debug] [ADB] Device API level: 24
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment