I have a basic idea on how Android apps are built and run. What I want to do is to write a gradle task in order to modify the .class generated by the java compiler or modify the .dex before that apkbuilder builds the apk. I think is quiet similar to what proguard do. But I have no idea on how to break the build process exactly where I want. Is there any gradle plugin?
Apk repackaging is not a good idea what I need is something that can be integrated during build process.