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.

  • Java SecurityException issue.
    via GitHub by sufidu
    ,
  • securityexception
    via GitHub by dschuermann
    ,
  • Security Exception with AccountManager
    via Stack Overflow by QuentR
    ,
    • java.lang.SecurityException: uid 10077 cannot explicitly add accounts of type: com.bizzypulse.bizzypulse at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at android.accounts.IAccountManager$Stub$Proxy.addAccountExplicitly(IAccountManager.java:890) at android.accounts.AccountManager.addAccountExplicitly(AccountManager.java:712) at com.bizzypulse.bizzypulse.sync.SyncUtils.createSyncAccount(SyncUtils.java:37) at com.bizzypulse.bizzypulse.BizzyApplication.setupSync(BizzyApplication.java:313) at com.bizzypulse.bizzypulse.BizzyApplication.setUpApp(BizzyApplication.java:188) at com.bizzypulse.bizzypulse.BizzyApplication.onCreate(BizzyApplication.java:92) at me.ele.amigo.Amigo.runOriginalApplication(Amigo.java:310) at me.ele.amigo.Amigo.onCreate(Amigo.java:59) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4711)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    filipebatistafilipebatista
    37 times, last one,
    Hiren AmaliyarHiren Amaliyar
    46 times, last one,
    AravindAravind
    86 times, last one,
    229 more bugmates