zer0stimulus
zer0stimulus

Reputation: 23646

Does Android provide any versioning mechanisms for AIDL interfaces?

We're planning to export an application layer AIDL interface. What are some best practices with regards for managing version compatibility? Does Android provide any version-related mechanisms for AIDL interfaces?

Upvotes: 3

Views: 1860

Answers (2)

JaM
JaM

Reputation: 719

Today - almost 6 years after you posted this question - I am asking myself the same question and there still seems to be no official solution. The official documentation simply states:

Caution: Any changes that you make to your AIDL interface after your first release must remain backward compatible in order to avoid breaking other applications that use your service. That is, because your .aidl file must be copied to other applications in order for them to access your service's interface, you must maintain support for the original interface.

Upvotes: 3

Chris Stratton
Chris Stratton

Reputation: 40397

It would be pretty trivial to put and verify either a string or integer version number in the parcel.

Upvotes: 0

Related Questions