X-Git-Url: https://git.saurik.com/android/aapt.git/blobdiff_plain/2cf27f26cea20a0d9bc495a79885a831911d1fc7..dcf97f4c8dd5ae9498f2edecd82feb79b7d8a7de:/Resource.cpp diff --git a/Resource.cpp b/Resource.cpp index bd84e23..9c5fcda 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) {