ApkDecoder use apkFile and unknownFiles from ApkInfo (#3242)

This commit is contained in:
sv99
2023-08-01 13:57:22 +03:00
committed by GitHub
parent e52c3b0f56
commit 9d7d58016e
6 changed files with 33 additions and 71 deletions

View File

@ -54,7 +54,7 @@ public class NonStandardPkgIdTest extends BaseTest {
LOGGER.info("Decoding pkgid8.apk...");
ApkInfo testInfo = new ApkInfo(testApk);
ResourcesDecoder resourcesDecoder = new ResourcesDecoder(Config.getDefaultConfig(), testApk, testInfo);
ResourcesDecoder resourcesDecoder = new ResourcesDecoder(Config.getDefaultConfig(), testInfo);
sTestNewDir.mkdirs();
resourcesDecoder.decodeResources(sTestNewDir);

View File

@ -55,7 +55,7 @@ public class DecodeArrayTest extends BaseTest {
ExtFile apkFile = new ExtFile(sTmpDir, "issue1994.apk");
ApkInfo apkInfo = new ApkInfo(apkFile);
//ApkDecoder apkDecoder = new ApkDecoder(apkFile);
ResourcesDecoder resourcesDecoder = new ResourcesDecoder(Config.getDefaultConfig(), apkFile, apkInfo);
ResourcesDecoder resourcesDecoder = new ResourcesDecoder(Config.getDefaultConfig(), apkInfo);
resourcesDecoder.loadMainPkg();
ResTable resTable = resourcesDecoder.getResTable();
@ -68,7 +68,7 @@ public class DecodeArrayTest extends BaseTest {
public void decodeArray() throws BrutException {
ExtFile apkFile = new ExtFile(sTmpDir, "issue1994.apk");
ApkInfo apkInfo = new ApkInfo(apkFile);
ResourcesDecoder resourcesDecoder = new ResourcesDecoder(Config.getDefaultConfig(), apkFile, apkInfo);
ResourcesDecoder resourcesDecoder = new ResourcesDecoder(Config.getDefaultConfig(), apkInfo);
resourcesDecoder.loadMainPkg();
ResTable resTable = resourcesDecoder.getResTable();