01-20-2015, 11:14 AM
(01-20-2015, 11:03 AM)Sex Slave Wrote: How does the editing work exactly? I put view3 to smali editor, made my fixes, clicked the File->Compile Smali then File-> Save as Jar... and the resulting file was about 300KB smaller than the original file and gave an error when attempting to open it. The changes I made were changing a hardcoded int value (so no new/edited opcodes).
Keep in mind it needs to first convert the jar to Dex, then it converts to smali, after the changes it converts it from smali, to dex then back to Java bytecode. This works pretty well for Android APKs, but it does break some Java class files.
So Jar>Dex>Smali -EDITS- Smali >Dex>Jar, it's mainly designed for APK use.