飞机坠毁前应用程序启动:SecurityException异常:权限被拒绝:INTERACT_ACROSS_USERS_FULL [英] crash before app starts : SecurityException: Permission Denial: INTERACT_ACROSS_USERS_FULL

查看:798
本文介绍了飞机坠毁前应用程序启动:SecurityException异常:权限被拒绝:INTERACT_ACROSS_USERS_FULL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个根深蒂固的设备,这是银河S3 I9300,三星的股票为主的ROM,基于Android 4.3。

I have a rooted device, which is Galaxy S3 I9300 , with Samsung stock based ROM, based on Android 4.3.

我从来没有运行的应用程序,我的工作与本设备的任何问题。

I never had any problems running an app i'm working on with this device.

自从昨天(我没有更改设备上的任何东西),我每次打开应用程序时,它显示了一个很短的时间,将关闭本身没有任何错误对话框但它显示了一个日志:

ever since yesterday (and I didn't change anything on the device), each time I open the app, it shows for a very short time, closes itself without any crash dialog yet it shows the next log:

01-30 09:27:18.325: E/DatabaseUtils(2366): Writing exception to parcel
01-30 09:27:18.325: E/DatabaseUtils(2366): 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
01-30 09:27:18.325: E/DatabaseUtils(2366):  at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:13140)
01-30 09:27:18.325: E/DatabaseUtils(2366):  at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2038)
01-30 09:27:18.325: E/DatabaseUtils(2366):  at com.android.providers.settings.SettingsProvider.callFromPackage(SettingsProvider.java:607)
01-30 09:27:18.325: E/DatabaseUtils(2366):  at android.content.ContentProvider$Transport.call(ContentProvider.java:279)
01-30 09:27:18.325: E/DatabaseUtils(2366):  at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:273)
01-30 09:27:18.325: E/DatabaseUtils(2366):  at android.os.Binder.execTransact(Binder.java:388)
01-30 09:27:18.325: E/DatabaseUtils(2366):  at dalvik.system.NativeStart.run(Native Method)

它甚至没有得到类的code,扩展应用...

it doesn't even get to the code of the class that extends Application ...

看来,这个问题是很常见的(很多报道这件事),但我找不到任何解决方案,以及为什么发生,除了有一个根深蒂固的设备。

It seems that this problem is very common (many have reported about it), but I can't find any solution and why it occurs, other than having a rooted device.

人们也说,这里写的权限实际上是一个系统的权限,但我从来没有听说过,更别说用它(甚至不知道它是什么)。

People also say the permission that is written here is actually a system permission, but I never even heard of it, let alone use it (not even sure what it is).

但问题是,应用程序我的工作没有任何关系的根,再加上它的工作只是在几天前。

Problem is, the app I'm working on doesn't have anything related to root, plus it worked just a few days ago.

我试着重新安装光盘(欧米茄ROM V54),并禁止任何有关xposed框架。它并没有帮助。

I've tried to re-install the ROM (Omega ROM v54) and also disable anything related to xposed framework. it didn't help.

我该如何解决这个问题?我怎么知道其他用户不会有这样的问题?

How do I fix this issue? How would I know other users won't have this problem?

时它甚至涉及到根深蒂固的设备?

Is it even related to rooted devices?

编辑:我想我已经在设置画面的开发部分发现,修复它,通过选择一个答案撤销USB调试......。它似乎工作在第一,但后来问题返回,点击它并没有做什么有用的了...

i thought i've found an answer that fixes it, by choosing "revoke USB debugging..." on the developers section of the settings screen. it seemed to work at first, but later the problem returned and clicking it didn't do anything helpful anymore...

编辑:我认为这只是在应用程序本身或ROM中的错误,因为我不能重现它了。这是很奇怪的,因为我敢肯定我试图调试应用程序,并把(应用程序类本身也许)断点的活性的研究的onCreate方法,并没有就此停止。

I think it's just a bug on the app itself or the ROM, since I can't reproduce it anymore. It's quite weird since I'm quite sure I've tried to debug the app and put a breakpoint on the onCreate method of the acitivity (and maybe of the application class itself) and it didn't stop there.

推荐答案

将你的 APK /系统/应用/ 。它不会被执行为用户0,但它可以让你使用这个权限:

Move your apk to /system/app/. It will not be executed as user 0, but it will allow you to use this permission:

android.permission.INTERACT_ACROSS_USERS_FULL

这篇关于飞机坠毁前应用程序启动:SecurityException异常:权限被拒绝:INTERACT_ACROSS_USERS_FULL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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