Connect Xiaomi MI2 to Linux laptop


Feb 1, 2012
45
4
18
#1
Hi!
I just got my MI2 from China and have a small issue. When I connect it via USB to my laptop running Ubuntu 12.04 I can chose two modes, photo or file share. If I chose Photo I get access to all my pictures from DCIM and Picturs folder. If I chose File all I get is a 4MB share with install files for windows and Mac. Anyone know how to access the "user memory" on the device? I have no interest at the moment to install devel version of ROM but there must be some way or?
Now I have to connect it using "Photo" mode and put my files there (like mp3) then use the built in filemanager to move it to Music folder.
 
Sep 23, 2012
647
170
82
#2
Hi!
I just got my MI2 from China and have a small issue. When I connect it via USB to my laptop running Ubuntu 12.04 I can chose two modes, photo or file share. If I chose Photo I get access to all my pictures from DCIM and Picturs folder. If I chose File all I get is a 4MB share with install files for windows and Mac. Anyone know how to access the "user memory" on the device? I have no interest at the moment to install devel version of ROM but there must be some way or?
Now I have to connect it using "Photo" mode and put my files there (like mp3) then use the built in filemanager to move it to Music folder.
Not sure about the Linux drivers. but I guess you can use the built in ftp server for most of the tasks.
Open the mi file explore (default file browser on mi2) , at bottom you will see the option to start ftp server. Once you start it, it'll give you the ftp address and port. On windows I can put this address in file browser. I think it will work in Linux too. Laptop and your phone should be connected to same router. Now you can do the common file operations.
In the meantime you can search for proper Linux drivers.


Sent from my Xiaomi M2
 
Feb 1, 2012
45
4
18
#3
Not sure about the Linux drivers. but I guess you can use the built in ftp server for most of the tasks.
Open the mi file explore (default file browser on mi2) , at bottom you will see the option to start ftp server. Once you start it, it'll give you the ftp address and port. On windows I can put this address in file browser. I think it will work in Linux too. Laptop and your phone should be connected to same router. Now you can do the common file operations.
In the meantime you can search for proper Linux drivers.


Sent from my Xiaomi M2
Thank you!!! I didn't know about this function. Works great!
 

Acid

Scripting Ninja
Staff member
Aug 20, 2011
2,726
744
247
#4
Search with Google : Ubuntu enable MTP.

Ive connected my Nexus 7 with this as this device has also both USB modes: MTP and PTP.

Sent from my MIUI Nexus S Jelly Bean.
 

iBotPeaches

Script Gatekeeper
Oct 31, 2011
3,811
1,122
335
#6
You can also go to ~/.android/adb_usb.ini
Code:
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
0x2717
Should fix adb for Xiaomi MI2 on Ubuntu.