# android.support.test.runner.permission

# android.support.test.runner.permission

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

## Classes

|---------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [PermissionRequester](https://developer.android.com/reference/android/support/test/runner/permission/PermissionRequester)             | Requests a runtime permission on devices running Android M (API 23) and above.                                                                                                                                 |
| [RequestPermissionCallable](https://developer.android.com/reference/android/support/test/runner/permission/RequestPermissionCallable) | Base class for runtime permission[Callable](https://developer.android.com/reference/java/util/concurrent/Callable.html)s.                                                                                      |
| [ShellCommand](https://developer.android.com/reference/android/support/test/runner/permission/ShellCommand)                           | Ideally we wouldn't need this abstraction but since[UiAutomation](https://developer.android.com/reference/android/app/UiAutomation.html)is final we need an abstraction on top to be able to mock it in tests. |

## Enums

|-----------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------|
| [RequestPermissionCallable.Result](https://developer.android.com/reference/android/support/test/runner/permission/RequestPermissionCallable.Result) | Result of a permission request. |

-

  ## Classes

  - [PermissionRequester](https://developer.android.com/reference/android/support/test/runner/permission/PermissionRequester)
  - [RequestPermissionCallable](https://developer.android.com/reference/android/support/test/runner/permission/RequestPermissionCallable)
  - [ShellCommand](https://developer.android.com/reference/android/support/test/runner/permission/ShellCommand)
-

  ## Enums

  - [RequestPermissionCallable.Result](https://developer.android.com/reference/android/support/test/runner/permission/RequestPermissionCallable.Result)