whoozle / android-file-transfer-linux

Android File Transfer for Linux (and macOS!)
http://whoozle.github.io/android-file-transfer-linux/
GNU Lesser General Public License v2.1
1.47k stars 120 forks source link

Device not detected #336

Closed laur89 closed 11 months ago

laur89 commented 12 months ago
$ aft-mtp-mount ~/phone/
Device::Find failed:Device is already used by another process
Device::Find failed:Device is already used by another process
Device::Find failed:Device is already used by another process
Device::Find failed:Device is already used by another process
Device::Find failed:Device is already used by another process
Device::Find failed:Device is already used by another process
Device::Find failed:Device is already used by another process
Device::Find failed:Device is already used by another process
connect failed: no MTP device found
$ lsusb | grep Pixel
Bus 004 Device 006: ID 18d1:4ee7 Google Inc. Nexus/Pixel Device (charging + debug)

I did check relevant faq entry, but device has correct group I'm also part of:

$ ls -lt /dev/bus/usb/004/
total 0
crw-rw----+ 1 root plugdev 189, 389 Nov 29 22:01 006

$ id | grep -Po '\d+\(plugdev\)'
46(plugdev)

Note bus directory is owned by root:root, is this OK?:

$ ls -lt /dev/bus/usb/
total 0
drwxr-xr-x 2 root root 120 Nov 29 22:20 004

Running android-file-transfer 4.2-2 on Debian testing. Also tried with Android_File_Transfer_For_Linux-9967dec-x86_64.AppImage from github releases. Android 11.

whoozle commented 11 months ago

(charging + debug) may mean you have to explicitly enable "File Transfer (MTP)" on your phone (try tapping charging notification). MTP is not enabled by default anymore.

whoozle commented 11 months ago

did it work? :)

laur89 commented 11 months ago

did it work? :)

Can't test it atm - bricked the phone with acc

whoozle commented 11 months ago

oh my, I'm so sorry about it. Feel free to reopen this if you revive your phone and the issue is still present

jmon12 commented 5 months ago

I have a similar issue. I just built your wonderful tool from source on macports (will update the port which is quite outdated and depending on osxfuse instead of macfuse). However, I cannot connect my phone : no MTP device found (from the UI or CLI). Complete output from the CLI:

IOCreatePlugInInterfaceForService(desc, kIOUSBDeviceUserClientTypeID, kIOCFPlugInInterfaceID, &plugInInterface, &score): error 0xe00002be
IOCreatePlugInInterfaceForService(desc, kIOUSBDeviceUserClientTypeID, kIOCFPlugInInterfaceID, &plugInInterface, &score): error 0xe00002be
IOCreatePlugInInterfaceForService(desc, kIOUSBDeviceUserClientTypeID, kIOCFPlugInInterfaceID, &plugInInterface, &score): error 0xe00002be
IOCreatePlugInInterfaceForService(desc, kIOUSBDeviceUserClientTypeID, kIOCFPlugInInterfaceID, &plugInInterface, &score): error 0xe00002be
IOCreatePlugInInterfaceForService(desc, kIOUSBDeviceUserClientTypeID, kIOCFPlugInInterfaceID, &plugInInterface, &score): error 0xe00002be
IOCreatePlugInInterfaceForService(desc, kIOUSBDeviceUserClientTypeID, kIOCFPlugInInterfaceID, &plugInInterface, &score): error 0xe00002be
IOCreatePlugInInterfaceForService(desc, kIOUSBDeviceUserClientTypeID, kIOCFPlugInInterfaceID, &plugInInterface, &score): error 0xe00002be
connect failed: no MTP device found

It might be related to my phone configuration. It is a Oneplus 3 (Oneplus A3000 with android 9, OxygenOS 9.0.6). Note that adb devices lists it correclty as a device. I tried to explicitly allow MTP from the phone configuration. However, the option is not available, only the following are (I tried "File transfer" and "PTP". In Developer Options/USB Preferences:

Would you have some clues for me to investigate further? Likely related to the phone or to fuse? I can provide you with any needed information! Thanks a lot for your great work.