baksmali: Reverse pair ordering in resource-id-files option

This commit is contained in:
Jeff Smith 2013-11-19 08:31:52 -06:00
parent eb0b009971
commit d607960cff
2 changed files with 4 additions and 4 deletions

View File

@ -91,7 +91,7 @@ public class baksmaliOptions {
public void setResourceIdFiles(String resourceIdFiles) {
for (String resourceIdFile: resourceIdFiles.split(":")) {
String[] entry = resourceIdFile.split("=");
resourceIdFileEntries.put(entry[0], entry[1]);
resourceIdFileEntries.put(entry[1], entry[0]);
}
}
}

View File

@ -441,9 +441,9 @@ public class main {
.create("K");
Option resourceIdFilesOption = OptionBuilder.withLongOpt("resource-id-files")
.withDescription("the resource ID files to use, for analysis. A colon-separated list of file=prefix " +
"pairs. For example res/values/public.xml=R:" +
"$ANDROID_HOME/platforms/android-19/data/res/values/public.xml=android.R")
.withDescription("the resource ID files to use, for analysis. A colon-separated list of prefix=file " +
"pairs. For example R=res/values/public.xml:" +
"android.R=$ANDROID_HOME/platforms/android-19/data/res/values/public.xml")
.hasArg()
.withArgName("FILES")
.create("R");