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: