Xiaomi 2S connect Ubuntu Android Studio

Source: Internet
Author: User



1. First open the developer option on the phone, USB debugging. Dial: *#* #717717 #*#*, the phone will appear in toast form "... enable". Dialing again can be disable.



2. Ubuntu install MTPFS; use the LSUSB command to view the current USB port occupancy;



3. The phone connected to the computer, again LSUSB, compared to the last time, the new ID is  phone USB ID. Find the USB connection number on your phone that's connected to your computer:


[Email protected]7420: ~/downloads/android-studio/sdk/platform-tools$ Lsusbbus001Device002: ID8087:0024Intel Corp Integrated rate Matching Hubbus002Device002: ID8087:0024Intel Corp Integrated rate Matching Hubbus003Device008: ID 2717:9039 Bus001Device001: ID 1d6b:0002Linux Foundation2.0Root Hubbus002Device001: ID 1d6b:0002Linux Foundation2.0Root Hubbus003Device001: ID 1d6b:0002Linux Foundation2.0Root Hubbus004Device001: ID 1d6b:0003Linux Foundation3.0Root Hubbus001Device003: ID 0bda:0129Realtek Semiconductor Corp. Bus001Device004: ID 1BCF:2897Sunplus Innovation Technology Inc. Bus002Device003: ID8087: 07da Intel Corp.


The millet 2s is a Bus 003 Device 008:id 2717:9039



4. $ sudo vim/etc/udev/rules.d/70-persistent-net.rules, add inside:


SUBSYSTEM=="USB", sysfs{idvendor}=="2717", mode=="0666"SUBSYSTEM=="Usb_device", sysfs{idvendor}=="2717", mode=="0666"SUBSYSTEM=="USB", attr{idvendor}=="2717", attr{idproduct}=="9039", symlink+="android_adb"


Save exit.



5. Go to the Android SDK folder under/platform-tools and run the following command:


[Email protected] 7420 sudo kill-server[email protected]-inspiron-7420sudo ./adb deviceslist of Devices attached D14A12FB    unauthorized


6. Enter the ~/.android directory and add the following device number to the Adb_usb.ini:


0x2717


The final result is:


[Email protected] 7420: ~$ cd ~/.android/[email protected]-inspiron-7420cat--  ' Android update adb '  1  USB VENDOR ID PER line. 0x2717 [email protected]-inspiron-7420


7. Restart the ADB service:


[Email protected] 7420 sudo kill-server[email protected]-inspiron-7420sudo ./adb deviceslist of devices Attached D14A12FB device 





Complete. You can then select 2S for debugging in Android Studio:










Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.