在openSUSE的13.2运行Android Studio中的工作区设备没有足够的权限 [英] Insufficient permissions for device in Android Studio Workspace running in openSUSE 13.2

查看:258
本文介绍了在openSUSE的13.2运行Android Studio中的工作区设备没有足够的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个根深蒂固摩托罗拉Defy +在运行CyanogenMod的V11定制ROM(每晚构建)由 Quarx 创建。使用Android Studio工作区,(ASW)1.1.0,当我尝试和调试这个设备,我得到

I have a rooted Motorola Defy+ running a Cyanogenmod v11 custom ROM (nightly build) created by Quarx. Using Android Studio Workspace,(ASW) v.1.1.0, when I try and debug on this device, I get

????????????[null]

中列出的

选择设备的窗口,其中显示的logcat窗口

listed in the Choose Device window, with the Logcat window showing

insufficient permissions for device

我真的想使用此设备和ROM进行调试。

I would really like to use this device and ROM for debugging purposes.

当我输入的lsusb 在命令行中我得到的,

When I enter lsusb from the command line I get,

Bus 002 Device 002: ID 22b8:431d Motorola PCS

这是摩托罗拉单位正确的设备ID。我已经安装了51 android.rules和71 android.rules在 /etc/udev/rules.d中/ 在这些文件的正确摩托罗拉的ID。

This is the correct device id for Motorola units. I have installed 51-android.rules and 71-android.rules in /etc/udev/rules.d/ with the correct Motorola ids in these files.

我也试过的在设备上撤销USB调试权威的,从的开发者选项的,没有运气。

I've also tried Revoke USB debugging authority, from Developer Options on the device, with no luck.

我还没有试过运行ASW作为root希望,有可能是另一种选择;有没有?

I have not tried running ASW as root hoping that there might be another option; is there?

更新:我能够得到和

uvachem-gsmith2:/home/greg/Android/Sdk/platform-tools # ./adb

然后我做了一个杀的服务器,做了SU以root用户并重新启动服务器。然后我试图连接从Android Studio中的设备。有大约从PC接受RSA密钥的设备上的消息,说是,然后是能够应用部署到该设备。所以回到我原来的问题,是有另一种方式,而不以root身份登录访问此设备吗?看来,如果有电话文件系统上的权限问题是preventing这...

I then did a kill server, did an SU to root user and restarted the server. I then tried to connect to the device from Android Studio. Got a message on the device about accepting the RSA key from the PC, said "Yes" and then was able to deploy the app to the device. So back to my original question, Is there another way to access this device without logging in as root? It seems as if there is a permission issue on the phone file system that is preventing this...

更新#2 的核心问题这里曾是许可的事情。尽管亚行运行以root身份将允许访问的扎根的Andr​​oid设备,更好的解决办法是改变权限的文件的udev此设备重置... 664至666,(请参阅下面的回答)。这允许PC访问设备上的文件系统。

Update #2 The core problem here was a permission thing. Even though running ADB as root will allow access to the rooted Android device, a better solution is to change permissions in the udev file for this device...resetting 664 to 666, (see answer below). This allows the PC to access the file system on the device.

推荐答案

在这条线从/etc/udev/rules.d/51-android.rules更改权限,

Changing permissions in this line from /etc/udev/rules.d/51-android.rules,

#Motorola 
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0664", GROUP="plugdev"

#Motorola 
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666", GROUP="plugdev"

解决了,不需要运行ADB以root的方式这个问题。

resolves this issue in a manner that DOES NOT require running adb as root.

这篇关于在openSUSE的13.2运行Android Studio中的工作区设备没有足够的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆