Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# android.support.test.runner.permission\n======================================\n\n| This package is part of the Android [support library](/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](/jetpack/androidx) which is part of [Jetpack](/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class\n| mappings](/jetpack/androidx/migrate/class-mappings).\n\nClasses\n-------\n\n|----------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [PermissionRequester](/reference/android/support/test/runner/permission/PermissionRequester) | Requests a runtime permission on devices running Android M (API 23) and above. |\n| [RequestPermissionCallable](/reference/android/support/test/runner/permission/RequestPermissionCallable) | Base class for runtime permission [Callable](https://developer.android.com/reference/java/util/concurrent/Callable.html)s. |\n| [ShellCommand](/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. |\n\nEnums\n-----\n\n|------------------------------------------------------------------------------------------------------------------------|---------------------------------|\n| [RequestPermissionCallable.Result](/reference/android/support/test/runner/permission/RequestPermissionCallable.Result) | Result of a permission request. |\n\n-\n\n Classes\n -------\n\n - [PermissionRequester](/reference/android/support/test/runner/permission/PermissionRequester)\n - [RequestPermissionCallable](/reference/android/support/test/runner/permission/RequestPermissionCallable)\n - [ShellCommand](/reference/android/support/test/runner/permission/ShellCommand)\n-\n\n Enums\n -----\n\n - [RequestPermissionCallable.Result](/reference/android/support/test/runner/permission/RequestPermissionCallable.Result)"]]