compat/src/main/java/androidx/core/content/FileProvider.java
@Override
    public void attachInfo(@NonNull Context context, @NonNull ProviderInfo info) {
        super.attachInfo(context, info);

        // Sanity check our security
        if (info.exported) {
            throw new SecurityException("Provider must not be exported");
        }
        if (!info.grantUriPermissions) {
            throw new SecurityException("Provider must grant uri permissions");
        }

        mStrategy = getPathStrategy(context, info.authority);
    }
/**
     * After the FileProvider is instantiated, this method is called to provide the system with
     * information about the provider.
     *
     * @param context A {@link Context} for the current component.
     * @param info A {@link ProviderInfo} for the new provider.
     */
After the FileProvider is instantiated, this method is called to provide the system with
information about the provider.

@param context A  Context for the current component.
@param info A  ProviderInfo for the new provider.
After the FileProvider is instantiated this method is called to provide the system with information about the provider . @param context A Context for the current component . @param info A ProviderInfo for the new provider .
@Override
    public void attachInfo(@NonNull Context context, @NonNull ProviderInfo info) {
        super.attachInfo(context, info);
        if (info.exported) {
            throw new SecurityException("Provider must not be exported");
        }
        if (!info.grantUriPermissions) {
            throw new SecurityException("Provider must grant uri permissions");
        }
        mStrategy = getPathStrategy(context, info.authority);
    }
@ Override public void attachInfo ( @ NonNull Context context , @ NonNull ProviderInfo info ) { super . attachInfo ( context , info ) ; if ( info . exported ) { throw new SecurityException ( "Provider must not be exported" ) ; } if ( ! info . grantUriPermissions ) { throw new SecurityException ( "Provider must grant uri permissions" ) ; } mStrategy = getPathStrategy ( context , info . authority ) ; }
After the FileProvider is instantiated, this method is called to provide the system with
 information about the provider.
After the FileProvider is instantiated this method is called to provide the system with information about the provider .
// Sanity check our security