Salut
j’ai créé cette règle
[code]root@desktop:/etc/udev/rules.d# cat 10-persistent-local.rules
Xiaomi MI3 WCDMA - MTP Mode
SUBSYSTEM==“usb”, ATTR{idVendor}==“2717”, ATTR{idProduct}==“0360”, MODE=“0666”, OWNER=“guy”
Xiaomi MI3 WCDMA - MTP Mode with USB Debug
SUBSYSTEM==“usb”, ATTR{idVendor}==“2717”, ATTR{idProduct}==“0368”, MODE=“0666”, OWNER=“guy”
[/code]
Verifié
[code]root@desktop:/etc/udev/rules.d# udevadm info -a -n /dev/sdg
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device ‘/devices/pci0000:00/0000:00:1c.3/usb1/1-6/1-6:1.1/host12/target12:0:0/12:0:0:0/block/sdg’:
KERNEL=="sdg"
SUBSYSTEM==“block"
DRIVER==”"
ATTR{ro}=="1"
ATTR{size}==“22344"
ATTR{stat}==” 94 162 2044 164 0 0 0 0 0 120 164"
ATTR{range}=="16"
ATTR{discard_alignment}=="0"
ATTR{events}=="media_change"
ATTR{ext_range}=="256"
ATTR{events_poll_msecs}=="2000"
ATTR{alignment_offset}==“0"
ATTR{inflight}==” 0 0"
ATTR{removable}==“1"
ATTR{capability}==“51"
ATTR{events_async}==””
looking at parent device ‘/devices/pci0000:00/0000:00:1c.3/usb1/1-6/1-6:1.1/host12/target12:0:0/12:0:0:0’:
KERNELS=="12:0:0:0"
SUBSYSTEMS=="scsi"
DRIVERS=="sd"
ATTRS{rev}=="0000"
ATTRS{type}=="0"
ATTRS{scsi_level}=="3"
ATTRS{model}=="File-Stor Gadget"
ATTRS{state}=="running"
ATTRS{queue_type}=="none"
ATTRS{iodone_cnt}=="0x160"
ATTRS{iorequest_cnt}=="0x160"
ATTRS{device_busy}=="0"
ATTRS{evt_capacity_change_reported}=="0"
ATTRS{timeout}=="30"
ATTRS{evt_media_change}=="0"
ATTRS{max_sectors}=="240"
ATTRS{ioerr_cnt}=="0x1"
ATTRS{queue_depth}=="1"
ATTRS{vendor}=="Linux "
ATTRS{evt_soft_threshold_reached}=="0"
ATTRS{device_blocked}=="0"
ATTRS{evt_mode_parameter_change_reported}=="0"
ATTRS{evt_lun_change_reported}=="0"
ATTRS{evt_inquiry_change_reported}=="0"
ATTRS{iocounterbits}=="32"
ATTRS{eh_timeout}==“10”
looking at parent device ‘/devices/pci0000:00/0000:00:1c.3/usb1/1-6/1-6:1.1/host12/target12:0:0’:
KERNELS==“target12:0:0"
SUBSYSTEMS==“scsi"
DRIVERS==””
looking at parent device ‘/devices/pci0000:00/0000:00:1c.3/usb1/1-6/1-6:1.1/host12’:
KERNELS==“host12"
SUBSYSTEMS==“scsi"
DRIVERS==””
looking at parent device ‘/devices/pci0000:00/0000:00:1c.3/usb1/1-6/1-6:1.1’:
KERNELS=="1-6:1.1"
SUBSYSTEMS=="usb"
DRIVERS=="usb-storage"
ATTRS{bInterfaceClass}=="08"
ATTRS{bInterfaceSubClass}=="06"
ATTRS{bInterfaceProtocol}=="50"
ATTRS{bNumEndpoints}=="02"
ATTRS{supports_autosuspend}==“1"
ATTRS{bAlternateSetting}==” 0"
ATTRS{bInterfaceNumber}=="01"
ATTRS{interface}==“Mass Storage”
looking at parent device ‘/devices/pci0000:00/0000:00:1c.3/usb1/1-6’:
KERNELS=="1-6"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bDeviceProtocol}=="00"
ATTRS{devpath}=="6"
ATTRS{idVendor}=="2717"
ATTRS{speed}==“480"
ATTRS{bNumInterfaces}==” 4"
ATTRS{bConfigurationValue}=="1"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{busnum}=="1"
ATTRS{devnum}==“10"
ATTRS{configuration}==”"
ATTRS{bMaxPower}=="500mA"
ATTRS{authorized}=="1"
ATTRS{bmAttributes}=="80"
ATTRS{bNumConfigurations}=="1"
ATTRS{maxchild}=="0"
ATTRS{bcdDevice}=="0232"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{quirks}=="0x0"
ATTRS{serial}==“1d19f70"
ATTRS{version}==” 2.10"
ATTRS{urbnum}=="847"
ATTRS{ltm_capable}=="no"
ATTRS{manufacturer}=="Xiaomi"
ATTRS{removable}=="unknown"
ATTRS{idProduct}=="0368"
ATTRS{bDeviceClass}=="00"
ATTRS{product}==“MI 3W”
looking at parent device ‘/devices/pci0000:00/0000:00:1c.3/usb1’:
KERNELS=="usb1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bDeviceProtocol}=="00"
ATTRS{devpath}=="0"
ATTRS{idVendor}=="1d6b"
ATTRS{speed}==“480"
ATTRS{bNumInterfaces}==” 1"
ATTRS{bConfigurationValue}=="1"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{authorized_default}=="1"
ATTRS{busnum}=="1"
ATTRS{devnum}==“1"
ATTRS{configuration}==”"
ATTRS{bMaxPower}=="0mA"
ATTRS{authorized}=="1"
ATTRS{bmAttributes}=="e0"
ATTRS{bNumConfigurations}=="1"
ATTRS{maxchild}=="8"
ATTRS{bcdDevice}=="0316"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{quirks}=="0x0"
ATTRS{serial}==“0000:00:1c.3"
ATTRS{version}==” 2.00"
ATTRS{urbnum}=="278"
ATTRS{ltm_capable}=="no"
ATTRS{manufacturer}=="Linux 3.16.0-4-686-pae ehci_hcd"
ATTRS{removable}=="unknown"
ATTRS{idProduct}=="0002"
ATTRS{bDeviceClass}=="09"
ATTRS{product}==“EHCI Host Controller”
looking at parent device ‘/devices/pci0000:00/0000:00:1c.3’:
KERNELS=="0000:00:1c.3"
SUBSYSTEMS=="pci"
DRIVERS=="ehci-pci"
ATTRS{irq}=="23"
ATTRS{subsystem_vendor}=="0x1025"
ATTRS{broken_parity_status}=="0"
ATTRS{class}==“0x0c0320"
ATTRS{companion}==”“
ATTRS{driver_override}==”(null)"
ATTRS{consistent_dma_mask_bits}=="32"
ATTRS{dma_mask_bits}=="32"
ATTRS{local_cpus}=="ffffffff"
ATTRS{device}=="0x5239"
ATTRS{uframe_periodic_max}=="100"
ATTRS{enable}==“1"
ATTRS{msi_bus}==”"
ATTRS{local_cpulist}=="0-31"
ATTRS{vendor}=="0x10b9"
ATTRS{subsystem_device}=="0x0085"
ATTRS{d3cold_allowed}==“1”
looking at parent device ‘/devices/pci0000:00’:
KERNELS==“pci0000:00"
SUBSYSTEMS==”“
DRIVERS==”"[/code]
Mais rien de changé toujours pas accès aux données je ne vois que ces infos dans le montage de /dev/sdg
pourtant il est bien reconnu
[code]root@desktop:~# mtp-detect
libmtp version: 1.1.9
Listing raw device(s)
Device 0 (VID=2717 and PID=0368) is a Xiaomi Mi-3 (MTP).
Found 1 device(s):
Xiaomi: Mi-3 (MTP) (2717:0368) @ bus 1, dev 6
Attempting to connect device(s)
Android device detected, assigning default bug flags
[/code]
ça se comporte comme si il y avait plusieurs partitions dans le Xiaomi mais une seule est vue???