[英]Permission Denial: not allowed to send broadcast android.intent.action.HEADSET_PLUG
Google obviously are introducing more and more protection for their internal broadcasts on JB or 4.1 and above. 谷歌显然正在为JB或4.1及更高版本的内部广播引入越来越多的保护。 This was working fine on 4.0? 这在4.0上工作正常吗? Do you know if there is a way to send a new broadcast, maybe using sendOrderedBroadcast with a permission? 你知道是否有办法发送新的广播,也许使用带有权限的sendOrderedBroadcast?
Which one? 哪一个?
This is now a protected broadcast only system uid can send. 现在这是一个受保护的广播系统uid可以发送。
See: android/frameworks/base/core/res/AndroidManifest.xml
: 请参阅: android/frameworks/base/core/res/AndroidManifest.xml
:
<protected-broadcast android:name="android.intent.action.HEADSET_PLUG" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.