我添加了用户权限android.permission.CALL_PRIVILEGED但仍然收到安全异常权限拒绝启动意图,提前感谢 [英] i add user permission android.permission.CALL_PRIVILEGED but still receiving security exception permission denial to start intent,thanks in advance

查看:139
本文介绍了我添加了用户权限android.permission.CALL_PRIVILEGED但仍然收到安全异常权限拒绝启动意图,提前感谢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮我解决清单中添加更多内容的问题

pls help me out what to add more in manifest

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

    package="adil.SMC.KUST"

    android:versionCode="1"

    android:versionName="1.0" >
 <uses-permission android:name="android.permission.CALL_PHONE"/>
    <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
    <uses-permission android:name="android.permission.CALL_PRIVILEGED"/>

    <application

        android:allowBackup="true"

        android:icon="@drawable/ic_launcher"

        android:label="@string/app_name"

        android:theme="@style/AppTheme" >
        <activity android:name=".SplashScreen" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity  android:name="android.intent.action.CALL_PRIVILEGED" >
  <intent-filter>
    <action android:name="android.intent.action.CALL_PRIVILEGED" />
    <category android:name="android.intent.category.DEFAULT" />
  </intent-filter>
       </activity>
    </application>

</manifest>



这里是我开始意图的代码




here is code where i start intent

Intent callIntent = new Intent("android.intent.action.CALL_PRIVILEGED");
	callIntent.setData(Uri.parse("tel:" + "03401933560"));
	startActivity(callIntent);

推荐答案

你不能因为它不被第三方应用程序使用根据 http://developer.android.com/reference/android/Manifest.permission.html#CALL_PRIVILEGED [ ^ ]



这可能是由于它的signatureOrSystem保护组,见 http://developer.android.com/guide/topics/manifest/permission-element.html#pgroup [ ^ ]
You can't as it is Not for use by third-party applications According to http://developer.android.com/reference/android/Manifest.permission.html#CALL_PRIVILEGED[^]

This is probably owing to its protection group of signatureOrSystem, see http://developer.android.com/guide/topics/manifest/permission-element.html#pgroup[^]


这篇关于我添加了用户权限android.permission.CALL_PRIVILEGED但仍然收到安全异常权限拒绝启动意图,提前感谢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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