dwaan / homebridge-adb

Homebridge script to control remote ADB enabled Android device
MIT License
74 stars 14 forks source link

Where to get latest ADB for ARM processors like Pi? #99

Open secprentice opened 10 months ago

secprentice commented 10 months ago

Does anybody know how to get the latest version of ADB running on the Pi? No matter how hard I try, I can't get the latest version to run, it's not compiled for Arm processors in the apt repo. Does anyone have any ideas on where to get it? My os is:

NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye

bigpanda666 commented 10 months ago

I installed snap and then installed android-tools and android-adb. Make sure to point to this adb in the Homebridge settings

SawkeeReemo commented 3 months ago

I installed snap and then installed android-tools and android-adb. Make sure to point to this adb in the Homebridge settings

Can you explain how to do that? I was able to install snapd inside my Homebridge docker container, but no idea how to do the rest of what you mentioned here. (Been fighting to get ADB to work for months.)

bigpanda666 commented 3 months ago

Try sudo snap install android-adb --edge

Adv will then be in /snap/bin/android-adb

SawkeeReemo commented 3 months ago

Try sudo snap install android-adb --edge

Adv will then be in /snap/bin/android-adb

I’m trying to do this inside the official Homebridge docker container, and got this error:

error: cannot communicate with server: Post "http://localhost/v2/snaps/android-adb": dial unix /run/snapd.socket: connect: no such file or directory

dwaan commented 3 months ago

You can try to manually install this adb version https://github.com/lzhiyong/android-sdk-tools/releases . Haven't personally tried it.

SawkeeReemo commented 3 months ago

Yeah, I looked at that. But I’m not sure what I can or cannot do inside the Homebridge container without borking it. I actually asked this question over on the main Homebridge GitHub page as well. Hopefully they have an answer; seems like it would be a popular question. Maybe?

dwaan commented 3 months ago

It's actually easy and safer, you just need to extract it into the home folder and configure the 'path' for the binary in homebridge-adb config.

bigpanda666 commented 3 months ago

Can you post the output of: sudo snap find hello-world