Updating adb and running it throws socket address error

0

Hi, I'm wondering how it's possible to update adb without killing the existing adb server.

Running adb kill-server in install phase gives me this output: adb kill-server is not permitted. If I don't kill, then running adb devices after downloading new adb gives me:

adb server version (39) doesn't match this client (41); killing...
ADB server didn't ACK
Full server startup log: /tmp/adb.1019.log
Server had pid: 2591
--- adb starting (pid 2591) ---
adb I 01-02 18:12:22  2591  2591 main.cpp:63] Android Debug Bridge version 1.0.41
adb I 01-02 18:12:22  2591  2591 main.cpp:63] Version 33.0.3-8952118
adb I 01-02 18:12:22  2591  2591 main.cpp:63] Installed as /home/device-farm/android-sdk-linux-new/platform-tools/adb
adb I 01-02 18:12:22  2591  2591 main.cpp:63] 
adb F 01-02 18:12:22  2591  2591 main.cpp:167] could not install *smartsocket* listener: Address already in use

Please suggest - how do I proceed here?

Custom env YAML for updating ADB:

version: 0.1
phases:
  install:
    commands:
      - mkdir -p /home/device-farm/android-sdk-linux-new/
      - curl -L "https://dl.google.com/android/repository/platform-tools-latest-linux.zip" -o /tmp/new_build_tools_2.zip
      - unzip /tmp/new_build_tools_2.zip -d /home/device-farm/android-sdk-linux-new
      - export ANDROID_HOME=/home/device-farm/android-sdk-linux-new
      - export PATH="/home/device-farm/android-sdk-linux-new/platform-tools":"$PATH"
vibin
已提問 1 年前檢視次數 84 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南