In my Roblectric test, I try to confirm permission dialog with UiDevice
UiDevice
@RunWith(RobolectricTestRunner::class) @Config(sdk = [Build.VERSION_CODES