Folks, Didn't get any replies on developer mailing list, so I thought I'll try it here in case someone has any ideas to share.
I have just started to work on an idea where I'd want to inject some additional cross cutting concerns -- mainly security with some logging -- to an existing APK files. The closest thing I have encountered online is this SO thread: http://stackoverflow.com/questions/5829424/injecting-code-into-apk Here is my current chain of thought on how to achieve this: 1. Get the classes.dex file out of the APK 2. Find if it uses any File or Network IO and change the calls to some subclass of the classes it has uses. (If they aren't final) 3. Inject the DEX code for the subclasses into the original DEX file 4. Update the header, recalculate hash and resign the updated APK Before I start implementing the subset of DEX specification, I was wondering if there were any existing tools/libraries that I can take a look at for a start. Thanks, ATTA -- You received this message because you are subscribed to the Google Groups "Android Discuss" 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-discuss?hl=en.
