Code example for ZipEntry

Methods: getCompressedSizegetCrcgetSize

0
        if (zf == null) {
            return; 
        } 
 
        ZipEntry ze = zf.getEntry("classes.dex");
        ZipClassesDexCrc = ze.getCrc();
        ZipClassesDexSize = ze.getSize();
        ZipClassesDexCompressedSize = ze.getCompressedSize();
    } 
 
    private void loadApkChecksums() { 
        try { 
            ApkDigestMD5 = Base64.encode(CryptoUtils.getMD5Digest(mApkPath));
            ApkDigestSHA1 = Base64.encode(CryptoUtils.getSHA1Digest(mApkPath));
 
            ApkChecksumCRC32 = CryptoUtils.getCRC32Chksum(mApkPath);
            ApkChecksumAdler32 = CryptoUtils.getAdler32Chksum(mApkPath);
 
            MD5Sum = CryptoUtils.getMD5Sum(mApkPath);
        } catch (Exception ex) {
            Console.die("Failed to load Apk checksums with exception:\n" + ex);