java.lang.SecurityException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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()

tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write on the Android Manifest

tip

MANAGE_USERS has a protection level of signature|system, so your application must be signed with the platform key. Take a look on this https://goo.gl/nXsTvH for more information about it.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 60#183679599
    via GitHub by cedricpoon
    ,
  • GitHub comment 6680#234461961
    via GitHub by PramodRaut
    ,
  • Custom Permission for activity
    via Stack Overflow by Ananth
    ,
  • Changing activity launch Intent error
    via by Unknown author,
  • Android start up launching wrong activity
    via by Unknown author,
  • App runs on emulator but not device?
    via Stack Overflow by Dashboarrd
    ,
  • App isn't installed android error
    via Stack Overflow by Prabha1
    ,
    • 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.internal.os.BaseCommand.run(BaseCommand.java:47) at com.android.commands.am.Am.main(Am.java:97) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:249)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    229 more bugmates