Folks,

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, Network IO and change the calls to some
   subclass of these classes
   3. Inject the DEX code for the subclasses into the original DEX file
   4. Update the header, recalculate hash and resign the DEX

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 Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to