在 Ubuntu 10.10 上使用真实 Android 手机在 Eclipse 中进行调试

发布于 2024-10-03 21:08:03 字数 405 浏览 0 评论 0原文

我无法让 adb 在新升级的 Ubuntu 10.10 Maverick Meerkat 上识别我的 HTC Desire。

adb devices 显示

List of devices attached 
????????????    no permissions

现在,有很多关于更改 /etc/udev/rules.d/ 下的规则文件的教程。 但是,我找不到 10.10 的具体信息。

谁能告诉我规则文件名和内容是否与 链接文本中描述的相同,或者我们是否正在为这个新版本考虑一些新设置?

非常感谢

I can't get adb to recognising my HTC Desire on my new upgrade of Ubuntu 10.10 Maverick Meerkat.

adb devices shows

List of devices attached 
????????????    no permissions

Now, there are plenty of tutorials for changing rule files under /etc/udev/rules.d/.
However, I cannot find one specific for 10.10.

Can anyone tell me whether the rule file name and content is the same as described at link text, or are we looking at some new settings for this new release?

Many thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

只有影子陪我不离不弃 2024-10-10 21:08:03

在带有 Samsung Galaxy S2 的 Linux Mint/Ubuntu 11.04 上,我没有使用任何规则,但是当“重置 adb”或“设备视图”时,它显示:

????????????没有权限

sudo killall adb # if I don't, I get "error: insufficient permissions for device"
sudo ./adb usb

然后我可以按照本教程截取屏幕截图: http://www.addictivetips.com/mobile/how-to-take-screenshots-of-android-device/

干杯

On Linux Mint/Ubuntu 11.04 with a Samsung Galaxy S2, I didn't use any rules, but when "reset adb" or when "Devices view" it shows:

???????????? no permissions

I had to :

sudo killall adb # if I don't, I get "error: insufficient permissions for device"
sudo ./adb usb

Then I was able to take screenshots following this tutorials: http://www.addictivetips.com/mobile/how-to-take-screenshots-of-android-device/

Cheers

与他有关 2024-10-10 21:08:03

我对 Ubuntu 11.04 的魔咒:

$killall adb
$sudo adb usb
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
restarting in USB mode

然后进入 eclipse 并开始在真机上调试

My magic spell for Ubuntu 11.04:

$killall adb
$sudo adb usb
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
restarting in USB mode

Then go to eclipse and start debugging on real device

半世蒼涼 2024-10-10 21:08:03

好吧,我来晚了一点,但这是另一种方法...

在 /etc/udev/rules.d 中创建一个名为 51-android.rules 的文件,其中包含以下内容

SUBSYSTEM==“usb”,ATTR{idVendor}==“04e8”,MODE =“0666”,GROUP =“plugdev”

然后运行以下命令重新加载 udev 规则...

udevadm control --reload-rules

现在将您的 Galaxy S2 手机插入计算机的 USB 端口并运行 adb devices

注意:您需要更改供应商 ID(以粗体突出显示)以匹配您手机的供应商 ID(在 OP 的情况下,HTC 的供应商 ID 应为 0bb4)

Ok I am a little late to the party but here is another approach...

Create a file called 51-android.rules in /etc/udev/rules.d with the following contents

SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev"

Then run the following command to reload the udev rules ...

udevadm control --reload-rules

Now plug in your galaxy S2 mobile phone into the computer's USB port and run adb devices.

NOTE: You will need to change the vendor id (highlighted in bold) to match your phone's vendor id (in the OP's case it should be 0bb4 for HTC)

眉黛浅 2024-10-10 21:08:03

好吧,我想教程有效,我创建了 70-android.rules 和 51-android.rules,再次重新输入它们(从网络复制时去掉有趣的引号)。

重新启动

,现在已经被识别了!

Okay, I guess the tutorials work, I created both 70-android.rules and 51-android.rules, re-typed them again (get rid of the funny quotes when you copy from the web).

Restart

And now it is recognised!

微凉徒眸意 2024-10-10 21:08:03

在 Windows 上,我必须从 HTC 下载特殊应用程序才能获得正确的 USB 驱动程序以连接到我的 Evo。该应用程序允许您将 Outlook 联系人/日历(哇...)与手机上的联系人/日历同步。我相当怀疑 ubuntu/Linux 是否有类似的东西可用。

我强烈怀疑你也遇到了类似的情况。标准 USB 驱动程序不适用于 HTC 手机,因此您需要其他东西。

如果升级后此问题停止工作,您需要仔细查看任何与 USB 相关的更改。

祝你好运。

On windows, I had to download a Special App from HTC in order to get the proper USB drivers to connect to my Evo. The app in question allows you to synch your outlook contacts/calendar (weee...) with those on your phone. I rather doubt there's something similar available for ubuntu/Linux.

I strongly suspect you're up against a similar situation. The standard USB drivers don't work with HTC phones, so you need Something Else.

If this is something that stopped working with the upgrade, you'll need to take a close look at any USB-related changes.

Good luck.

南街九尾狐 2024-10-10 21:08:03

大家好,检查各方面后我感到非常沮丧
但有一天我得到了这个问题的解决方案,请按照以下步骤操作

First open your device terminal
1)on the top left hand corner in Application ->Accessories->terminal
2) on terminal window type following commands
   $ sudo su then press enter after that terminal want password which is set by you  
   in    installation or giving at the time of logging.
   
lt;Enter password> password is not shown but it is type internally you can just type 
    whole password 
   $ mkdir ~/.android
   $vi ~/.android/adb_usb.ini
   press ctri+z here
   $ echo "0x0451" > ~/.android/adb_usb.ini
   $cat /root/.android/adb_usb.ini
    $sudo mount -t usbfs none /proc/bus/usb
   $cd path of android sdk tools from home
     like /home/tv-014/Desktop/newandroid/android-sdk-linux/platform-tools
   in my system i have put android-sdk-linux at desktop and in it one platform-tools 
   folder contain the adb.exe file
   so after cd command we have the path from home to platform-tools folder.
    $ ./adb kill-server
    $ ./adb start-server
    $ ./adb devices

现在您已经获得了连接到系统的设备列表。

Hi all i am very frustrated by checking all sides
But one day i got the solution of this problem pls follow the following steps

First open your device terminal
1)on the top left hand corner in Application ->Accessories->terminal
2) on terminal window type following commands
   $ sudo su then press enter after that terminal want password which is set by you  
   in    installation or giving at the time of logging.
   
lt;Enter password> password is not shown but it is type internally you can just type 
    whole password 
   $ mkdir ~/.android
   $vi ~/.android/adb_usb.ini
   press ctri+z here
   $ echo "0x0451" > ~/.android/adb_usb.ini
   $cat /root/.android/adb_usb.ini
    $sudo mount -t usbfs none /proc/bus/usb
   $cd path of android sdk tools from home
     like /home/tv-014/Desktop/newandroid/android-sdk-linux/platform-tools
   in my system i have put android-sdk-linux at desktop and in it one platform-tools 
   folder contain the adb.exe file
   so after cd command we have the path from home to platform-tools folder.
    $ ./adb kill-server
    $ ./adb start-server
    $ ./adb devices

Now you got the list of devices attach to your systems.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文