java.lang.SecurityException: caller uid 10070 lacks any of android.permission.GET_ACCOUNTS

GitHub | swiftgeek | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Contact sync on 4.4

    GitHub | 9 months ago | swiftgeek
    java.lang.SecurityException: caller uid 10070 lacks any of android.permission.GET_ACCOUNTS
  2. 0

    Calling any of AccountManager getAccounts makes my application stop

    Stack Overflow | 2 years ago | iharob
    java.lang.SecurityException: caller uid 10085 lacks any of android.permission.GET_ACCOUNTS
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 121#225428472

    GitHub | 10 months ago | misaochan
    java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.free.nrw.commons/fr.free.nrw.commons.contributions.ContributionsActivity}: java.lang.SecurityException: caller uid 10292 lacks any of android.permission.GET_ACCOUNTS

Root Cause Analysis

  1. java.lang.SecurityException

    caller uid 10070 lacks any of android.permission.GET_ACCOUNTS

    at android.os.Parcel.readException()
  2. Android Platform
    AccountManager.getAccountsByType
    1. android.os.Parcel.readException(Parcel.java:1472)
    2. android.os.Parcel.readException(Parcel.java:1426)
    3. android.accounts.IAccountManager$Stub$Proxy.getAccountsAsUser(IAccountManager.java:647)
    4. android.accounts.AccountManager.getAccountsByTypeAsUser(AccountManager.java:447)
    5. android.accounts.AccountManager.getAccountsByType(AccountManager.java:441)
    5 frames
  3. com.google.android
    LoggingThreadedSyncAdapter.onPerformSync
    1. com.google.android.syncadapters.contacts.ContactsSyncAdapter.innerPerformSync(ContactsSyncAdapter.java:236)
    2. com.google.android.syncadapters.contacts.ContactsSyncAdapter.onPerformLoggedSync(ContactsSyncAdapter.java:168)
    3. com.google.android.common.LoggingThreadedSyncAdapter.onPerformSync(LoggingThreadedSyncAdapter.java:33)
    3 frames
  4. Android Platform
    AbstractThreadedSyncAdapter$SyncThread.run
    1. android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)
    1 frame