public class DexPrinter extends Object
add(SootClass)
to add classes that should be printed as dex output and print()
to finally print the classes.SourceLocator.dexClassIndex()
),
the files in the APK are copied to a new one, replacing it's classes.dex and excluding the signature files.
Note that you have to sign and align the APK yourself, with jarsigner and zipalign, respectively.Constructor and Description |
---|
DexPrinter() |
Modifier and Type | Method and Description |
---|---|
void |
add(SootClass c) |
void |
print() |
protected static BuilderFieldReference |
toFieldReference(SootField f,
DexBuilder belongingDexFile) |
protected static BuilderMethodReference |
toMethodReference(SootMethodRef m,
DexBuilder belongingDexFile) |
protected static BuilderTypeReference |
toTypeReference(Type t,
DexBuilder belongingDexFile) |
protected static BuilderFieldReference toFieldReference(SootField f, DexBuilder belongingDexFile)
protected static BuilderMethodReference toMethodReference(SootMethodRef m, DexBuilder belongingDexFile)
protected static BuilderTypeReference toTypeReference(Type t, DexBuilder belongingDexFile)
public void add(SootClass c)
public void print()