public static Baksmali from(String in) throws IOException { return from(new File(in)); }
public void to(final File dir) { to(dir.toPath()); }
public static Baksmali from(DexFileReader reader) { return new Baksmali(reader); }
return; Baksmali b = Baksmali.from(dex); if (noDebug) { b.noDebug(); b.noParameterRegisters(); b.useLocals(); b.to(output);
private void dotest(Path f) throws Exception { Path smali0 = new File("target/" + f.getFileName() + "-smali0.zip").toPath(); try (FileSystem fs0 = BaseCmd.createZip(smali0)) { Baksmali.from(f).to(fs0.getPath("/")); } Path smali1 = new File("target/" + f.getFileName() + "-smali1.zip").toPath(); try (FileSystem fs0 = BaseCmd.openZip(smali0); FileSystem fs1 = BaseCmd.createZip(smali1)) { BaksmaliDumper baksmaliDumper = new BaksmaliDumper(); BaksmaliDexFileVisitor v = new BaksmaliDexFileVisitor(fs1.getPath("/"), baksmaliDumper); Smali.smali(fs0.getPath("/"), v); } } }
public static Baksmali from(Path in) throws IOException { return from(ZipUtil.readDex(in)); }
public static Baksmali from(File in) throws IOException { return from(ZipUtil.readDex(in)); }
public static Baksmali from(InputStream in) throws IOException { return from(ZipUtil.readDex(in)); }
public static Baksmali from(byte[] in) throws IOException { return from(new DexFileReader(in)); }
public static Baksmali from(ByteBuffer in) throws IOException { return from(new DexFileReader(in)); }