Closed Col-E closed 5 years ago
Was thinking about it but was hoping to see if any other solutions existed. I'd prefer not to depend on an external command-line tool, and their java backend has almost no documentation as far as I can see.
I will use it if I can't find any other cleaner alternative. The ideal situation would be dex
-> Map<className, org.objectweb.asm.ClassNode>
-> edit
-> dex
without any dependence on file IO / CLI.
I've also looked at enjarify (which is more up-to-date and supports more cases) but it's only one-way...
How about using dex2jar to convert it to classes and back...
dex2jar doesn't support multidex... so if any apk contain multiple dex file then the result will be very unexpected..
For multiple reasons I'm going to refer APK modification to another project, AndroidProjectCreator (Github).
Closing as out of scope.
A friend of mine has suggested adding APK support, but I'm not sure how to approach that given the major differences between standard java's bytecode and dalvik.
Any ideas / suggestions on how to approach this would be greatly appreciated.