java.lang.SecurityException

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 9#268926365
    via GitHub by felixeduardo15
    ,
  • UserManager getUserCount() (Jelly Bean)
    via Stack Overflow by Kedi
    ,
  • Fatal exception error
    via Stack Overflow by user2850116
    ,
  • Dealing with Download Listener in Android
    via Stack Overflow by Alok Kumar
    ,
  • securityexception
    via by Unknown author,
    • java.lang.SecurityException: get application info: Neither user 1110118 nor current process has android.permission.INTERACT_ACROSS_USERS. at android.os.Parcel.readException(Parcel.java:1546) at android.os.Parcel.readException(Parcel.java:1499) at android.app.IAlarmManager$Stub$Proxy.set(IAlarmManager.java:214) at android.app.AlarmManager.setImpl(AlarmManager.java:414) at android.app.AlarmManager.setRepeating(AlarmManager.java:274) at com.lenddo.data.DataManager.setHourlyAlarm(SourceFile:600) at com.lenddo.data.DataManager.configureAlarm(SourceFile:576) at com.lenddo.data.DataManager.performInitialUpload(SourceFile:328) at com.lenddo.data.receiver.ConnectivityChanged.onReceive(SourceFile:49) at android.app.ActivityThread.handleReceiver(ActivityThread.java:2837) at android.app.ActivityThread.access$1700(ActivityThread.java:178) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1547) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:204) at android.app.ActivityThread.main(ActivityThread.java:5643) at java.lang.reflect.Method.invoke(Method.java) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    filipebatista
    12 times, last one,
    Hiren Amaliyar
    8 times, last one,
    Aravind
    86 times, last one,
    229 more bugmates