@Test public void testCrcDoNotCrash() throws IOException { long crc = ZipUtil.getZipCrc(zipFile); System.out.println("crc is " + crc); }
static long getZipCrc(File apk) throws IOException { RandomAccessFile raf = new RandomAccessFile(apk, "r"); try { CentralDirectory dir = findCentralDirectory(raf); return computeCrcOfCentralDir(raf, dir); } finally { raf.close(); } }
ZipUtil { static long getZipCrc(File apk) throws IOException { RandomAccessFile raf = new RandomAccessFile(apk, "r"); try { CentralDirectory dir = findCentralDirectory(raf); return computeCrcOfCentralDir(raf, dir); } finally { raf.close(); } } }
ZipUtil { static long getZipCrc(File apk) throws IOException { RandomAccessFile raf = new RandomAccessFile(apk, "r"); try { CentralDirectory dir = findCentralDirectory(raf); return computeCrcOfCentralDir(raf, dir); } finally { raf.close(); } }  }
ZipUtil { static long getZipCrc(File apk) throws IOException { RandomAccessFile raf = new RandomAccessFile(apk, "r"); try { CentralDirectory dir = findCentralDirectory(raf); return computeCrcOfCentralDir(raf, dir); } finally { raf.close(); } }   }
ZipUtil { static long getZipCrc(File apk) throws IOException { RandomAccessFile raf = new RandomAccessFile(apk, "r"); try { CentralDirectory dir = findCentralDirectory(raf); return computeCrcOfCentralDir(raf, dir); } finally { raf.close(); } }    }