diff options
| author | 2010-09-02 11:08:03 -0700 | |
|---|---|---|
| committer | 2010-09-02 11:08:03 -0700 | |
| commit | bd6abed3c8c7c0215fd937d27f1eda1ee88d11a1 (patch) | |
| tree | 90fe118e8de188ac0e1c2d5cbb8ade0d5d51fcea /tools/aapt/Main.cpp | |
| parent | 75a2ae937f5354a3432d0a2382e98177bd9b80d5 (diff) | |
| parent | 8e9bfab2a3ce35b31350b8de18d024f4da6e3886 (diff) | |
Merge "Add a --debug-mode option to aapt."
Diffstat (limited to 'tools/aapt/Main.cpp')
| -rw-r--r-- | tools/aapt/Main.cpp | 9 | 
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/aapt/Main.cpp b/tools/aapt/Main.cpp index b0c6e3975b51..229e13b30463 100644 --- a/tools/aapt/Main.cpp +++ b/tools/aapt/Main.cpp @@ -57,7 +57,7 @@ void usage(void)      fprintf(stderr,          " %s p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \\\n"          "        [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \\\n" -        "        [--min-sdk-version VAL] [--target-sdk-version VAL] \\\n" +        "        [--debug-mode] [--min-sdk-version VAL] [--target-sdk-version VAL] \\\n"          "        [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL] \\\n"          "        [--rename-manifest-package PACKAGE] \\\n"          "        [--rename-instrumentation-target-package PACKAGE] \\\n" @@ -123,6 +123,9 @@ void usage(void)          "   -0  specifies an additional extension for which such files will not\n"          "       be stored compressed in the .apk.  An empty string means to not\n"          "       compress any files at all.\n" +        "   --debug-mode\n" +        "       inserts android:debuggable=\"true\" in to the application node of the\n" +        "       manifest, making the application debuggable even on production devices.\n"          "   --min-sdk-version\n"          "       inserts android:minSdkVersion in to manifest.  If the version is 7 or\n"          "       higher, the default encoding for resources will be in UTF-8.\n" @@ -389,7 +392,9 @@ int main(int argc, char* const argv[])                  }                  break;              case '-': -                if (strcmp(cp, "-min-sdk-version") == 0) { +                if (strcmp(cp, "-debug-mode") == 0) { +                    bundle.setDebugMode(true); +                } else if (strcmp(cp, "-min-sdk-version") == 0) {                      argc--;                      argv++;                      if (!argc) {  |