Hello,
I'm trying to use the "Device doze mode set state" block on a Samsung XCover 4s with Android 11. I have read that "This feature isn’t officially supported, requires Android 6+ and the privileged service, may not work on all devices". Anyway, I want to try it.
I get the exception: com.llamalab.automate.access.AccessNotGrantedException
So what exactly would I have to grant?
I have granted all rights that can be granted from the phone's UI and via ADB I have granted
adb shell pm grant com.llamalab.automate android.permission.CHANGE_CONFIGURATION
and
adb shell pm grant com.llamalab.automate android.permission.WRITE_SECURE_SETTINGS
I believe this should be enough, but the problem persists.
Is there a way to query the successful setting of a privilege?