Having the same issue, stack trace: 08-06 16:05:53.915: E/AndroidRuntime(6898): java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.HEADSET_PLUG from pid=6898, uid=10062
08-06 16:05:53.915: E/AndroidRuntime(6898): at android.os.Parcel.readException(Parcel.java:1425) 08-06 16:05:53.915: E/AndroidRuntime(6898): at android.os.Parcel.readException(Parcel.java:1379) 08-06 16:05:53.915: E/AndroidRuntime(6898): at android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:1995) 08-06 16:05:53.915: E/AndroidRuntime(6898): at android.app.ContextImpl.sendOrderedBroadcast(ContextImpl.java:1013) 08-06 16:05:53.915: E/AndroidRuntime(6898): at android.content.ContextWrapper.sendOrderedBroadcast(ContextWrapper.java:329) 08-06 16:05:53.915: E/AndroidRuntime(6898): at xxx.xxx.Service.TelephonyHook.answerPhoneHeadsethook(TelephonyHook.java:53) 08-06 16:05:53.915: E/AndroidRuntime(6898): at xxx.xxx.Service.TelephonyHook.answerCall(TelephonyHook.java:60) 08-06 16:05:53.915: E/AndroidRuntime(6898): at xxx.xxx.Service.xxx.processConnectionEvent(xxx.java:719) 08-06 16:05:53.915: E/AndroidRuntime(6898): at xxx.xxx.Service.ServiceTCPHandler.handleMessage(ServiceTCPHandler.java:89) 08-06 16:05:53.915: E/AndroidRuntime(6898): at android.os.Handler.dispatchMessage(Handler.java:99) 08-06 16:05:53.915: E/AndroidRuntime(6898): at android.os.Looper.loop(Looper.java:137) 08-06 16:05:53.915: E/AndroidRuntime(6898): at android.app.ActivityThread.main(ActivityThread.java:4896) 08-06 16:05:53.915: E/AndroidRuntime(6898): at java.lang.reflect.Method.invokeNative(Native Method) 08-06 16:05:53.915: E/AndroidRuntime(6898): at java.lang.reflect.Method.invoke(Method.java:511) 08-06 16:05:53.915: E/AndroidRuntime(6898): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788) 08-06 16:05:53.915: E/AndroidRuntime(6898): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555) 08-06 16:05:53.915: E/AndroidRuntime(6898): at dalvik.system.NativeStart.main(Native Method) On Thursday, August 2, 2012 2:15:08 PM UTC+1, Mark Murphy (a Commons Guy) wrote: > > On Thu, Aug 2, 2012 at 9:00 AM, Incorporate Apps > <[email protected]> wrote: > > As of JB 4.1 Google has introduced some sort of permission check on this > > broadcastreceiver. Does anyone know what permission is needed, either in > > sendOrderedBroadcast or in the manifest? > > > > Here is the error > > > > java.lang.SecurityException: Permission Denial: not allowed to send > > broadcast android.intent.action.HEADSET_PLUG > > Can you show more of the stack trace? > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > Android Training in DC: http://marakana.com/training/android/ > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

