From: Suchi Amalapurapu Date: Tue, 18 Aug 2009 17:59:08 +0000 (-0700) Subject: am 75c49842: Add maxSdkVersion information in dump badging option X-Git-Url: https://git.saurik.com/android/aapt.git/commitdiff_plain/4a93e01489808190cfeccd619ec3c6b288496497?hp=-c am 75c49842: Add maxSdkVersion information in dump badging option Merge commit '75c498426a17b47d445711bb9e36794b05876a56' into eclair * commit '75c498426a17b47d445711bb9e36794b05876a56': Add maxSdkVersion information in dump badging option --- 4a93e01489808190cfeccd619ec3c6b288496497 diff --combined Command.cpp index c0ae592,5f80ade..76a5acd --- a/Command.cpp +++ b/Command.cpp @@@ -8,10 -8,8 +8,10 @@@ #include "ResourceTable.h" #include "XMLNode.h" -#include -#include +#include +#include +#include +#include #include #include @@@ -323,6 -321,7 +323,7 @@@ enum LABEL_ATTR = 0x01010001, ICON_ATTR = 0x01010002, MIN_SDK_VERSION_ATTR = 0x0101020c, + MAX_SDK_VERSION_ATTR = 0x01010271, REQ_TOUCH_SCREEN_ATTR = 0x01010227, REQ_KEYBOARD_TYPE_ATTR = 0x01010228, REQ_HARD_KEYBOARD_ATTR = 0x01010229, @@@ -587,6 -586,10 +588,10 @@@ int doDump(Bundle* bundle targetSdk = code; printf("sdkVersion:'%d'\n", code); } + code = getIntegerAttribute(tree, MAX_SDK_VERSION_ATTR, NULL, -1); + if (code != -1) { + printf("maxSdkVersion:'%d'\n", code); + } code = getIntegerAttribute(tree, TARGET_SDK_VERSION_ATTR, &error); if (error != "") { error = "";