mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-12 05:07:41 +02:00
Support explicit operation for when to load full resource table (#3217)
This commit is contained in:
@ -58,8 +58,8 @@ public class NonStandardPkgIdTest extends BaseTest {
|
||||
Config.getDefaultConfig(), new ExtFile(testApk));
|
||||
|
||||
sTestNewDir.mkdirs();
|
||||
resourcesDecoder.decodeManifest(sTestNewDir);
|
||||
mResTable = resourcesDecoder.decodeResources(sTestNewDir);
|
||||
resourcesDecoder.decodeManifest(sTestNewDir);
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
|
@ -57,6 +57,7 @@ public class DecodeArrayTest extends BaseTest {
|
||||
Config.getDefaultConfig(),
|
||||
new ExtFile(sTmpDir + File.separator + apk));
|
||||
|
||||
resourcesDecoder.loadMainPkg();
|
||||
ResTable resTable = resourcesDecoder.getResTable();
|
||||
ResValue value = resTable.getResSpec(0x7f020001).getDefaultResource().getValue();
|
||||
|
||||
@ -70,6 +71,7 @@ public class DecodeArrayTest extends BaseTest {
|
||||
Config.getDefaultConfig(),
|
||||
new ExtFile(sTmpDir + File.separator + apk));
|
||||
|
||||
resourcesDecoder.loadMainPkg();
|
||||
ResTable resTable = resourcesDecoder.getResTable();
|
||||
ResValue value = resTable.getResSpec(0x7f020000).getDefaultResource().getValue();
|
||||
|
||||
|
Reference in New Issue
Block a user