当usb线插入android手机,使用如下命令查询usb在手机的设备号等:
667 lsusb
678 dmesg | grep tty
根据获取到的usb信息,创建android配置文件
1. cd /etc/udev/rules.d/
2. sudo vim 70-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="2e80",MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", ATTR{idProduct}=="2e81",MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", ATTR{idProduct}=="9008",MODE="0666", GROUP="plugdev"
3. sudo udevadm control --reload-rules
4. /etc/init.d/udev restart
5. fastboot and adb tool will be available. you can refer the web of https://www.cnblogs.com/dylancao/p/11866400.html
and https://blog.csdn.net/ppggxn/article/details/81709350 and https://www.jianshu.com/p/377c6fb6e590
6. In order to use tool that is for QC Firehose, you need to install lib that using cmd of "sudo apt-get purge modemmanager"
7. and then you can use odm tool for QC Firehose download
./blank-flash.sh --port=/dev/ttyUSB1 --debug=1