Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow attachments from file:///data/
Disallow third-party applications to send a share intent with a file:///data/... Uri because that would expose internal application data. If the Intent Uri is a "file" and the file is in `Environment.getDataDirectory()`, then throw a AttachmentFailureException which is caught immediately and shows a toast to the user. Fix issue 199888 Fix b/26989185 Change-Id: Ice1d3382d52d2ab97cddc3e9c0b2dd29819b664f (cherry picked from commit 21483a4)
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters