I can't record google play store on my device


#1

when i’m trying to record from play store this message appear

appuium log :
e[35m[Appium]e[39m Welcome to Appium v1.8.1
e[35m[Appium]e[39m Non-default server args:
e[35m[Appium]e[39m port: 62160
e[35m[Appium]e[39m chromeDriverPort: 62161
e[35m[Appium]e[39m tmpDir: C:\Users\AHMEDZ~1\AppData\Local\Temp\Katalon\Appium\Temp1546943166385
e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:62160
e[35m[HTTP]e[39m e[37m–>e[39m e[37mGETe[39m e[37m/wd/hub/statuse[39m
e[35m[HTTP]e[39m e[90m{}e[39m
[debug] e[35m[MJSONWP]e[39m Calling AppiumDriver.getStatus() with args: []
[debug] e[35m[MJSONWP]e[39m Responding to client with driver.getStatus() result: {“build”:{“version”:“1.8.1”,“revision”:null}}
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m11 ms - 83e[39m
e[35m[HTTP]e[39m e[90me[39m
e[35m[HTTP]e[39m e[37m–>e[39m e[37mGETe[39m e[37m/wd/hub/statuse[39m
e[35m[HTTP]e[39m e[90m{}e[39m
[debug] e[35m[MJSONWP]e[39m Calling AppiumDriver.getStatus() with args: []
[debug] e[35m[MJSONWP]e[39m Responding to client with driver.getStatus() result: {“build”:{“version”:“1.8.1”,“revision”:null}}
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m4 ms - 83e[39m
e[35m[HTTP]e[39m e[90me[39m
e[35m[HTTP]e[39m e[37m–>e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m
e[35m[HTTP]e[39m e[90m{“desiredCapabilities”:{“app”:“D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk”,“appWaitActivity”:"",“autoGrantPermissions”:true,“automationName”:“uiautomator2”,“deviceId”:“dc7c2c6”,“deviceName”:“OPPO RMX1801 (Android 8.1.0)”,“fullReset”:false,“newCommandTimeout”:1800,“noReset”:true,“platform”:“ANDROID”,“platformName”:“Android”,“udid”:“dc7c2c6”},“capabilities”:{“desiredCapabilities”:{“app”:“D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk”,“appWaitActivity”:"",“autoGrantPermissions”:true,“automationName”:“uiautomator2”,“deviceId”:“dc7c2c6”,“deviceName”:“OPPO RMX1801 (Android 8.1.0)”,“fullReset”:false,“newCommandTimeout”:1800,“noReset”:true,“platform”:“ANDROID”,“platformName”:“Android”,“udid”:“dc7c2c6”},“firstMatch”:[{“platformName”:“android”}]}}e[39m
[debug] e[35m[MJSONWP]e[39m Calling AppiumDriver.createSession() with args: [{“app”:“D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk”,“appWaitActivity”:"",“autoGrantPermissions”:true,“automationName”:“uiautomator2”,“deviceId”:“dc7c2c6”,“deviceName”:“OPPO RMX1801 (Android 8.1.0)”,“fullReset”:false,“newCommandTimeout”:1800,“noReset”:true,“platform”:“ANDROID”,“platformName”:“Android”,“udid”:“dc7c2c6”},null,{“desiredCapabilities”:{“app”:“D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk”,“appWaitActivity”:"",“autoGrantPermissions”:true,“automationName”:“uiautomator2”,“deviceId”:“dc7c2c6”,“deviceName”:“OPPO RMX1801 (Android 8.1.0)”,“fullReset”:false,“newCommandTimeout”:1800,“noReset”:true,“platform”:“ANDROID”,“platformName”:“Android”,“udid”:“dc7c2c6”},“firstMatch”:[{“platformName”:“android”}]}]
[debug] e[35m[BaseDriver]e[39m Event ‘newSessionRequested’ logged at 1546943171302 (12:26:11 GMT+0200 (Eastern European Standard Time))
e[35m[Appium]e[39m Could not parse W3C capabilities: ‘deviceName’ can’t be blank. Falling back to JSONWP protocol.
e[35m[Appium]e[39m The following capabilities were provided in the JSONWP desired capabilities that are missing in W3C capabilities: [“app”,“appWaitActivity”,“autoGrantPermissions”,“automationName”,“deviceId”,“deviceName”,“fullReset”,“newCommandTimeout”,“noReset”,“platform”,“platformName”,“udid”]. Falling back to JSONWP protocol.
e[35m[Appium]e[39m Creating new AndroidUiautomator2Driver (v1.12.0) session
e[35m[Appium]e[39m Capabilities:
e[35m[Appium]e[39m app: D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk
e[35m[Appium]e[39m appWaitActivity: *
e[35m[Appium]e[39m autoGrantPermissions: true
e[35m[Appium]e[39m automationName: uiautomator2
e[35m[Appium]e[39m deviceId: dc7c2c6
e[35m[Appium]e[39m deviceName: OPPO RMX1801 (Android 8.1.0)
e[35m[Appium]e[39m fullReset: false
e[35m[Appium]e[39m newCommandTimeout: 1800
e[35m[Appium]e[39m noReset: true
e[35m[Appium]e[39m platform: ANDROID
e[35m[Appium]e[39m platformName: Android
e[35m[Appium]e[39m udid: dc7c2c6
[debug] e[35m[BaseDriver]e[39m Creating session with MJSONWP desired capabilities: {“app”:"D:\com.android.ven…
e[35m[BaseDriver]e[39m The following capabilities were provided, but are not recognized by appium: deviceId, platform.
e[35m[BaseDriver]e[39m Session created with session id: 66a86381-9d90-427d-ae44-48c014c6cedd
e[35m[BaseDriver]e[39m Using local app ‘D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk’
[debug] e[35m[UiAutomator2]e[39m Checking whether app is actually present
[debug] e[35m[AndroidDriver]e[39m Getting Java version
e[35m[AndroidDriver]e[39m Java version is: 1.8.0_181

e[35m[ADB]e[39m Checking whether adb is present
e[35m[ADB]e[39m Found 1 ‘build-tools’ folders under ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk’ (newest first):
e[35m[ADB]e[39m C:/Users/Ahmed Zanoon/.katalon/tools/android_sdk/build-tools/28.0.3
e[35m[ADB]e[39m Using adb.exe from C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe
e[35m[AndroidDriver]e[39m Retrieving device list
[debug] e[35m[ADB]e[39m Trying to find a connected android device
[debug] e[35m[ADB]e[39m Getting connected devices…
[debug] e[35m[ADB]e[39m 1 device(s) connected
e[35m[AndroidDriver]e[39m Using device: dc7c2c6
[debug] e[35m[ADB]e[39m Setting device id to dc7c2c6
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell getprop ro.build.version.sdk’
[debug] e[35m[ADB]e[39m Current device property ‘ro.build.version.sdk’: 27
[debug] e[35m[ADB]e[39m Device API level: 27
[debug] e[35m[AndroidDriver]e[39m Parsing package and activity from app manifest
e[35m[ADB]e[39m Using the alternative activity name detection method because of: Could not find apkanalyzer.bat in C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\apkanalyzer.bat,C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\emulator\apkanalyzer.bat,C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\tools\apkanalyzer.bat,C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\tools\bin\apkanalyzer.bat,C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\build-tools\28.0.3\apkanalyzer.bat. Do you have the Android SDK installed at ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk’?
e[35m[ADB]e[39m Checking whether aapt is present
e[35m[ADB]e[39m Using aapt.exe from C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\build-tools\28.0.3\aapt.exe
e[35m[ADB]e[39m Extracting package and launch activity from manifest
e[35m[ADB]e[39m Package name: ‘com.android.vending’
e[35m[ADB]e[39m Main activity name: ‘com.squareup.leakcanary.internal.DisplayLeakActivity’
[debug] e[35m[AndroidDriver]e[39m Parsed package and activity are: com.android.vending/com.squareup.leakcanary.internal.DisplayLeakActivity
e[35m[ADB]e[39m Getting device platform version
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell getprop ro.build.version.release’
[debug] e[35m[ADB]e[39m Current device property ‘ro.build.version.release’: 8.1.0
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell wm size’
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell wm density’
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell getprop ro.product.model’
[debug] e[35m[ADB]e[39m Current device property ‘ro.product.model’: RMX1801
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell getprop ro.product.manufacturer’
[debug] e[35m[ADB]e[39m Current device property ‘ro.product.manufacturer’: OPPO
[debug] e[35m[ADB]e[39m Device API level: 27
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell am force-stop io.appium.uiautomator2.server’
[debug] e[35m[ADB]e[39m Checking app cert for C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk
e[35m[ADB]e[39m Using apksigner.bat from C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\build-tools\28.0.3\apksigner.bat
[debug] e[35m[ADB]e[39m Starting ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\build-tools\28.0.3\apksigner.bat’ with args ‘verify,–print-certs,C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk’
[debug] e[35m[ADB]e[39m ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk’ is not signed with debug cert.
[debug] e[35m[ADB]e[39m Zip-aligning ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk’
e[35m[ADB]e[39m Checking whether zipalign is present
e[35m[ADB]e[39m Using zipalign.exe from C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\build-tools\28.0.3\zipalign.exe
[debug] e[35m[ADB]e[39m Signing ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk’ with default cert
[debug] e[35m[ADB]e[39m Starting ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\build-tools\28.0.3\apksigner.bat’ with args ‘sign,–key,C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8,–cert,C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem,C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk’
e[35m[ADB]e[39m Cannot use apksigner tool for signing. Defaulting to sign.jar. Original error: Command ‘‘C:\Users\Ahmed Zanoon\.katalon\tools\android_sdk\build-tools\28.0.3\apksigner.bat’ sign --key ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8’ --cert ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem’ ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk’’ exited with code 1; StdErr: ‘C:\Users\Ahmed’ is not recognized as an internal or external command,

e[35m[ADB]e[39m operable program or batch file.

e[35m[ADB]e[39m
[debug] e[35m[ADB]e[39m Resigning apk.
[debug] e[35m[ADB]e[39m Checking app cert for C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk
[debug] e[35m[ADB]e[39m Starting ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\build-tools\28.0.3\apksigner.bat’ with args ‘verify,–print-certs,C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’
[debug] e[35m[ADB]e[39m ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’ is not signed with debug cert.
[debug] e[35m[ADB]e[39m Zip-aligning ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’
[debug] e[35m[ADB]e[39m Signing ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’ with default cert
[debug] e[35m[ADB]e[39m Starting ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\build-tools\28.0.3\apksigner.bat’ with args ‘sign,–key,C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8,–cert,C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem,C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’
e[35m[ADB]e[39m Cannot use apksigner tool for signing. Defaulting to sign.jar. Original error: Command ‘‘C:\Users\Ahmed Zanoon\.katalon\tools\android_sdk\build-tools\28.0.3\apksigner.bat’ sign --key ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8’ --cert ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem’ ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’’ exited with code 1; StdErr: ‘C:\Users\Ahmed’ is not recognized as an internal or external command,

e[35m[ADB]e[39m operable program or batch file.

e[35m[ADB]e[39m
[debug] e[35m[ADB]e[39m Resigning apk.
[debug] e[35m[ADB]e[39m Uninstalling io.appium.uiautomator2.server
[debug] e[35m[ADB]e[39m Getting install status for io.appium.uiautomator2.server
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell pm list packages io.appium.uiautomator2.server’
[debug] e[35m[ADB]e[39m App is installed
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell am force-stop io.appium.uiautomator2.server’
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 uninstall io.appium.uiautomator2.server’
[debug] e[35m[ADB]e[39m ‘adb uninstall io.appium.uiautomator2.server’ command output: Success
e[35m[ADB]e[39m io.appium.uiautomator2.server was successfully uninstalled
[debug] e[35m[ADB]e[39m Uninstalling io.appium.uiautomator2.server.test
[debug] e[35m[ADB]e[39m Getting install status for io.appium.uiautomator2.server.test
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell pm list packages io.appium.uiautomator2.server.test’
[debug] e[35m[ADB]e[39m App is installed
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell am force-stop io.appium.uiautomator2.server.test’
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 uninstall io.appium.uiautomator2.server.test’
[debug] e[35m[ADB]e[39m ‘adb uninstall io.appium.uiautomator2.server.test’ command output: Success
e[35m[ADB]e[39m io.appium.uiautomator2.server.test was successfully uninstalled
[debug] e[35m[ADB]e[39m Getting install status for io.appium.uiautomator2.server
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell pm list packages io.appium.uiautomator2.server’
[debug] e[35m[ADB]e[39m App is not installed
[debug] e[35m[ADB]e[39m App ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk’ not installed. Installing
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 install ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk’’
[debug] e[35m[ADB]e[39m Install command stdout: Success
[debug] e[35m[ADB]e[39m Getting install status for io.appium.uiautomator2.server.test
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell pm list packages io.appium.uiautomator2.server.test’
[debug] e[35m[ADB]e[39m App is not installed
[debug] e[35m[ADB]e[39m App ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’ not installed. Installing
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 install ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’’
[debug] e[35m[ADB]e[39m Install command stdout: Success
[debug] e[35m[UiAutomator2]e[39m Waiting up to 20000ms for instrumentation ‘io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner’ to be available
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell pm list instrumentation’
[debug] e[35m[UiAutomator2]e[39m Instrumentation ‘io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner’ available
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 wait-for-device’
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell echo ping’
[debug] e[35m[AndroidDriver]e[39m Pushing settings apk to device…
[debug] e[35m[ADB]e[39m Getting install status for io.appium.settings
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell pm list packages io.appium.settings’
[debug] e[35m[ADB]e[39m App is installed
[debug] e[35m[ADB]e[39m Getting package info for ‘io.appium.settings’
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell dumpsys package io.appium.settings’
[debug] e[35m[ADB]e[39m The installed ‘io.appium.settings’ package does not require upgrade (15 > 5)
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell ps’
[debug] e[35m[AndroidDriver]e[39m io.appium.settings is already running. There is no need to reset its permissions.
[debug] e[35m[ADB]e[39m Device API level: 27
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell appops set io.appium.settings android:mock_location allow’
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell appops set io.appium.settings android:mock_location allow’
e[35m[AndroidDriver]e[39m Unable to set mock location for app ‘io.appium.settings’: Error executing adbExec. Original error: ‘Command ‘‘C:\Users\Ahmed Zanoon\.katalon\tools\android_sdk\platform-tools\adb.exe’ -P 5037 -s dc7c2c6 shell appops set io.appium.settings android:mock_location allow’ exited with code 4294967295’; Stderr: 'Security exception: uid 2000 does not have android.permission.UPDATE_APP_OPS_STATS.

e[35m[AndroidDriver]e[39m

e[35m[AndroidDriver]e[39m java.lang.SecurityException: uid 2000 does not have android.permission.UPDATE_APP_OPS_STATS.

e[35m[AndroidDriver]e[39m at android.app.ContextImpl.enforce(ContextImpl.java:1810)

e[35m[AndroidDriver]e[39m at android.app.ContextImpl.enforcePermission(ContextImpl.java:1823)

e[35m[AndroidDriver]e[39m at com.android.server.AppOpsService.setMode(AppOpsService.java:674)

e[35m[AndroidDriver]e[39m at com.android.server.AppOpsService.onShellCommand(AppOpsService.java:2026)

e[35m[AndroidDriver]e[39m at com.android.server.AppOpsService$Shell.onCommand(AppOpsService.java:1800)

e[35m[AndroidDriver]e[39m at android.os.ShellCommand.exec(ShellCommand.java:96)

e[35m[AndroidDriver]e[39m at com.android.server.AppOpsService.onShellCommand(AppOpsService.java:1974)

e[35m[AndroidDriver]e[39m at android.os.Binder.shellCommand(Binder.java:594)

e[35m[AndroidDriver]e[39m at android.os.Binder.onTransact(Binder.java:492)

e[35m[AndroidDriver]e[39m at com.android.internal.app.IAppOpsService$Stub.onTransact(IAppOpsService.java:341)

e[35m[AndroidDriver]e[39m at android.os.Binder.execTransact(Binder.java:697)’; Code: ‘4294967295’
e[35m[AndroidDriver]e[39m setDeviceLanguageCountry requires language or country.
e[35m[AndroidDriver]e[39m Got language: ‘null’ and country: ‘null’
[debug] e[35m[Logcat]e[39m Starting logcat capture
[debug] e[35m[AndroidDriver]e[39m Pushing unlock helper app to device…
[debug] e[35m[ADB]e[39m Getting install status for io.appium.unlock
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell pm list packages io.appium.unlock’
[debug] e[35m[ADB]e[39m App is installed
[debug] e[35m[ADB]e[39m Getting package info for ‘io.appium.unlock’
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell dumpsys package io.appium.unlock’
[debug] e[35m[ADB]e[39m The installed ‘io.appium.unlock’ package does not require upgrade (‘2.0.0’ >= ‘2.0.0’)
[debug] e[35m[UiAutomator2]e[39m Forwarding UiAutomator2 Server port 6790 to 8200
[debug] e[35m[ADB]e[39m Forwarding system: 8200 to device: 6790
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 forward tcp:8200 tcp:6790’
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell rm -rf /data/local/tmp/strings.json’
[debug] e[35m[AndroidDriver]e[39m Extracting strings from apk
[debug] e[35m[AndroidDriver]e[39m D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk
[debug] e[35m[AndroidDriver]e[39m null
[debug] e[35m[AndroidDriver]e[39m C:\Users\AHMEDZ~1\AppData\Local\Temp\Katalon\Appium\Temp1546943166385\com.android.vending
[debug] e[35m[ADB]e[39m Extracting strings for language: default
e[35m[ADB]e[39m Successfully extracted 2153 strings from ‘D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk’ resources for ‘(default)’ configuration
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 push C:\Users\AHMEDZ~1\AppData\Local\Temp\Katalon\Appium\Temp1546943166385\com.android.vending\strings.json /data/local/tmp’
[debug] e[35m[ADB]e[39m Checking app cert for D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk
[debug] e[35m[ADB]e[39m Starting ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\build-tools\28.0.3\apksigner.bat’ with args ‘verify,–print-certs,D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk’
[debug] e[35m[ADB]e[39m ‘D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk’ is not signed with debug cert.
[debug] e[35m[ADB]e[39m Zip-aligning ‘D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk’
[debug] e[35m[ADB]e[39m Signing ‘D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk’ with default cert
[debug] e[35m[ADB]e[39m Starting ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\build-tools\28.0.3\apksigner.bat’ with args ‘sign,–key,C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8,–cert,C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem,D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk’
e[35m[ADB]e[39m Cannot use apksigner tool for signing. Defaulting to sign.jar. Original error: Command ‘‘C:\Users\Ahmed Zanoon\.katalon\tools\android_sdk\build-tools\28.0.3\apksigner.bat’ sign --key ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.pk8’ --cert ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-adb\keys\testkey.x509.pem’ D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk’ exited with code 1; StdErr: ‘C:\Users\Ahmed’ is not recognized as an internal or external command,

e[35m[ADB]e[39m operable program or batch file.

e[35m[ADB]e[39m
[debug] e[35m[ADB]e[39m Resigning apk.
[debug] e[35m[ADB]e[39m Getting install status for com.android.vending
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell pm list packages com.android.vending’
[debug] e[35m[ADB]e[39m App is installed
[debug] e[35m[ADB]e[39m Getting package info for ‘com.android.vending’
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell dumpsys package com.android.vending’
[debug] e[35m[ADB]e[39m The installed ‘com.android.vending’ package does not require upgrade (‘12.9.12’ >= ‘12.9.12’)
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell am force-stop io.appium.uiautomator2.server’
e[35m[UiAutomator2]e[39m Starting uiautomator2 server 1.12.0
e[35m[UiAutomator2]e[39m Using UIAutomator2 server from ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-v1.12.0.apk’ and test from ‘C:\Users\Ahmed Zanoon\AppData\Roaming\npm\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk’
e[35m[UiAutomator2]e[39m Running command: ‘adb -s dc7c2c6 shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner’
e[35m[UiAutomator2]e[39m Waiting up to 20000ms for UiAutomator2 to be online…
[debug] e[35m[JSONWP Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] e[35m[JSONWP Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] e[35m[JSONWP Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] e[35m[JSONWP Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] e[35m[JSONWP Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] e[35m[JSONWP Proxy]e[39m Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[debug] e[35m[JSONWP Proxy]e[39m Got response with status 200: “{“sessionId”:“SESSIONID”,“status”:0,“value”:“Status Invoked”}”
[debug] e[35m[JSONWP Proxy]e[39m Proxying [POST /session] to [POST http://localhost:8200/wd/hub/session] with body: {“desiredCapabilities”:{“platform”:“ANDROID”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“app”:“D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk”,“appWaitActivity”:"",“autoGrantPermissions”:true,“automationName”:“uiautomator2”,“deviceId”:“dc7c2c6”,“deviceName”:“OPPO RMX1801 (Android 8.1.0)”,“fullReset”:false,“newCommandTimeout”:1800,“noReset”:true,“platform”:“ANDROID”,“platformName”:“Android”,“udid”:“dc7c2c6”},“app”:“D:\com.android.vending_12.9.12-all_0_PR_224566662-81291200_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi)_apkmirror.com.apk”,“appWaitActivity”:"",“autoGrantPermissions”:true,“automationName”:“uiautomator2”,“deviceId”:“dc7c2c6”,“deviceName”:“dc7c2c6”,“fullReset”:false,“newCommandTimeout”:1800,“noReset”:true,“platformName”:“Android”,“udid”:“dc7c2c6”,"de…
[debug] e[35m[JSONWP Proxy]e[39m Got response with status 200: {“sessionId”:“4e3eb059-a267-4db9-83d3-9406f125791e”,“status”:0,“value”:“Created Session”}
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell dumpsys window’
e[35m[AndroidDriver]e[39m Screen already unlocked, doing nothing
e[35m[UiAutomator2]e[39m UiAutomator2 did not start the activity we were waiting for, ‘com.android.vending/*’. Starting it ourselves
[debug] e[35m[ADB]e[39m Device API level: 27
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell am start -W -n com.android.vending/com.squareup.leakcanary.internal.DisplayLeakActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000’
[debug] e[35m[ADB]e[39m We tried to start an activity that doesn’t exist, retrying with ‘.com.squareup.leakcanary.internal.DisplayLeakActivity’ activity name
[debug] e[35m[ADB]e[39m Device API level: 27
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell am start -W -n com.android.vending/.com.squareup.leakcanary.internal.DisplayLeakActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000’
[debug] e[35m[UiAutomator2]e[39m Deleting UiAutomator2 session
[debug] e[35m[UiAutomator2]e[39m Deleting UiAutomator2 server session
[debug] e[35m[JSONWP Proxy]e[39m Proxying [DELETE /] to [DELETE http://localhost:8200/wd/hub/session/4e3eb059-a267-4db9-83d3-9406f125791e] with no body
[debug] e[35m[JSONWP Proxy]e[39m Got response with status 200: “{“sessionId”:“4e3eb059-a267-4db9-83d3-9406f125791e”,“status”:0,“value”:“Session deleted”}”
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 shell am force-stop com.android.vending’
[debug] e[35m[Logcat]e[39m Stopping logcat capture
[debug] e[35m[ADB]e[39m Removing forwarded port socket connection: 8200
[debug] e[35m[ADB]e[39m Running ‘C:\Users\Ahmed Zanoon.katalon\tools\android_sdk\platform-tools\adb.exe -P 5037 -s dc7c2c6 forward --remove tcp:8200’
[debug] e[35m[BaseDriver]e[39m Event ‘newSessionStarted’ logged at 1546943215585 (12:26:55 GMT+0200 (Eastern European Standard Time))
e[35m[HTTP]e[39m e[37m<-- POST /wd/hub/session e[39me[31m500e[39m e[90m44314 ms - 450e[39m
e[35m[HTTP]e[39m e[90me[39m
[debug] e[35m[UiAutomator2]e[39m [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:.
[debug] e[35m[UiAutomator2]e[39m [UIAutomator2] Time: 4.085
[debug] e[35m[UiAutomator2]e[39m [UIAutomator2] OK (1 test)
katalon%20error


#2

Please help to provde the test script


#3

I didn’t write the script i using mobile record to generate the acript . Simply i downloaded google play store apk and setup katalon step by step on 2 laptops and same error appear …