权限拒绝:这需要android.permission.INTERACT_ACROSS_USERS_FULL [英] Permission Denial: this requires android.permission.INTERACT_ACROSS_USERS_FULL

查看:11949
本文介绍了权限拒绝:这需要android.permission.INTERACT_ACROSS_USERS_FULL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,在Android中的SQLite数据库。但正如我在互联网上做了一个快速的研究,我怀疑,这个问题是不相关的SQLite的,但系统的用户。我的应用程序不被识别为授权用户访问分贝功能。我尝试应用可能建议的解决方案堆栈溢出,但他们都不做了区别。这是我面对每一次我尝试使用数据库功能的LogCat中。

I am having an issue with sqlite db in Android. But as I made a quick research on the internet, I suspect that the problem is not related to sqlite but system user. My app is not recognized as authorized user to access db functionalities. I tried to apply possible suggested solutions in stack overflow but none of them made a difference. This is the LogCat I am facing every time I attempt to use db functionality.

12-14 02:35:17.721    2953-3355/? E/DatabaseUtils﹕ Writing exception to parcel
java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:13082)
at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2038)
at com.android.providers.settings.SettingsProvider.callFromPackage(SettingsProvider.java:577)
at android.content.ContentProvider$Transport.call(ContentProvider.java:279)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:273)
at android.os.Binder.execTransact(Binder.java:388)
at dalvik.system.NativeStart.run(Native Method)

我尝试添加权限

I tried to add permission

android.permission.INTERACT_ACROSS_USERS_FULL

但还是没有声音。奇怪的是,当我尝试添加INTERNET权限的Andr​​oid工作室0.3(IDE我用的)建议我可以许可我可以选择。但是,当涉及到INTERACT_ACROSS_USERS_FULL允许它像它并不知道此权限。我的测试设备上运行4.3三星S4。

but still no sound. The strange thing is when I try to add INTERNET permission Android Studio 0.3 (ide I use) suggests me possible permissions I can choose. But when it comes to INTERACT_ACROSS_USERS_FULL permission it behaves like it has no idea about this permission. My test device is Samsung S4 running on 4.3.

我想,我不是唯一一个谁试图使用数据库在Android上。所以有一个解决方案。

I assume that I am not the only one who tries to use db on android. So there is a solution.

我怎样才能真正INTERACT_ACROSS_USERS_FULL权限添加到我的应用程序?

How can I really add INTERACT_ACROSS_USERS_FULL permission to my application?

推荐答案

根据这样的回答:<一href="http://stackoverflow.com/a/19756762/713354"><$c$c>android.permission.INTERACT_ACROSS_USERS_FULL是签名级别的权限。你的应用程序将不能使用它之前,除非它具有相同的签名系统。

According to this answer: android.permission.INTERACT_ACROSS_USERS_FULL is a signature level permission. Your app will not be able to use it until and unless it has the same signature as the system.

这是不是你可以做到,除非你无论是创作者还是制度建设,或与他们合作,使得他们愿意使用他们的证书签名的APK。换言之,这是关闭的大多数开发的限制。

Which is not something you can achieve unless you either are the creator or the system build, or collaborating with them such that they are willing to sign your apk with their certificate. In other words, this is off limits for most developers.

这篇关于权限拒绝:这需要android.permission.INTERACT_ACROSS_USERS_FULL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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