Android third lesson linked to Huawei Mobile

Source: Internet
Author: User

1 phenomena
For Windows environments, the following devices are viewed via the ADB devices command on the Huawei Phone:
List of devices attached
???????????? Device
Linux Environment problems:
When running sudo./ADB devices, if the output is as follows:
List of devices attached
???????????? No permissions
2 workaround
Operation Steps
1) Dial: *#* #2846579 #*#*
projectmenu-> Background Settings->usb port configuration->google mode
Yes, it's dial!! After this setting is complete, the device number can be displayed properly on Windows!!
The results appear as follows:
List of devices attached
0c37dc0e2827 Device
2) The Linux system also requires the deployment of Udev files
1. Lsusb
[Email Protected]:~/bin/android-sdk-linux/platform-tools$lsusb
Bus 002 device002:id 8087:8000 Intel Corp.
Bus 002 Device001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 001 device002:id 8087:8008 Intel Corp.
Bus 001 device001:id 1d6b:0002 Linux Foundation 2.0 root Hub
Bus 004 Device001:id 1d6b:0003 Linux Foundation 3.0 root Hub
Bus 003 device031:id 12d1:1038 Huawei Technologies Co., Ltd. Ideos (debug mode)
I am connected to the Huawei machine and see the last
Bus 003 device031:id 12d1:1038 Huawei Technologies Co., Ltd. Ideos (debug mode)
2.
[Email protected]:/# cd/etc/udev/rules.d/
[Email protected]:/etc/udev/rules.d# ls
[Email protected]:/etc/udev/rules.d# vi51-android.rules
3.
subsystem== "USB", attr{idvendor}== "12d1", attr{idproduct}== "1038", mode= "0600"
Where 12d1,1038 are taken from the two digits following the ID above
4. Give permission after saving:
Sudochmod A+rx/etc/udev/rules.d/51-android.rules
5. Sudo/etc/init.d/udev Restart or sudo restart Udev
6. sudo./adb kill-server
7. sudo./adb start-server
8. sudo./ADB devices
Reference: http://blog.chinaunix.net/uid-24856020-id-3388654.html

Android third lesson linked to Huawei Mobile

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.