Android Open App Permission Screen Programmatically

November 22, 2019

Technically, you cannot open App Permission screens directly, but you can open App Settings screen which can access Permission.

Intent(ACTION_APPLICATION_DETAILS_SETTINGS, Uri.parse("package:${activity!!.packageName}")).apply {
    addCategory(Intent.CATEGORY_DEFAULT)
    addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
    startActivity(this)
}
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.