java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.REBOOT flg=0x10000000 cmp=android/com.android.internal.app.ShutdownActivity (has extras) } from null (pid=21633, uid=2000) requires android.permission.SHUTDOWN

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 GitHub by cedricpoon
, 1 year ago
Permission Denial: starting Intent { act=android.intent.action.REBOOT flg=0x10000000 cmp=android/com.android.internal.app.ShutdownActivity (has extras) } from null (pid=21633, uid=2000) requires android.permission.SHUTDOWN
via Stack Overflow by Unknown author, 2 years ago
Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.project.searchandroid/.MainActivity } from null (pid=24876, uid=2000) requires android.permission.READ_SMS
via Stack Overflow by grzniuk
, 8 months ago
Permission Denial: starting Intent { act=android.intent.action.VIEW cat=[android.intent.category.DEFAULT] typ=vnd.google.android.package/vnd.google.android.package_something flg=0x10000000 cmp=com.google.android.package/com.google.android.apps.package.SomeActivity } from null (pid=31536, uid=2000) requires com.google.android.package.START_ACTIVITY
via Stack Overflow by Nachbar90
, 2 years ago
Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.android.myapp/com.android.myapp.application.ApplicationActivity } from null (pid=11313, uid=2000) not exported from uid 10274
via blogspot.com by Unknown author, 2 years ago
Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.projects.fbgrecojr.vamoose/.LoginActivity } from null (pid=31173, uid=2000) not exported from uid 10224
via Android Enthusiasts by natinusala
, 5 months ago
Permission Denial: starting Intent { flg=0x10000000 cmp=com.google.android.setupwizard/.SetupWizardTestActivity } from null (pid=9864, uid=2000) not exported from uid 10026
java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.REBOOT flg=0x10000000 cmp=android/com.android.internal.app.ShutdownActivity (has extras) } from null (pid=21633, uid=2000) requires android.permission.SHUTDOWN
at android.os.Parcel.readException(Parcel.java:1546)
at android.os.Parcel.readException(Parcel.java:1499)
at android.app.ActivityManagerProxy.startActivityAsUser(ActivityManagerNative.java:2485)
at com.android.commands.am.Am.runStart(Am.java:766)
at com.android.commands.am.Am.onRun(Am.java:305)
at com.android.commands.am.Am.main(Am.java:97)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)

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
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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