Error Messages:
adb.exe' -P 5037 -s 29cc0bc8 shell settings delete global hidden_api_policy_pre_p_apps' exited with code 255'; Stderr: 'Exception occurred while executing 'delete': java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTI
Solution:
In Developer Options – Disable Permission Monitoring – Enabled