X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/2fe0ceeab530ad81160222823ab0a316b9a7e309..c6353f67fd5d2c82abec98219f65eaa701fda757:/Resource.cpp diff --git a/Resource.cpp b/Resource.cpp index 498b193..01728a1 100644 --- a/Resource.cpp +++ b/Resource.cpp @@ -678,6 +678,13 @@ status_t massageManifest(Bundle* bundle, sp root) bundle->getMaxSdkVersion()); } + if (bundle->getDebugMode()) { + sp 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) {