Support for --framework <dir> command line argument to specify the location of the framework files (previously forced you to keep them in the home folder)

This commit is contained in:
Robert Mays Jr
2012-11-29 18:30:21 -05:00
parent 60f3ef49c9
commit f83383a33b
3 changed files with 22 additions and 4 deletions

View File

@ -111,7 +111,11 @@ public class Main {
decoder.setDecodeResources(ApkDecoder.DECODE_RESOURCES_NONE);
} else if ("--keep-broken-res".equals(opt)) {
decoder.setKeepBrokenResources(true);
} else {
} else if ("--framework".equals(opt)) {
i++;
System.out.println("Using Framework Directory: " + args[i]);
decoder.setFrameworkDir(args[i]);
} else {
throw new InvalidArgsError();
}
}
@ -262,6 +266,8 @@ public class Main {
" Force delete destination directory.\n" +
" -t <tag>, --frame-tag <tag>\n" +
" Try to use framework files tagged by <tag>.\n" +
" --framework <dir>\n" +
" Use the specified directory for framework files" +
" --keep-broken-res\n" +
" Use if there was an error and some resources were dropped, e.g.:\n" +
" \"Invalid config flags detected. Dropping resources\", but you\n" +