WARN / ActivityManager(5038):权限被拒绝:checkComponentPermission被拒、权限、ActivityManager、WARN

2023-09-13 01:51:48 作者:不語卻知心

这是一个应用程序,我(广播)发送意图的另一个一个BroadcastReceiver。我得到了错误:

 警告/ ActivityManager(5038):权限被拒绝:checkComponentPermission
 

解决方案 Framework源码分析 三 ActivityThread

您需要在您的清单文件添加权限添加这些

 <接收器安卓名=机器人YourBroadCastReceiverName。:出口=真正的>< /接收器>
 

From one application I am (broadcast) sending an intent to a broadcastreceiver of another one. I am getting the error:

WARN/ActivityManager(5038): Permission denied: checkComponentPermission

解决方案

You need to add permission under your manifest file add these

<receiver android:name=".YourBroadCastReceiverName" android:exported="true"></receiver>