[英]Android 6.0 even with permission 777 chmod cannot read file in data directory
I have files which have chmod 777
permissions in my data/data/package_directory/here
我的
data/data/package_directory/here
有chmod 777
权限的文件
I can't read them, like when I want to calculate crc32
or try to copy the file to SD Card with write external permission in manifest. 我无法读取它们,就像我想要计算
crc32
或尝试使用清单中的写入外部权限将文件复制到SD卡时。 I am targeting Android Lollipop so run time permissions are not required. 我的目标是Android Lollipop,因此不需要运行时权限。
How to fix this? 如何解决这个问题? I can not even access files with
777
permission in my directory. 我甚至无法在我的目录中访问具有
777
权限的文件。 I have granted root already to my App? 我已经将root授权给了我的应用程序?
Error is: 错误是:
open failed: EACCES (Permission denied)
开放失败:EACCES(权限被拒绝)
Always, whatever I do. 永远,无论我做什么。
In your emulator/device you should go to the Settings -> Applications -> (Your app) -> Permissions. 在您的模拟器/设备中,您应该转到设置 - >应用程序 - >(您的应用程序) - >权限。 Then enable the permissions for memory there
然后在那里启用内存权限
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.