Fixed "apktool b" with default app_path argument.

This commit is contained in:
Ryszard Wiśniewski 2013-05-02 02:18:20 +02:00
parent 6e7e0c0984
commit fed7f763b9

View File

@ -182,10 +182,9 @@ public class Main {
}
private static void cmdBuild(CommandLine cli) throws BrutException {
int paraCount = cli.getArgList().size();
String apkName = (String) cli.getArgList().get(paraCount - 1);
String[] args = cli.getArgs();
String appDirName = args.length < 2 ? "." : args[1];
String mAaptPath = "";
String appDirName = ".";
File outFile = null;
Androlib instance = new Androlib();
@ -223,10 +222,6 @@ public class Main {
outFile = null;
}
if (apkName != null) {
appDirName = apkName;
}
// try and build apk
instance.build(new File(appDirName), outFile, flags,mAaptPath);
}