private ApkInfoParser.ApkInfo loadTestedApkInfo() { File aaptFile = new File(androidBuilder.getTargetInfo().getBuildTools() .getPath(BuildToolInfo.PathId.AAPT)); ApkInfoParser apkInfoParser = new ApkInfoParser(aaptFile, androidBuilder.getProcessExecutor()); try { return apkInfoParser.parseApk(getMainApk()); } catch (ProcessException e) { throw new RuntimeException(e); } }
/** * Computes and returns the info for an APK * @param apkFile the APK to parse * @return a non-null ApkInfo object. * @throws ProcessException */ @NonNull public ApkInfo parseApk(@NonNull File apkFile) throws ProcessException { if (!mAaptFile.isFile()) { throw new IllegalStateException( "aapt is missing from location: " + mAaptFile.getAbsolutePath()); } return getApkInfo(getAaptOutput(apkFile)); }
private ApkInfoParser.ApkInfo loadTestedApkInfo() { File aaptFile = new File(androidBuilder.getTargetInfo().getBuildTools() .getPath(BuildToolInfo.PathId.AAPT)); ApkInfoParser apkInfoParser = new ApkInfoParser(aaptFile, androidBuilder.getProcessExecutor()); try { return apkInfoParser.parseApk(getMainApk()); } catch (ProcessException e) { throw new RuntimeException(e); } }
/** * Computes and returns the info for an APK * @param apkFile the APK to parse * @return a non-null ApkInfo object. * @throws ProcessException */ @NonNull public ApkInfo parseApk(@NonNull File apkFile) throws ProcessException { if (!mAaptFile.isFile()) { throw new IllegalStateException( "aapt is missing from location: " + mAaptFile.getAbsolutePath()); } return getApkInfo(getAaptOutput(apkFile)); }
ApkInfoParser parser = new ApkInfoParser(new File(aapt), mProcessExecutor); ApkInfoParser.ApkInfo apkInfo = parser.parseApk(apkFile);
ApkInfoParser parser = new ApkInfoParser(new File(aapt), mProcessExecutor); ApkInfoParser.ApkInfo apkInfo = parser.parseApk(apkFile);