I have a basic :app module. and there is the :camera module.
In the camera module, I open the native camera using intent.
MediaStore.ACTION_IMAGE_CAPTURE
but the camera doesn't work, as I get an error
UID 10388 does not have permission to content://com.example.android.provider/attachment_file/Android/media/com.example.android.dev/some_name.jpg [user 0]
here's mine provider AndroidManifest in app:
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_path" />
</provider>
if you change the android:authorities on "com.example.android.provider" then the camera works. But the app stops being installed on the phone due to other build variants installed