[guardian-dev] InputStreams across Services

Abel Luck abel at guardianproject.info
Wed Dec 4 13:36:05 EST 2013


Hi Mark,

We're collaborating with Dominik on an OpenPGP Crypto Provider API, which is a generic PGP
AIDL interface that a provider app will implement in a remote background service.

Our question is: how should we pass InputStreams across the service interface?

See the short example outlined here [0],  and the "Open Questions" section below it.

Our main questions have to to with the "ParcelFileDescriptor". I assumed it was some sort
of magic Input/OuputStream wrapper for fds, byte[], etc. But I don't think that's the case.

Also, importantly, I'm not sure we can pass ParcelFileDescriptor in a service method.

I saw your ContentProvider/Pipe example, but how would you use that across an AIDL Service?

Thanks for your time!

~abel

[0]: https://dev.guardianproject.info/projects/gpgandroid/wiki/API_Sketch#AIDL-API

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 630 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mayfirst.org/pipermail/guardian-dev/attachments/20131204/e27fccef/attachment.pgp>


More information about the Guardian-dev mailing list