Android Question android.permission.WAKE_LOCK and SDK 34 [Solved]

divinglog

Member
Licensed User
Longtime User
A user of my app is getting this error after I've upgraded to SDK 34:

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

I can't reproduce this on my Android 14 device, even after a fresh app install. I've now added AddPermission(android.permission.WAKE_LOCK) to the manifest file and sent him a test build to see if that fixes the error for him. I couldn't find anything if this is a new requirement for wake lock on Android 14.
 

divinglog

Member
Licensed User
Longtime User
I got the confirmation that adding to manifest solved this issue:

B4X:
AddPermission(android.permission.WAKE_LOCK)
 
Upvote 0
Solution
Cookies are required to use this site. You must accept them to continue using the site. Learn more…