fpuime
(usa Ubuntu)
Enviado em 30/10/2012 - 11:06h
Pessoal, comprei o Motorola Atrix XT687 que vem com Android 4.0.4 Ice Cream Sandwich, e ao conectá-lo no meu Ubuntu 10.04 (lucid), para minha surpresa não reconheceu o celular.
Pesquisando na WEB, descobri o site
http://www.omgubuntu.co.uk/2011/12/how-to-connect-your-android-ice-cream-sandwich-phone-to-ubuntu-fo..., onde segui os procedimentos:
First up, install the necessary tools:
sudo apt-get install mtp-tools mtpfs
Now, connect your Galaxy Nexus to your computer. On your phone, open up the notification drawer, and click on “USB Connection type”. Make sure that MTP is selected.
Then, run these commands:
mtp-detect | grep idVendor
mtp-detect | grep idProduct
You shall get an output like this:
Note down the numbers written in front of idVenfor and idProduct, you’ll need those later on.
Now, run this commands:
gksu gedit /etc/udev/rules.d/51-android.rules
A gedit window should open up. Type this text in it, all in a single line:
SUBSYSTEM==”usb”, ATTR{idVendor}==”VENDORID”, ATTR{idProduct}==”PRODUCTID”, MODE=”0666″
Replace VENDORID with the idVendor you had noted down earlier. Similarly, replace PRODUCTID with the idProduct you had noted down. In my case, they were 04e8 and 685c respectively, but they might have been different for you.
Also, remember to re-type the quotes in the line after you’ve copied and pasted it, otherwise udev may output an error.
If you’re in doubt, you can copy the same line from this pastebin instead and then replace PRODUCTID and VENDORID as needed.
Save and close the file. Then, disconnect your phone and run these commands:
sudo service udev restart
sudo mkdir /media/GalaxyNexus
sudo chmod a+rwx /media/GalaxyNexus
sudo adduser YOURUSERNAME fuse
Replace YOURUSERNAME with your Ubuntu user name. Now, run this command:
gksu gedit /etc/fuse.conf
In the Gedit window, remove the # at the beginning of the last line (the one that begins with “#user_allow_other”) like this:
You’re almost done! Now, restart your computer, and then run these three commands :
echo “alias android-connect=\”mtpfs -o allow_other /media/GalaxyNexus\”" >> ~/.bashrc
echo “alias android-disconnect=\”fusermount -u /media/GalaxyNexus\”" >> ~/.bashrc
source ~/.bashrc
Again, do re-type the quotes in each command after you’ve copied, otherwise the command won’t work.
Connect your phone again, and then make sure your phone is using MTP, then run this command:
android-connect
Após os procedimentos e devidas adaptações (como o nome do celular e id´s) consegui que o celular seja reconhecido pelo Nautilus, mas retorna a mensagem:
Não foi possível exibir "/media/Atrix".
Erro: Erro ao iniciar arquivo "/media/Atrix": Ponto final de transporte não está conectado
Por favor selecione outro visualizador e tente novamente.
Alguem que domine Fuse/MTP pode me ajudar?