Sony Xperia Z1 not correctly recongnized

Asked by andrea manconi

Sony Xperia Z1 android 4.3 (original SE rom) + ubuntu 13.10 64bit.
Impossible to correctly mount the device. impossible to see the device if not root (sudo).
mtp-detect | grep idVendor
mtp-detect | grep idProduct
answers no info. i have the correct ids only if i made them with sudo before.

andymnc@andymnc-VPCEC1M1E:~$ uname -a; lsb_release -a; lsusb
Linux andymnc-VPCEC1M1E 3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.10
Release: 13.10
Codename: saucy
Bus 002 Device 007: ID 0fce:019e Sony Ericsson Mobile Communications AB
Bus 002 Device 004: ID 0480:a004 Toshiba America Info. Systems, Inc.
Bus 002 Device 006: ID 045e:074f Microsoft Corp.
Bus 002 Device 005: ID 1e7d:319c ROCCAT
Bus 002 Device 003: ID 2001:f103 D-Link Corp. DUB-H7 7-port USB 2.0 hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 064e:a213 Suyin Corp.
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

if i run:
andymnc@andymnc-VPCEC1M1E:~$ mtpfs /home/andymnc/SonyZ1/
no device is found.
if i run:
andymnc@andymnc-VPCEC1M1E:~$ sudo mtpfs /home/andymnc/SonyZ1/
Unable to open ~/.mtpz-data for reading, MTPZ disabled.Listing raw device(s)
Device 0 (VID=0fce and PID=019e) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
   Found 1 device(s):
   0fce:019e @ bus 2, dev 7
Attempting to connect device
Android device detected, assigning default bug flags
Error 1: Get Storage information failed.
Error 2: PTP Layer error 02fe: get_handles_recursively(): could not get object handles.
Error 2: Error 02fe: PTP: Protocol error, data expected
Listing File Information on Device with name: Xperia Z1
LIBMTP_Get_Storage() failed:-1

if i try:
andymnc@andymnc-VPCEC1M1E:~$ sudo mtpfs /media/andymnc/SonyZ1/
same answer.

If i activate USB-debug in developer option, following this info, with all the mtp calls with SUDO before, insthead of as per the following tutorial (and of course i changed the media mount point in the .bashrc):
http://www.omgubuntu.co.uk/2011/12/how-to-connect-your-android-ice-cream-sandwich-phone-to-ubuntu-for-file-access/

if i try to mount on "media", i will receive an error because of no privileges on that directory.
If i try to mount on home/andymnc/SonyZ1 (so on the home of the user)

after quite 5 minutes of wait before having any response, i receive:
andymnc@andymnc-VPCEC1M1E:~$ android-connect
Unable to open ~/.mtpz-data for reading, MTPZ disabled.Listing raw device(s)
Device 0 (VID=0fce and PID=519e) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
   Found 1 device(s):
   0fce:519e @ bus 2, dev 8
Attempting to connect device
Android device detected, assigning default bug flags
Listing File Information on Device with name: Xperia Z1

Now, i can see the folder SonyZ1 in my home, that it will be super slow on unity because mounting the "disk" on the fly.
Anyway at this point i can NOT copy/paste/delete files from and to the Z1 by terminal and gnomecommander too.
i can't also see subdirs via unity/nautilus because every double click on any folder will open the "SonyZ1" same folder like a loop.
In ANY case, i have to be ROOT (sudo) and i can not do any operations on files that i can only see

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu libmtp Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

If you want to transfer files then I suggest you install openssh-server, you can then install andftp and transfer files wirelessly.

I suggest you report a bug, make sure the device is in camera mode.

Can you help with this problem?

Provide an answer of your own, or ask andrea manconi for more information if necessary.

To post a message you must log in.