Testing a mobile app that requires input from a WebUI

I’m testing a mobile app that requires an input from a Web UI. I’m working from a MAC.
I have created two tests,
Test 1. Runs on the Web UI and stores the required information on a GlobalVariable. The test runs Ok when started as a Chrome WebUI.
Test 2. Runs on Android and call the test above when the info in available and needed.
My problem: When I call test 1. from the test 2. There is the following error:

5-02-2018 11:11:46 AM - [INFO] - User set preference: [‘deviceId’, ‘ec7be894’]

[HTTP] → GET /wd/hub/status

[HTTP] {}

[HTTP] ← GET /wd/hub/status 200 17 ms - 55


[HTTP] → POST /wd/hub/session

[HTTP] {“desiredCapabilities”:{“browserName”:“Chrome”,“deviceId”:“ec7be894”,“deviceName”:“samsung SM-G930U (Android 7.0)”,“newCommandTimeout”:1800,“platform”:“ANDROID”,“platformName”:“Android”,“udid”:“ec7be894”},“capabilities”:{“desiredCapabilities”:{“browserName”:“Chrome”,“deviceId”:“ec7be894”,“deviceName”:“samsung SM-G930U (Android 7.0)”,“newCommandTimeout”:1800,“platform”:“ANDROID”,“platformName”:“Android”,“udid”:“ec7be894”},“firstMatch”:[{“browserName”:“Chrome”,“platformName”:“android”}]}}

[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: [“browserName”,“deviceId”,“deviceName”,“newCommandTimeout”,“platform”,“platformName”,“udid”]. Falling back to JSONWP protocol.

[Appium] Creating new AndroidDriver (v2.4.1) session

[Appium] Capabilities:

[Appium] browserName: Chrome

[Appium] deviceId: ec7be894

[Appium] deviceName: samsung SM-G930U (Android 7.0)

[Appium] newCommandTimeout: 1800

[Appium] platform: ANDROID

[Appium] platformName: Android

[Appium] udid: ec7be894

[BaseDriver] The following capabilities were provided, but are not recognized by appium: deviceId, platform.

[BaseDriver] Session created with session id: 59f9bec8-9c97-41a2-a327-3084ca759fb8

[AndroidDriver] Java version is: 1.8.0_102

[AndroidDriver] We’re going to run a Chrome-based session

[AndroidDriver] Chrome-type package and activity are com.android.chrome and com.google.android.apps.chrome.Main

[ADB] Checking whether adb is present

[ADB] Using adb from /Users/italo.cadamuro/.katalon/tools/android_sdk/platform-tools/adb

[AndroidDriver] Retrieving device list

[AndroidDriver] Using device: ec7be894

[ADB] Checking whether adb is present

[ADB] Using adb from /Users/italo.cadamuro/.katalon/tools/android_sdk/platform-tools/adb

[AndroidDriver] App file was not listed, instead we’re going to run com.android.chrome directly on the device

[AndroidDriver] Starting Android session

[ADB] Checking whether aapt is present

[ADB] Using aapt from /Users/italo.cadamuro/.katalon/tools/android_sdk/build-tools/28.0.0/aapt

[AndroidDriver] setDeviceLanguageCountry requires language or country.

[AndroidDriver] Got language: ‘null’ and country: ‘null’

[ADB] Checking whether aapt is present

[ADB] Using aapt from /Users/italo.cadamuro/.katalon/tools/android_sdk/build-tools/28.0.0/aapt

[ADB] Getting device platform version

[AndroidDriver] No app sent in, not parsing package/activity

[UiAutomator] Error while killing uiAutomator: Error: Unable to kill uiautomator processes. Original error: Error executing adbExec. Original error: ‘Command ‘/Users/italo.cadamuro/.katalon/tools/android_sdk/platform-tools/adb -P 5037 -s ec7be894 shell kill -0 17318’ exited with code 1’; Stderr: ‘/system/bin/sh: kill: 17318: Operation not permitted’; Code: ‘1’

Any suggestion?