public class FileUriExposedException extends RuntimeException
file://
Uri
to another app.
This exposure is discouraged since the receiving app may not have access to
the shared path. For example, the receiving app may not have requested the
android.Manifest.permission#READ_EXTERNAL_STORAGE
runtime permission,
or the platform may be sharing the Uri
across user
profile boundaries.
Instead, apps should use content://
Uris so the platform can extend
temporary permission for the receiving app to access the resource.
This is only thrown for applications targeting Build.VERSION_CODES.N
or higher. Applications targeting earlier SDK versions are allowed to share
file://
Uri
, but it's strongly discouraged.
Constructor and Description |
---|
FileUriExposedException(String message) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public FileUriExposedException(String message)