第二个 Android 11 开发者预览版现已推出,快来测试并分享您的反馈吧

androidx.test.runner.permission

Classes

PermissionRequester Requests a runtime permission on devices running Android M (API 23) and above. 
RequestPermissionCallable Base class for runtime permission Callables. 
ShellCommand Ideally we wouldn't need this abstraction but since UiAutomation is final we need an abstraction on top to be able to mock it in tests. 

Enums

RequestPermissionCallable.Result Result of a permission request.