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
gefragt vor einem Jahr84 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen