All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.dongliu.apk.parser.Main Maven / Gradle / Ivy

package net.dongliu.apk.parser;

import java.io.IOException;
import java.security.cert.CertificateException;
import java.util.List;
import java.util.Locale;

import net.dongliu.apk.parser.bean.CertificateMeta;

/**
 * Main method for parser apk
 *
 * @author Liu Dong {@literal }
 */
public class Main {
    public static void main(String[] args) throws IOException, CertificateException {
        String apkFile = args[0];
        try (ApkParser parser = new ApkParser(apkFile)) {
            parser.setPreferredLocale(Locale.getDefault());
            System.out.println(parser.getApkMeta());
            List certList = parser.getCertificateMetaList();
            for (CertificateMeta certificateMeta : certList) {
                System.out.println(certificateMeta);
            }
        }

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy