简体   繁体   English

android studio 3.0设备资源管理器 - 运行方式:无法设置功能:不允许操作

[英]android studio 3.0 Device Explorer - run as: could not set capabilities: Operation not permitted

i migrate to android studio 3.0. 我迁移到android studio 3.0。 i hear feature of new device explorer in android studio 3.0. 我在android studio 3.0中听到了新设备资源管理器的功能。 but when i connect my android phone (Samsung Note 4 - N910C) i cant see the data\\data package sub folder like database folder in device explorer. 但当我连接我的Android手机(三星Note 4 - N910C)时,我无法在设备资源管理器中看到数据\\数据包子文件夹,如数据库文件夹。 but when use android emulator i didn't have problem and can see package sub folder for same package. 但是当使用android模拟器我没有问题,可以看到相同包的包子文件夹。 how can i solve this? 我怎么能解决这个问题?

三星N910C设备资源管理器

Android模拟器设备资源管理器

data/data Not Accessible data/data无法访问

According to the Android Studio docs the data/data directory is not accessible in the Device File Explorer: 根据Android Studio文档 ,无法在设备文件资源管理器中访问data/data目录:

Note: Not all files on a hardware device are visible in the Device File Explorer. 注意:并非所有硬件设备上的文件都在“设备文件资源管理器”中可见。 For example, in the data/data/ directory, entries corresponding to apps on the device that are not debuggable cannot be expanded in the Device File Explorer. 例如,在data / data /目录中,无法在设备文件资源管理器中展开与设备上不可调试的应用程序对应的条目。

It sounds like there's a bug in ADB's run-as command. 听起来ADB的run-as命令中存在一个错误。 According to this bug , 'run-as' failed. Could not set capabilities: Operation not permitted 根据这个bug'run-as' failed. Could not set capabilities: Operation not permitted 'run-as' failed. Could not set capabilities: Operation not permitted means Android Studio couldn't set elevated privs to read the contents of the app's directory. 'run-as' failed. Could not set capabilities: Operation not permitted意味着Android Studio无法设置提升的privs来读取应用程序目录的内容。

Comments on the bug suggest Samsung regularly breaks the feature on their devices. 对该错误的评论表明三星经常打破他们设备上的功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM