jb2170/better-adb-sync

[CRITICAL] Connection test failed [CRITICAL] Exiting

Closed this issue · 3 comments

Hello,

I'm trying to use your utility to sync my music library from my Windows computer to my Android phone but without success.

I'm running better-adb-sync 1.4.

When I type adbsync push "C:/Users/Tom/Downloads/1-Music/4-Phone" "/sdcard/Music"
I get the following message:

</dev/null
[CRITICAL] Connection test failed
[CRITICAL] Exiting

(if my device is unplugged, I get this: error: device not found)
Then nothing happens, so I have to cancel with ctrl+c and I get this error message:

Exception ignored in: <function AndroidFileSystem.__del__ at 0x0000029AB171C4A0>
Traceback (most recent call last):
  File "C:\Users\Tom\AppData\Local\Programs\Python\Python312\Lib\site-packages\BetterADBSync\FileSystems\Android.py", line 76, in __del__
    self.proc_adb_shell.wait()
  File "C:\Users\Tom\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1264, in wait
    return self._wait(timeout=timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Tom\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1588, in _wait
    result = _winapi.WaitForSingleObject(self._handle,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt:

Am I doing something wrong?

Thanks in advance!

ADB wasn't updated in C:\Android...
I hope this thread helps others at least.

Checking $ adb devices helps first

Checking $ adb devices helps first

The issue wasn't that I didn't have adb installed, it was that it was outdated, for some reason.

I can't make your utility work though, I'll open a new issue.