[英]Ubuntu is not detecting my android device
I am new to android. 我是android的新手。 I have just downloaded and installed android sdk.
我刚下载并安装了android sdk。 Now when I run the application from eclipse, my device is not getting detected.
现在,当我从eclipse运行应用程序时,我的设备没有被检测到。 I have googled and was brought up with this as my solution, but that also didn't worked.
我用google搜索并将其作为我的解决方案,但这也没有奏效。
Here's the 51-android.rules 这是51-android.rules
SUBSYSTEMS=="usb", ATTR{idProduct}=="0bb4", ATTR{idProduct}=="0c03", MODE="0666", GROUP="plugindev", OWNER="<username>"
After that I rebooted my laptop, and ran this command: 之后我重启了我的笔记本电脑,并运行了这个命令:
username@laptopname:~/Android/adt-bundle/sdk/platform-tools$ adb devices
The output i get is: 我得到的输出是:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
???????????? no permissions
EDIT 编辑
If i run lsusb
, i get the following output when the device is pluged in. 如果我运行
lsusb
,当插入设备时,我会得到以下输出。
Bus 002 Device 004: ID 0bb4:0c03 HTC (High Tech Computer Corp.)
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 04f2:b337 Chicony Electronics Co., Ltd
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I am using Micromax Canvas 2.2 A114 - Android Version 4.2.2 我正在使用Micromax Canvas 2.2 A114 - Android版本4.2.2
Please help me. 请帮我。 Thanks.
谢谢。
please follow the step open command promt I have write blog for detecting phone in Ubuntu kindle check this 1) Enter command 请按照步骤打开命令promt我已经写了用于检测Ubuntu中的手机的博客点击这个 1)输入命令
gksu gedit /etc/udev/rules.d/70-android.rules
2)Enter password and enter below rules inside 2)输入密码并在里面输入以下规则
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0e79", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="413c", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0489", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="091e", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="24e3", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2116", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0482", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="17ef", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0409", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2080", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0955", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="2257", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="10a9", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1d4d", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0471", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04da", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="05c6", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1f53", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="04dd", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0930", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="19d2", MODE="0666"
3) save and enjoy... 3)保存和享受...
This is work for me and if not then let me inform i have post this answer related to 70 rules structure. 这对我有用,如果没有,那么让我通知我发布了与70规则结构相关的答案。
Thanx... 感谢名单...
for 51-android.rules check out this and this . 对于51-android.rules看看这个和这个 。
Make sure you switched on the developer option in your device . 确保已打开设备中的开发人员选项。 If not go to settings and select developer option and tick USB debugging
如果没有进入设置并选择开发人员选项并勾选USB调试
//try this in cmd //在cmd中尝试这个
$ lsusb
this will list out the details of pluged USB device details 这将列出插入的USB设备详细信息的详细信息
like if you had a HTC One connected you would get: 就像你有一个HTC One连接,你会得到:
Bus 002 Device 004: ID 0bb4:0c02
then you need to do 那你需要做
Add to the file (or create it if it does not exist- see above) /etc/udev/rules.d/51-android.rules the following line:
SUBSYSTEMS==”usb”, ATTRS{idVendor}==”0bb4″, ATTRS{idProduct}==”0c02″, MODE=”0666″
Note: so for you Micromax vendor id
is not 0bb4 注意:因此,Micromax
vendor id
不是0bb4
Finally if its not connected try this one 最后,如果它没有连接尝试这个
Under Linux there is also an adb_usb.ini from the SDK where you have to add the vendor IDs: 在Linux下,还有一个来自SDK的adb_usb.ini,您必须添加供应商ID:
~/.android/adb_usb.ini
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
0x2080
0x04e8
// restart udev //重启udev
$ sudo restart udev
Check if the device is recognized: 检查设备是否被识别:
$ adb devices
You may need to stop and start the adb server: 您可能需要停止并启动adb服务器:
$ adb kill-server
$ adb start-server
1.You should replace <username>
by 'your username'. 1.您应该用“您的用户名”替换
<username>
。
2.In debugging options in your phone, you should toggle USB Debugging
on. 2.在手机的调试选项中,您应该打开
USB Debugging
。
3.When you plug your device in computer, you should allow this computer(it will jump out a dialog that ask for your permission, just press 'OK'). 3.当您将设备插入计算机时,您应该允许这台计算机(它会跳出一个请求您许可的对话框,只需按“确定”)。
Maybe you're supposed to restart ADB. 也许你应该重启亚行。
Just use this steps: 只需使用以下步骤:
adb kill-server
and press enter. adb kill-server
并按回车键。 sudo adb start-server
and press enter. sudo adb start-server
并按回车键。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.