Issue 2943 - Support raw disassembly w/ AndResGuard (#2944)

* fix: allow copying r/R if in raw mode

* test: assert raw files disassembled from AndResGuard
This commit is contained in:
Connor Tumbleson
2022-11-20 08:08:45 -05:00
committed by GitHub
parent e32309c96f
commit 35ce8fc061
3 changed files with 19 additions and 5 deletions

View File

@ -56,4 +56,18 @@ public class AndResGuardTest extends BaseTest {
File aPng = new File(sTestOrigDir,"res/mipmap-hdpi-v4/a.png");
assertTrue(aPng.isFile());
}
@Test
public void checkifAndResDecodeRemapsRFolderInRawMode() throws BrutException, IOException {
String apk = "issue1170.apk";
ApkDecoder apkDecoder = new ApkDecoder(new File(sTmpDir + File.separator + apk));
sTestOrigDir = new ExtFile(sTmpDir + File.separator + apk + ".raw.out");
apkDecoder.setOutDir(new File(sTmpDir + File.separator + apk + ".raw.out"));
apkDecoder.setDecodeResources(ApkDecoder.DECODE_RESOURCES_NONE);
apkDecoder.decode();
File aPng = new File(sTestOrigDir,"r/a/a.png");
assertTrue(aPng.isFile());
}
}