Skip to content

Commit a7e2e3e

Browse files
authored
Extract into ApkInvoker and split into data classes. (#3124)
* extract AaptInvoker and rename MetaFile to ApkInfo, all decode methods from AndrolibResources moved to the ApkDecoder * extract ARSCData and FlagsOffset from ARSCDecoder and remove unused imports * rebase to master * move decodeManifest and decodeResources to the ResourceDecoder * remove commented old code
1 parent e69b1ed commit a7e2e3e

38 files changed

+1278
-1289
lines changed

brut.apktool/apktool-cli/src/main/java/brut/apktool/Main.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import brut.androlib.exceptions.CantFindFrameworkResException;
2222
import brut.androlib.exceptions.InFileNotFoundException;
2323
import brut.androlib.exceptions.OutDirExistsException;
24-
import brut.androlib.res.AndrolibResources;
2524
import brut.androlib.res.Framework;
2625
import brut.common.BrutException;
2726
import brut.directory.DirectoryException;
@@ -205,10 +204,6 @@ private static void cmdDecode(CommandLine cli, Config config) throws AndrolibExc
205204
} catch (DirectoryException ex) {
206205
System.err.println("Could not modify internal dex files. Please ensure you have permission.");
207206
System.exit(1);
208-
} finally {
209-
try {
210-
decoder.close();
211-
} catch (IOException ignored) {}
212207
}
213208
}
214209

0 commit comments

Comments
 (0)