use of org.jf.dexlib2.writer.pool.DexPool in project smali by JesusFreke.
the class DexPool method writeTo.
public static void writeTo(@Nonnull String path, @Nonnull org.jf.dexlib2.iface.DexFile input) throws IOException {
DexPool dexPool = new DexPool(input.getOpcodes());
for (ClassDef classDef : input.getClasses()) {
dexPool.internClass(classDef);
}
dexPool.writeTo(new FileDataStore(new File(path)));
}
Aggregations