My primary testing device has stopped working over adb on macos catalina. I have done a lot of troubleshooting that will be detailed out below.
TLDR; The device works fine on another desktop, and on the mac in parallels (windows 10). Other devices also work.
Update: I fully restored from a Time Machine backup from a few weeks ago. This would have been when things were working, but it still doesn't work. I think this let's us know that it's a problem on the android device.
Update 2: I reset the S21 to factory settings (what a pain to re-setup). Made no difference. There was an update recently, so I tried using ODIN to flash to the previous update. No difference.
I'm still stumped as to which device is the culprit.
Update 3: This comes out in the macbook logs, in /var/log/system.log every time I turn on debug mode.
xpcproxy[3538]: libcoreservices: _dirhelper_userdir: 557: bootstrap_look_up returned (ipc/send) invalid destination port xpcproxy[3539]: libcoreservices: _dirhelper_userdir: 557: bootstrap_look_up returned (ipc/send) invalid destination port
Environment: 2019 Macbook Pro, Catalina (updating the OS is not an option at this time) Samsung S21
Steps to show the issue:
- Turn off USB debugging
- Stop adb - adb kill-server
- Plug in S21
- See that S21 is available for file transfer
- Start adb - adb start-server
- File transfer drops off, cannot transfer files
- adb devices - lists nothing
Reboot devices:
- Reboot mac
- Reboot S21
- No difference
Different USB ports:
- Try four different USB hubs
- Try all four USB-C ports
- Try a USB-C dock
- No difference
Reinstall adb:
- In android studio uncheck the SDK tools and let it uninstall
- Check the SDK tools and let it install
- Start adb
- No difference
Try adb separately:
- Download SDK tools 31 for mac
- Stop and start adb
- No differences
- Download SDK tools 30 for mac
- Stop and start adb
- No difference
Try windows on mac:
- Start up Parallels with Windows 10
- Connect device
- adb works perfectly
Try another machine, windows:
- Start up windows 10 desktop
- Connect device
- adb works perfectly
Try another device:
- Connect Xiaomi MI9T
- adb works fine