mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-12 05:07:41 +02:00
ApkDecoder use apkFile and unknownFiles from ApkInfo (#3242)
This commit is contained in:
@ -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);
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user