'Appium complains: Calling from not trusted UID

When I am running Appium I get following errors and can't figure out what the problem is:

2021-11-14 20:45:36.997 3376-3376/? D/AndroidRuntime: Calling main entry com.android.commands.am.Am

2021-11-14 20:45:37.003 1246-2165/? I/ActivityManager: Force stopping io.appium.uiautomator2.server appid=10328 user=0: start instr

2021-11-14 20:45:37.003 1246-2165/? I/ActivityManager: Killing 3077:io.appium.uiautomator2.server/u0a328 (adj 0): stop io.appium.uiautomator2.server

2021-11-14 20:45:37.004 1246-2165/? W/ActivityManager: Crash of app io.appium.uiautomator2.server running instrumentation ComponentInfo{io.appium.uiautomator2.server.test/androidx.test.runner.AndroidJUnitRunner}

2021-11-14 20:45:37.004 1246-2165/? I/ActivityManager: Force stopping io.appium.uiautomator2.server appid=10328 user=0: finished inst

2021-11-14 20:45:37.005 1246-2165/? D/GameManagerService: identifyForegroundApp. com.sec.android.app.launcher, mCurrentUserId: 0, callerUserId: 0

2021-11-14 20:45:37.005 1246-2165/? D/GamePkgDataHelper: getGamePkgData(). com.sec.android.app.launcher

2021-11-14 20:45:37.005 1246-2165/? D/GameManagerService: identifyForegroundApp. com.sec.android.app.launcher, mCurrentUserId: 0, callerUserId: 0

2021-11-14 20:45:37.005 1246-2165/? D/GamePkgDataHelper: getGamePkgData(). com.sec.android.app.launcher

2021-11-14 20:45:37.005 3055-3072/? W/Binder: Caught a RuntimeException from the binder stub implementation. java.lang.SecurityException: Calling from not trusted UID! at android.app.UiAutomationConnection.throwIfCalledByNotTrustedUidLocked(UiAutomationConnection.java:541) at android.app.UiAutomationConnection.shutdown(UiAutomationConnection.java:445) at android.app.IUiAutomationConnection$Stub.onTransact(IUiAutomationConnection.java:390) at android.os.Binder.execTransactInternal(Binder.java:1056) at android.os.Binder.execTransact(Binder.java:1029)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source