1.install android adb tool:
sudo apt-get install android-tools-adb
2.Connect MX5 to Ubuntu by USB cable
use lsusb command to find usb decvices:
Bus 004 Device 002: ID 8087:8000 Intel Corp.
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 8087:8008 Intel Corp.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 14cd:8601 Super Top
Bus 001 Device 003: ID 046d:c534 Logitech, Inc.
Bus 001 Device 005: ID 2a45:0c02
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
we can found 2a45 is MX5 usb vendor ID.
3.create device file:
sudo vim /etc/udev/rules.d/50-Android.rules
fill below contents:
# ANDROID ADB FOR MEIZU MX5
SUBSYSTEM=="usb", SYSFS(idVendor)=="2a45", MODE="0666", OWNER="XXXXX"
Note: XXXX is your account name.
4.restart usb
sudo /etc/init.d/udev restart
5.use adb check:
$adb devices
List of devices attached
850ABM46HW22 offline
All Done!