-
Notifications
You must be signed in to change notification settings - Fork 573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Realm got error Read-only file system with android 8.1 #4450
Comments
Would it be a possible solution to copy the realm to the App specific storage? You might be able to use something like https://www.npmjs.com/package/react-native-fs#API to get the path of that directory. |
Hi @kraenhansen I need to share realm file with other app. If I save file realm for only specific app then other app can not access realm file. It is weird, because this bug is only exist on android version larger than 8.0. |
@lytrunghieu I imagine your app has to ask the OS for permission to write to this directory. Are you using any of the Android APIs to request access to the shared storage? |
Yes, I have added permission in AndroidManifest.xml
And in app I requested permission as well
|
@lytrunghieu to be honest, I'm clueless on what might be happening here then. It will require further investigations. |
@kraenhansen Have you try reproduce on android 8.1 ? |
Nope. I havn't reproduced this yet. My expectation is that the security model was change / tightened with Android 8.1 which is why Realm core can't open the Realm in write-mode. |
Hi @lytrunghieu, were you able to create a minimal repro of this issue? |
I am closing the issue due to no reply back. Please comment and reopen the issue if needed. |
Hello, I have the same problem but on aws nodejs. There was an error in the log.
My code
Do you have any idea? |
@thucnguyenpfs It is unrelated to the original issue, and creating a new issue is the best approach. Said that, |
why this issue is closed :( |
Because the author didn't reply with repro case. If you're experiencing a similar problem, file a new issue and fill in the template. |
How frequently does the bug occur?
All the time
Description
I created new react native project and install realm. When I call open connection then I got error "Read-only file system", it is working on android version less 8.1.
Note: it still working on android 8.1 if I use default path of realm.
my package.json:
Code for open connection realm:
I appreciate any help.
Stacktrace & log output
No response
Can you reproduce the bug?
Yes, always
Reproduction Steps
No response
Version
10.14.0
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
Android
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: