I use:
If I try to start app through Appium on phone-got error:
An unknown server-side error occurred while processing the command. Original error: Cannot start the 'name' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Error executing adbExec. Original error: 'Command 'C:\pathtoadb\platform-tools\adb.exe -P 5037 -s 45678888 shell am start -W -n appname -S' timed out after 20000ms'. Try to increase the 20000ms adb execution timeout represented by 'adbExecTimeout' capability
I have a bare working configuration for real Pixel Android Device
{
"automationName": "UiAutomator2",
"platformName": "Android",
"platformVersion": "8.1",
"deviceName": "Pixel",
"appPackage": "com.disney.wdw.android.debug",
"appActivity": "com.disney.wdpro.park.activities.LoaderActivity",
"udid": "<unique_identifier>
}
Notes:
Refer to Appium main site for full documentation of capability usage. http://appium.io/docs/en/writing-running-appium/caps/