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

java.io.FileNotFoundException: open failed: EROFS (Read-only file system) #206

Closed
ape-report opened this Issue Mar 31, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@ape-report

ape-report commented Mar 31, 2018

When compressing a file or folder in a system folder,
the app crashes due to permission issues.

// java.io.FileNotFoundException: /4.zip: open failed: EROFS (Read-only file system)
//  at libcore.io.IoBridge.open(IoBridge.java:452)
//  at java.io.FileOutputStream.<init>(FileOutputStream.java:87)
//  at java.io.FileOutputStream.<init>(FileOutputStream.java:72)
//  at com.simplemobiletools.commons.extensions.ActivityKt.getFileOutputStreamSync(SourceFile:594)
//  at com.simplemobiletools.commons.extensions.ActivityKt.getFileOutputStreamSync$default(SourceFile:580)
//  at com.simplemobiletools.filemanager.adapters.ItemsAdapter.zipPaths(SourceFile:293)
//  at com.simplemobiletools.filemanager.adapters.ItemsAdapter.access$zipPaths(SourceFile:40)
//  at com.simplemobiletools.filemanager.adapters.ItemsAdapter$compressSelection$1$1$1.run(SourceFile:223)
//  at java.lang.Thread.run(Thread.java:818)
// Caused by: android.system.ErrnoException: open failed: EROFS (Read-only file system)
//  at libcore.io.Posix.open(Native Method)
//  at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
//  at libcore.io.IoBridge.open(IoBridge.java:438)
//  ... 8 more

@tibbi tibbi added the bug label Mar 31, 2018

@tibbi

This comment has been minimized.

Member

tibbi commented Mar 31, 2018

error will be caught and displayed in the next version, proper root file handling is a more generic issue

@tibbi tibbi closed this Apr 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment