应用程序随机崩溃,显示权限拒绝异常。这是错误日志
Writing exception to parcel
java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/fs_id from pid=22310, uid=10084 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
a
我有HTC ONE M7 (GPE 4.2.2)和HTC EVO 3D (4.0.3) HTC Sense 3.6
HTC ONE不需要:
<uses-permission android:name="android.permission.READ_CONTACTS" />
然而,在HTCEVO3D上,下面的代码抛出一个异常:
public static String getPhoneNumberFromIntent(Context context, Intent data) throws SecurityException {
String conta
我已经实现了如下代码:
Intent i = new Intent(Intent.ACTION_REBOOT);
sendBroadcast(i);
它得到错误(运行时):
java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.REBOOT from pid=*** and uid=***
面对来自Google report (Android 9)的错误: Fatal Exception: java.lang.RuntimeException
Unable to start activity: java.lang.SecurityException: Permission Denial:
broadcast from android asks to run as user -1 but is calling from user 0; this
requires android.permission.INTERACT_ACROSS_USERS_FULL or
android
如标题所示。通过来自Chrome works的Intent将图片分享到我的应用程序。不过,它在Firefox上不起作用。我得到了以下异常:
Security Exception: Permission Denial: opening provider mozilla.components.feature.downloads.provider.FileProvider from ProcessRecord{6b46c1f 12229:com.appName/u0a134} (pid=12229, uid=10134) that is not exported from UID 10135
jav
只是在Android监视器中我的应用程序PID下遇到了这个异常,而没有做任何特殊的事情。我第一次看到这样的东西,有什么解释/文档吗?谢谢
java.lang.SecurityException: Permission Denial:
broadcast from android asks to run as user -1 but is calling from user 0;
this requires android.permission.INTERACT_ACROSS_USERS_FULL or
android.permission.INTERACT_ACRO
我在play商店有一个读取gmail标签的应用程序(基于google博客上提供的示例应用程序)
对于大多数人来说,它工作得很好,但对于一些人,他们会从应用程序中得到以下错误:
"java.lang.SecurityException: Permission Denial: reading com.google.android.gm.provider.PublicContentProvider uri content://com.google.android.gm/test@example.com/labels from pid=29069, uid=10087 requires co
在用户授予android.permission.RECEIVE_SMS后,我的应用程序将读取用户的短信,
但是有些用户会崩溃(我不能让它发生)。
android.permission.RECEIVE_SMS和android.permission.READ_SMS都是在AndroidManifest.xml中声明的,它们是同一个权限组()。
详细的坠毁报告:
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncT
Exception到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
我已经试过了,有没有选中各种选项框,比如“启用google play服务”。这两个我都添加了
uses-permission android:name="android.permis
我在android上有一个很大的应用程序。
应用程序会不时地崩溃,并出现不清楚的错误。我不知道这种情况发生的确切时间和原因。
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
有什么帮助吗?