GrantPermissionRule Failed to grant permissions Found the solution. I had to grant permission in the developer options menu: