gpt4 book ai didi

android - android 7 (N OS) 上的 java.lang.SecurityException : Permission Denial: not allowed to send broadcast android. intent.action.NEW_OUTGOING_CALL

转载 作者:行者123 更新时间:2023-12-05 00:17:16 30 4
gpt4 key购买 nike

我想在 Nexus 5x(N OS) 设备上使用 adb 连接拨出电话。

我正在发送广播 Intent 并观察到错误:

Broadcasting: Intent { act=android.intent.action.NEW_OUTGOING_CALL (has extras) } java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.NEW_OUTGOING_CALL from pid=5569, uid=2000 at android.os.Parcel.readException(Parcel.java:1683) at android.os.Parcel.readException(Parcel.java:1636) at android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:3507) at com.android.commands.am.Am.sendBroadcast(Am.java:772) at com.android.commands.am.Am.onRun(Am.java:404) at com.android.internal.os.BaseCommand.run(BaseCommand.java:51) at com.android.commands.am.Am.main(Am.java:121) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:262)

最佳答案

引用 the documentation :

This is a protected intent that can only be sent by the system.

因此,您不能将它用于您自己的广播 Intent

关于android - android 7 (N OS) 上的 java.lang.SecurityException : Permission Denial: not allowed to send broadcast android. intent.action.NEW_OUTGOING_CALL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40968686/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com