简体   繁体   English

权限拒绝:不允许发送广播android.intent.action.HEADSET_PLUG

[英]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.

相关问题 SecurityException:权限被拒绝:不允许发送广播android.intent.action.BATTERY_CHANGED - SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.BATTERY_CHANGED Permission Denial:不允许发送广播 android.intent.action.AIRPLANE_MODE - Permission Denial: not allowed to send broadcast android.intent.action.AIRPLANE_MODE CSipSimple-java.lang.SecurityException:权限拒绝:不允许发送广播android.intent.action.Phone_State - CSipSimple - java.lang.SecurityException : Permission Denial: not allowed to send broadcast android.intent.action.Phone_State 应用程序因 Permission Denial 崩溃:不允许发送广播 android.intent.action.SCREEN_ON - App crashes with Permission Denial: not allowed to send broadcast android.intent.action.SCREEN_ON java.lang.SecurityException:权限拒绝:不允许在android 7(N OS)上发送广播android.intent.action.NEW_OUTGOING_CALL - java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.NEW_OUTGOING_CALL on android 7 (N OS) 权限拒绝:不允许在android中发送广播 - Permission Denial: not allowed to send broadcast in android 权限拒绝:不允许发送广播android - Permission Denial: not allowed to send broadcast android java.lang.SecurityException:权限拒绝:不允许仅在 KitKat 上发送广播 android.intent.action.MEDIA_MOUNTED - java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED on KitKat only 无需用户交互即可自动更新 APP ==&gt; Permission Denial: not allowed to send broadcast android.intent.action.PACKAGE_ADDED - Update APP automatically without user interaction facing issue==> Permission Denial: not allowed to send broadcast android.intent.action.PACKAGE_ADDED java.lang.SecurityException:权限拒绝:不允许发送广播android.hardware.usb.action.USB_STATE - java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.hardware.usb.action.USB_STATE
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM