Specify a debugging device for a Qt-based Android Application in Linux.

Source: Internet
Author: User

Specify a debugging device for a Qt-based Android Application in Linux.
Specify a debugging device for a Qt-based Android Application in Linux

I recently installed Ubuntu Kylin with Chinese and foreign counterparts. Then I switched to the sogou input method, and the encoding felt much better than Microsoft's. Opening Qt Creator and accessing webpages through Chromium are also fast, and the GCC Compilation speed is also very satisfactory. I encountered a little trouble when specifying an Android device: When I connected the Android tablet to a computer, I found that adb could not read, so that the Qt Creator interface could not see our real machine devices. What should we do? I remember that I had solved the problem before, but I forgot to use the blog record method. This time, I must write it down. I can't forget it in the future!

1. Open the terminal. Command: Ctrl + Alt + T

2. Go to the directory and run the command cd/etc/udev/rules. d.

3. Use gedit or vi to edit this file. Here, gedit is used as an example. Command: sudo gedit 70-persistent-net.rules (note that some systems are 50-android.rules, which can be edited as needed ). Add a line at the end of the line:

# The Android tablet we created ourselves

SUBSYSTEM = "usb", ATTR {idVendor} = "18d1", MODE = "0666"

This idVendor comes from an 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

Limit B

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-sisierra

04da

Qualcomm

05c6

SK Telesys

1f53

Samsung

04e8

Sharp

04dd

Sony

054c

Sony Ericsson

0fce

Teleepoch

2340

Toshba

0930

ZTE

19d2

 

After successful settings, we can see our USB Host in Qt Creator.

Reference: http://zwkufo.blog.163.com/blog/static/2588251201126113638144/

Related Article

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.