java.lang.SecurityException: Neither user 10003 nor current process has android.permission.PACKAGE_USAGE_STATS.

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()

,
via android.com by Unknown author

You need to request READ_PHONE_STATE permissions before using of this method.

Solutions on the web

via GitHub by k3b
, 1 year ago
Neither user 10003 nor current process has android.permission.PACKAGE_USAGE_STATS.
via Stack Overflow by Unknown author, 2 years ago
Neither user 10006 nor current process has android.permission.PACKAGE_USAGE_STATS.
via Google Groups by Troy Chuinard, 3 months ago
Neither user 10019 nor current process has android.permission.PACKAGE_USAGE_STATS.
via codegur.com by Unknown author, 1 year ago
Neither user 10019 nor current process has android.permission.PACKAGE_USAGE_STATS.
via GitHub by tobrun
, 1 year ago
Neither user 10017 nor current process has android.permission.PACKAGE_USAGE_STATS.
via forundex.ru by Unknown author, 1 year ago
Neither user 10005 nor current process has android.permission.PACKAGE_USAGE_STATS.
java.lang.SecurityException: Neither user 10003 nor current process has android.permission.PACKAGE_USAGE_STATS.
at android.os.Parcel.readException(Parcel.java:1465)
at android.os.Parcel.readException(Parcel.java:1419)
at com.android.providers.applications.ApplicationsProvider.fetchUsageStats(ApplicationsProvider.java:714)
at com.android.providers.applications.ApplicationsProvider.updateApplicationsList(ApplicationsProvider.java:548)
at com.android.providers.applications.ApplicationsProvider.access$400(ApplicationsProvider.java:72)
at com.android.providers.applications.ApplicationsProvider$UpdateHandler.handleMessage(ApplicationsProvider.java:232)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:193)
at android.os.HandlerThread.run(HandlerThread.java:61)

Users with the same issue

49 times, 3 months ago
86 times, 5 months ago
33 times, 1 year ago
3 times, 1 year ago
2 times, 1 year ago
251 more bugmates

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