[guardian-dev] Sharing encrypted content with other apps

ShootAKite at riseup.net ShootAKite at riseup.net
Tue Jan 28 21:54:35 EST 2014


I don't know about Android but on Linux I use socat to transfer data
between incompatible applications without writing to disk. 
A
Source:
http://www.dest-unreach.org/socat/
http://repo.or.cz/w/socat.git
On 01/28/2014 05:54 PM, Michael Rogers wrote:
> Hi all,
>
> I've been pondering whether it's possible for an Android app to share
> encrypted content - for example, an image stored in a SQLCipher
> database - with another app, without first creating an unencrypted
> copy of the content on disk.
>
> If we didn't mind creating an unencrypted copy of the content we could
> write it to a file, use a FileProvider to get a content URI for the
> file, and use an Intent to share the URI with the other app. Can that
> process be modified to avoid making a copy of the content?
>
> One possibility would be to create a named pipe with mkfifo(), use a
> FileProvider to create a content URI for the pipe, use an Intent to
> share the URI with the other app, and then stream the data from
> storage to the pipe.
>
> Another possibility would be to use ParcelFileDescriptor.createPipe()
> to create a pair of ParcelFileDescriptors, use an Intent to pass the
> read descriptor to the other app, and then stream the data from
> storage to the write descriptor. But I guess most apps will expect to
> obtain content from URIs rather than ParcelFileDescriptors.
>
> Has anyone on the list tried something like this? Any suggestions?
>
> Cheers,
> Michael
> _______________________________________________
> Guardian-dev mailing list
>
> Post: Guardian-dev at lists.mayfirst.org
> List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev
>
> To Unsubscribe
>         Send email to:  Guardian-dev-unsubscribe at lists.mayfirst.org
>         Or visit:
https://lists.mayfirst.org/mailman/options/guardian-dev/shootakite%40riseup.net
>
> You are subscribed as: shootakite at riseup.net
>




More information about the Guardian-dev mailing list