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

会有一股神秘感。 提交于 2020-05-10 07:02:09

问题


i migrate to android studio 3.0. i hear feature of new device explorer in 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. but when use android emulator i didn't have problem and can see package sub folder for same package. how can i solve this?


回答1:


data/data Not Accessible

According to the Android Studio docs the data/data directory is not accessible in the Device File Explorer:

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.




回答2:


It sounds like there's a bug in ADB's run-as command. According to this bug, '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.

Comments on the bug suggest Samsung regularly breaks the feature on their devices.



来源:https://stackoverflow.com/questions/47390411/android-studio-3-0-device-explorer-run-as-could-not-set-capabilities-operati

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!