Tuesday, October 26, 2021

Re: adb: any users left?

Dimitri Karamazov has attempted to update adb and posted in his results on this mailing list. I've also attempted updating it as well, but I've run into these 2 problems:

1. OpenBSD doesn't have a syscall that returns the current path to the executable file of the process, which adb and fastboot both use.

2. For some reason the libusb implementation in the code doesn't work well with OpenBSD. I suspect there's a deadlock of sort which prevents adb from moving past handshaking. For reference, there are implementation of the adb usb backend for different platforms: Windows, MacOS, Linux, and a generic one using libusb.

3. Google decided to mix the source code of a lot of other random android stuff along with adb and fastboot into one repository, so it's going to be very hard to package. That said, we can use an unofficial repository which most Linux distros use to package adb: https://github.com/nmeum/android-tools/. It nicely packages adb, fastboot, and their dependencies into a cmake project.

You can Dimitri Karamazov's port here: https://marc.info/?l=openbsd-ports&m=161000490809726&w=2

His port works for wireless adb debugging, but using usb to debug is broken. However, I think Google changed how wireless adb debugging works in Android 11, so it may or may not work for Android 11 and further versions, still you can give it a try.

Sent from ProtonMail mobile

-------- Original Message --------
On Oct 26, 2021, 18:00, Klemens Nanni < kn@openbsd.org> wrote:
Has anyone been able to transfer files or get a shell on their phone?
If so, how/with what phone?
Our adb-5.1.1.4p1 seems brutally outdated and I aborted my quick try to
update it rather (not straight forward).
Has anyone tried an update?
If noone uses it, can be remove this possibly defunct port?

No comments:

Post a Comment