I'm using this snippet to open the overlay-permission settings page of my app:
startActivityForResult(
Intent(
Settings.ACTION_MANAGE_OVERLAY_PERMISSION,
Uri.parse("package:$packageName")
),
REQUEST_OVERDRAW_PERMISSION_CODE
)
It opens my app's related setting correctly on androids below 11, but on android 11 it opens the general setting of the overlay-permission and doesn't open my app (and user has to look for it). Is there any solution to open a specific app's permission directly?
