I have an android application that maintains some confidential data (encrypted) and I'm trying to handle a case where this encrypted data is maintained across an update of my application. I want different versions of my application to have different encryption keys and I dont want new versions of the application to contain keys for every preceeding version.
My idea was to run some code on application install which would allow for re-encryption of this data, but I android firstly doesnt seem to provide any means to execute application code in application install. secondly, I dont see anyway for the newly installed version of the application to execute code in the previous version.
This doesnt seem so unreasonable a thing to do for me, can someone confirm that android doesnt allow this and explain why ? In terms of solutions, I have to either use the same key for all applicaitons or have a new version of my application reconstruct this data through other means ...
[there is another question somewhat related (link below) but it is a different case and the answer doesnt provide any reference]
Is there a way to make my Android app run some custom code upon installation?
http://groups.google.com/group/android-framework/browse_thread/thread/0f1617d28e8ff05e