If the screen capture permission tool (including ‘Grant Permission’ option of setup tool for Android) fails;
Set the Android Setting – (System -) Developer options – Disable permission monitor: ON. (Color OS, Oxygen OS)
Then, retry the tool.
Example of the error message displayed:
Exception occurred while executing 'set': java.lang.SecurityException: uid 2000 does not have android.permission.MANAGE_APP_OPS_MODES.