java.lang.SecurityException: Neither user 10039 nor current process has android.permission.WAKE_LOCK.

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 Google Groups by Mariano Kamp, 1 year ago
via GitHub by qssq
, 1 year ago
Neither user 10696 nor current process has android.permission.WAKE_LOCK.
via GitHub by lordi
, 1 year ago
Neither user 10025 nor current process has android.permission.WAKE_LOCK.
via google.com by Unknown author, 1 year ago
Neither user 10071 nor current process has android.permission.WAKE_LOCK.
via Stack Overflow by John Donvan
, 2 years ago
Neither user 10008 nor current process has android.permission.WAKE_LOCK.
java.lang.SecurityException: Neither user 10039 nor current process has android.permission.WAKE_LOCK.
at android.os.Parcel.readException(Parcel.java:1234)
at android.os.Parcel.readException(Parcel.java:1222)
at android.os.IPowerManager$Stub$Proxy.acquireWakeLock(IPowerManager.java:178)
at android.os.PowerManager$WakeLock.acquire(PowerManager.java:228)
at com.newsrob.SynchronizationService.doSync(SynchronizationService.java:109)
at com.newsrob.SynchronizationService.access$0(SynchronizationService.java:86)
at com.newsrob.SynchronizationService$1.run(SynchronizationService.java:75)
at java.lang.Thread.run(Thread.java:1058)

Users with the same issue

Once, 6 months ago
4 times, 1 year ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
251 more bugmates

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