AndrolibResources.decode(): get apkFile as ExtFile.

This commit is contained in:
Ryszard Wiśniewski 2010-03-26 16:43:36 +01:00
parent c09e74c4dd
commit 43b28c7ee5
2 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ public class Androlib {
}
}
public void decodeResourcesFull(File apkFile, File outDir,
public void decodeResourcesFull(ExtFile apkFile, File outDir,
ResTable resTable) throws AndrolibException {
LOGGER.info("Decoding resources...");
mAndRes.decode(resTable, apkFile, outDir);

View File

@ -43,7 +43,7 @@ final public class AndrolibResources {
return resTable;
}
public void decode(ResTable resTable, File apkFile, File outDir)
public void decode(ResTable resTable, ExtFile apkFile, File outDir)
throws AndrolibException {
Duo<ResFileDecoder, ResAttrDecoder> duo = getResFileDecoder();
ResFileDecoder fileDecoder = duo.m1;
@ -54,7 +54,7 @@ final public class AndrolibResources {
Directory in, out;
try {
in = new ZipRODirectory(apkFile);
in = apkFile.getDirectory();
out = new FileDirectory(outDir);
fileDecoder.decode(