没有三星 Galaxy 2s 的权限
我刚刚买了一部新的 Samsung Galaxy 2S 手机来测试我的应用程序。当我尝试运行该应用程序时,它显示 AVD NAME N/A、目标未知和状态 ???
我在手机上启用了调试模式和未知来源。
我正在使用 Ubuntu 进行开发,并使用以下内容编辑了 /etc/udev/rules.d/51-android.rules
:
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
将其模式更改为 a+r。
重新启动 adb 守护进程:
sudo ./adb kill-server
sudo ./adb devices
但是,它仍然显示:
./adb devices
List of devices attached
???????????? no permissions
I just got a new Samsung Galaxy 2S phone to test my app. When I tried to ran the app, it shows AVD NAme N/A, target unknown and state ???
I have enabled debug mode and unknown sources on the phone.
I am developing using Ubuntu and I edited /etc/udev/rules.d/51-android.rules
with the following content:
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
changed its mode to a+r.
restart adb daemon:
sudo ./adb kill-server
sudo ./adb devices
However, it still shows:
./adb devices
List of devices attached
???????????? no permissions
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须像 root 一样执行所有这些命令。转到终端并输入:
然后输入:
并粘贴此文本:
类型:
之后(仍以 root 身份)重新启动 udev:
现在尝试:
All of these commands you must do like a root. Go to terminal and type:
After that type:
and paste this text:
Type:
After that (still as root) restart udev:
Now try:
我也有同样的问题。我所要做的就是禁用 USB 大容量存储模式。在 CM9 上,转到“设置”、“存储”,然后点击“菜单”,然后点击“USB 计算机连接”,然后选择“媒体设备 (MTP)”。
I had the same problem. What I had to do is disable USB Mass Storage mode. On CM9 , Go to Settings, Storage then hit Menu , then USB Computer Connection , and select Media device (MTP).
这是一个常见问题,您必须重新插入设备... adb devices 可以作为非 root 用户运行...
这也可能有帮助:
http://comments.gmane.org/gmane.linux.debian.user/388013
this is a common issue you have to replug the device ... adb devices could be ran as non root user ...
May this help too :
http://comments.gmane.org/gmane.linux.debian.user/388013