Linux develops QT-based Android applications to specify debug devices
Recently installed a combination of Chinese and foreign Ubuntu kylin test. And then put on the Sogou input method, the sense of the code than the Microsoft that much more cool. Qt Creator, through the chromium to access the page is also very fast, the use of GCC compiled speed is also very satisfied. A little bit of a hassle when it comes to specifying an Android device: When I connect an Android tablet to a computer, I find that the ADB can't read it, and the Qt creator interface doesn't see our real device. What do we do? Remember the past also resolved, but forget through the blog record method, this time must be written down, later can not forget!
1. Open terminal, command is: Ctrl + Alt + T
2, to this directory to go, the command is: CD/ETC/UDEV/RULES.D
3, use Gedit or VI to edit this file, here take Gedit as an example. The command is: sudo gedit 70-persistent-net.rules (note that some systems are 50-android.rules, which are edited as appropriate). Add a row at the very end:
#我们自己创建的Android平板电脑
subsystem== "USB", attr{idvendor}== "18d1", mode= "0666"
This idvendor comes from a Idvendor table: The table is as follows:
Company |
USB Vendor ID |
Acer |
0502 |
ASUS |
0b05 |
Dell |
413c |
Foxconn |
0489 |
Fujitsu |
04c5 |
Fujitsu Toshiba |
04c5 |
Garmin-asus |
091e |
Google |
18d1 |
Hisense |
109b |
Htc |
0bb4 |
Huawei |
12d1 |
K-touch |
24e3 |
KT Tech |
2116 |
Kyocera |
0482 |
Lenovo |
17ef |
Lg |
1004 |
Motorola |
22b8 |
Mtk |
0e8d |
Nec |
0409 |
Nook |
2080 |
Nvidia |
0955 |
Otgv |
2257 |
Pantech |
10a9 |
Pegatron |
1d4d |
Philips |
0471 |
Pmc-sierra |
04da |
Qualcomm |
05c6 |
SK Telesys |
1f53 |
Samsung |
04e8 |
Sharp |
04dd |
Sony |
054c |
Sony Ericsson |
0fce |
Teleepoch |
2340 |
Toshiba |
0930 |
ZTE |
19d2 |
After a smooth setup, you will be able to see our USB real machine in Qt creator.
Reference Document: http://zwkufo.blog.163.com/blog/static/2588251201126113638144/
Linux develops QT-based Android applications to specify debug devices