Comments (11)
Taking a look
from conceal.
have you seen the link on bitucket, which I've posted to SO?
https://bitbucket.org/simekadam/securedfileprovider
from conceal.
Thanks for the link. That helps.
from conceal.
You should be able to build it with gradle (at least I hope so:) //no buck support though:)
from conceal.
I think i know what the issue is here: https://bitbucket.org/simekadam/securedfileprovider/src/26c2cd3b8154dace8621527260562af9e4bdb4b0/SecuredFileProvider/src/main/java/eu/inmite/android/securedfileprovider/SecuredFileProvider.java?at=master#cl-134 you aren't closing the stream.
This is required for multiple reasons:
- It's good in general otherwise you're leaking file descriptors
- We write out the integrity tag on close()
from conceal.
Compiling..that's definitely an issue, but shouldn't it throw the exception while writing the file?
Update..You;re awesome, that was the issue..Gonna smash my head against the wall now..
Thank you!
from conceal.
Thanks (y) Its hard to throw when close() isn't called. We can do finalizers but I'd rather not use a finalizer since it isn't reliable.
from conceal.
I got it. I just was under the impression that writing to the file completed ok and haven't searched fo the issue there at all:/ Especially silly as I have been trying like ten different ways how to stream the input.
..So I guess conceal wasn't able to determine I wrote all the bits of the file and wasn't able to compute some checksum and probably wrote those result bit to the fail..Than while decrypting after I closed the stream it wasn't able to verify those checksum..
from conceal.
I am looking for a similar approach. I am unable to access the link https://bitbucket.org/simekadam/securedfileprovider . Can you provide me permission.? Or can someone share the solution they have. I am actually facing an issue with sharing image files and opening those in android gallery, where I get exception as PIPE closed. Unable to open imaged in gallery but same works with other (not all) image viewing apps. Thanks in advance.
from conceal.
I have the same problem and cannot find any solution , also i am not able to access the link https://bitbucket.org/simekadam/securedfileprovider so please how could i get permission to access that link ?
from conceal.
I'm sorry guys that code already isn't available.
Long story short the issue was, that I didn't close the stream properly in one case. Fixing that fixed that problem. Only partially though.
Sometimes it seems like those other apps aren't closing streams properly?? And then it fails. Or they just might read the data in some weird way.
from conceal.
Related Issues (20)
- Why not think about using the cpu feature like ANDROID_CPU_ARM64_FEATURE_AES?
- Native Crash!!! HOT 6
- [Question] Password based key derivation usage HOT 5
- native crash and app can't pickup the exception,Can this exception wrap with java exception,then i can catch it
- native crash on Samsung HOT 1
- README.md refers to deprecated crypto.getCipherOutputStream
- What do I need to know in order to encrypt elsewhere for Conceal to decrypt? HOT 3
- The speed of decrypting the file is twice faster than the speed of encrypting the same file
- How to save encrypted file to internal folder ?
- App crashed in native method
- Conflicts using in React Native project due to com.facebook.jni.DestructorThread HOT 3
- showing NoSuchMethodException on Android P when initialing the SoLoader HOT 10
- Incompatibility with the Facebook library Flipper
- Conflict with React Native in v2.0.2 HOT 6
- Subpar PBKDF2 performance
- PHP Implementation HOT 1
- signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) Native Crash in Google Play Console HOT 5
- App crashes when running as 64 bit version: `libfb.so is 64-bit instead of 32-bit` HOT 1
- Fatal signal 11 (SIGSEGV), code 2 upon file decryption.
- Native crash (conceal version 2.0.2) java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libfb.so HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conceal.