When we want to take a new picture with a camera app we generally don’t need to ask for any permissions because the camera app should handle that. The problem is when a third-party app (Jetpack in this case) has
<uses-permission android:name="android.permission.CAMERA" />
in AndroidManifest. This forces us to handle that permission even if we still ask the camera app to take the picture…
https://developer.android.com/reference/android/provider/MediaStore#ACTION_IMAGE_CAPTURE