feat: allow instantiating with existing ApkInfo

This commit is contained in:
oSumAtrIX 2023-08-11 00:51:30 +02:00
parent 019b2e648d
commit c0900e50c5
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -68,8 +68,12 @@ public class ApkDecoder {
}
public ApkDecoder(Config config, ExtFile apkFile) {
this(config, new ApkInfo(apkFile));
}
public ApkDecoder(Config config, ApkInfo apkInfo) {
mConfig = config;
mApkInfo = new ApkInfo(apkFile);
mApkInfo = apkInfo;
}
public ApkInfo decode(File outDir) throws AndrolibException, IOException, DirectoryException {