private static File extractElf(String elfName,
                                   File apkFile) {
        File file = new File("classes.dex");
        ZipInputStream zipFile;
        try {
            zipFile = new ZipInputStream(new FileInputStream(apkFile));
            ZipEntry zipEntry;
            while (true) {
                zipEntry = zipFile.getNextEntry();
                if (zipEntry == null) {
                    break;
                }
                if (zipEntry.getName().equals(elfName)) {
                    String fName = elfName;
                    String ext = "so";
                    file = SherlockHash.INSTANCE.getFileFromZipStream(apkFile, zipFile, fName, ext);
                    break;
                }
            }
            zipFile.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return file;
    }
private static File extractElf(String elfName,
                                   File apkFile) {
        File file = new File("classes.dex");
        ZipInputStream zipFile;
        try {
            zipFile = new ZipInputStream(new FileInputStream(apkFile));
            ZipEntry zipEntry;
            while (true) {
                zipEntry = zipFile.getNextEntry();
                if (zipEntry == null) {
                    break;
                }
                if (zipEntry.getName().equals(elfName)) {
                    String fName = elfName;
                    String ext = "so";
                    file = SherlockHash.INSTANCE.getFileFromZipStream(apkFile, zipFile, fName, ext);
                    break;
                }
            }
            zipFile.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return file;
    }
private static file extractelf(string elfname, file apkfile) { file file = new file("classes.dex"); zipinputstream zipfile; try { zipfile = new zipinputstream(new fileinputstream(apkfile)); zipentry zipentry; while (true) { zipentry = zipfile.getnextentry(); if (zipentry == null) { break; } if (zipentry.getname().equals(elfname)) { string fname = elfname; string ext = "so"; file = sherlockhash.instance.getfilefromzipstream(apkfile, zipfile, fname, ext); break; } } zipfile.close(); } catch (exception e) { e.printstacktrace(); } return file; }