Appium setup issues


Trying to setup Appium with Android but keep getting errors. I have an APK manually installed to an actual device. I have followed the instructions on the error message with no luck.

My Desired capabilities are set to:

>   "appPackage": "",   "appActivity":
> "",   "platformName":
> "Android",   "deviceName": "Google Pixel 3a",   "udid": "99NBY3DL9K", 
> "automationName": "UiAutomator2",

Get this error:

An unknown server-side error occurred while processing the command. Original error: Cannot start the '' application. Visit for troubleshooting. Original error: Error executing adbExec. Original error: 'Command '/Users/pops/Library/Android/sdk/platform-tools/adb -P 5037 -s 99NBY3DL9K shell am start -W -n -S' exited with code 255'; Stderr: 'Exception occurred while executing 'start': java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10000000 } from null (pid=7171, uid=2000) not exported from uid 10304 at at at at at at at at android.os.BasicShellCommandHandler.exec( at android.os.ShellCommand.exec( at at android.os.Binder.shellCommand( at android.os.Binder.onTransact( at$Stub.onTransact( at at android.os.Binder.execTransactInternal( at android.os.Binder.execTransact('; Code: '255' ...

asked on Stack Overflow Feb 13, 2021 by Kam ahmad

1 Answer


Enable Developer:

Navigate to Settings>About and click Build Number multiple time

Enabled Remote Debugging:

Goto Settings>System>Developer options>Debugging>USB Debugging and enable it:

enter image description here

Connect phone to laptop usb:

Now search for device:

Open cmd and run:

adb devices

You will get prompt in phone for authorization accept it:

enter image description here

Select always allow from this computer

The output of abd devices command should be like:

enter image description here

Accept the prompt and execute the command till you get device instead of unauthorized as output of the command:


if you are not getting above prompt then , click revoke ub authotization Then switch off developer mode using the toogle button and then start the process again from Enable Developer mode in Oneplus:

Read more detailed answer at :

answered on Stack Overflow Feb 15, 2021 by PDHide

User contributions licensed under CC BY-SA 3.0