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