You are not logged in.

#1 2013-05-12 22:41:59

delcypher
Member
Registered: 2010-04-17
Posts: 42

libmtp no longer seems to work with Nexus 4

Hi,

It seems like libmtp no longer works with my Nexus 4. If I try something like this...

$ mtp-detect
Unable to open ~/.mtpz-data for reading, MTPZ disabled.libmtp version: 1.1.6

Device 0 (VID=18d1 and PID=4ee2) is a Google Inc (for LG Electronics/Samsung) Nexus 4/10 (MTP+ADB).
Android device detected, assigning default bug flags

It hangs... I tried running strace on it and I see the same message over and over again that a ioctl call is failing with something like...

ioctl(6, USBDEVFS_REAPURBNDELAY or USBDEVFS_REAPURBNDELAY32, 0x7fffa129c1b8) = -1 EAGAIN (Resource temporarily unavailable)
timerfd_settime(5, TFD_TIMER_ABSTIME, {it_interval={0, 0}, it_value={1118, 490012000}}, NULL) = 0
ioctl(6, USBDEVFS_SUBMITURB or USBDEVFS_SUBMITURB32, 0x11e95d0) = 0
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}, {fd=6, events=POLLOUT}], 3, 60000) = 1 ([{fd=6, revents=POLLOUT}])
ioctl(6, USBDEVFS_REAPURBNDELAY or USBDEVFS_REAPURBNDELAY32, 0x7fffa129c1e8) = 0
timerfd_settime(5, 0, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0

Does anyone else see this issue or have any idea what is going on?

Offline

#2 2013-05-12 23:14:26

Tony_SpaZ
Member
Registered: 2013-05-12
Posts: 2

Re: libmtp no longer seems to work with Nexus 4

I'm having the exact same issue, both with the stable and git builds. Is it possibly related to some change in the phone?
For what it's worth, I'm running the newest stable Paranoid Android with franco's milestone 2 kernel.

Offline

#3 2013-05-12 23:17:06

delcypher
Member
Registered: 2010-04-17
Posts: 42

Re: libmtp no longer seems to work with Nexus 4

I'm running stock Android (4.2.2) which was working with libmtp a few months ago so I don't think it's the phone.

Sigh... It's back to using adb to do file transfers.

Offline

#4 2013-05-13 00:00:53

Tony_SpaZ
Member
Registered: 2013-05-12
Posts: 2

Re: libmtp no longer seems to work with Nexus 4

Huh, I'm not sure if gmtp is working right now, but it seems mtpfs works after waiting about two and a half minutes. Same issue, since both use libmtp.
edit: Yeah, even when connected, it doesn't let you touch any files. Adding or removing anything gives me this.

Error 2: PTP Layer error 02fe: obj2file: call to ptp_mtp_getobjectpropssupported() failed.
Error 2: Error 02fe: PTP: Protocol error, data expected

Last edited by Tony_SpaZ (2013-05-13 00:10:35)

Offline

Board footer

Powered by FluxBB