Menu

#1841 New device: Motorola Moto Z2 (XT1789)

GIT version
closed
None
3
2019-06-16
2019-06-10
No

Please add an entry for phone: Motorola moto z² force edition

Testing on Ubuntu 18.04 with included mtp-tools 1.1.13, mtp-detect gives "No raw devices found."

Compiled source and added entry...

git clone https://git.code.sf.net/p/libmtp/code libmtp-code
cd libmtp-code
./autogen.sh
vi src/music-players.h
{ "Motorola", 0x22b8, "Moto Z2 (XT1789)", 0x2e81,
DEVICE_FLAGS_ANDROID_BUGS },
make

It now detects the phone by its idProduct:

libmtp-code/examples# ./mtp-detect
libmtp version: 1.1.16

Listing raw device(s)
Device 0 (VID=22b8 and PID=2e81) is a Motorola Moto Z2 (XT1789).
Found 1 device(s):
Motorola: Moto Z2 (XT1789) (22b8:2e81) @ bus 3, dev 10
Attempting to connect device(s)
LIBMTP PANIC: Unable to find interface & endpoints of device
Unable to open raw device 0
OK.

I tried to follow the information in the README file for:
mtp-* tools doesn't work because someone else is already hogging the device
*
gio mount -s photo2
killall gvfs-mtp-volume-monitor
killall gvfs-gphoto2-volume-monitor
(the two gvfs procs were running before and were no longer running after killall)

But it still gives LIBMTP PANIC message with unable to open.
(I haven't tried to dig in further to what might have device open, but if anyone has some advice, that would be great).

lsusb -v output for phone:

Bus 003 Device 007: ID 22b8:2e81 Motorola PCS
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x22b8 Motorola PCS
idProduct 0x2e81
bcdDevice 4.04
iManufacturer 1 motorola
iProduct 2 Moto Z (2)
iSerial 3 ZYxxxxxSMZ
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4 adb
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 66
bInterfaceProtocol 1
iInterface 5 ADB Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)

Discussion

  • Marcus Meissner

    Marcus Meissner - 2019-06-16
    • status: open --> closed
    • assigned_to: Marcus Meissner
     
  • Marcus Meissner

    Marcus Meissner - 2019-06-16

    added to girt for next release 1.1.17, thanks!

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB