mirror of
https://github.com/revanced/smali.git
synced 2025-05-11 11:54:29 +02:00
Fix some nitpicks in dex writer code path
This commit is contained in:
parent
3c3a3c4af8
commit
0f198bc78b
@ -35,6 +35,7 @@ import com.google.common.io.ByteStreams;
|
|||||||
import org.jf.dexlib2.dexbacked.DexBackedDexFile;
|
import org.jf.dexlib2.dexbacked.DexBackedDexFile;
|
||||||
import org.jf.dexlib2.dexbacked.DexBackedOdexFile;
|
import org.jf.dexlib2.dexbacked.DexBackedOdexFile;
|
||||||
import org.jf.dexlib2.iface.DexFile;
|
import org.jf.dexlib2.iface.DexFile;
|
||||||
|
import org.jf.dexlib2.writer.pool.DexPool;
|
||||||
import org.jf.util.ExceptionWithContext;
|
import org.jf.util.ExceptionWithContext;
|
||||||
|
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
@ -111,7 +112,7 @@ public final class DexFileFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void writeDexFile(String path, DexFile dexFile) throws IOException {
|
public static void writeDexFile(String path, DexFile dexFile) throws IOException {
|
||||||
org.jf.dexlib2.writer.pool.DexPool.writeTo(path, dexFile);
|
DexPool.writeTo(path, dexFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
private DexFileFactory() {}
|
private DexFileFactory() {}
|
||||||
|
@ -88,8 +88,6 @@ public class DexPool extends DexWriter<CharSequence, StringReference, CharSequen
|
|||||||
for (ClassDef classDef: input.getClasses()) {
|
for (ClassDef classDef: input.getClasses()) {
|
||||||
((ClassPool)dexPool.classSection).intern(classDef);
|
((ClassPool)dexPool.classSection).intern(classDef);
|
||||||
}
|
}
|
||||||
/*System.out.println("here");
|
|
||||||
while(true);*/
|
|
||||||
dexPool.writeTo(path);
|
dexPool.writeTo(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user