[AC-5241] createIntent using file:// leads to FileUriExposedException
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2017-10-05T18:37:50.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Nikos Poulios |
Assignee | Shak Hossain |
Created | 2017-09-27T13:59:44.000+0000 |
Updated | 2017-10-05T18:37:50.000+0000 |
Description
startActivity - createIntent to view a local file does not work. FileProvider API needs to be used
Tested using 6.1.0/6.2.2 GA targeting API 25
See https://medium.com/@ali.muzaffar/what-is-android-os-fileuriexposedexception-and-what-you-can-do-about-it-70b9eb17c6d0
Hello, As of Android 7.0, Intents should use a ContentProvider to provide the DATA URI of created Intents. We have an issue waiting in production for a fix in 6.3.0 release. Thanks.