-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bypassing adb start-server When Connecting to a Remote ADB Host #19940
Comments
Please provide the full server log |
This problem is solved with this merge ? My Java Test code and Appium Logs are here. Test Code
Appium Log |
In the above log I can observe
error. This is an adb-specific error. Google says https://stackoverflow.com/questions/21049253/adb-devices-return-error-protocol-fault-no-status |
Closed because of no response |
First of all, I apologize for the late response. I understand the issue you're mentioning, but when I execute a similar code on the same machine, I receive a response like the one shown below.
My only goal is this: For test conditions coming through UiAutomator2, I don't want it to execute the "adb start-server" command. If it doesn't attempt to start the server, the process will continue successfully. |
With the most recent version of uia2 driver no |
I am currently setting up Appium through Docker and installing Appium via npm. Below are the relevant parts of my setup code:
When Appium starts, it logs the following information about the Appium version and the UiAutomator2 driver. It appears that the suppressKillServer feature is not working with these versions. Which version should I upgrade to? [Appium] Welcome to Appium v2.5.1 |
version 3.0.5 or newer |
Problem solved . Thanks |
Hello,
I am encountering an issue with Appium where it attempts to restart the ADB server even though I have specified a remote ADB host in my capabilities. This behavior is causing conflicts because my ADB server is already running remotely and does not need to be restarted. I am looking for a way to bypass or prevent Appium from executing the adb start-server command when initiating tests with a remote ADB host.
Here are the capabilities I'm using to define the remote ADB host and port, as well as an attempt to suppress killing the server:
caps.setCapability("appium:remoteAdbHost", "10.0.15.52");
caps.setCapability("appium:adbPort", 5055);
caps.setCapability("appium:suppressKillServer", true);
Despite these settings, Appium still attempts to start the ADB server, as seen in the logs:
[ADB] Running '/opt/android/platform-tools/adb -H 10.0.15.52 -P 5055 start-server'
[ADB] adb server version (39) doesn't match this client (41); killing...
[ADB] ADB server didn't ACK
I wish to directly proceed to the device list retrieval without Appium trying to start the ADB server, since it is already running on the remote host (10.0.15.52 on port 5055). This step seems unnecessary for my setup and causes the setup to fail.
Could you please advise on how to configure Appium to skip the adb start-server step when a remote ADB host is specified? Is there a capability or a configuration option that I'm missing, or is this an issue that needs to be addressed?
Thank you for your help.
The text was updated successfully, but these errors were encountered: