Banshee and Rhythmbox crash when trying to connect Android device

Solution 1:

Install the required mtp tools -

sudo apt-get install mtp-tools mtpfs

Edit the following file -

gksu gedit /etc/udev/rules.d/51-android.rules

Add the following at the end and save the file -

SUBSYSTEM=="usb", ATTR{idVendor}=="VENDORID", ATTR{idProduct}=="PRODUCTID", MODE="0666"

In your case - VENDORID=04e8 and PRODUCTID=6860.

Now, disconnect your phone and run -

sudo service udev restart

sudo mkdir /media/Galaxy

sudo chmod a+rwx /media/Galaxy

sudo adduser YOURUSERNAME fuse

Edit the following file -

gksu gedit /etc/fuse.conf

Add the following at the end and save the file -

user_allow_other

Now, restart your computer and run -

echo “alias android-connect=\”mtpfs -o allow_other /media/Galaxy\”” >> ~/.bashrc

echo “alias android-disconnect=\”fusermount -u /media/Galaxy\”” >> ~/.bashrc

source ~/.bashrc

Now connect your phone and run -android-connect

Similarly, to disconnect, run - android-disconnect

These steps have been taken from here.

If this does not work, you could try go-mtpfs. A tutorial is available here.

Finally, if nothing seems to work, you could probably have a look at AirDroid. You can download it for your phone from Google Play Store.

Edit -

Try enabling USB Debugging on the phone from Developer Settings. It has solved the problem for some users.

Solution 2:

Speculative answer since I dont have your particular phone.

You are using v1.1.6 of libmtp which is not the very latest; in Vivid version 1.1.8 is available.

You could try a new version of libmtp to see if this resolves your issue - one such source is my PPA:

sudo add-apt-repository ppa:fossfreedom/libmtp
sudo apt-get update
sudo apt-get upgrade

If this doesnt work for you, rollback using ppa-purge

sudo ppa-purge ppa:fossfreedom/libmtp