Android real machine display in Ubuntu ???????????? No permissions, androidpermissions

Source: Internet
Author: User
Tags lenovo

Android real machine display in Ubuntu ???????????? No permissions (reproduced), androidpermissions

First:

Open a terminal and enter lsusb to view all USB devices connected to the computer, for example:

Bus 002 Device 003: ID 046d: c06a Logitech, Inc.

Bus 002 Device 010: ID 17ef: 7533 Lenovo

The second is my connected Lenovo mobile phone.

Second:

Enter/etc/udev/rules. d:

Open the terminal (Ctrl + Alt + T), enter the root user, and run sudo gedit/etc/udev/rules. d/50-Android.rules to create a new one under the directory.

50-android.rules files. If the file already exists, create a 51-android.rules file and add the following statement to the file:

SUBSYSTEM = "usb", SYSFS {idVendor} = "17ef", MODE = "0666"

SYSFS {idVendor }== "17ef" indicates Lenovo's mobile phone. If it is HTC, it is converted to 0bb4. the IDs of USB for all mobile phones are 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
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

 

 

Finally:

Save the 50-android.rules file. In the terminal (Be sure to be under the root user; otherwise, the system will prompt ?????? No permission) Input adb kill-server,

Enter adb devices and you will see the USB:

List of devices attached

0123456789 ABCDEF device

Now, you can use Eclipse to connect to your mobile phone for testing.


Android adb devices shows no permission. How can this problem be solved?

Run the adb devices command in ubuntu (9.10). The returned result is:
List of devices attached
???????????? No permissions
This means that USB-connected devices can be identified. After Google, I learned that the adb server needs to be started with the root permission, so I had the following command:
Brian @ brian-laptop :~ /Dev/Java/Android/android-sdk-linux_86/tools $./adb kill-server
Brian @ brian-laptop :~ /Dev/Java/Android/android-sdk-linux_86/tools $ sudo./adb start-server
* Daemon not running. starting it now *
* Daemon started successfully *

The first command is used to kill the currently running server. The second command starts the new server with the root permission. We can view the devices again:
Brian @ brian-laptop :~ /Dev/Java/Android/android-sdk-linux_86/tools $./adb devices
List of devices attached
HT848KV04386 device

The device was correctly identified this time. Naturally, tools like ddms can also be used.
If you still don't know how to go to the fan Feng network.

The mobile phone of Huawei C8812 cannot be recognized during debugging on a real machine under ubuntu ??????????? Devices

Dialing: * #2846579 #*#*
ProjectMenu-> background settings-> USB port configuration-> Google Mode

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.