Is there an intent to open the android "Priority only allows" screen? This is the screenshot I want to reach. Unfortunately, depending on the Android release, it might look very different. It is some confusion to the users to get to the right place:
For Android Pie is:
You can open the Priority only allows
intent like this
startActivityForResult(new Intent(Settings.ACTION_ZEN_MODE_PRIORITY_SETTINGS), 0);
I hope this helps you.
EDIT:
In the case of Android Pie
you can try this
startActivityForResult(new Intent(Settings.ACTION_NOTIFICATION_POLICY_ACCESS_SETTINGS), 0);