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

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 swiftgeek
, 1 year ago
caller uid 10070 lacks any of android.permission.GET_ACCOUNTS
via Stack Overflow by iharob
, 2 years ago
caller uid 10085 lacks any of android.permission.GET_ACCOUNTS
via Google Groups by Aaron, 5 months ago
caller uid 10091 lacks > android.permission.MANAGE_ACCOUNTS
via Google Groups by parul, 5 months ago
caller uid 1000 is different than the authenticator's uid
via xda-developers.com by Unknown author, 1 year ago
Caller uid=2000 is not privileged to communicate w th user=-2
java.lang.SecurityException: caller uid 10070 lacks any of android.permission.GET_ACCOUNTS
at android.os.Parcel.readException(Parcel.java:1472)
at android.os.Parcel.readException(Parcel.java:1426)
at android.accounts.IAccountManager$Stub$Proxy.getAccountsAsUser(IAccountManager.java:647)
at android.accounts.AccountManager.getAccountsByTypeAsUser(AccountManager.java:447)
at com.google.android.syncadapters.contacts.ContactsSyncAdapter.innerPerformSync(ContactsSyncAdapter.java:236)
at com.google.android.syncadapters.contacts.ContactsSyncAdapter.onPerformLoggedSync(ContactsSyncAdapter.java:168)
at com.google.android.common.LoggingThreadedSyncAdapter.onPerformSync(LoggingThreadedSyncAdapter.java:33)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)

Users with the same issue

2 times, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 11 hours ago
2 times, 13 hours ago
Samebug visitor profile picture
Unknown user
Once, 14 hours ago

Write tip

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