java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.ACTION_POWER_DISCONNECTED from pid=27577, uid=10149

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()

,
Expert tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> on the Android Manifest

Solutions on the web

via Stack Overflow by Himanshu Chopra
, 1 year ago
Permission Denial: not allowed to send broadcast android.intent.action.ACTION_POWER_DISCONNECTED from pid=27577, uid=10149
via Stack Overflow by praveen Sharma
, 1 year ago
Permission Denial: not allowed to send broadcast android.location.GPS_ENABLED_CHANGE from pid=3818, uid=10084
via dolinked.com by Unknown author, 1 year ago
Permission Denial: not allowed to send broadcast android.location.GPS_ENABLED_CHANGE from pid=3818, uid=10084
via itstrike.cn by Unknown author, 1 year ago
Permission Denial: not allowed to send broadcast android.location.GPS_ENABLED_CHANGE from pid=3818, uid=10084
via ti.com by Unknown author, 1 year ago
Permission Denial: not allowed to send broadcast android.media.AUDIO_BECOMING_NOISY from pid=1501, uid=10046
via Google Groups by Andreas Liebig, 10 months ago
Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED from pid=8646, uid=10102
java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.ACTION_POWER_DISCONNECTED from pid=27577, uid=10149
at android.os.Parcel.readException(Parcel.java:1546)
at android.os.Parcel.readException(Parcel.java:1499)
at android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:3005)
at android.app.ContextImpl.sendBroadcast(ContextImpl.java:1515)
at com.android.boltage.unplugbroadcast.MainActivity$2.onClick(MainActivity.java:69)
at android.view.View.performClick(View.java:5076)
at android.view.View$PerformClick.run(View.java:20279)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5930)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
254 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.