Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to update adb inside docker #92

Open
tamasfodor1988 opened this issue Nov 22, 2022 · 2 comments
Open

How to update adb inside docker #92

tamasfodor1988 opened this issue Nov 22, 2022 · 2 comments
Labels
good first issue Good for newcomers

Comments

@tamasfodor1988
Copy link

I am using Homebridge inside docker, I installed homebridge-adb followed the instructions.

Used apt-get install -y android-tools-adb android-tools-fastboot to install ADB tools. But I couldn't start the server:

root@raspberrypi:/var/lib/homebridge $ adb start-server

  • daemon not running; starting now at tcp:5037
    ADB server didn't ACK
    Full server startup log: /tmp/adb.0.log
    Server had pid: 1692
    --- adb starting (pid 1692) ---
    adb I 11-22 09:23:19 1692 1692 main.cpp:57] Android Debug Bridge version 1.0.39
    adb I 11-22 09:23:19 1692 1692 main.cpp:57] Version 1:8.1.0+r23-5ubuntu2
    adb I 11-22 09:23:19 1692 1692 main.cpp:57] Installed as /usr/lib/android-sdk/platform-tools/adb
    adb I 11-22 09:23:19 1692 1692 main.cpp:57]
    adb I 11-22 09:23:19 1692 1692 adb_auth_host.cpp:416] adb_auth_init...
    adb I 11-22 09:23:19 1692 1692 adb_auth_host.cpp:262] User key '/home/homebridge/.android/adbkey' does not exist...
    adb I 11-22 09:23:19 1692 1692 adb_auth_host.cpp:109] generate_key(/home/homebridge/.android/adbkey)...

  • failed to start daemon
    error: cannot connect to daemon

After a little search I found that this ADB version is out-of-date (-rwxr-xr-x 1 root root 124432 Feb 8 2020 adb).

How can I update to a newer version?

Log output
[11/22/2022, 9:11:49 AM] [HomebridgeADB]

WARNING:
Unrecognized accessory - "Telekom TV ADB".
Please check if the accessory's IP address is correct.
If your accessory is turned OFF, please turn it ON.

@tamasfodor1988 tamasfodor1988 added the good first issue Good for newcomers label Nov 22, 2022
@SawkeeReemo
Copy link

I need this answer too.

@dwaan
Copy link
Owner

dwaan commented Mar 8, 2024

If apt-get update or apt-get upgrade didn't fetch latest adb version, then you can try to manually install this adb https://github.com/lzhiyong/android-sdk-tools/releases . Haven't personally tried it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants