[TIMOB-26620] Exception when creating file on external storage in a module on Android
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Alex Bendl |
Assignee | Eric Merriman |
Created | 2018-11-14T14:09:08.000+0000 |
Updated | 2018-11-29T23:54:14.000+0000 |
Description
When trying to create a file in external storage in a module with granted runtime permissions the file operation throws a permission denied exception.
The attachment contains a module and app to reproduce this issue.
Steps to reproduce:
- build the module
- add the module to the app
- build the app with Titanium SDK 7.3.0.GA or higher
- run the app on a device with Android 6.0 or higher
- grant storage permissions
- click on the red rectangle (this triggers the file operation in the module)
expected: File is created
actual: File creation throws permission denied exception
This works without any issues with 7.2.0.GA.
Attachments
Hello, I was able to reproduce the issue with the sample code and module provided with SDK 7.4.0GA and 7.5.0.GA in Android 8.1.0 device. Thanks.