adbExecTimeout
Timeout in milliseconds used to wait for adb command execution. Defaults to 20000.
Sometimes ADB takes more time to execute and terminates after 20000 ms. You can set the timeout with this capability. To make your script more stable you can use this capability.
capabilities.setCapability("adbExecTimeout", 90000);