Skip to content

android:requestLegacyExternalStorage attribute incorrectly used in <provider> element #336

@wrsilva

Description

@wrsilva

Hi there,

I noticed that in the library's manifest, the element includes the attribute android:requestLegacyExternalStorage="true" as shown below:

<provider android:name="com.crazecoder.openfile.FileProvider" android:authorities="${applicationId}.fileProvider.com.crazecoder.openfile" android:exported="false" android:grantUriPermissions="true" android:requestLegacyExternalStorage="true" tools:replace="android:authorities"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/filepaths" /> </provider>

However, according to the official Android documentation, the attribute android:requestLegacyExternalStorage is only valid in the element, not inside .

Having this attribute inside has no effect and may cause warnings or confusion, especially when submitting apps to Google Play.

Suggestion:
Please consider removing the android:requestLegacyExternalStorage attribute from the element to keep the manifest clean and avoid potential issues.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions