To request a user for granting "Allow display over other apps" permission, one can send an Intent with Settings.ACTION_MANAGE_OVERLAY_PERMISSION action. For Android versions before R, (API version < 30) it goes directly to this specific setting in app setting page, but for API 30, it goes to "Display over other apps" permission page which is very bad for user experience.
I read that it's an intended behavior, but is there a workaround for this? For my screenshot app which needs to display a capture overlay button, what alternatives exist?