Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26620] Exception when creating file on external storage in a module on Android

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterAlex Bendl
AssigneeEric Merriman
Created2018-11-14T14:09:08.000+0000
Updated2018-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

FileDateSize
PermissionBugSample.zip2018-11-14T13:59:32.000+00007338721

Comments

  1. Sharif AbuDarda 2018-11-29

    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.

JSON Source