Hi everyone!

My app stores large files that need to be decrypted on-the-fly.
FileDescriptors for accessing the decrypted files are retrieved from
ContentProvider.openFile(). The plan;

0) openFile() called, passed URI of file.
1) URI mapped to path of encrypted file.
2) Create a CipherInputStream that reads from the encrypted file.
3) Create a pipe via ParcelFileDescriptor.createPipe().
4) Start a worker thread that reads the CipherInputStream into the
pipe.
5) Return the read side of pipe to the caller of openFile().
6) Caller can read decrypted file at their leisure.

This hides all cryptography from the caller and ensures that the hard
work is not done on the main thread.

However, createPipe is new in API Level 9 and I need my app to run on
API Level 8. How can I alter my plan to work on the required API
level?

Thanks.

Pete.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to