itinance / itinance/react-native-fs

Android N FileUriExposedException: exposed beyond app through ClipData.Item.getUri()

Open
#455 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

When i use below method, throw the exception
```
RNFSManager.writeFile()
```

my resolve:
before IO process, add below code
```
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
StrictMode.setVmPolicy(builder.build());
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.