public static ApkInfo Decompile(string path) { var dummModel = dump(path); if (dummModel.isSuccess) { var apk = ApkParser.Parse(dummModel); return(ApkExtractor.ExtractIcon(dummModel, apk)); } return(ApkInfo.Empty); }
/// <summary> /// Start point. Begin decompile apk to extract resources /// </summary> /// <param name="path">Absolute path to .apk file</param> /// <returns>Filled apk if dump process is not failed</returns> public static ApkInfo Decompile(string path) { var manifest = ApkExtractor.ExtractManifest(path); if (!manifest.isSuccess) { return(new ApkInfo()); } var largestIcon = ApkExtractor.ExtractLargestIcon(path); return(ApkParser.Parse(manifest).megre( new ApkInfo() { FullPath = path }, new ApkInfo() { Icon = largestIcon } )); }