INNER CODE UNIT · Java

processLineagePath

patrickfav/uber-apk-signer · src/main/java/at/favre/tools/apksigner/SignTool.java:189

    private static void processLineagePath(Arg args) throws IOException {
        File lineageFile = new File(args.lineageFilePath);
        if (!lineageFile.exists() || !lineageFile.isFile()) {
            throw new IllegalArgumentException("lineage file either does not exist or is not a file: " + args.lineageFilePath);
        }
        log("lineage:");
        log("\t" + FileUtil.createChecksum(lineageFile, "SHA-256").substring(0, 8) + " " + lineageFile.getCanonicalPath());
    }

    private static void deleteTempFiles(Arg args, List<File> tempFilesToDelete) {
        for (File file : tempFilesToDelete) {
            if (args.verbose) {
                log("delete temp file " + file);
            }
            file.delete();
        }
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…