diff options
| author | Xavier Ducrohet <xav@android.com> | 2010-09-02 11:08:03 -0700 |
|---|---|---|
| committer | Android Code Review <code-review@android.com> | 2010-09-02 11:08:03 -0700 |
| commit | bd6abed3c8c7c0215fd937d27f1eda1ee88d11a1 (patch) | |
| tree | 90fe118e8de188ac0e1c2d5cbb8ade0d5d51fcea /tools/aapt/Resource.cpp | |
| parent | 75a2ae937f5354a3432d0a2382e98177bd9b80d5 (diff) | |
| parent | 8e9bfab2a3ce35b31350b8de18d024f4da6e3886 (diff) | |
| download | frameworks_base-bd6abed3c8c7c0215fd937d27f1eda1ee88d11a1.zip frameworks_base-bd6abed3c8c7c0215fd937d27f1eda1ee88d11a1.tar.gz frameworks_base-bd6abed3c8c7c0215fd937d27f1eda1ee88d11a1.tar.bz2 | |
Merge "Add a --debug-mode option to aapt."
Diffstat (limited to 'tools/aapt/Resource.cpp')
| -rw-r--r-- | tools/aapt/Resource.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/aapt/Resource.cpp b/tools/aapt/Resource.cpp index cafd635..b00e276 100644 --- a/tools/aapt/Resource.cpp +++ b/tools/aapt/Resource.cpp @@ -678,6 +678,13 @@ status_t massageManifest(Bundle* bundle, sp<XMLNode> root) bundle->getMaxSdkVersion()); } + if (bundle->getDebugMode()) { + sp<XMLNode> application = root->getChildElement(String16(), String16("application")); + if (application != NULL) { + addTagAttribute(application, RESOURCES_ANDROID_NAMESPACE, "debuggable", "true"); + } + } + // Deal with manifest package name overrides const char* manifestPackageNameOverride = bundle->getManifestPackageNameOverride(); if (manifestPackageNameOverride != NULL) { |
